NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the sum of Points, when Equipment was 'Zabel-BSU', and when Position was 42? | CREATE TABLE table_name_39 (
points INTEGER,
equipment VARCHAR,
position VARCHAR
) | SELECT SUM(points) FROM table_name_39 WHERE equipment = "zabel-bsu" AND position = 42 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
979,
3,
21342,
17966,
6,
1277,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
4564,
7,
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,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1277,
3274,
96,
172,
10333,
18,
115,
7,
76,
121,
3430,
1102,
3274,
6426,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the tournament for 2010 of grand slam tournaments | CREATE TABLE table_6661 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "Tournament" FROM table_6661 WHERE "2010" = 'grand slam tournaments' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4241,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172,
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,
1211,
20205,
17,
121,
21680,
953,
834,
3539,
4241,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
15448,
3,
7,
40,
265,
5892,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the Cover model on 11-03? | CREATE TABLE table_name_96 (cover_model VARCHAR, date VARCHAR) | SELECT cover_model FROM table_name_96 WHERE date = "11-03" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
9817,
834,
21770,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
5620,
825,
30,
850,
18,
4928,
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,
1189,
834,
21770,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
833,
3274,
96,
2596,
18,
4928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the nationality of a point guard position in 1999-2001? | CREATE TABLE table_name_89 (
nationality VARCHAR,
position VARCHAR,
years_for_grizzlies VARCHAR
) | SELECT nationality FROM table_name_89 WHERE position = "point guard" AND years_for_grizzlies = "1999-2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1157,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
203,
834,
1161,
834,
3496,
5271,
4664,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
1102,
3274,
96,
2700,
4879,
121,
3430,
203,
834,
1161,
834,
3496,
5271,
4664,
3274,
96,
2294,
3264,
18,
23658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver? | CREATE TABLE table_name_9 (
bronze INTEGER,
rank VARCHAR,
silver VARCHAR
) | SELECT MIN(bronze) FROM table_name_9 WHERE rank = "11" AND silver < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
13467,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
20841,
9365,
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,
0... | [
3,
23143,
14196,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
11003,
3274,
96,
2596,
121,
3430,
4294,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many children did Dennis Hawley have at his time of death? | CREATE TABLE table_24143253_2 (
children_together VARCHAR,
deceased_spouse VARCHAR
) | SELECT children_together FROM table_24143253_2 WHERE deceased_spouse = "Dennis Hawley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2534,
2668,
4867,
834,
357,
41,
502,
834,
25968,
584,
4280,
28027,
6,
22449,
834,
7990,
1074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
502,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
502,
834,
25968,
21680,
953,
834,
2266,
2534,
2668,
4867,
834,
357,
549,
17444,
427,
22449,
834,
7990,
1074,
3274,
96,
308,
35,
29,
159,
1626,
210,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many goals did the player with less than 4 points have? | CREATE TABLE table_name_74 (
goals VARCHAR,
points INTEGER
) | SELECT COUNT(goals) FROM table_name_74 WHERE points < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
1766,
584,
4280,
28027,
6,
979,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
410,
8,
1959,
28,
705,
145,
314,
979,
43,
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,
2847,
17161,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
979,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List each test result and its count in descending order of count. | CREATE TABLE Student_Tests_Taken (
test_result VARCHAR
) | SELECT test_result, COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
834,
382,
222,
7,
834,
29468,
29,
41,
794,
834,
60,
7,
83,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
284,
794,
741,
11,
165,
3476,
16,
3,
30960,
455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
794,
834,
60,
7,
83,
17,
6,
2847,
17161,
599,
1935,
61,
21680,
6341,
834,
382,
222,
7,
834,
29468,
29,
350,
4630,
6880,
272,
476,
794,
834,
60,
7,
83,
17,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of phone_number and department_id , rank by the x axis in asc. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40)... | SELECT PHONE_NUMBER, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
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,
3,
8023,
7894,
834,
567,
6122,
12920,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
... |
Who played in the semi finals matches at the Buick WCT finals? | CREATE TABLE table_2413292_1 (
semifinal_matches VARCHAR,
commercial_name VARCHAR
) | SELECT semifinal_matches FROM table_2413292_1 WHERE commercial_name = "Buick WCT Finals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
23757,
4508,
834,
536,
41,
27504,
834,
19515,
15,
7,
584,
4280,
28027,
6,
1328,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1944,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27504,
834,
19515,
15,
7,
21680,
953,
834,
2266,
23757,
4508,
834,
536,
549,
17444,
427,
1328,
834,
4350,
3274,
96,
7793,
3142,
549,
6227,
6514,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many no votes from Alaska in 1998? | CREATE TABLE table_name_31 (
no_vote VARCHAR,
date VARCHAR,
state VARCHAR
) | SELECT no_vote FROM table_name_31 WHERE date = "1998" AND state = "alaska" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
150,
834,
1621,
17,
15,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
150,
1183... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
150,
834,
1621,
17,
15,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
833,
3274,
96,
2294,
3916,
121,
3430,
538,
3274,
96,
138,
9,
10717,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the date when the home team is st kilda? | CREATE TABLE table_name_26 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_26 WHERE home_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
833,
116,
8,
234,
372,
19,
3,
7,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Length has a Taper of #15, and a Large end larger than 1.875? | CREATE TABLE table_name_92 (length INTEGER, taper VARCHAR, large_end VARCHAR) | SELECT MAX(length) FROM table_name_92 WHERE taper = "#15" AND large_end > 1.875 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
19457,
3,
21342,
17966,
6,
4874,
52,
584,
4280,
28027,
6,
508,
834,
989,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
312,
1725,
189,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
19457,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
4874,
52,
3274,
96,
4663,
1808,
121,
3430,
508,
834,
989,
2490,
3,
16253,
3072,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Result has an Opponent of minnesota vikings? | CREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_85 WHERE opponent = "minnesota vikings" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20119,
65,
46,
4495,
9977,
13,
3519,
1496,
32,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
15264,
3274,
96,
1109,
1496,
32,
17,
9,
3,
21346,
53,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which year has a total of 0 points and a chassis of Toleman tg181? | CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, chassis VARCHAR) | SELECT AVG(year) FROM table_name_88 WHERE points = 0 AND chassis = "toleman tg181" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1201,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
65,
3,
9,
792,
13,
3,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
979,
3274,
3,
632,
3430,
22836,
3274,
96,
235,
109,
348,
3,
17,
122,
2606,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of last 5 meetings for texas tech | CREATE TABLE table_16201038_3 (
last_5_meetings VARCHAR,
missouri_vs VARCHAR
) | SELECT COUNT(last_5_meetings) FROM table_16201038_3 WHERE missouri_vs = "Texas Tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
14926,
3747,
834,
519,
41,
336,
834,
755,
834,
526,
15,
1222,
7,
584,
4280,
28027,
6,
3041,
32,
459,
834,
208,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
5064,
834,
755,
834,
526,
15,
1222,
7,
61,
21680,
953,
834,
2938,
14926,
3747,
834,
519,
549,
17444,
427,
3041,
32,
459,
834,
208,
7,
3274,
96,
13598,
9,
7,
7130,
121,
1,
-100,
-100,
-100,
-100,
... |
Who was No. 5 when No. 6 Mason and No. 10 Jackson? | CREATE TABLE table_name_17 (
no_5 VARCHAR,
no_6 VARCHAR,
no_10 VARCHAR
) | SELECT no_5 FROM table_name_17 WHERE no_6 = "mason" AND no_10 = "jackson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
150,
834,
755,
584,
4280,
28027,
6,
150,
834,
948,
584,
4280,
28027,
6,
150,
834,
1714,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
755,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
150,
834,
948,
3274,
96,
2754,
106,
121,
3430,
150,
834,
1714,
3274,
96,
9325,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
display all the information about the department Marketing. | CREATE TABLE locations (
location_id number,
street_address text,
postal_code text,
city text,
state_province text,
country_id text
)
CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE departments ... | SELECT * FROM departments WHERE department_name = 'Marketing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
1128,
834,
23,
26,
381,
6,
2815,
834,
9,
26,
12039,
1499,
6,
19085,
834,
4978,
1499,
6,
690,
1499,
6,
538,
834,
1409,
2494,
565,
1499,
6,
684,
834,
23,
26,
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,
1429,
21680,
10521,
549,
17444,
427,
3066,
834,
4350,
3274,
3,
31,
22572,
53,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the latest first elected year | CREATE TABLE table_18183 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT MAX("First elected") FROM table_18183 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
24361,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
4800,
4,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
2606,
24361,
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... |
How many drivers are there? | CREATE TABLE driver (
driver_id number,
name text,
party text,
home_city text,
age number
)
CREATE TABLE school (
school_id number,
grade text,
school text,
location text,
type text
)
CREATE TABLE school_bus (
school_id number,
driver_id number,
years_working number... | SELECT COUNT(*) FROM driver | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2535,
41,
2535,
834,
23,
26,
381,
6,
564,
1499,
6,
1088,
1499,
6,
234,
834,
6726,
1499,
6,
1246,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
496,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
specify the procedure long title of procedure icd9 code 5187. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT procedures.long_title FROM procedures WHERE procedures.icd9_code = "5187" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4293,
5,
2961,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
447,
26,
1298,
834,
4978,
3274,
96,
5553,
4225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who had the high points while Dirk Nowitzki (13) had the high rebounds? | CREATE TABLE table_17288869_7 (high_points VARCHAR, high_rebounds VARCHAR) | SELECT high_points FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (13)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
10927,
3951,
834,
940,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
979,
298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
27156,
10927,
3951,
834,
940,
549,
17444,
427,
306,
834,
23768,
3274,
96,
308,
12546,
852,
5615,
2168,
4077,
5268,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the names of the products with length smaller than 3 or height greater than 5. | CREATE TABLE catalog_contents (
catalog_entry_name VARCHAR,
LENGTH VARCHAR,
width VARCHAR
) | SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10173,
834,
14819,
7,
41,
10173,
834,
295,
651,
834,
4350,
584,
4280,
28027,
6,
301,
23182,
4611,
584,
4280,
28027,
6,
9400,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10173,
834,
295,
651,
834,
4350,
21680,
10173,
834,
14819,
7,
549,
17444,
427,
301,
23182,
4611,
3,
2,
220,
4674,
9400,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average of goals against, where overall goals are more than 35 and the goal difference is 20? | CREATE TABLE table_52413 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT AVG("Goals against") FROM table_52413 WHERE "Goals for" > '35' AND "Goal Difference" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2266,
2368,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
1499,
6,
96,
18455,
7,
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,
6221,
5405,
581,
8512,
21680,
953,
834,
755,
2266,
2368,
549,
17444,
427,
96,
6221,
5405,
21,
121,
2490,
3,
31,
2469,
31,
3430,
96,
6221,
138,
27187,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,... |
What is Born-Died, when Name is Maliq Bushati? | CREATE TABLE table_46079 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) | SELECT "Born-Died" FROM table_46079 WHERE "Name" = 'maliq bushati' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
4440,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
18,
8639,
26,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
6,
96,
8931,
155,
1950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
127,
29,
18,
8639,
26,
121,
21680,
953,
834,
25991,
4440,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1982,
23,
1824,
2601,
547,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients this year were staying at ward 425? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutpu... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 425 AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
2239,
23,
26,
3274,
314,
1828,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
15129,
20466,
17,
715,
6,
3,
31,... |
Which Time has a Round smaller than 3, and an Opponent of bao quach? | CREATE TABLE table_name_11 (time VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT time FROM table_name_11 WHERE round < 3 AND opponent = "bao quach" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
715,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2900,
65,
3,
9,
9609,
2755,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1751,
3,
2,
220,
3430,
15264,
3274,
96,
115,
9,
32,
546,
1836,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the season number of the episode written by Matt Witten , Richard Sweren? | CREATE TABLE table_2618152_1 (no_in_season VARCHAR, written_by VARCHAR) | SELECT no_in_season FROM table_2618152_1 WHERE written_by = "Matt Witten , Richard Sweren" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2606,
26320,
834,
536,
41,
29,
32,
834,
77,
834,
9476,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
774,
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,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
77,
834,
9476,
21680,
953,
834,
2688,
2606,
26320,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
329,
144,
17,
22632,
35,
3,
6,
4117,
7320,
49,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if 22km is the trekking route what is height from sea level in meters? | CREATE TABLE table_1430913_1 (height_from_sea_level_in_meters VARCHAR, trekking_route VARCHAR) | SELECT height_from_sea_level_in_meters FROM table_1430913_1 WHERE trekking_route = "22km" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4198,
2368,
834,
536,
41,
88,
2632,
834,
7152,
834,
7,
15,
9,
834,
4563,
834,
77,
834,
4401,
7,
584,
4280,
28027,
6,
29026,
834,
20300,
584,
4280,
28027,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3902,
834,
7152,
834,
7,
15,
9,
834,
4563,
834,
77,
834,
4401,
7,
21680,
953,
834,
25133,
4198,
2368,
834,
536,
549,
17444,
427,
29026,
834,
20300,
3274,
96,
2884,
5848,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Opponent has a Record of 2–0? | CREATE TABLE table_name_80 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_80 WHERE record = "2–0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,
3,
9,
11392,
13,
204,
104,
632,
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,
15264,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1368,
3274,
96,
357,
104,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
get me the number of patients on main drug prescription who have been diagnosed with hemochromatosis due to repeated red blood cell transfusions. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Hemochromatosis due to repeated red blood cell transfusions" AND prescriptions.drug_type = ... | [
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 is niurbi encarnaci n ynoa's height? | CREATE TABLE table_name_95 (
height VARCHAR,
contestant VARCHAR
) | SELECT height FROM table_name_95 WHERE contestant = "niurbi encarnación ynoa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
3902,
584,
4280,
28027,
6,
4233,
288,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
29,
23,
450,
115,
23,
3,
35,
1720,
29,
4268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
4233,
288,
3274,
96,
29,
23,
450,
115,
23,
3,
35,
75,
15918,
12765,
3,
63,
29,
32,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of states that has some colleges whose enrollment is smaller than the average enrollment? | CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
) | SELECT COUNT(DISTINCT state) FROM college WHERE enr < (SELECT AVG(enr) FROM college) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
3,
12417,
381,
6,
3,
75,
4350,
1499,
6,
3,
102,
2748,
1499,
6,
1357,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
3,
12417,
381,
6,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
538,
61,
21680,
1900,
549,
17444,
427,
3,
35,
52,
3,
2,
41,
23143,
14196,
71,
17217,
599,
35,
52,
61,
21680,
1900,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average maximum height of a shell that travels for more than 16.3 seconds at 55 and has a maximum velocity of 2200 ft/s? | CREATE TABLE table_36039 (
"m/v ft/s" real,
"Shell (lb)" real,
"Time to ft (m) at 25\u00b0 (seconds)" text,
"Time to ft (m) at 40\u00b0 (seconds)" real,
"Time to ft (m) at 55\u00b0 (seconds)" real,
"Max. height (ft)" real
) | SELECT AVG("Max. height (ft)") FROM table_36039 WHERE "Time to ft (m) at 55\u00b0 (seconds)" > '16.3' AND "m/v ft/s" = '2200' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19208,
3288,
41,
96,
51,
87,
208,
3,
89,
17,
87,
7,
121,
490,
6,
96,
12736,
195,
41,
40,
115,
61,
121,
490,
6,
96,
13368,
12,
3,
89,
17,
41,
51,
61,
44,
944,
2,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
21298,
5,
3902,
41,
89,
17,
61,
8512,
21680,
953,
834,
19208,
3288,
549,
17444,
427,
96,
13368,
12,
3,
89,
17,
41,
51,
61,
44,
6897,
2,
76,
1206,
115,
632,
41,
12091,
7,
61,
121,
2490,
3,
... |
Where Class AAA is Atlanta and Class AA is Weimar, what is Class AAAAA? | CREATE TABLE table_43457 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
) | SELECT "Class AAAAA" FROM table_43457 WHERE "Class AAA" = 'atlanta' AND "Class AA" = 'weimar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3710,
3436,
41,
96,
29364,
2929,
121,
1499,
6,
96,
21486,
71,
121,
1499,
6,
96,
21486,
3,
5498,
121,
1499,
6,
96,
21486,
22656,
121,
1499,
6,
96,
21486,
22656,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21486,
22656,
5498,
121,
21680,
953,
834,
591,
3710,
3436,
549,
17444,
427,
96,
21486,
22656,
121,
3274,
3,
31,
144,
6761,
9,
31,
3430,
96,
21486,
3,
5498,
121,
3274,
3,
31,
1123,
23,
1635,
31,
1,
-100,
-100,
... |
A bar chart shows the distribution of All_Home and School_ID , and group by attribute ACC_Home, order by the y axis from high to low please. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY School_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
432,
834,
19040,
4674,
11300,
272,
476,
1121,
834,
4309,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the runs for b lee | CREATE TABLE table_name_15 (
runs VARCHAR,
player VARCHAR
) | SELECT runs FROM table_name_15 WHERE player = "b lee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3154,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
3154,
21,
3,
115,
90,
15,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3154,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1959,
3274,
96,
115,
90,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the highest rank with a total less than 1? | CREATE TABLE table_name_68 (
rank INTEGER,
total INTEGER
) | SELECT MAX(rank) FROM table_name_68 WHERE total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
11003,
3,
21342,
17966,
6,
792,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
11003,
28,
3,
9,
792,
705,
145,
209,
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,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
list each of the players with a high checkout of 131 . | CREATE TABLE table_203_460 (
id number,
"player" text,
"played" number,
"legs won" number,
"legs lost" number,
"lwat" number,
"100+" number,
"140+" number,
"180s" number,
"high checkout" number,
"3-dart average" number
) | SELECT "player" FROM table_203_460 WHERE "high checkout" = 131 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
25991,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
5772,
7,
751,
121,
381,
6,
96,
5772,
7,
1513,
121,
381,
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,
20846,
121,
21680,
953,
834,
23330,
834,
25991,
549,
17444,
427,
96,
6739,
15912,
121,
3274,
3,
22048,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the listed crowd at junction oval? | CREATE TABLE table_name_54 (
crowd VARCHAR,
venue VARCHAR
) | SELECT crowd FROM table_name_54 WHERE venue = "junction oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
4374,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2616,
4374,
44,
23704,
17986,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4374,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
5669,
3274,
96,
6959,
4985,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many statements do we have? | CREATE TABLE Statements (
Id VARCHAR
) | SELECT COUNT(*) FROM Statements | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16836,
7,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6643,
103,
62,
43,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
16836,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the average of account details for different statement details in a bar chart, and display the average of account details in descending order. | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_D... | SELECT Statement_Details, AVG(Account_Details) FROM Accounts AS T1 JOIN Statements AS T2 ON T1.Statement_ID = T2.Statement_ID GROUP BY Statement_Details ORDER BY AVG(Account_Details) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
4135,
1071,
297,
834,
25160,
7,
41,
11167,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
11167,
834,
25160,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
11167,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16836,
834,
2962,
5756,
7,
6,
71,
17217,
599,
31963,
834,
2962,
5756,
7,
61,
21680,
6288,
7,
6157,
332,
536,
3,
15355,
3162,
16836,
7,
6157,
332,
357,
9191,
332,
5411,
134,
4748,
297,
834,
4309,
3274,
332,
4416,
1... |
What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event? | CREATE TABLE table_60748 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | SELECT MIN("Year") FROM table_60748 WHERE "Venue" = 'berlin, germany' AND "Event" = '100 m hurdles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
940,
3707,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3328,
940,
3707,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
27995,
6,
13692,
63,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
2915,
3,
51,
23463,
... |
Which rd. occurred on 22 October? | CREATE TABLE table_1137718_2 (
rd INTEGER,
date VARCHAR
) | SELECT MIN(rd) FROM table_1137718_2 WHERE date = "22 October" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
4013,
2606,
834,
357,
41,
3,
52,
26,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
52,
26,
5,
6935,
30,
1630,
1797,
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... | [
3,
23143,
14196,
3,
17684,
599,
52,
26,
61,
21680,
953,
834,
20522,
4013,
2606,
834,
357,
549,
17444,
427,
833,
3274,
96,
2884,
1797,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of the game with the streak l5 | CREATE TABLE table_17331 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
) | SELECT "Score" FROM table_17331 WHERE "Streak" = 'L5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
519,
3341,
41,
96,
4663,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
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,
9022,
121,
21680,
953,
834,
2517,
519,
3341,
549,
17444,
427,
96,
11500,
15,
1639,
121,
3274,
3,
31,
434,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the least entry for game if the score is 1-0? | CREATE TABLE table_27539535_4 (
game INTEGER,
score VARCHAR
) | SELECT MIN(game) FROM table_27539535_4 WHERE score = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3301,
2469,
834,
591,
41,
467,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
1764,
21,
467,
3,
99,
8,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
61,
21680,
953,
834,
2555,
4867,
3301,
2469,
834,
591,
549,
17444,
427,
2604,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many points does mia martini have? | CREATE TABLE table_name_1 (
points VARCHAR,
artist VARCHAR
) | SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
979,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
405,
1337,
9,
3157,
17,
77,
23,
43,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
2377,
3274,
96,
51,
23,
9,
3157,
17,
77,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the team #2 with Deport as team #1? | CREATE TABLE table_name_31 (team__number2 VARCHAR, team__number1 VARCHAR) | SELECT team__number2 FROM table_name_31 WHERE team__number1 = "deport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
11650,
834,
834,
5525,
1152,
357,
584,
4280,
28027,
6,
372,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
834,
5525,
1152,
357,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
372,
834,
834,
5525,
1152,
536,
3274,
96,
221,
1493,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many overall WC ponts (rank) did Anders Jacobsen get when his rank was smaller than 3? | CREATE TABLE table_37570 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall WC points (Rank)" text
) | SELECT "Overall WC points (Rank)" FROM table_37570 WHERE "Rank" < '3' AND "Name" = 'anders jacobsen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
2518,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
536,
7,
17,
41,
51,
61,
121,
490,
6,
96,
357,
727,
41,
51,
61,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23847,
1748,
3,
10038,
979,
41,
22557,
61,
121,
21680,
953,
834,
22954,
2518,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
23954,
121,
3274,
3,
31,
11849,
7,
2662,
509,
115,
7,
35,
31,
... |
provide the number of patients whose procedure icd9 code is 4632? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "4632" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How much was the transfer fee when n is 2? | CREATE TABLE table_22810095_8 (transfer_fee VARCHAR, n VARCHAR) | SELECT transfer_fee FROM table_22810095_8 WHERE n = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2915,
3301,
834,
927,
41,
7031,
1010,
834,
89,
15,
15,
584,
4280,
28027,
6,
3,
29,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
47,
8,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2025,
834,
89,
15,
15,
21680,
953,
834,
357,
2577,
2915,
3301,
834,
927,
549,
17444,
427,
3,
29,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 2nd leg for Barcelona Team 2? | CREATE TABLE table_name_49 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_49 WHERE team_2 = "barcelona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
11650,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
204,
727,
4553,
21,
11869,
2271,
204,
58,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
372,
834,
357,
3274,
96,
1047,
7125,
106,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What company constructed the vehicle in the location not held in 1933? | CREATE TABLE table_name_99 (
constructor VARCHAR,
location VARCHAR,
year VARCHAR
) | SELECT constructor FROM table_name_99 WHERE location = "not held" AND year = "1933" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
6774,
127,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
349,
8520,
8,
1689,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1128,
3274,
96,
2264,
1213,
121,
3430,
215,
3274,
96,
2294,
4201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the number in the series for when the viewers is 7.78 | CREATE TABLE table_72673 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT "No. in series" FROM table_72673 WHERE "U.S. viewers (millions)" = '7.78' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
3708,
519,
41,
96,
4168,
5,
16,
939,
121,
1499,
6,
96,
4168,
5,
16,
774,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
5,
16,
939,
121,
21680,
953,
834,
5865,
3708,
519,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
3274,
3,
31,
940,
5,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Losses have an Against smaller than 1018, and Wins smaller than 14? | CREATE TABLE table_name_42 (losses INTEGER, against VARCHAR, wins VARCHAR) | SELECT AVG(losses) FROM table_name_42 WHERE against < 1018 AND wins < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
2298,
2260,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3144,
2260,
43,
46,
3,
20749,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
581,
3,
2,
335,
2606,
3430,
9204,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for the name of jamar jackson what is the last update? | CREATE TABLE table_name_81 (
last_update VARCHAR,
name VARCHAR
) | SELECT last_update FROM table_name_81 WHERE name = "jamar jackson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
336,
834,
413,
5522,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21,
8,
564,
13,
7620,
291,
3,
9325,
739,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
834,
413,
5522,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
564,
3274,
96,
1191,
1635,
3,
9325,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
the most number of days an australian prime minister was in office was how many days ? | CREATE TABLE table_204_812 (
id number,
"#" number,
"prime minister" text,
"date of birth" text,
"start date\nof (first) term" text,
"age at beginning\nof (first) term" text,
"end date\nof (final) term" text,
"total time in\noffice" text,
"date of death" text,
"lifespan" text
) | SELECT "total time in\noffice" FROM table_204_812 ORDER BY "total time in\noffice" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4959,
357,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
8234,
15,
6323,
121,
1499,
6,
96,
5522,
13,
3879,
121,
1499,
6,
96,
10208,
833,
2,
29,
858,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
235,
1947,
97,
16,
2,
29,
19632,
121,
21680,
953,
834,
26363,
834,
4959,
357,
4674,
11300,
272,
476,
96,
235,
1947,
97,
16,
2,
29,
19632,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose age is less than 27 and drug route is left eye? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "27" AND prescriptions.route = "LEFT EYE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
tries against is 29, what is the points against? | CREATE TABLE table_name_97 (
points_against VARCHAR,
tries_against VARCHAR
) | SELECT points_against FROM table_name_97 WHERE tries_against = "29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
9000,
581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many episode were written by Brett Conrad? | CREATE TABLE table_25740548_2 (title VARCHAR, written_by VARCHAR) | SELECT COUNT(title) FROM table_25740548_2 WHERE written_by = "Brett Conrad" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4581,
3076,
3707,
834,
357,
41,
21869,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5640,
130,
1545,
57,
21203,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
1828,
4581,
3076,
3707,
834,
357,
549,
17444,
427,
1545,
834,
969,
3274,
96,
279,
60,
17,
17,
1193,
5672,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the smallest bush# with 66.0% bush and less than 65 others#? | CREATE TABLE table_name_55 (
bush_number INTEGER,
bush_percentage VARCHAR,
others_number VARCHAR
) | SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
17907,
834,
5525,
1152,
3,
21342,
17966,
6,
17907,
834,
883,
3728,
545,
584,
4280,
28027,
6,
717,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
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,
3465,
107,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
17907,
834,
883,
3728,
545,
3274,
96,
3539,
5,
6932,
121,
3430,
717,
834,
5525,
1152,
3,
2,
7123,
1,
-100,
-100,
-1... |
what is the number of points that chris amon earned ? | CREATE TABLE table_204_641 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT "points" FROM table_204_641 WHERE "driver" = 'chris amon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4389,
536,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
15982,
5317,
121,
1499,
6,
96,
8478,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
121,
21680,
953,
834,
26363,
834,
4389,
536,
549,
17444,
427,
96,
13739,
52,
121,
3274,
3,
31,
524,
52,
159,
183,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients had the drug name hydrocortisone oint 0.5%? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Hydrocortisone Oint 0.5%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what is the number of patients whose days of hospital stay is greater than 16 and lab test name is globulin? | 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.days_stay > "16" AND lab.label = "Globulin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.? | CREATE TABLE table_name_80 (viewers__m_ VARCHAR, rank__night_ VARCHAR, timeslot VARCHAR) | SELECT COUNT(viewers__m_) FROM table_name_80 WHERE rank__night_ = "n/a" AND timeslot = "8:30 p.m." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
4576,
277,
834,
834,
51,
834,
584,
4280,
28027,
6,
11003,
834,
834,
7602,
834,
584,
4280,
28027,
6,
648,
3171,
584,
4280,
28027,
61,
3,
32102,
32103,
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,
4576,
277,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
11003,
834,
834,
7602,
834,
3274,
96,
29,
87,
9,
121,
3430,
648,
3171,
3274,
96,
927,
10,
1458,
3,
102,
5,
5... |
Tell me the total number of gold for total less than 1 | CREATE TABLE table_name_62 (
gold VARCHAR,
total INTEGER
) | SELECT COUNT(gold) FROM table_name_62 WHERE total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
2045,
584,
4280,
28027,
6,
792,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
792,
381,
13,
2045,
21,
792,
705,
145,
209,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14910,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who wrote the episode which was directed by Nick Marck? | CREATE TABLE table_28195898_1 (written_by VARCHAR, directed_by VARCHAR) | SELECT written_by FROM table_28195898_1 WHERE directed_by = "Nick Marck" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2294,
3449,
3916,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
84,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2577,
2294,
3449,
3916,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
567,
3142,
10290,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the average base price of different bed type? List bed type and average base price, and I want to display in desc by the Y-axis please. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY AVG(basePrice) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
71,
17217,
599,
10925,
345,
4920,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who was the celebrity who finished in 7th place? | CREATE TABLE table_name_91 (celebrity VARCHAR, finished VARCHAR) | SELECT celebrity FROM table_name_91 WHERE finished = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
75,
400,
2160,
17,
63,
584,
4280,
28027,
6,
2369,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
17086,
113,
2369,
16,
489,
189,
286... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17086,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2369,
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,
... |
How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive? | CREATE TABLE table_51381 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Gold") FROM table_51381 WHERE "Rank" < '5' AND "Bronze" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2368,
4959,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
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,
180,
6122,
599,
121,
23576,
8512,
21680,
953,
834,
755,
2368,
4959,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What song has the band tour vnue of 6. tool (usa) encore? | CREATE TABLE table_name_66 (song VARCHAR, band_tour_venue VARCHAR) | SELECT song FROM table_name_66 WHERE band_tour_venue = "6. tool (usa) encore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
7,
2444,
584,
4280,
28027,
6,
1928,
834,
17,
1211,
834,
15098,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2324,
65,
8,
1928,
1552,
3,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1928,
834,
17,
1211,
834,
15098,
3274,
96,
948,
5,
1464,
41,
302,
9,
61,
2333,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Large end has a Taper/ft smaller than 0.6000000000000001? | CREATE TABLE table_name_5 (large_end VARCHAR, taper VARCHAR, ft VARCHAR) | SELECT COUNT(large_end) FROM table_name_5 WHERE taper / ft < 0.6000000000000001 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
15599,
834,
989,
584,
4280,
28027,
6,
4874,
52,
584,
4280,
28027,
6,
3,
89,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7199,
414,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15599,
834,
989,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
4874,
52,
3,
87,
3,
89,
17,
3,
2,
3,
22787,
19568,
19568,
19568,
17465,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients on elective admission had their epithelial cells tested by lab? | 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 ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.label = "Epithelial Cells" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the total medals for nation with more than 0 silvers and more than 0 golds? | CREATE TABLE table_name_97 (
total INTEGER,
silver VARCHAR,
gold VARCHAR
) | SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
792,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
9365,
7,
21,
2982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
4294,
2490,
3,
632,
3430,
2045,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many laps for a grid larger than 1 with a Time/Retired of halfshaft? | CREATE TABLE table_78175 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Laps" FROM table_78175 WHERE "Grid" > '1' AND "Time/Retired" = 'halfshaft' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
536,
3072,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3612,
102,
7,
121,
21680,
953,
834,
3940,
536,
3072,
549,
17444,
427,
96,
13313,
26,
121,
2490,
3,
31,
536,
31,
3430,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
17114,
7,
8045,
31,
1,
-100,
-100,
-100... |
What is the Position of moose goheen? | CREATE TABLE table_name_61 (position VARCHAR, name VARCHAR) | SELECT position FROM table_name_61 WHERE name = "moose goheen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
4718,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14258,
13,
3,
31062,
15,
281,
88,
35,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
564,
3274,
96,
31062,
15,
281,
88,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the total number of opponets for 05/09/2009 | CREATE TABLE table_24232 (
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Score" text,
"Home/Away" text,
"Venue" text,
"Attendance" text,
"Date" text
) | SELECT COUNT("Opponent") FROM table_24232 WHERE "Date" = '05/09/2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
23188,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
102,
9977,
8512,
21680,
953,
834,
2266,
23188,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
3076,
31497,
16660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What were Gentleman's odds of winner? | CREATE TABLE table_24545 (
"Year" real,
"Horse" text,
"Driver" text,
"Trainer" text,
"Country of owner" text,
"Odds of winner" text,
"Winning time (km rate)" text
) | SELECT "Odds of winner" FROM table_24545 WHERE "Horse" = 'Gentleman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
2128,
41,
96,
476,
2741,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
10628,
651,
13,
2527,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
26,
26,
7,
13,
4668,
121,
21680,
953,
834,
357,
2128,
2128,
549,
17444,
427,
96,
566,
127,
7,
15,
121,
3274,
3,
31,
13714,
17,
109,
348,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What 1979 Hindi film had Ravindra Jain directing music? | CREATE TABLE table_name_60 (
film_name VARCHAR,
year VARCHAR,
music_director VARCHAR,
language VARCHAR,
lyricist VARCHAR
) | SELECT film_name FROM table_name_60 WHERE language = "hindi" AND lyricist = "ravindra jain" AND music_director = "ravindra jain" AND year = 1979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
814,
834,
4350,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
723,
834,
25982,
584,
4280,
28027,
6,
1612,
584,
4280,
28027,
6,
3,
120,
2234,
343,
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,
814,
834,
4350,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1612,
3274,
96,
107,
8482,
121,
3430,
3,
120,
2234,
343,
3274,
96,
11852,
77,
3515,
2662,
77,
121,
3430,
723,
834,
25982,
3274,
96,
11852,
77,
3515,... |
What was the average attendance when the decision was price and montreal were the visitors? | CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR) | SELECT AVG(attendance) FROM table_name_58 WHERE visitor = "montreal" AND decision = "price" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
15116,
663,
3,
21342,
17966,
6,
7019,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
11364,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
7019,
3274,
96,
4662,
6644,
121,
3430,
1357,
3274,
96,
102,
4920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Keyphrases used by james fogarty in 2015 | CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paperdataset (
... | SELECT DISTINCT paperkeyphrase.keyphraseid FROM author, paper, paperkeyphrase, writes WHERE author.authorname = 'james fogarty' AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2015 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5669,
41,
5669,
23,
26,
16,
17,
6,
5669,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291,
23,
26,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1040,
4397,
27111,
5,
4397,
27111,
23,
26,
21680,
2291,
6,
1040,
6,
1040,
4397,
27111,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
1191,
2687,
20735,
1408,
63,
31,
3430,
1040... |
What is the party for the representative who was first elected before 2002 and the results were re-elected? | CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR) | SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
8071,
584,
4280,
28027,
6,
772,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1088,
21,
8,
6978... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
772,
3274,
96,
60,
18,
19971,
121,
3430,
166,
834,
19971,
3,
2,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the episode on Fuji TV titled Absolute Boyfriend? | CREATE TABLE table_66112 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
) | SELECT MIN("Episodes") FROM table_66112 WHERE "TV Station" = 'fuji tv' AND "Romaji Title" = 'absolute boyfriend' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
2596,
357,
41,
96,
683,
9750,
1496,
15,
11029,
121,
1499,
6,
96,
448,
32,
16547,
23,
11029,
121,
1499,
6,
96,
4562,
5939,
121,
1499,
6,
96,
427,
102,
159,
32,
1395,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
102,
159,
32,
1395,
8512,
21680,
953,
834,
3539,
2596,
357,
549,
17444,
427,
96,
4562,
5939,
121,
3274,
3,
31,
89,
76,
354,
23,
3,
17,
208,
31,
3430,
96,
448,
32,
16547,
23,
11029,
121,
... |
What is the Head Coach of Novy Urengoy? | CREATE TABLE table_name_43 (
head_coach VARCHAR,
town VARCHAR
) | SELECT head_coach FROM table_name_43 WHERE town = "novy urengoy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
819,
834,
509,
1836,
584,
4280,
28027,
6,
1511,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3642,
9493,
13,
5098,
63,
4575,
35,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
819,
834,
509,
1836,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1511,
3274,
96,
5326,
63,
3,
450,
35,
839,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the perfect stem for the word that has a future stem of emango? | CREATE TABLE table_name_79 (
perfect_stem VARCHAR,
future_stem VARCHAR
) | SELECT perfect_stem FROM table_name_79 WHERE future_stem = "emango" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
626,
834,
7,
3524,
584,
4280,
28027,
6,
647,
834,
7,
3524,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
626,
6269,
21,
8,
1448... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
626,
834,
7,
3524,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
647,
834,
7,
3524,
3274,
96,
15,
348,
839,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average for the agricultural panel that has a National University of Ireland less than 0? | CREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER) | SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
9,
3496,
14700,
834,
28726,
3,
21342,
17966,
6,
1157,
834,
7846,
485,
834,
858,
834,
2060,
40,
232,
3,
21342,
17966,
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,
71,
17217,
599,
9,
3496,
14700,
834,
28726,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1157,
834,
7846,
485,
834,
858,
834,
2060,
40,
232,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
With 8 as the rank, and a total of more than 2 medals what is the average bronze medals? | CREATE TABLE table_name_34 (bronze INTEGER, rank VARCHAR, total VARCHAR) | SELECT AVG(bronze) FROM table_name_34 WHERE rank = "8" AND total > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
13711,
776,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
438,
505,
38,
8,
11003,
6,
11,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
11003,
3274,
96,
927,
121,
3430,
792,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which home team score has an Away team score of 15.9 (99)? | CREATE TABLE table_54551 (
"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_54551 WHERE "Away team score" = '15.9 (99)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2128,
5553,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
755,
2128,
5553,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
1808,
5,
1298,
41,
3264,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the proxy when the image quality is , the encryption is ssl and the license is proprietary? | CREATE TABLE table_65070 (
"Project" text,
"License" text,
"Date" text,
"Protocol" text,
"Technology" text,
"Server" text,
"Client" text,
"Web Client" text,
"Multiple Sessions" text,
"Encryption" text,
"Authentication" text,
"Data Compression" text,
"Image Quality" te... | SELECT "Proxy" FROM table_65070 WHERE "Image Quality" = '✓' AND "Encryption" = 'ssl' AND "License" = 'proprietary' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
2518,
41,
96,
3174,
11827,
121,
1499,
6,
96,
434,
447,
5167,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
3174,
235,
3297,
121,
1499,
6,
96,
9542,
29,
1863,
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,
3174,
226,
63,
121,
21680,
953,
834,
15348,
2518,
549,
17444,
427,
96,
29979,
6495,
121,
3274,
3,
31,
2,
31,
3430,
96,
8532,
13708,
23,
106,
121,
3274,
3,
31,
7,
7,
40,
31,
3430,
96,
434,
447,
5167,
121,
3... |
What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008? | CREATE TABLE table_68692 (
"Episode #" real,
"Title" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Part 5" text,
"Part 6" text
) | SELECT "Title" FROM table_68692 WHERE "Episode #" > '2' AND "Part 6" = 'january 6, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3951,
357,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
13725,
209,
121,
1499,
6,
96,
13725,
204,
121,
1499,
6,
96,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
3651,
3951,
357,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
1713,
121,
2490,
3,
31,
357,
31,
3430,
96,
13725,
431,
121,
3274,
3,
31,
7066,
76,
1208,
8580,
2628,
31,
1,
... |
The Powerbook 100 model has what processor? | CREATE TABLE table_name_58 (processor VARCHAR, model VARCHAR) | SELECT processor FROM table_name_58 WHERE model = "powerbook 100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
15056,
127,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
37,
2621,
2567,
910,
825,
65,
125,
7502,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7502,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
825,
3274,
96,
6740,
2567,
910,
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 highest grid when the time/retired is fuel pump and the laps is more than 26? | CREATE TABLE table_name_95 (
grid INTEGER,
time_retired VARCHAR,
laps VARCHAR
) | SELECT MAX(grid) FROM table_name_95 WHERE time_retired = "fuel pump" AND laps > 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
8634,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
21692,
5013,
121,
3430,
14941,
7,
2490,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average age of the visitors whose membership level is not higher than 4? | CREATE TABLE visitor (age INTEGER, Level_of_membership VARCHAR) | SELECT AVG(age) FROM visitor WHERE Level_of_membership <= 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7019,
41,
545,
3,
21342,
17966,
6,
7166,
834,
858,
834,
12066,
2009,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1246,
13,
8,
2692,
3,
2544,
4757,
593,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
545,
61,
21680,
7019,
549,
17444,
427,
7166,
834,
858,
834,
12066,
2009,
3,
2,
2423,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest loss for the Tacuary team? | CREATE TABLE table_14871601_1 (
losses INTEGER,
team VARCHAR
) | SELECT MAX(losses) FROM table_14871601_1 WHERE team = "Tacuary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4225,
19129,
536,
834,
536,
41,
8467,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
1453,
21,
8,
2067,
1071,
1208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2298,
2260,
61,
21680,
953,
834,
2534,
4225,
19129,
536,
834,
536,
549,
17444,
427,
372,
3274,
96,
382,
9,
1071,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is top speed of a petrol engine at ps (kw; bhp)@5250-6250? | CREATE TABLE table_24181 (
"Model" text,
"Years" text,
"Type/code" text,
"Transmission" text,
"max. power" text,
"Torque" text,
"0-km/h (mph) (sec)" text,
"top speed" text
) | SELECT "top speed" FROM table_24181 WHERE "max. power" = 'PS (kW; bhp)@5250-6250' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2606,
536,
41,
96,
24663,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
25160,
87,
4978,
121,
1499,
6,
96,
18474,
5451,
121,
1499,
6,
96,
9128,
5,
579,
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,
1... | [
3,
23143,
14196,
96,
2916,
1634,
121,
21680,
953,
834,
2266,
2606,
536,
549,
17444,
427,
96,
9128,
5,
579,
121,
3274,
3,
31,
4176,
41,
21729,
117,
3,
115,
107,
102,
61,
1741,
5373,
1752,
5783,
11434,
31,
1,
-100,
-100,
-100,
-100,... |
Show me a pie chart for how many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges? | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) | SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
538,
6,
3,
35,
52,
21680,
1888,
6157,
332,
536,
3,
15355,
3162,
5263,
670,
6157,
332,
357,
9191,
332,
5411,
75,
23954,
3274,
332,
4416,
75,
23954,
549,
17444,
427,
332,
4416,
221,
18901,
3274,
3,
31,
10070,
31,
1,... |
What is the primary conference that was founded before 1866 and has an affiliation of private/catholic? | CREATE TABLE table_name_58 (
primary_conference VARCHAR,
founded VARCHAR,
affiliation VARCHAR
) | SELECT primary_conference FROM table_name_58 WHERE founded < 1866 AND affiliation = "private/catholic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2329,
834,
28496,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
6,
24405,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2329,
2542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2329,
834,
28496,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
5710,
3,
2,
507,
3539,
3430,
24405,
3274,
96,
26881,
87,
2138,
26641,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the result when the attendance was 46,456? | CREATE TABLE table_name_2 (
result VARCHAR,
attendance VARCHAR
) | SELECT result FROM table_name_2 WHERE attendance = "46,456" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
741,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
116,
8,
11364,
47,
9668,
6,
2128,
948,
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,
741,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
11364,
3274,
96,
4448,
6,
2128,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many weeks are there? | CREATE TABLE table_10647639_1 (
week INTEGER
) | SELECT MAX(week) FROM table_10647639_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4389,
3959,
3288,
834,
536,
41,
471,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1274,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8041,
61,
21680,
953,
834,
1714,
4389,
3959,
3288,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When carlton was the home team what was the lowest crowd turnout? | CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_72 WHERE home_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
443,
7377,
47,
8,
234,
372,
125,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.