NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799? | CREATE TABLE table_66577 (
"School" text,
"Mascot" text,
"Location" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT "County" FROM table_66577 WHERE "IHSAA Class" = 'aaa' AND "Enrollment" < '799' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
755,
4013,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
63,
121,
21680,
953,
834,
3539,
755,
4013,
549,
17444,
427,
96,
196,
4950,
5498,
4501,
121,
3274,
3,
31,
9,
9,
9,
31,
3430,
96,
8532,
4046,
297,
121,
3,
2,
3,
31,
940,
3264,
31,
1,
-100,
-100,
-100,... |
what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r? | CREATE TABLE table_name_49 (Id VARCHAR) | SELECT 2005 FROM table_name_49 WHERE 2003 = "a" AND 2007 = "2r" AND 2012 = "3r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
3105,
116,
3888,
19,
71,
6,
4101,
19,
204,
52,
11,
1673,
19,
220,
52,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3105,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3888,
3274,
96,
9,
121,
3430,
4101,
3274,
96,
357,
52,
121,
3430,
1673,
3274,
96,
519,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was on the 2012 commission and the 1999 commission with john wilborn? | CREATE TABLE table_18858 (
"District" text,
"2012 Commission" text,
"2010 Commission" text,
"2007 Commission" text,
"2002 Commission" text,
"1999 Commission" text
) | SELECT "2012 Commission" FROM table_18858 WHERE "1999 Commission" = 'John Wilborn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
3449,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
12172,
3527,
121,
1499,
6,
96,
14926,
3527,
121,
1499,
6,
96,
20615,
3527,
121,
1499,
6,
96,
24898,
3527,
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,
12172,
3527,
121,
21680,
953,
834,
25794,
3449,
549,
17444,
427,
96,
2294,
3264,
3527,
121,
3274,
3,
31,
18300,
8540,
7473,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Province, when 2006 is less than 153748, when Date of Official Foundation of Municipality is after 1958, and when City is 'Pakdasht'? | CREATE TABLE table_44172 (
"Rank" real,
"City" text,
"Province" text,
"Date of Official Foundation of Municipality" real,
"2006" real
) | SELECT "Province" FROM table_44172 WHERE "2006" < '153748' AND "Date of Official Foundation of Municipality" > '1958' AND "City" = 'pakdasht' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
27156,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
3174,
2494,
565,
121,
1499,
6,
96,
308,
342,
13,
13686,
2941,
13,
16492,
485,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
2494,
565,
121,
21680,
953,
834,
3628,
27156,
549,
17444,
427,
96,
21196,
121,
3,
2,
3,
31,
1808,
4118,
3707,
31,
3430,
96,
308,
342,
13,
13686,
2941,
13,
16492,
485,
121,
2490,
3,
31,
2294,
3449,
31,
... |
What is department name and office for the professor whose last name is Heffington? | CREATE TABLE department (
dept_name VARCHAR,
dept_code VARCHAR
)
CREATE TABLE professor (
prof_office VARCHAR,
emp_num VARCHAR,
dept_code VARCHAR
)
CREATE TABLE employee (
emp_num VARCHAR,
emp_lname VARCHAR
) | SELECT T3.dept_name, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
584,
4280,
28027,
6,
20,
102,
17,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5812,
41,
7108,
834,
1963... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
26,
6707,
834,
4350,
6,
332,
4416,
1409,
89,
834,
19632,
21680,
3490,
6157,
332,
536,
3,
15355,
3162,
5812,
6157,
332,
357,
9191,
332,
5411,
15,
1167,
834,
5525,
3274,
332,
4416,
15,
1167,
834,
5525,
3,
... |
What is the sum of the largest purse? | CREATE TABLE table_266 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | SELECT MAX("Purse( $ )") FROM table_266 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
599,
1514,
3,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3589,
15,
599,
1514,
3,
61,
8512,
21680,
953,
834,
357,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which is the only pink car ? | CREATE TABLE table_203_717 (
id number,
"number" number,
"year built" number,
"livery" text,
"current status" text,
"notes" text
) | SELECT "number" FROM table_203_717 WHERE "livery" = 'pink' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
2517,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
1201,
1192,
121,
381,
6,
96,
7591,
651,
121,
1499,
6,
96,
14907,
2637,
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,
5525,
1152,
121,
21680,
953,
834,
23330,
834,
940,
2517,
549,
17444,
427,
96,
7591,
651,
121,
3274,
3,
31,
3180,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the highest league goals with total goals less than 1 and FA cups more than 0 | CREATE TABLE table_name_67 (
league_goals INTEGER,
total_goals VARCHAR,
fa_cup_goals VARCHAR
) | SELECT MAX(league_goals) FROM table_name_67 WHERE total_goals < 1 AND fa_cup_goals > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5533,
834,
839,
5405,
3,
21342,
17966,
6,
792,
834,
839,
5405,
584,
4280,
28027,
6,
3,
89,
9,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
29512,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
792,
834,
839,
5405,
3,
2,
209,
3430,
3,
89,
9,
834,
4658,
834,
839,
5405,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-10... |
Which report is for Townsville Entertainment Centre? | CREATE TABLE table_name_6 (report VARCHAR, venue VARCHAR) | SELECT report FROM table_name_6 WHERE venue = "townsville entertainment centre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
60,
1493,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
934,
19,
21,
4463,
9727,
12694,
2969,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
5669,
3274,
96,
3540,
9727,
4527,
2050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many byes for the team with more than 14 losses and more than 0 wins? | CREATE TABLE table_name_92 (
byes INTEGER,
losses VARCHAR,
wins VARCHAR
) | SELECT AVG(byes) FROM table_name_92 WHERE losses > 14 AND wins > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
57,
15,
7,
3,
21342,
17966,
6,
8467,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
57,
15,
7,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
969,
15,
7,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
8467,
2490,
968,
3430,
9204,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the difference between the per capita income in richland county and in sheridan county ? | CREATE TABLE table_204_572 (
id number,
"rank" number,
"county" text,
"per capita\nincome" text,
"median\nhousehold\nincome" text,
"median\nfamily\nincome" text,
"population" number,
"number of\nhouseholds" number
) | SELECT ABS((SELECT "per capita\nincome" FROM table_204_572 WHERE "county" = 'richland') - (SELECT "per capita\nincome" FROM table_204_572 WHERE "county" = 'sheridan')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3436,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
13362,
63,
121,
1499,
6,
96,
883,
23219,
2,
29,
15759,
121,
1499,
6,
96,
8172,
29,
2,
29,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20798,
599,
599,
23143,
14196,
96,
883,
23219,
2,
29,
15759,
121,
21680,
953,
834,
26363,
834,
3436,
357,
549,
17444,
427,
96,
13362,
63,
121,
3274,
3,
31,
3723,
40,
232,
31,
61,
3,
18,
41,
23143,
14196,
96,
883,
... |
What school or club team did the player chosen for the Sacramento Monarchs play for? | CREATE TABLE table_39650 (
"Pick" real,
"Player" text,
"Nationality" text,
"WNBA Team" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_39650 WHERE "WNBA Team" = 'sacramento monarchs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
15348,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
21170,
4882,
2271,
121,
1499,
6,
96,
29364,
87,
254,
11158,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29364,
87,
254,
11158,
2271,
121,
21680,
953,
834,
3288,
15348,
549,
17444,
427,
96,
21170,
4882,
2271,
121,
3274,
3,
31,
7,
9,
2935,
297,
32,
28397,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Record that has a Home of detroit red wings, and a Score of 1 2 on december 29? | CREATE TABLE table_name_23 (
record VARCHAR,
date VARCHAR,
home VARCHAR,
score VARCHAR
) | SELECT record FROM table_name_23 WHERE home = "detroit red wings" AND score = "1–2" AND date = "december 29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
234,
3274,
96,
26,
15252,
155,
1131,
13943,
121,
3430,
2604,
3274,
96,
536,
104,
357,
121,
3430,
833,
3274,
96,
221,
75,
18247,
2838,
121,
1,
-100,
-100,
-100... |
Middletown High School uses which colors | CREATE TABLE table_15475116_1 (
colors VARCHAR,
school VARCHAR
) | SELECT colors FROM table_15475116_1 WHERE school = "Middletown High school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
3072,
20159,
834,
536,
41,
2602,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4551,
3540,
1592,
1121,
2284,
84,
2602,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2602,
21680,
953,
834,
27308,
3072,
20159,
834,
536,
549,
17444,
427,
496,
3274,
96,
329,
23,
8437,
3540,
1592,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the number of shows that had 12.04 million viewers in the united states | CREATE TABLE table_22904780_1 (title VARCHAR, us_viewers__million_ VARCHAR) | SELECT COUNT(title) FROM table_22904780_1 WHERE us_viewers__million_ = "12.04" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
4177,
2079,
834,
536,
41,
21869,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
2884,
2394,
4177,
2079,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
9368,
6348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which player weighed the least ? | CREATE TABLE table_204_612 (
id number,
"draft order\nround" number,
"draft order\nchoice" number,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
) | SELECT "player" FROM table_204_612 ORDER BY "weight" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4241,
357,
41,
3,
23,
26,
381,
6,
96,
26,
10913,
455,
2,
29,
7775,
121,
381,
6,
96,
26,
10913,
455,
2,
29,
3995,
867,
121,
381,
6,
96,
20846,
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,
20846,
121,
21680,
953,
834,
26363,
834,
4241,
357,
4674,
11300,
272,
476,
96,
9378,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Collingwood's score when they played against North Melbourne at home? | CREATE TABLE table_57090 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_57090 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
2394,
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,
19040,
372,
2604,
121,
21680,
953,
834,
28363,
2394,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the release date when the location is Europe? | CREATE TABLE table_name_37 (release_date VARCHAR, location VARCHAR) | SELECT release_date FROM table_name_37 WHERE location = "europe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
21019,
834,
5522,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1576,
833,
116,
8,
1128,
19,
1740,
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,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1128,
3274,
96,
28188,
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 nationality of the player who played during the years 1989-92; 1994-95? | CREATE TABLE table_11545282_5 (
nationality VARCHAR,
years_for_jazz VARCHAR
) | SELECT nationality FROM table_11545282_5 WHERE years_for_jazz = "1989-92; 1994-95" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
2128,
2577,
357,
834,
755,
41,
1157,
485,
584,
4280,
28027,
6,
203,
834,
1161,
834,
1191,
5271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
15660,
2128,
2577,
357,
834,
755,
549,
17444,
427,
203,
834,
1161,
834,
1191,
5271,
3274,
96,
2294,
3914,
18,
4508,
117,
7520,
18,
3301,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Name of the person with a Qual 1 of 1:26.056? | CREATE TABLE table_name_59 (
name VARCHAR,
qual_1 VARCHAR
) | SELECT name FROM table_name_59 WHERE qual_1 = "1:26.056" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
564,
584,
4280,
28027,
6,
3,
11433,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5570,
13,
8,
568,
28,
3,
9,
2415,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
3,
11433,
834,
536,
3274,
96,
536,
10,
357,
22642,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina? | CREATE TABLE table_name_3 (
year INTEGER,
surface VARCHAR,
opponent VARCHAR
) | SELECT MIN(year) FROM table_name_3 WHERE surface = "hard" AND opponent = "dinara safina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
215,
3,
21342,
17966,
6,
1774,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2929,
6,
116,
18884... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
15264,
3274,
96,
2644,
2551,
3,
7,
9,
89,
77,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the names of journalists who have not reported any event. | CREATE TABLE news_report (
Name VARCHAR,
journalist_ID VARCHAR
)
CREATE TABLE journalist (
Name VARCHAR,
journalist_ID VARCHAR
) | SELECT Name FROM journalist WHERE NOT journalist_ID IN (SELECT journalist_ID FROM news_report) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1506,
834,
60,
1493,
41,
5570,
584,
4280,
28027,
6,
9994,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
5570,
584,
4280,
28027,
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,
5570,
21680,
9994,
549,
17444,
427,
4486,
9994,
834,
4309,
3388,
41,
23143,
14196,
9994,
834,
4309,
21680,
1506,
834,
60,
1493,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find out the name and ethnic background of the patient with patient id 2560. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT demographic.name, demographic.ethnicity FROM demographic WHERE demographic.subject_id = "2560" | [
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,
14798,
5,
4350,
6,
14798,
5,
15,
189,
2532,
485,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date did the episode with Andy Murray as Jamie and John's guest first broadcast? | CREATE TABLE table_30962 (
"Episode" text,
"First broadcast" text,
"Andrew and Georgies guest Lee Mack replaced Andrew Flintoff as team captain for one week in series 4, episode 2." text,
"Jamie and Johns guest" text,
"Scores" text
) | SELECT "First broadcast" FROM table_30962 WHERE "Jamie and Johns guest" = 'Andy Murray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4314,
357,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
7175,
60,
210,
11,
20916,
725,
3886,
5531,
19155,
5821,
5954,
29612,
1647,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25171,
6878,
121,
21680,
953,
834,
1458,
4314,
357,
549,
17444,
427,
96,
683,
9,
2720,
11,
1079,
7,
3886,
121,
3274,
3,
31,
7175,
63,
15497,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Lowest lost for Team Ypiranga-SP where the games Played is more than 10 and the goals Against is greater than 50? | CREATE TABLE table_40120 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MIN("Lost") FROM table_40120 WHERE "Played" > '10' AND "Team" = 'ypiranga-sp' AND "Against" > '50' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
15518,
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,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
434,
3481,
8512,
21680,
953,
834,
2445,
15518,
549,
17444,
427,
96,
15800,
15,
26,
121,
2490,
3,
31,
1714,
31,
3430,
96,
18699,
121,
3274,
3,
31,
63,
2388,
1468,
9,
18,
7,
102,
31,
3430,
96,
... |
When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669? | CREATE TABLE table_name_23 (
first_time_as_hc_climb VARCHAR,
height__m_ VARCHAR,
most_recent VARCHAR,
no_of_times_visited VARCHAR,
no_of_hc_climbs VARCHAR
) | SELECT first_time_as_hc_climb FROM table_name_23 WHERE no_of_times_visited > 3 AND no_of_hc_climbs = 4 AND most_recent < 2013 AND height__m_ = "1669" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
166,
834,
715,
834,
9,
7,
834,
107,
75,
834,
75,
9577,
584,
4280,
28027,
6,
3902,
834,
834,
51,
834,
584,
4280,
28027,
6,
167,
834,
60,
3728,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
715,
834,
9,
7,
834,
107,
75,
834,
75,
9577,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
150,
834,
858,
834,
715,
7,
834,
3466,
23,
1054,
2490,
220,
3430,
150,
834,
858,
834,
107,
75,
834,
75,
... |
WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street? | CREATE TABLE table_name_57 (
floors INTEGER,
street_address VARCHAR
) | SELECT SUM(floors) FROM table_name_57 WHERE street_address = "01.0 10 light street" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
8242,
3,
21342,
17966,
6,
2815,
834,
9,
26,
12039,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
377,
5017,
2990,
13046,
463... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
20924,
7,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2815,
834,
9,
26,
12039,
3274,
96,
10068,
632,
335,
659,
2815,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is sla ana peji 's profession? | CREATE TABLE table_6827 (
"Name" text,
"Profession" text,
"City" text,
"Entered the house" text,
"Evicted" text
) | SELECT "Profession" FROM table_6827 WHERE "Name" = 'slađana pejić' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2555,
41,
96,
23954,
121,
1499,
6,
96,
3174,
17585,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
16924,
3737,
8,
629,
121,
1499,
6,
96,
427,
7287,
1054,
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,
3174,
17585,
121,
21680,
953,
834,
3651,
2555,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7,
521,
2,
152,
9,
158,
354,
23,
2,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador? | CREATE TABLE table_name_99 (
capacity___mw__ INTEGER,
rank VARCHAR,
province VARCHAR
) | SELECT MIN(capacity___mw__) FROM table_name_99 WHERE rank < 46 AND province = "newfoundland and labrador" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
2614,
834,
834,
834,
51,
210,
834,
834,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
4010,
9,
6726,
834,
834,
834,
51,
210,
834,
834,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
11003,
3,
2,
9668,
3430,
7985,
3274,
96,
5534,
19732,
40,
232,
11,
7690,
52,
7923,
121,
1,
-... |
What was the Name of the person with a Qual 1 of 1:26.056? | CREATE TABLE table_37747 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Name" FROM table_37747 WHERE "Qual 1" = '1:26.056' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
4177,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5991,
138,
209,
121,
1499,
6,
96,
5991,
138,
204,
121,
1499,
6,
96,
17278,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
519,
4013,
4177,
549,
17444,
427,
96,
5991,
138,
209,
121,
3274,
3,
31,
536,
10,
357,
22642,
4834,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the different nationalities and the number of journalists of each nationality with a pie chart. | CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
) | SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
8042,
834,
4309,
16,
17,
6,
7678,
1499,
6,
29940,
1499,
6,
5570,
1499,
6,
8042,
834,
188,
17,
324,
26,
663,
16,
17,
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,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
9994,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date did the Boston Celtics play at Richfield Coliseum? | CREATE TABLE table_46302 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Date" FROM table_46302 WHERE "Location" = 'richfield coliseum' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
1458,
357,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4448,
1458,
357,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
3723,
1846,
3,
9044,
7,
15,
440,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683 | CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, spoiled_ballots VARCHAR) | SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
2394,
3328,
591,
834,
536,
41,
5884,
834,
11982,
7,
2455,
834,
51,
1162,
2960,
3,
21342,
17966,
6,
3,
29793,
834,
3849,
3171,
7,
584,
4280,
28027,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
5884,
834,
11982,
7,
2455,
834,
51,
1162,
2960,
61,
21680,
953,
834,
20879,
2394,
3328,
591,
834,
536,
549,
17444,
427,
3,
29793,
834,
3849,
3171,
7,
3274,
11526,
4591,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the To Par that has Tommy Bolt with a Place of t6? | CREATE TABLE table_name_6 (
to_par VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_6 WHERE place = "t6" AND player = "tommy bolt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
12,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
2180,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
286,
3274,
96,
17,
948,
121,
3430,
1959,
3274,
96,
235,
635,
63,
12862,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score of the other team that played Geelong? | CREATE TABLE table_name_89 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_89 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
119,
372,
24,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year? | CREATE TABLE table_name_39 (
year INTEGER,
event VARCHAR,
location VARCHAR,
final_score VARCHAR
) | SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
215,
3,
21342,
17966,
6,
605,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
804,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1128,
3274,
96,
7,
9,
77,
17,
2576,
83,
121,
3430,
804,
834,
7,
9022,
2490,
9264,
2469,
3430,
605,
3274,
96,
1748,
300,
121,
1,
-100,
... |
What was the Royal House for the state of Song? | CREATE TABLE table_name_54 (
royal_house VARCHAR,
state VARCHAR
) | SELECT royal_house FROM table_name_54 WHERE state = "song" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
11268,
834,
1840,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3671,
1384,
21,
8,
538,
13,
11263,
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,
11268,
834,
1840,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
538,
3274,
96,
7,
2444,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the tries against for the team that has a losing bonus? | CREATE TABLE table_34175 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Tries against" FROM table_34175 WHERE "Losing bonus" = 'losing bonus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
536,
3072,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
2593,
581,
121,
21680,
953,
834,
3710,
536,
3072,
549,
17444,
427,
96,
434,
32,
7,
53,
4023,
121,
3274,
3,
31,
2298,
53,
4023,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest number of matches that has a Clubs of 46 32? | CREATE TABLE table_name_99 (
matches INTEGER,
clubs VARCHAR
) | SELECT MIN(matches) FROM table_name_99 WHERE clubs = "46 → 32" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
6407,
3,
21342,
17966,
6,
8122,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
6407,
24,
65,
3,
9,
1949,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19515,
15,
7,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
8122,
3274,
96,
4448,
3,
2,
3538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the dot value when the ellipsis is 0.012345679 ? | CREATE TABLE table_36622 (
"Fraction" text,
"Ellipsis" text,
"Vinculum" text,
"Dots" text,
"Parentheses" text
) | SELECT "Dots" FROM table_36622 WHERE "Ellipsis" = '0.012345679…' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
4056,
357,
41,
96,
371,
52,
4787,
121,
1499,
6,
96,
10991,
7446,
7,
159,
121,
1499,
6,
96,
553,
77,
1497,
440,
121,
1499,
6,
96,
4135,
17,
7,
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,
4135,
17,
7,
121,
21680,
953,
834,
3420,
4056,
357,
549,
17444,
427,
96,
10991,
7446,
7,
159,
121,
3274,
3,
31,
11739,
14574,
2128,
948,
4440,
233,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A pie chart for finding the number of the names of catalog entries with level number 8. | CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_entry_id INTEGER,
next_entry_id INTEGER,
catalog_entry_name VARCHAR(80),
product_stock_number VARCHAR(50),
price_in_dollars DOUBLE,
price_in_euros DOUBLE,
price_in_pounds DOUBLE,
capacity VARCHAR(20),
length VARCHAR(20),
height VARCHAR(20),
width VARCHAR(20)
) | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
486,
5135,
17,
15,
834,
2962,
5582,
10872,
41,
15816,
834,
23,
26,
3,
21342,
17966,
6,
15816,
834,
4350,
584,
4280,
28027,
599,
1458,
201,
15816,
834,
6757,
834,
6137,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
295,
651,
834,
4350,
6,
2847,
17161,
599,
2138,
9,
2152,
834,
295,
651,
834,
4350,
61,
21680,
22424,
834,
4302,
4669,
7,
6157,
3,
17,
536,
3,
15355,
3162,
22424,
834,
4302,
4669,
7,
834,
20773,
4749,
1... |
What is the result of Friday that's [ oa a] from sans. a g ra on Tuesday? | CREATE TABLE table_14413 (
"Sunday Surya (the Sun)" text,
"Monday Soma (the Moon)" text,
"Tuesday Mangala (Mars)" text,
"Friday Shukra (Venus)" text,
"Saturday Shani (Saturn)" text
) | SELECT "Friday Shukra (Venus)" FROM table_14413 WHERE "Tuesday Mangala (Mars)" = 'တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
2368,
41,
96,
134,
202,
1135,
3705,
63,
9,
41,
532,
3068,
61,
121,
1499,
6,
96,
9168,
1135,
264,
51,
9,
41,
532,
9023,
61,
121,
1499,
6,
96,
382,
76,
15,
7,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
31157,
14565,
9669,
41,
553,
35,
302,
61,
121,
21680,
953,
834,
20885,
2368,
549,
17444,
427,
96,
382,
76,
15,
7,
1135,
26005,
521,
41,
7286,
7,
61,
121,
3274,
3,
31,
2,
3,
2,
784,
2,
32,
9,
3,
2,
9,
9... |
how many temples are in takamatsu ? | CREATE TABLE table_204_841 (
id number,
"no." number,
"temple" text,
"honzon (main image)" text,
"city/town/village" text,
"prefecture" text
) | SELECT COUNT("temple") FROM table_204_841 WHERE "city/town/village" = 'takamatsu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4608,
536,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
15076,
109,
121,
1499,
6,
96,
107,
106,
8892,
41,
7484,
1023,
61,
121,
1499,
6,
96,
6726,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
15076,
109,
8512,
21680,
953,
834,
26363,
834,
4608,
536,
549,
17444,
427,
96,
6726,
87,
3540,
87,
208,
17614,
121,
3274,
3,
31,
17,
5667,
51,
23766,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Australian equivalent to i / /? | CREATE TABLE table_60034 (
"Letter" text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
) | SELECT "Australian" FROM table_60034 WHERE "Letter" = 'i /ɪ/' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
3710,
41,
96,
434,
15583,
121,
1499,
6,
96,
8778,
121,
1499,
6,
96,
279,
13224,
7,
107,
121,
1499,
6,
96,
31971,
29,
121,
1499,
6,
96,
5420,
9,
9208,
7,
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,
31971,
29,
121,
21680,
953,
834,
6007,
3710,
549,
17444,
427,
96,
434,
15583,
121,
3274,
3,
31,
23,
3,
87,
2,
87,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the most silver medals a team with 3 total medals and less than 1 bronze has? | CREATE TABLE table_name_13 (
silver INTEGER,
total VARCHAR,
bronze VARCHAR
) | SELECT MAX(silver) FROM table_name_13 WHERE total = 3 AND bronze < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
4294,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
4294,
9365,
7,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
792,
3274,
220,
3430,
13467,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has the home ground Aami stadium? | CREATE TABLE table_14312471_7 (
home_team VARCHAR,
ground VARCHAR
) | SELECT home_team FROM table_14312471_7 WHERE ground = "AAMI Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
22504,
4450,
834,
940,
41,
234,
834,
11650,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
8,
234,
1591,
71,
3690,
14939,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
25133,
22504,
4450,
834,
940,
549,
17444,
427,
1591,
3274,
96,
5498,
7075,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What race did josef newgarden have the fastest lap and lead the most laps? | CREATE TABLE table_74415 (
"Rd." text,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text
) | SELECT "Race" FROM table_74415 WHERE "Fastest lap" = 'Josef Newgarden' AND "Most laps led" = 'Josef Newgarden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
591,
1808,
41,
96,
448,
26,
535,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4377,
14941,
121,
1499,
6,
96,
329,
3481,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
3302,
121,
21680,
953,
834,
4581,
591,
1808,
549,
17444,
427,
96,
371,
9,
7,
4377,
14941,
121,
3274,
3,
31,
683,
32,
7,
15,
89,
368,
6390,
35,
31,
3430,
96,
329,
3481,
14941,
7,
2237,
121,
3274,
3,
31... |
what is the number of patients whose diagnoses icd9 code is 5770 and drug route is left eye? | 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "5770" AND prescriptions.route = "LEFT EYE" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What are the distinct billing countries of the invoices? | CREATE TABLE employee (
employeeid number,
lastname text,
firstname text,
title text,
reportsto number,
birthdate time,
hiredate time,
address text,
city text,
state text,
country text,
postalcode text,
phone text,
fax text,
email text
)
CREATE TABLE playlist (
playlistid number,
name text
)
CREATE TABLE invoice (
invoiceid number,
customerid number,
invoicedate time,
billingaddress text,
billingcity text,
billingstate text,
billingcountry text,
billingpostalcode text,
total number
)
CREATE TABLE customer (
customerid number,
firstname text,
lastname text,
company text,
address text,
city text,
state text,
country text,
postalcode text,
phone text,
fax text,
email text,
supportrepid number
)
CREATE TABLE invoiceline (
invoicelineid number,
invoiceid number,
trackid number,
unitprice number,
quantity number
)
CREATE TABLE album (
albumid number,
title text,
artistid number
)
CREATE TABLE playlisttrack (
playlistid number,
trackid number
)
CREATE TABLE track (
trackid number,
name text,
albumid number,
mediatypeid number,
genreid number,
composer text,
milliseconds number,
bytes number,
unitprice number
)
CREATE TABLE artist (
artistid number,
name text
)
CREATE TABLE genre (
genreid number,
name text
)
CREATE TABLE mediatype (
mediatypeid number,
name text
) | SELECT DISTINCT (billingcountry) FROM invoice | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
3490,
23,
26,
381,
6,
336,
4350,
1499,
6,
166,
4350,
1499,
6,
2233,
1499,
6,
2279,
235,
381,
6,
3879,
5522,
97,
6,
10626,
342,
97,
6,
1115,
1499,
6,
690,
1499,
6,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
3727,
697,
17529,
61,
21680,
10921,
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... |
what is the average serial format of the arizona license plates ? | CREATE TABLE table_203_82 (
id number,
"first issued" number,
"design" text,
"slogan" text,
"serial format" text,
"serials issued" text,
"notes" text
) | SELECT "serial format" FROM table_203_82 GROUP BY "serial format" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4613,
41,
3,
23,
26,
381,
6,
96,
14672,
4683,
121,
381,
6,
96,
9124,
121,
1499,
6,
96,
7,
2152,
152,
121,
1499,
6,
96,
7,
15,
12042,
1910,
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,
96,
7,
15,
12042,
1910,
121,
21680,
953,
834,
23330,
834,
4613,
350,
4630,
6880,
272,
476,
96,
7,
15,
12042,
1910,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,... |
What is the lowest number of 3 pointers that occured in games with 52 steals? | CREATE TABLE table_73479 (
"Player" text,
"Games Played" real,
"Minutes" real,
"Field Goals" real,
"Three Pointers" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
) | SELECT MIN("Three Pointers") FROM table_73479 WHERE "Steals" = '52' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
591,
4440,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
12858,
2810,
7,
121,
490,
6,
96,
3183,
8804,
17916,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
11889,
15,
15,
4564,
277,
8512,
21680,
953,
834,
4552,
591,
4440,
549,
17444,
427,
96,
14337,
5405,
121,
3274,
3,
31,
5373,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the season number for production code E2110? | CREATE TABLE table_24597 (
"Season no." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. Viewers (millions)" text
) | SELECT "Season no." FROM table_24597 WHERE "Production code" = 'E2110' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
4327,
41,
96,
134,
15,
9,
739,
150,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15,
9,
739,
150,
535,
21680,
953,
834,
357,
2128,
4327,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
427,
2658,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In which tournament did he place 20th? | CREATE TABLE table_name_55 (
tournament VARCHAR,
result VARCHAR
) | SELECT tournament FROM table_name_55 WHERE result = "20th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
5892,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
5892,
410,
3,
88,
286,
460,
189,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
741,
3274,
96,
1755,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Pole Position of the Portuguese Grand Prix? | CREATE TABLE table_name_98 (
pole_position VARCHAR,
grand_prix VARCHAR
) | SELECT pole_position FROM table_name_98 WHERE grand_prix = "portuguese grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
11148,
834,
4718,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
19418,
14258,
13,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11148,
834,
4718,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1907,
834,
2246,
226,
3274,
96,
1493,
76,
15991,
15,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the percentage of votes for 3rd finished | CREATE TABLE table_28566 (
"Finished" text,
"Performance Order" real,
"Percentage of votes" text,
"Artist" text,
"Act" text,
"Semi Finals Result" text
) | SELECT "Percentage of votes" FROM table_28566 WHERE "Finished" = '3rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4433,
3539,
41,
96,
31135,
121,
1499,
6,
96,
12988,
2032,
663,
5197,
121,
490,
6,
96,
12988,
3728,
545,
13,
11839,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12988,
3728,
545,
13,
11839,
121,
21680,
953,
834,
357,
4433,
3539,
549,
17444,
427,
96,
31135,
121,
3274,
3,
31,
519,
52,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career? | CREATE TABLE table_61626 (
"Tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1998" text,
"2003" text,
"2004" text,
"2005" text,
"Career" text
) | SELECT "2003" FROM table_61626 WHERE "1998" = '1r' AND "1994" = '1r' AND "Career" = '7-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2938,
2688,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
4271,
121,
1499,
6,
96,
19479,
20364,
1499,
6,
96,
19479,
17395,
1499,
6,
96,
2294,
4314,
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,
23948,
121,
21680,
953,
834,
948,
2938,
2688,
549,
17444,
427,
96,
2294,
3916,
121,
3274,
3,
31,
536,
52,
31,
3430,
96,
19479,
20364,
3274,
3,
31,
536,
52,
31,
3430,
96,
6936,
15,
49,
121,
3274,
3,
31,
940,
... |
Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order). | CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
) | SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
1499,
6,
7174,
1499,
6,
3751,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
594,
21680,
494,
549,
17444,
427,
594,
2490,
2423,
8003,
4674,
11300,
272,
476,
594,
309,
25067,
6,
564,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the teaching language for a less than 2 year duration and less than 65 ECTS credit points? | CREATE TABLE table_name_51 (
teaching_language VARCHAR,
duration__years_ VARCHAR,
ects_credit_points VARCHAR
) | SELECT teaching_language FROM table_name_51 WHERE duration__years_ < 2 AND ects_credit_points < 65 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
2119,
834,
24925,
584,
4280,
28027,
6,
8659,
834,
834,
1201,
7,
834,
584,
4280,
28027,
6,
3,
15,
75,
17,
7,
834,
15547,
834,
2700,
7,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2119,
834,
24925,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
8659,
834,
834,
1201,
7,
834,
3,
2,
204,
3430,
3,
15,
75,
17,
7,
834,
15547,
834,
2700,
7,
3,
2,
7123,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the label for US region and catalog of 10008-2 | CREATE TABLE table_name_2 (
label VARCHAR,
region VARCHAR,
catalog VARCHAR
) | SELECT label FROM table_name_2 WHERE region = "us" AND catalog = "10008-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
3783,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
3783,
21,
837,
1719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1719,
3274,
96,
302,
121,
3430,
10173,
3274,
96,
2915,
4018,
4949,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the number of outgoing manager for rijeka | CREATE TABLE table_27225944_3 (
outgoing_manager VARCHAR,
team VARCHAR
) | SELECT COUNT(outgoing_manager) FROM table_27225944_3 WHERE team = "Rijeka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2884,
3390,
3628,
834,
519,
41,
91,
9545,
834,
24185,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
91,
9545,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
670,
9545,
834,
24185,
61,
21680,
953,
834,
2555,
2884,
3390,
3628,
834,
519,
549,
17444,
427,
372,
3274,
96,
448,
23,
1924,
1258,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of goals scored for the entry with goals conceded larger than 30, lost larger than 3, and fewer than 6 draws? | CREATE TABLE table_name_94 (
goals_scored INTEGER,
goals_conceded VARCHAR,
draw VARCHAR,
lost VARCHAR
) | SELECT MIN(goals_scored) FROM table_name_94 WHERE draw < 6 AND lost > 3 AND goals_conceded > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1766,
834,
3523,
1271,
3,
21342,
17966,
6,
1766,
834,
11620,
221,
26,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
834,
3523,
1271,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
3314,
3,
2,
431,
3430,
1513,
2490,
220,
3430,
1766,
834,
11620,
221,
26,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many locations for name of role as Xiao Gui 小鬼? | CREATE TABLE table_23379776_5 (location VARCHAR, name_of_role VARCHAR) | SELECT COUNT(location) FROM table_23379776_5 WHERE name_of_role = "Xiao Gui 小鬼" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4118,
4327,
3959,
834,
755,
41,
14836,
584,
4280,
28027,
6,
564,
834,
858,
834,
3491,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3248,
21,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14836,
61,
21680,
953,
834,
2773,
4118,
4327,
3959,
834,
755,
549,
17444,
427,
564,
834,
858,
834,
3491,
15,
3274,
96,
4,
23,
9,
32,
15703,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When 7th place, what is the date? | CREATE TABLE table_name_45 (
date VARCHAR,
place VARCHAR
) | SELECT date FROM table_name_45 WHERE place = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
833,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
489,
189,
286,
6,
125,
19,
8,
833,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
286,
3274,
96,
940,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Date of Week 5? | CREATE TABLE table_37244 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text
) | SELECT "Date" FROM table_37244 WHERE "Week" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
3628,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4118,
357,
3628,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the foursome's record in 2002? | CREATE TABLE table_20657 (
"Year" text,
"Total matches" real,
"Total W-L-H" text,
"Singles W-L-H" text,
"Foursomes W-L-H" text,
"Fourballs W-L-H" text,
"Points won" text,
"Points %" text
) | SELECT "Foursomes W-L-H" FROM table_20657 WHERE "Year" = '2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
3436,
41,
96,
476,
2741,
121,
1499,
6,
96,
3696,
1947,
6407,
121,
490,
6,
96,
3696,
1947,
549,
18,
434,
18,
566,
121,
1499,
6,
96,
134,
53,
965,
549,
18,
434,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
1211,
5529,
7,
549,
18,
434,
18,
566,
121,
21680,
953,
834,
24643,
3436,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
24898,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the population of the settlement with the cyrillic name of ? | CREATE TABLE table_2562572_44 (
population__2011_ INTEGER,
cyrillic_name_other_names VARCHAR
) | SELECT MAX(population__2011_) FROM table_2562572_44 WHERE cyrillic_name_other_names = "Добрица" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
3628,
41,
2074,
834,
834,
13907,
834,
3,
21342,
17966,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
584,
4280,
28027,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9791,
7830,
834,
834,
13907,
834,
61,
21680,
953,
834,
19337,
1828,
5865,
834,
3628,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
2044,
2,
14709,
2,
2... |
What school did player number 6 come from? | CREATE TABLE table_10015132_1 (school_club_team VARCHAR, no VARCHAR) | SELECT school_club_team FROM table_10015132_1 WHERE no = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
536,
41,
6646,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
496,
410,
1959,
381,
431,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
834,
13442,
834,
11650,
21680,
953,
834,
2915,
1808,
23757,
834,
536,
549,
17444,
427,
150,
3274,
96,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name and number in 1964? | CREATE TABLE table_name_1 (number_ VARCHAR, _name VARCHAR, date VARCHAR) | SELECT number_ & _name FROM table_name_1 WHERE date = "1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
5525,
1152,
834,
584,
4280,
28027,
6,
3,
834,
4350,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
381,
834,
3,
184,
3,
834,
4350,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
833,
3274,
96,
26937,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the division with wins of 2? | CREATE TABLE table_44184 (
"Season" text,
"Division" text,
"Wins" text,
"Ties" text,
"Final Position" text
) | SELECT "Division" FROM table_44184 WHERE "Wins" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
25987,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
382,
725,
121,
1499,
6,
96,
371,
10270,
14258,
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,
308,
23,
6610,
121,
21680,
953,
834,
3628,
25987,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many times did Morgan win The Masters Tournament with fewer than 12 appearances? | CREATE TABLE table_13553 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT AVG("Wins") FROM table_13553 WHERE "Tournament" = 'masters tournament' AND "Events" < '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3769,
519,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
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,
71,
17217,
599,
121,
18455,
7,
8512,
21680,
953,
834,
2368,
3769,
519,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
7429,
7,
5892,
31,
3430,
96,
427,
2169,
7,
121,
3,
2,
3,
31,
2122,
31,
1,
-10... |
Where has a Player of tom watson? | CREATE TABLE table_63611 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) | SELECT "Place" FROM table_63611 WHERE "Player" = 'tom watson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3420,
2596,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
11706,
121,
21680,
953,
834,
948,
3420,
2596,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
235,
51,
8036,
17,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which team does Pierre Duguay play for? | CREATE TABLE table_1213511_6 (nhl_team VARCHAR, player VARCHAR) | SELECT nhl_team FROM table_1213511_6 WHERE player = "Pierre Duguay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22011,
2469,
2596,
834,
948,
41,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
405,
11867,
970,
1744,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
22011,
2469,
2596,
834,
948,
549,
17444,
427,
1959,
3274,
96,
26928,
970,
1744,
9,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of different types of codes of products?, rank by the bars in desc. | CREATE TABLE Products_in_Events (
Product_in_Event_ID INTEGER,
Event_ID INTEGER,
Product_ID INTEGER
)
CREATE TABLE Finances (
Finance_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Agreements (
Document_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Assets (
Asset_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Assets_in_Events (
Asset_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Parties_in_Events (
Party_ID INTEGER,
Event_ID INTEGER,
Role_Code CHAR(15)
)
CREATE TABLE Channels (
Channel_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Addresses (
Address_ID INTEGER,
address_details VARCHAR(255)
)
CREATE TABLE Products (
Product_ID INTEGER,
Product_Type_Code CHAR(15),
Product_Name VARCHAR(255),
Product_Price DECIMAL(20,4)
)
CREATE TABLE Parties (
Party_ID INTEGER,
Party_Details VARCHAR(255)
)
CREATE TABLE Locations (
Location_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Events (
Event_ID INTEGER,
Address_ID INTEGER,
Channel_ID INTEGER,
Event_Type_Code CHAR(15),
Finance_ID INTEGER,
Location_ID INTEGER
) | SELECT Product_Type_Code, COUNT(Product_Type_Code) FROM Products GROUP BY Product_Type_Code ORDER BY Product_Type_Code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
834,
77,
834,
427,
2169,
7,
41,
6246,
834,
77,
834,
427,
2169,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
4309,
3,
21342,
17966,
6,
6246,
834,
4309,
3,
21342,
17966,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6246,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
3174,
7472,
834,
25160,
834,
22737,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
6246,
834,
25160,
834,
22737,
4674,
11300,
272,
476,
6246,
834,
25160,
834,
22737,
309,
... |
Which Game has a Record of 27 30? | CREATE TABLE table_45549 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
) | SELECT SUM("Game") FROM table_45549 WHERE "Record" = '27–30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
755,
3647,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23055,
8512,
21680,
953,
834,
2128,
755,
3647,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2555,
104,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each headquarter, what are the headquarter and how many companies are centered there Visualize by bar chart, and I want to list in desc by the total number. | CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
) | SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1807,
834,
6682,
41,
5939,
834,
4309,
16,
17,
6,
2384,
834,
476,
2741,
16,
17,
6,
10450,
1499,
6,
3440,
834,
23954,
1499,
6,
8236,
834,
27272,
834,
23954,
1499,
6,
13517,
834,
23954,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
31282,
6,
2847,
17161,
599,
1935,
61,
21680,
349,
350,
4630,
6880,
272,
476,
31282,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Away team scored 21.10 (136)? | CREATE TABLE table_55314 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_55314 WHERE "Away team score" = '21.10 (136)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
519,
2534,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
3769,
519,
2534,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2658,
5,
1714,
41,
23459,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the smallest año? | CREATE TABLE table_27501971_2 (año INTEGER) | SELECT MIN(año) FROM table_27501971_2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
9979,
2294,
4450,
834,
357,
41,
9,
2,
32,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
3,
9,
2,
32,
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,
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,
3,
17684,
599,
9,
2,
32,
61,
21680,
953,
834,
357,
9979,
2294,
4450,
834,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many won the Men's Open if the players are from Sweden? | CREATE TABLE table_1832 (
"Country" text,
"Mens Open" real,
"Womens Open" real,
"Mens Wheelchair" real,
"Womens Wheelchair" real,
"Total" real
) | SELECT COUNT("Mens Open") FROM table_1832 WHERE "Country" = 'Sweden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2668,
41,
96,
10628,
651,
121,
1499,
6,
96,
329,
35,
7,
2384,
121,
490,
6,
96,
518,
32,
904,
7,
2384,
121,
490,
6,
96,
329,
35,
7,
10707,
15657,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
329,
35,
7,
2384,
8512,
21680,
953,
834,
2606,
2668,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
134,
1123,
537,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
get the number of patients with calcg2/100ns drug code. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "CALCG2/100NS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Which Time/Retired has a Grid of 2? | CREATE TABLE table_58264 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_58264 WHERE "Grid" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
26755,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
3449,
26755,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the away team when the attendance was 7,891? | CREATE TABLE table_name_28 (away_team VARCHAR, attendance VARCHAR) | SELECT away_team FROM table_name_28 WHERE attendance = "7,891" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
372,
116,
8,
11364,
47,
7973,
3914,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
11364,
3274,
96,
940,
6,
3914,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What genders did Lynmore Primary School take? | CREATE TABLE table_name_68 (
gender VARCHAR,
name VARCHAR
) | SELECT gender FROM table_name_68 WHERE name = "lynmore primary school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
7285,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7285,
7,
410,
5225,
29,
3706,
14542,
1121,
240,
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,
7285,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
564,
3274,
96,
120,
29,
3706,
2329,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the prothrombin time of von willebrand disease? | CREATE TABLE table_238124_1 (prothrombin_time VARCHAR, condition VARCHAR) | SELECT COUNT(prothrombin_time) FROM table_238124_1 WHERE condition = "Von Willebrand disease" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4959,
2266,
834,
536,
41,
1409,
8514,
51,
4517,
834,
715,
584,
4280,
28027,
6,
1706,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
813,
8514,
51,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1409,
8514,
51,
4517,
834,
715,
61,
21680,
953,
834,
2773,
4959,
2266,
834,
536,
549,
17444,
427,
1706,
3274,
96,
553,
106,
2003,
15,
12164,
1994,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose lab test name is phophate urine and were born before the year 2076. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2076" AND lab.label = "Phosphate, Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
If the winner is Bernhard Eisel, what is the stage maximum? | CREATE TABLE table_22941863_19 (
stage INTEGER,
winner VARCHAR
) | SELECT MAX(stage) FROM table_22941863_19 WHERE winner = "Bernhard Eisel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4240,
2606,
3891,
834,
2294,
41,
1726,
3,
21342,
17966,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
4668,
19,
8942,
5651,
16988,
15,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10705,
61,
21680,
953,
834,
2884,
4240,
2606,
3891,
834,
2294,
549,
17444,
427,
4668,
3274,
96,
279,
49,
29,
5651,
16988,
15,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11? | CREATE TABLE table_name_74 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR) | SELECT SUM(matches) FROM table_name_74 WHERE goalkeeper = "wilfredo caballero" AND average < 1.11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
19515,
15,
7,
3,
21342,
17966,
6,
1288,
10477,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6407,
410,
1288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
19515,
15,
7,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1288,
10477,
3274,
96,
210,
173,
89,
1271,
32,
212,
3184,
49,
32,
121,
3430,
1348,
3,
2,
1300,
2596,
1,
-100,
-100,
-100,
-100,
... |
what is the average losses when the wins is 9 and ties more than 0? | CREATE TABLE table_53416 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
) | SELECT AVG("Losses") FROM table_53416 WHERE "Wins" = '9' AND "Ties" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3710,
2938,
41,
96,
18699,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
382,
725,
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,
71,
17217,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
755,
3710,
2938,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
1298,
31,
3430,
96,
382,
725,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What was the venue where Chuck Klein played? | CREATE TABLE table_name_85 (venue VARCHAR, player VARCHAR) | SELECT venue FROM table_name_85 WHERE player = "chuck klein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
15098,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
213,
21288,
7349,
1944,
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,
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,
5669,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1959,
3274,
96,
24238,
21856,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many values for small power demand occur when medium power demand is 11.07? | CREATE TABLE table_23948 (
"City (Utility)" text,
"Residential Monthly usage: 1000 kWh" text,
"Small power Power demand: 40 kW; Consumption 10,000 kWh, load factor: 35%." text,
"Medium power Power demand: 1,000 kW; Consumption: 400,000 kWh, load factor: 56 %." text,
"Large power Power demand: 50,000 kW; Consumption: 30,600,000 kWh, load factor: 85%." text
) | SELECT COUNT("Small power Power demand: 40 kW; Consumption 10,000 kWh, load factor: 35%.") FROM table_23948 WHERE "Medium power Power demand: 1,000 kW; Consumption: 400,000 kWh, load factor: 56 %." = '11.07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3288,
3707,
41,
96,
254,
485,
41,
1265,
17,
14277,
61,
121,
1499,
6,
96,
1649,
7,
23,
26,
7220,
25955,
4742,
10,
5580,
3,
26873,
121,
1499,
6,
96,
134,
1982,
40,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
1982,
40,
579,
2621,
2173,
10,
1283,
3,
21729,
117,
24165,
102,
1575,
13923,
3,
26873,
6,
4002,
2945,
10,
220,
2712,
5,
8512,
21680,
953,
834,
357,
3288,
3707,
549,
17444,
427,
96,
20123,... |
Return a pie on what is minimum age for different job title? | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT job, MIN(age) FROM Person GROUP BY job | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1246,
3,
21342,
17966,
6,
690,
3,
3463,
4,
382,
6,
7285,
3,
3463,
4,
382,
6,
613,
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,
613,
6,
3,
17684,
599,
545,
61,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many Wins have Goals against smaller than 30, and Goals for larger than 25, and Draws larger than 5? | CREATE TABLE table_name_66 (
wins VARCHAR,
draws VARCHAR,
goals_against VARCHAR,
goals_for VARCHAR
) | SELECT COUNT(wins) FROM table_name_66 WHERE goals_against < 30 AND goals_for > 25 AND draws > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
9204,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3,
2,
604,
3430,
1766,
834,
1161,
2490,
944,
3430,
14924,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose year of birth is less than 2121 and lab test fluid is ascites? | 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2121" AND lab.fluid = "Ascites" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Show different publishers together with the number of publications they have in a pie chart. | CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
) | SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
2575,
257,
834,
4309,
16,
17,
6,
3086,
834,
4309,
16,
17,
6,
19816,
1499,
6,
2575,
257,
834,
308,
342,
1499,
6,
5312,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
19816,
6,
2847,
17161,
599,
1935,
61,
21680,
5707,
350,
4630,
6880,
272,
476,
19816,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What player has the score of 67-72=139? | CREATE TABLE table_50635 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_50635 WHERE "Score" = '67-72=139' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
948,
2469,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
1752,
948,
2469,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3708,
18,
5865,
2423,
24090,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the best finish was T69, how many people came in 2nd? | CREATE TABLE table_10021158_3 (
best_finish VARCHAR
) | SELECT 2 AS nd FROM table_10021158_3 WHERE best_finish = "T69" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
2658,
26556,
834,
519,
41,
200,
834,
25535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
200,
1992,
47,
332,
3951,
6,
149,
186,
151,
764,
16,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
204,
6157,
3,
727,
21680,
953,
834,
2915,
2658,
26556,
834,
519,
549,
17444,
427,
200,
834,
25535,
3274,
96,
382,
3951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What's the type of the school in New London, Connecticut? | CREATE TABLE table_1974782_1 (
type VARCHAR,
location VARCHAR
) | SELECT type FROM table_1974782_1 WHERE location = "New London, Connecticut" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
4177,
4613,
834,
536,
41,
686,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
686,
13,
8,
496,
16,
368,
1524,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
27181,
4177,
4613,
834,
536,
549,
17444,
427,
1128,
3274,
96,
6861,
1524,
6,
15505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the least attendance that has 3-5 as a record? | CREATE TABLE table_67210 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT MIN("Attendance") FROM table_67210 WHERE "Record" = '3-5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
15239,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3708,
15239,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
18366,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What 2006 has 0-0 as the 2011? | CREATE TABLE table_41501 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2006" FROM table_41501 WHERE "2011" = '0-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
20176,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21196,
121,
21680,
953,
834,
4853,
20176,
549,
17444,
427,
96,
13907,
121,
3274,
3,
31,
18629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show all the activity names and the number of faculty involved in each activity Show bar chart, list bar in desc order. | CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
) | SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY activity_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22536,
41,
1810,
23,
26,
3,
21342,
17966,
6,
1756,
834,
4350,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
834,
13725,
23,
3389,
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,
1756,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
22536,
6157,
332,
536,
3,
15355,
3162,
16896,
834,
13725,
23,
3389,
6203,
834,
77,
6157,
332,
357,
9191,
332,
5411,
2708,
23,
26,
3274,
332,
4416,
2708,
23,
26,... |
What genre is the Banpresto game tittled Ranma : netsuretsu kakutouhen? | CREATE TABLE table_name_34 (
genre VARCHAR,
developer VARCHAR,
japanese_title VARCHAR
) | SELECT genre FROM table_name_34 WHERE developer = "banpresto" AND japanese_title = "ranma ½: netsuretsu kakutouhen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
5349,
584,
4280,
28027,
6,
7523,
584,
4280,
28027,
6,
2662,
2837,
15,
7,
15,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5349,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
7523,
3274,
96,
3478,
7197,
235,
121,
3430,
2662,
2837,
15,
7,
15,
834,
21869,
3274,
96,
2002,
51,
9,
209,
2,
357,
10,
3134,
4334,
17,
7,
76,
3,
157,
1629... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.