NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many students are older than average for each gender? | CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
)
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
... | SELECT COUNT(*), sex FROM student WHERE age > (SELECT AVG(age) FROM student) GROUP BY sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
834,
9,
904,
485,
41,
103,
52,
6983,
381,
6,
183,
35,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
834,
9,
904,
485,
41,
183,
35,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
3,
7,
994,
21680,
1236,
549,
17444,
427,
1246,
2490,
41,
23143,
14196,
71,
17217,
599,
545,
61,
21680,
1236,
61,
350,
4630,
6880,
272,
476,
3,
7,
994,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of Frank Langella? | CREATE TABLE table_name_64 (result VARCHAR, nominee VARCHAR) | SELECT result FROM table_name_64 WHERE nominee = "frank langella" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
4937,
7073,
5303,
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,
741,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
21077,
3274,
96,
89,
6254,
12142,
5303,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total built by the United Kingdom and holds 1,300 passengers? | CREATE TABLE table_name_68 (built VARCHAR, registry VARCHAR, passengers VARCHAR) | SELECT COUNT(built) FROM table_name_68 WHERE registry = "united kingdom" AND passengers = 1 OFFSET 300 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
16152,
584,
4280,
28027,
6,
20810,
584,
4280,
28027,
6,
9234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
1192,
57,
8,
907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
16152,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
20810,
3274,
96,
15129,
15,
26,
14740,
121,
3430,
9234,
3274,
209,
3,
15316,
20788,
3147,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which season had a Regionalliga Sud of Stuttgarter Kickers? | CREATE TABLE table_name_68 (season VARCHAR, regionalliga_süd VARCHAR) | SELECT season FROM table_name_68 WHERE regionalliga_süd = "stuttgarter kickers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
9476,
584,
4280,
28027,
6,
3518,
17140,
834,
7,
1272,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
141,
3,
9,
7676,
17140,
9010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3518,
17140,
834,
7,
1272,
26,
3274,
96,
7,
17,
76,
17,
17,
1478,
449,
4583,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List the types of competition and the number of competitions of each type in a bar chart, display by the x-axis in descending please. | CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE competition (
Competition_ID int,
Year real,
Competition_type text,
Country text
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
C... | SELECT Competition_type, COUNT(*) FROM competition GROUP BY Competition_type ORDER BY Competition_type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2259,
834,
60,
7,
83,
17,
41,
15571,
834,
4309,
16,
17,
6,
1949,
834,
4309,
834,
536,
16,
17,
6,
1949,
834,
4309,
834,
357,
16,
17,
6,
17763,
1499,
3,
61,
3,
32102,
32103,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15571,
834,
6137,
6,
2847,
17161,
599,
1935,
61,
21680,
2259,
350,
4630,
6880,
272,
476,
15571,
834,
6137,
4674,
11300,
272,
476,
15571,
834,
6137,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What film had Bub Ltd as the recipient? | CREATE TABLE table_name_75 (
film VARCHAR,
recipient VARCHAR
) | SELECT film FROM table_name_75 WHERE recipient = "bub ltd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
814,
584,
4280,
28027,
6,
11095,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
814,
141,
4708,
115,
3937,
38,
8,
11095,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
814,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
11095,
3274,
96,
3007,
115,
3,
40,
17,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what season did the Sporting CP Club have a 1. round? | CREATE TABLE table_70040 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
) | SELECT "Season" FROM table_70040 WHERE "Round" = '1. round' AND "Club" = 'sporting cp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
2445,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
19040,
121,
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,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
9295,
2445,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
5411,
1751,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
6661,
53,
3,
75,
102,
31,
1,
-100,
-100,
-10... |
give the number of patients whose drug code is posa200l and lab test fluid is urine? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "POSA200L" AND lab.fluid = "Urine" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
Name the most attendance | CREATE TABLE table_16227492_1 (
attendance INTEGER
) | SELECT MAX(attendance) FROM table_16227492_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2884,
4581,
4508,
834,
536,
41,
11364,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
11364,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
2938,
2884,
4581,
4508,
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,
-... |
What college did Ray Graves attend? | CREATE TABLE table_name_2 (college VARCHAR, name VARCHAR) | SELECT college FROM table_name_2 WHERE name = "ray graves" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
3297,
7883,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
8279,
15199,
15,
7,
2467,
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,
1900,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
564,
3274,
96,
2866,
7808,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Avg/G has a Long of 93, and a Loss smaller than 249? | CREATE TABLE table_76769 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) | SELECT SUM("Avg/G") FROM table_76769 WHERE "Long" = '93' AND "Loss" < '249' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3708,
3951,
41,
96,
23954,
121,
1499,
6,
96,
517,
9,
77,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
434,
2444,
121,
490,
6,
96,
188,
208,
122,
87,
517,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
208,
122,
87,
517,
8512,
21680,
953,
834,
940,
3708,
3951,
549,
17444,
427,
96,
434,
2444,
121,
3274,
3,
31,
4271,
31,
3430,
96,
434,
32,
7,
7,
121,
3,
2,
3,
31,
357,
3647,
31,
1,
-... |
how many patients are primarily diagnosed for aortic valve insuffiency/aortic valve replacement /sda and lab tested for hematology? | CREATE TABLE diagnoses (
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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" AND lab."CATEGORY" = "Hematology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is 2001 when the year is ebitda and 2009 is less than 3,600? | CREATE TABLE table_49072 (
"Year" text,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real,
"2012" real
) | SELECT SUM("2001") FROM table_49072 WHERE "Year" = 'ebitda' AND "2009" < '3,600' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4560,
357,
41,
96,
476,
2741,
121,
1499,
6,
96,
23658,
121,
490,
6,
96,
24898,
121,
490,
6,
96,
23948,
121,
490,
6,
96,
21653,
121,
490,
6,
96,
22594,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23658,
8512,
21680,
953,
834,
3647,
4560,
357,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
15,
2360,
26,
9,
31,
3430,
96,
16660,
121,
3,
2,
3,
31,
6355,
6007,
31,
1,
-100,
-100,
-100,
... |
In what year did Morgan Brian win? | CREATE TABLE table_name_75 (
year INTEGER,
winner VARCHAR
) | SELECT AVG(year) FROM table_name_75 WHERE winner = "morgan brian" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
215,
3,
21342,
17966,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
410,
11147,
7798,
1369,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
4668,
3274,
96,
51,
11127,
3,
2160,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer? | CREATE TABLE table_name_88 (
chrome VARCHAR,
internet_explorer VARCHAR
) | SELECT chrome FROM table_name_88 WHERE internet_explorer = "72.03%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
17520,
584,
4280,
28027,
6,
1396,
834,
20901,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
3509,
7,
130,
338,
10780,
383,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
17520,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1396,
834,
20901,
3274,
96,
940,
24273,
5170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What tournament is lesley joseph the opponent? | CREATE TABLE table_39170 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Tournament" FROM table_39170 WHERE "Opponent" = 'lesley joseph' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
536,
2518,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3288,
536,
2518,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
109,
8887,
7406,
15,
102,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many sections does course ACCT-211 has? | CREATE TABLE CLASS (class_section VARCHAR, crs_code VARCHAR) | SELECT COUNT(DISTINCT class_section) FROM CLASS WHERE crs_code = 'ACCT-211' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
31598,
41,
4057,
834,
14309,
584,
4280,
28027,
6,
5764,
7,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6795,
405,
503,
5686,
6227,
18,
27278,
65,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
853,
834,
14309,
61,
21680,
3,
31598,
549,
17444,
427,
5764,
7,
834,
4978,
3274,
3,
31,
14775,
382,
18,
27278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Julio Robledo represents which country? | CREATE TABLE table_15381 (
"Category" text,
"Film" text,
"Director(s)" text,
"Country" text,
"Nominating Festival" text
) | SELECT "Country" FROM table_15381 WHERE "Director(s)" = 'julio robledo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
4959,
41,
96,
18610,
6066,
651,
121,
1499,
6,
96,
371,
173,
51,
121,
1499,
6,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
4168,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
27025,
4959,
549,
17444,
427,
96,
23620,
127,
599,
7,
61,
121,
3274,
3,
31,
354,
83,
23,
32,
3,
5840,
1361,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all values for 'to par' for the winning score of 67-67-69-69=272? | CREATE TABLE table_1507431_1 (
to_par VARCHAR,
winning_score VARCHAR
) | SELECT to_par FROM table_1507431_1 WHERE winning_score = 67 - 67 - 69 - 69 = 272 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
4581,
3341,
834,
536,
41,
12,
834,
1893,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
2620,
21,
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,
12,
834,
1893,
21680,
953,
834,
12278,
4581,
3341,
834,
536,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
3708,
3,
18,
3,
3708,
3,
18,
3,
3951,
3,
18,
3,
3951,
3274,
2307,
357,
1,
-100,
-100,
-100,
-100,
-100,
... |
What's the website of the school in Macon, Illinois? | CREATE TABLE table_29612224_1 (
school_website VARCHAR,
location VARCHAR
) | SELECT school_website FROM table_29612224_1 WHERE location = "Macon, Illinois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4241,
2884,
2266,
834,
536,
41,
496,
834,
8398,
3585,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
475,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
834,
8398,
3585,
21680,
953,
834,
3166,
4241,
2884,
2266,
834,
536,
549,
17444,
427,
1128,
3274,
96,
17772,
106,
6,
7659,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Jockey, when Horse is 'Eight Belles'? | CREATE TABLE table_name_74 (
jockey VARCHAR,
horse VARCHAR
) | SELECT jockey FROM table_name_74 WHERE horse = "eight belles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
8624,
4397,
584,
4280,
28027,
6,
4952,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2194,
75,
4397,
6,
116,
13538,
19,
3,
31,
427,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8624,
4397,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
4952,
3274,
96,
15,
2632,
6030,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Geelong's home team score? | CREATE TABLE table_name_89 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_89 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
961,
15,
2961,
31,
7,
234,
372,
2604,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Lost, when Points For is '257'? | CREATE TABLE table_46999 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Lost" FROM table_46999 WHERE "Points for" = '257' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
19446,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121,
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,
96,
434,
3481,
121,
21680,
953,
834,
4448,
19446,
549,
17444,
427,
96,
22512,
7,
21,
121,
3274,
3,
31,
357,
3436,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who published Star Citizen in 2014? | CREATE TABLE table_name_17 (
publisher VARCHAR,
year VARCHAR,
title VARCHAR
) | SELECT publisher FROM table_name_17 WHERE year = "2014" AND title = "star citizen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
14859,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1790,
2042,
17795,
1847,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14859,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
215,
3274,
96,
10218,
121,
3430,
2233,
3274,
96,
3624,
13008,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the distance for the winner or 2nd Waterline? | CREATE TABLE table_name_21 (distance VARCHAR, winner_or_2nd VARCHAR) | SELECT distance FROM table_name_21 WHERE winner_or_2nd = "waterline" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
26,
23,
8389,
584,
4280,
28027,
6,
4668,
834,
127,
834,
357,
727,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2357,
21,
8,
4668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2357,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
4668,
834,
127,
834,
357,
727,
3274,
96,
3552,
747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Sub-Parish has a church built in 1866? | CREATE TABLE table_name_19 (
sub_parish__sokn_ VARCHAR,
year_built VARCHAR
) | SELECT sub_parish__sokn_ FROM table_name_19 WHERE year_built = "1866" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
769,
834,
1893,
1273,
834,
834,
7,
1825,
29,
834,
584,
4280,
28027,
6,
215,
834,
16152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
769,
834,
1893,
1273,
834,
834,
7,
1825,
29,
834,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
215,
834,
16152,
3274,
96,
2606,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What nation did the speed skater that set a record in the 1000 metres event represent? | CREATE TABLE table_name_23 (
nation VARCHAR,
event VARCHAR
) | SELECT nation FROM table_name_23 WHERE event = "1000 metres" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
2982,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2982,
410,
8,
1634,
16573,
52,
24,
356,
3,
9,
1368,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
605,
3274,
96,
16824,
14604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who were the writers of episode 20? | CREATE TABLE table_20538157_2 (
written_by VARCHAR,
no_in_season VARCHAR
) | SELECT written_by FROM table_20538157_2 WHERE no_in_season = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
3747,
27452,
834,
357,
41,
1545,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
5943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
23201,
3747,
27452,
834,
357,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein? | CREATE TABLE table_18055005_1 (
no_in_series VARCHAR,
viewers__millions_ VARCHAR,
written_by VARCHAR
) | SELECT no_in_series FROM table_18055005_1 WHERE viewers__millions_ = "4.1" AND written_by = "Douglas Lieblein" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
17147,
3076,
834,
536,
41,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
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,
150,
834,
77,
834,
10833,
7,
21680,
953,
834,
20829,
17147,
3076,
834,
536,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
3274,
96,
19708,
121,
3430,
1545,
834,
969,
3274,
96,
4135,
76,
16985,
24149,
109,
77,
121... |
What is the sum of Crowd when the away team scored 8.12 (60)? | CREATE TABLE table_51277 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT SUM("Crowd") FROM table_51277 WHERE "Away team score" = '8.12 (60)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
4013,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
24163,
4013,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
20677,
357,
41,
3328,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for oregon jurisdiction | CREATE TABLE table_name_92 (
date VARCHAR,
jurisdiction VARCHAR
) | SELECT date FROM table_name_92 WHERE jurisdiction = "oregon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
833,
584,
4280,
28027,
6,
10185,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
42,
15,
5307,
10185,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
10185,
3274,
96,
127,
15,
5307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Bar chart x axis role code y axis the total number | CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE... | SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
834,
434,
32,
75,
1628,
41,
11167,
834,
4309,
3,
21342,
17966,
6,
10450,
834,
22737,
3,
28027,
599,
1808,
201,
7678,
834,
77,
834,
434,
32,
75,
257,
834,
22674,
309,
6048,
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,
2158,
109,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
15871,
7,
350,
4630,
6880,
272,
476,
2158,
109,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the genre for Portal 2? | CREATE TABLE table_name_32 (
genre VARCHAR,
game VARCHAR
) | SELECT genre FROM table_name_32 WHERE game = "portal 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5349,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5349,
21,
16290,
204,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5349,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
467,
3274,
96,
1493,
138,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the highest Pl GP with a Reg GP over 18? | CREATE TABLE table_name_22 (pl_gp INTEGER, reg_gp INTEGER) | SELECT MAX(pl_gp) FROM table_name_22 WHERE reg_gp > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
102,
40,
834,
122,
102,
3,
21342,
17966,
6,
5925,
834,
122,
102,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2030,
7337,
3,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
102,
40,
834,
122,
102,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
5925,
834,
122,
102,
2490,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100. | CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER) | SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2289,
41,
1939,
5457,
834,
23,
26,
584,
4280,
28027,
6,
123,
7,
17,
834,
23,
26,
584,
4280,
28027,
6,
866,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
115,
4350,
21680,
2289,
6157,
332,
536,
3,
15355,
3162,
2137,
6157,
332,
357,
9191,
332,
5411,
1939,
5457,
834,
23,
26,
3274,
332,
4416,
1939,
5457,
834,
23,
26,
3,
15355,
3162,
884,
6157,
332,
519,
9191,... |
What number episode in the season was watched by 0.49 million U.S. viewers? | CREATE TABLE table_26914076_4 (_number INTEGER, us_viewers__millions_ VARCHAR) | SELECT MAX(_number) FROM table_26914076_4 WHERE us_viewers__millions_ = "0.49" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4729,
2445,
3959,
834,
591,
41,
834,
5525,
1152,
3,
21342,
17966,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
834,
5525,
1152,
61,
21680,
953,
834,
2688,
4729,
2445,
3959,
834,
591,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
22776,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the earliest release-year of the first charted record of Abba? | CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR) | SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = "abba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
21019,
834,
1201,
834,
858,
834,
14672,
834,
4059,
1054,
834,
60,
7621,
3,
21342,
17966,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
21019,
834,
1201,
834,
858,
834,
14672,
834,
4059,
1054,
834,
60,
7621,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
2377,
3274,
96,
12982,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose diagnosis icd9 code is 29281 and lab test abnormal status is delta. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "29281" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the 2011 population of the district of East Godavari? | CREATE TABLE table_1610301_1 (
population__2011_ VARCHAR,
district VARCHAR
) | SELECT population__2011_ FROM table_1610301_1 WHERE district = "East Godavari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
1714,
25626,
834,
536,
41,
2074,
834,
834,
13907,
834,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2722,
2074,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
834,
834,
13907,
834,
21680,
953,
834,
2938,
1714,
25626,
834,
536,
549,
17444,
427,
3939,
3274,
96,
25235,
601,
9,
9504,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Airport when the ICAO shows rpvm? | CREATE TABLE table_38162 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Airport" FROM table_38162 WHERE "ICAO" = 'rpvm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2938,
357,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20162,
1493,
121,
21680,
953,
834,
3747,
2938,
357,
549,
17444,
427,
96,
15038,
667,
121,
3274,
3,
31,
52,
102,
208,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date for game 9? | CREATE TABLE table_20760407_1 (
date VARCHAR,
game VARCHAR
) | SELECT date FROM table_20760407_1 WHERE game = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3959,
6348,
4560,
834,
536,
41,
833,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
21,
467,
668,
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,
833,
21680,
953,
834,
1755,
3959,
6348,
4560,
834,
536,
549,
17444,
427,
467,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year has Playoffs which did not qualify? | CREATE TABLE table_name_94 (year INTEGER, playoffs VARCHAR) | SELECT AVG(year) FROM table_name_94 WHERE playoffs = "did not qualify" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1201,
3,
21342,
17966,
6,
15289,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
2911,
1647,
7,
84,
410,
59,
9448,
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,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
15289,
7,
3274,
96,
12416,
59,
9448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up? | CREATE TABLE table_31076 (
"Week of" text,
"Tournament" text,
"Champion" text,
"Runner-up" text,
"Semifinalists" text,
"Quarterfinalists" text
) | SELECT "Champion" FROM table_31076 WHERE "Runner-up" = 'Marty Davis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
3959,
41,
96,
518,
10266,
13,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1483,
12364,
121,
21680,
953,
834,
19947,
3959,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
7286,
17,
63,
8688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Points for has Points against smaller than 93, and Tries for larger than 25? | CREATE TABLE table_name_38 (
points_for INTEGER,
points_against VARCHAR,
tries_for VARCHAR
) | SELECT MIN(points_for) FROM table_name_38 WHERE points_against < 93 AND tries_for > 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
979,
834,
1161,
3,
21342,
17966,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
3,
9000,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
834,
1161,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3,
2,
3,
4271,
3430,
3,
9000,
834,
1161,
2490,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the nickname of the team that has the colors blue and gold? | CREATE TABLE table_name_42 (nickname VARCHAR, colors VARCHAR) | SELECT nickname FROM table_name_42 WHERE colors = "blue and gold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
11191,
4350,
584,
4280,
28027,
6,
2602,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
24649,
13,
8,
372,
24,
65,
8,
2602,
1692,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24649,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2602,
3274,
96,
7060,
15,
11,
2045,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the date valid from and the date valid to for the card with card number '4560596484842'. | CREATE TABLE Customers_cards (date_valid_from VARCHAR, date_valid_to VARCHAR, card_number VARCHAR) | SELECT date_valid_from, date_valid_to FROM Customers_cards WHERE card_number = "4560596484842" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
834,
6043,
7,
41,
5522,
834,
27769,
834,
7152,
584,
4280,
28027,
6,
833,
834,
27769,
834,
235,
584,
4280,
28027,
6,
895,
834,
5525,
1152,
584,
4280,
28027,
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,
833,
834,
27769,
834,
7152,
6,
833,
834,
27769,
834,
235,
21680,
16423,
834,
6043,
7,
549,
17444,
427,
895,
834,
5525,
1152,
3274,
96,
2128,
3328,
3390,
4389,
4608,
4608,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded? | CREATE TABLE table_name_38 (extras INTEGER, name VARCHAR, runs_conceded VARCHAR) | SELECT AVG(extras) FROM table_name_38 WHERE name = "muttiah muralitharan" AND runs_conceded < 353 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
25666,
7,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
3154,
834,
11620,
221,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
25666,
7,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
564,
3274,
96,
51,
31944,
9,
107,
15848,
155,
14888,
29,
121,
3430,
3154,
834,
11620,
221,
26,
3,
2,
220,
4867,
1,
-100,
-100,
-100,... |
What is the mean number of against when the position is less than 1? | CREATE TABLE table_name_92 (against INTEGER, position INTEGER) | SELECT AVG(against) FROM table_name_92 WHERE position < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
1102,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1243,
381,
13,
581,
116,
8,
1102,
19,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1102,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is 2011, when 2010 is 'WTA Premier 5 Tournaments'? | CREATE TABLE table_name_49 (
Id VARCHAR
) | SELECT 2011 FROM table_name_49 WHERE 2010 = "wta premier 5 tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8558,
116,
2735,
19,
3,
31,
518,
3221,
6552,
305,
20502,
7,
31,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2722,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
2735,
3274,
96,
210,
17,
9,
2761,
305,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team does jan heylen race for? | CREATE TABLE table_name_35 (
team VARCHAR,
driver VARCHAR
) | SELECT team FROM table_name_35 WHERE driver = "jan heylen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
372,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
405,
3,
7066,
3,
13133,
40,
35,
1964,
21,
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,
372,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
2535,
3274,
96,
7066,
3,
13133,
40,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was featured in 20 questions on 4-03? | CREATE TABLE table_1566852_4 (
date VARCHAR
) | SELECT 20 AS _questions FROM table_1566852_4 WHERE date = "4-03" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
5373,
834,
591,
41,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
4510,
16,
460,
746,
30,
7769,
4928,
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,
460,
6157,
3,
834,
10952,
2865,
21680,
953,
834,
25463,
3651,
5373,
834,
591,
549,
17444,
427,
833,
3274,
96,
26814,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals? | CREATE TABLE table_name_35 (
extra_points INTEGER,
field_goals VARCHAR,
touchdowns VARCHAR,
player VARCHAR
) | SELECT AVG(extra_points) FROM table_name_35 WHERE touchdowns < 2 AND player = "herrnstein" AND field_goals < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
996,
834,
2700,
7,
3,
21342,
17966,
6,
1057,
834,
839,
5405,
584,
4280,
28027,
6,
19396,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
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,
71,
17217,
599,
25666,
834,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
19396,
7,
3,
2,
204,
3430,
1959,
3274,
96,
760,
52,
29,
4008,
121,
3430,
1057,
834,
839,
5405,
3,
2,
3,
632,
1,
-100,
... |
What is the area for Worth Parish? | CREATE TABLE table_name_22 (area__hectare_ VARCHAR, parish VARCHAR) | SELECT area__hectare_ FROM table_name_22 WHERE parish = "worth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
498,
834,
834,
17256,
834,
584,
4280,
28027,
6,
14961,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
616,
21,
16990,
21954,
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,
616,
834,
834,
17256,
834,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
14961,
3274,
96,
7048,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the ids of the students who registered for course 301? | CREATE TABLE addresses (
address_id number,
line_1 text,
line_2 text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE students (
student_id number,
student_details text
)
CREATE TABLE people (
person_id number,
first_name text,
midd... | SELECT student_id FROM student_course_attendance WHERE course_id = 301 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7181,
41,
1115,
834,
23,
26,
381,
6,
689,
834,
536,
1499,
6,
689,
834,
357,
1499,
6,
690,
1499,
6,
10658,
834,
5950,
4978,
1499,
6,
538,
834,
1409,
2494,
565,
834,
13362,
63,
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,
1236,
834,
23,
26,
21680,
1236,
834,
19221,
834,
15116,
663,
549,
17444,
427,
503,
834,
23,
26,
3274,
3,
25626,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Frequency has a Call sign of kcse? | CREATE TABLE table_6146 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"Watts" real,
"Class" text
) | SELECT "Frequency" FROM table_6146 WHERE "Call sign" = 'kcse' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
4448,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
518,
144,
17,
7,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
60,
835,
11298,
121,
21680,
953,
834,
4241,
4448,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
157,
75,
7,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was Turkey's lowest gold when there were less than 2 bronze? | CREATE TABLE table_48166 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Gold") FROM table_48166 WHERE "Nation" = 'turkey' AND "Bronze" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
26811,
41,
96,
22557,
121,
1499,
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,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23576,
8512,
21680,
953,
834,
3707,
26811,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
2905,
4397,
31,
3430,
96,
22780,
29,
776,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-10... |
When the % of boundary by water is 63% what is the overall number of zip code prefix(es)? | CREATE TABLE table_14253123_1 (
zip_code_prefix_es_ VARCHAR,
_percentage_of_boundary_by_water VARCHAR
) | SELECT COUNT(zip_code_prefix_es_) FROM table_14253123_1 WHERE _percentage_of_boundary_by_water = "63%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
4867,
14574,
834,
536,
41,
10658,
834,
4978,
834,
2026,
12304,
834,
15,
7,
834,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
858,
834,
6115,
1208,
834,
969,
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,
13453,
834,
4978,
834,
2026,
12304,
834,
15,
7,
834,
61,
21680,
953,
834,
24978,
4867,
14574,
834,
536,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
858,
834,
6115,
1208,
834,
969,
834,
3552,
3274... |
give me the number of patients whose primary disease is colangitis and age is less than 85? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COLANGITIS" AND demographic.age < "85" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
19617,
19775,
3177,
4555,
121,
3430,
14798,
5,
545,
3,
2,
96,
4433,
... |
What is Muzzle energy, when Cartridge is .375 remington ultra magnum? | CREATE TABLE table_name_24 (
muzzle_energy VARCHAR,
cartridge VARCHAR
) | SELECT muzzle_energy FROM table_name_24 WHERE cartridge = ".375 remington ultra magnum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
4035,
15133,
834,
24310,
584,
4280,
28027,
6,
16041,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4159,
15133,
827,
6,
116,
11533,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4035,
15133,
834,
24310,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
16041,
3274,
96,
5,
22954,
3,
60,
51,
6029,
6173,
6396,
5525,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many providers have a destination of Blackpool? | CREATE TABLE table_3005999_1 (
provider VARCHAR,
destination VARCHAR
) | SELECT COUNT(provider) FROM table_3005999_1 WHERE destination = "Blackpool" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
3390,
3264,
834,
536,
41,
3175,
584,
4280,
28027,
6,
3954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3580,
43,
3,
9,
3954,
13,
1589,
13194,
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,
29189,
52,
61,
21680,
953,
834,
5426,
3390,
3264,
834,
536,
549,
17444,
427,
3954,
3274,
96,
20096,
13194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose death status is 1 and diagnoses long title is asthma, unspecified type, unspecified? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.long_title = "Asthma, unspecified type, unspecified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the earliest year for the Ligier Gitanes? | CREATE TABLE table_68427 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT MIN("Year") FROM table_68427 WHERE "Entrant" = 'ligier gitanes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
591,
2555,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
476,
2741,
8512,
21680,
953,
834,
3651,
591,
2555,
549,
17444,
427,
96,
16924,
3569,
121,
3274,
3,
31,
2825,
972,
3,
12651,
9,
1496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Australian National Kennel Council Toy Dogs Group with papillon as the Kennel Club breed? | CREATE TABLE table_name_98 (
australian_national_kennel_council_toy_dogs_group VARCHAR,
the_kennel_club__uk__toy_group VARCHAR
) | SELECT australian_national_kennel_council_toy_dogs_group FROM table_name_98 WHERE the_kennel_club__uk__toy_group = "papillon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
23407,
29,
834,
16557,
834,
9376,
15,
40,
834,
509,
15254,
40,
834,
235,
63,
834,
10169,
7,
834,
10739,
584,
4280,
28027,
6,
8,
834,
9376,
15,
40,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
23407,
29,
834,
16557,
834,
9376,
15,
40,
834,
509,
15254,
40,
834,
235,
63,
834,
10169,
7,
834,
10739,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
8,
834,
9376,
15,
40,
834,
13442,
834,
834,
1598,
834,
834... |
What is the district that has Bob Wilson as an incumbent? | CREATE TABLE table_1341663_6 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1341663_6 WHERE incumbent = "Bob Wilson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
948,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3939,
24,
65,
5762,
9439,
38,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2938,
3891,
834,
948,
549,
17444,
427,
28406,
3274,
96,
279,
32,
115,
9439,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which school of club team has a pick of 46? | CREATE TABLE table_35170 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_35170 WHERE "Pick" = '46' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
536,
2518,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
87,
254,
11158,
2271,
121,
21680,
953,
834,
2469,
536,
2518,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
4448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
when was the last test performed since 12/2105 in the lab on patient 016-27397? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
ic... | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-27397')) AND STRFTIME('%y-%m', lab.labresulttime) >= '2105-12' ORDER BY lab.lab... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7690,
5,
9339,
60,
7,
83,
17,
715,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1587... |
what is the number of multiplayer browser games released in 2003 ? | CREATE TABLE table_204_700 (
id number,
"name" text,
"developer" text,
"release" text,
"type" text,
"game flow" text,
"setting" text
) | SELECT COUNT(*) FROM table_204_700 WHERE "release" = 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
9295,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
29916,
49,
121,
1499,
6,
96,
21019,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
7261,
2537,
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,
1935,
61,
21680,
953,
834,
26363,
834,
9295,
549,
17444,
427,
96,
21019,
121,
3274,
3888,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which institutions primary conference is merged into the university of Massachusetts boston? | CREATE TABLE table_261927_2 (
institution VARCHAR,
primary_conference VARCHAR
) | SELECT institution FROM table_261927_2 WHERE primary_conference = "Merged into the University of Massachusetts Boston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
2555,
834,
357,
41,
6568,
584,
4280,
28027,
6,
2329,
834,
28496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4222,
2329,
2542,
19,
3,
21726,
139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6568,
21680,
953,
834,
2688,
2294,
2555,
834,
357,
549,
17444,
427,
2329,
834,
28496,
3274,
96,
329,
49,
5402,
139,
8,
636,
13,
9777,
5053,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the EU status of ESP? | CREATE TABLE table_13770460_3 (
eu VARCHAR,
country VARCHAR
) | SELECT eu FROM table_13770460_3 WHERE country = "ESp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
2518,
25991,
834,
519,
41,
3,
15,
76,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3371,
2637,
13,
3,
26130,
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,
3,
15,
76,
21680,
953,
834,
24636,
2518,
25991,
834,
519,
549,
17444,
427,
684,
3274,
96,
3205,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many viewers in millions watched the episode 23:55 minutes long? | CREATE TABLE table_1849243_1 (
viewers__in_millions_ VARCHAR,
run_time VARCHAR
) | SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3647,
27730,
834,
536,
41,
13569,
834,
834,
77,
834,
17030,
7,
834,
584,
4280,
28027,
6,
661,
834,
715,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13569,
834,
834,
77,
834,
17030,
7,
834,
21680,
953,
834,
2606,
3647,
27730,
834,
536,
549,
17444,
427,
661,
834,
715,
3274,
96,
2773,
10,
3769,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Round has a Rally HQ of salou? | CREATE TABLE table_name_80 (round INTEGER, rally_hq VARCHAR) | SELECT MIN(round) FROM table_name_80 WHERE rally_hq = "salou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
7775,
3,
21342,
17966,
6,
13980,
834,
107,
1824,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,
9,
391,
1427,
3,
21447,
13,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
13980,
834,
107,
1824,
3274,
96,
7,
138,
1063,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the episode that aired originally on November 10, 1998? | CREATE TABLE table_25510 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | SELECT "Title" FROM table_25510 WHERE "Original air date" = 'November 10, 1998' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
1714,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
25502,
1714,
549,
17444,
427,
96,
667,
3380,
10270,
799,
833,
121,
3274,
3,
31,
28635,
10372,
6260,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Branding of the Metro Manila Frequency with a Callsign of DWBL? | CREATE TABLE table_name_19 (branding VARCHAR, location VARCHAR, callsign VARCHAR) | SELECT branding FROM table_name_19 WHERE location = "metro manila" AND callsign = "dwbl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
12164,
53,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4688,
53,
13,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14282,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1128,
3274,
96,
51,
15252,
388,
173,
9,
121,
3430,
580,
6732,
3274,
96,
26,
210,
115,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the highest bosniaks for year more than 2002 | CREATE TABLE table_name_8 (
bosniaks INTEGER,
census_year INTEGER
) | SELECT MAX(bosniaks) FROM table_name_8 WHERE census_year > 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
3005,
7,
29,
23,
1639,
7,
3,
21342,
17966,
6,
23087,
834,
1201,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
2030,
3005,
7,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
115,
32,
7,
29,
23,
1639,
7,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
23087,
834,
1201,
2490,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which European has a Play-Off of relegated? | CREATE TABLE table_6066 (
"Year" text,
"League" text,
"Season" text,
"Play-Off" text,
"Baltic" text,
"Events" text,
"European" text
) | SELECT "European" FROM table_6066 WHERE "Play-Off" = 'relegated' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3539,
41,
96,
476,
2741,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
15800,
18,
21265,
121,
1499,
6,
96,
279,
138,
1225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11351,
152,
121,
21680,
953,
834,
3328,
3539,
549,
17444,
427,
96,
15800,
18,
21265,
121,
3274,
3,
31,
60,
8791,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the dominant religion 2002 for меленци | CREATE TABLE table_2562572_35 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR) | SELECT dominant_religion__2002_ FROM table_2562572_35 WHERE cyrillic_name_other_names = "Меленци" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
2469,
41,
5012,
77,
288,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
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,
12613,
834,
60,
2825,
23,
106,
834,
834,
24898,
834,
21680,
953,
834,
19337,
1828,
5865,
834,
2469,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
1757,
19229,
7184,
2,... |
What week had a game that was played on November 11, 1962? | CREATE TABLE table_48694 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Week") FROM table_48694 WHERE "Date" = 'november 11, 1962' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3951,
591,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3707,
3951,
591,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
9694,
20236,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the End Source from the Hartlepool United Loan Club? | CREATE TABLE table_name_51 (
end_source VARCHAR,
loan_club VARCHAR
) | SELECT end_source FROM table_name_51 WHERE loan_club = "hartlepool united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
414,
834,
7928,
584,
4280,
28027,
6,
2289,
834,
13442,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3720,
9149,
45,
8,
10498,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
414,
834,
7928,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2289,
834,
13442,
3274,
96,
13626,
109,
13194,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the last time patient 028-40370 was discharged from the hospital since 2104? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid num... | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '028-40370' AND STRFTIME('%y', patient.hospitaldischargetime) >= '2104' ORDER BY patient.hospitaldischargetime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
26,
159,
7993,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2577,
15862,
22520,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
31386,
26,
159... |
Show the name and age for all male people who don't have a wedding. | CREATE TABLE wedding (
name VARCHAR,
age VARCHAR,
is_male VARCHAR,
people_id VARCHAR,
male_id VARCHAR
)
CREATE TABLE people (
name VARCHAR,
age VARCHAR,
is_male VARCHAR,
people_id VARCHAR,
male_id VARCHAR
) | SELECT name, age FROM people WHERE is_male = 'T' AND NOT people_id IN (SELECT male_id FROM wedding) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1683,
41,
564,
584,
4280,
28027,
6,
1246,
584,
4280,
28027,
6,
19,
834,
13513,
584,
4280,
28027,
6,
151,
834,
23,
26,
584,
4280,
28027,
6,
5069,
834,
23,
26,
584,
4280,
28027,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
1246,
21680,
151,
549,
17444,
427,
19,
834,
13513,
3274,
3,
31,
382,
31,
3430,
4486,
151,
834,
23,
26,
3388,
41,
23143,
14196,
5069,
834,
23,
26,
21680,
1683,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the away team's score at the game held at MCG? | CREATE TABLE table_name_44 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_44 WHERE venue = "mcg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
31,
7,
2604,
44,
8,
467,
1213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
5669,
3274,
96,
51,
75,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Venue has a Year of 1911? | CREATE TABLE table_name_60 (venue VARCHAR, year VARCHAR) | SELECT venue FROM table_name_60 WHERE year = 1911 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
15098,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
29940,
65,
3,
9,
2929,
13,
28623,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
215,
3274,
28623,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average prom (m) when the height (m) is more than 733, the class is Hewitt, and the peak is Kirk Fell East Top? | CREATE TABLE table_name_75 (prom__m_ INTEGER, peak VARCHAR, height__m_ VARCHAR, class VARCHAR) | SELECT AVG(prom__m_) FROM table_name_75 WHERE height__m_ > 733 AND class = "hewitt" AND peak = "kirk fell east top" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
1409,
51,
834,
834,
51,
834,
3,
21342,
17966,
6,
6734,
584,
4280,
28027,
6,
3902,
834,
834,
51,
834,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
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,
71,
17217,
599,
1409,
51,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3902,
834,
834,
51,
834,
2490,
489,
4201,
3430,
853,
3274,
96,
88,
7820,
17,
121,
3430,
6734,
3274,
96,
157,
1254... |
Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000? | CREATE TABLE job_history (
employee_id VARCHAR
)
CREATE TABLE employees (
employee_id VARCHAR,
salary VARCHAR
) | SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
3490,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
3490,
834,
23,
26,
584,
4280,
28027,
6,
9090,
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,
1429,
21680,
613,
834,
10193,
10972,
6157,
332,
536,
3,
15355,
3162,
1652,
6157,
332,
357,
9191,
332,
5411,
15,
51,
7379,
63,
15,
15,
834,
23,
26,
3274,
332,
4416,
15,
51,
7379,
63,
15,
15,
834,
23,
26,
549,
174... |
In what year was The House of Blue Leaves nominated for outstanding actress in a play? | CREATE TABLE table_name_62 (year INTEGER, nominated_work VARCHAR, category VARCHAR) | SELECT SUM(year) FROM table_name_62 WHERE nominated_work = "the house of blue leaves" AND category = "outstanding actress in a play" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
1201,
3,
21342,
17966,
6,
150,
1109,
920,
834,
1981,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
150,
1109,
920,
834,
1981,
3274,
96,
532,
629,
13,
1692,
3231,
121,
3430,
3295,
3274,
96,
670,
11018,
15676,
16,
3,
9,
577,
121,
1,
-100... |
On what date was the total 25 45? | CREATE TABLE table_name_50 (
date VARCHAR,
total VARCHAR
) | SELECT date FROM table_name_50 WHERE total = "25–45" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
833,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
792,
944,
3479,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
792,
3274,
96,
1828,
104,
2128,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many games did they play on january 11? | CREATE TABLE table_30065 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Location Attendance") FROM table_30065 WHERE "Date" = 'January 11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
4122,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
32,
75,
257,
22497,
663,
8512,
21680,
953,
834,
5426,
4122,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
850,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the time/retired for brm with a grid of 13? | CREATE TABLE table_77819 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_77819 WHERE "Constructor" = 'brm' AND "Grid" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3940,
2294,
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,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
940,
3940,
2294,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
115,
52,
51,
31,
3430,
96,
13313,
26,
121,
3274,
3,
31,
2368,
31,
1,
-100,
-100,
-10... |
What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0? | CREATE TABLE table_name_3 (
qualifying_goals INTEGER,
player VARCHAR,
finals_goals VARCHAR
) | SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = "jack froggatt" AND finals_goals > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
18002,
834,
839,
5405,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
804,
7,
834,
839,
5405,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11433,
8587,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1959,
3274,
96,
9325,
3,
89,
3822,
5497,
17,
121,
3430,
804,
7,
834,
839,
5405,
2490,
3,
632,
1,
-100,
-100,
-100,... |
What is the number of the belarusian language? | CREATE TABLE table_name_11 (number VARCHAR, language VARCHAR) | SELECT number FROM table_name_11 WHERE language = "belarusian" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
5525,
1152,
584,
4280,
28027,
6,
1612,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
8,
36,
521,
4502,
23,
152,
1612,
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,
381,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
1612,
3274,
96,
2370,
291,
76,
10488,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Res., when Event is 'KOTC 11 - Domination'? | CREATE TABLE table_45362 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
) | SELECT "Res." FROM table_45362 WHERE "Event" = 'kotc 11 - domination' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3420,
357,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
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,
1649,
7,
535,
21680,
953,
834,
2128,
3420,
357,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
15414,
75,
850,
3,
18,
103,
14484,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Location for the route 66 raceway? | CREATE TABLE table_35743 (
"Name" text,
"Location" text,
"State" text,
"Opened (closing date if defunct)" text,
"Surface" text,
"Length" text
) | SELECT "Location" FROM table_35743 WHERE "Name" = 'route 66 raceway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4581,
519,
41,
96,
23954,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
22696,
15,
26,
41,
3903,
7,
53,
833,
3,
99,
20,
253... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
2469,
4581,
519,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
20300,
3,
3539,
1964,
1343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the entered office that has 1337 as the left office? | CREATE TABLE table_name_74 (
entered_office VARCHAR,
left_office VARCHAR
) | SELECT entered_office FROM table_name_74 WHERE left_office = "1337" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5136,
834,
19632,
584,
4280,
28027,
6,
646,
834,
19632,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5136,
828,
24,
65,
1179,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5136,
834,
19632,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
646,
834,
19632,
3274,
96,
2368,
4118,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mean q > 1 with a q > 1.2 less than 3,028, and a q > 1.4 of 51, and a q > 1.05 greater than 18,233? | CREATE TABLE table_44421 (
"q > 1" real,
"q > 1.05" real,
"q > 1.1" real,
"q > 1.2" real,
"q > 1.3" real,
"q > 1.4" real
) | SELECT AVG("q > 1") FROM table_44421 WHERE "q > 1.2" < '3,028' AND "q > 1.4" = '51' AND "q > 1.05" > '18,233' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3628,
2658,
41,
96,
1824,
2490,
209,
121,
490,
6,
96,
1824,
2490,
3,
12734,
17395,
490,
6,
96,
1824,
2490,
3,
11039,
121,
490,
6,
96,
1824,
2490,
3,
10917,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
1824,
2490,
209,
8512,
21680,
953,
834,
591,
3628,
2658,
549,
17444,
427,
96,
1824,
2490,
3,
10917,
121,
3,
2,
3,
31,
6355,
632,
2577,
31,
3430,
96,
1824,
2490,
3,
14912,
121,
3274,
3,
31,
5... |
Who had a 33-30-8 record at home? | CREATE TABLE table_name_99 (
home VARCHAR,
record VARCHAR
) | SELECT home FROM table_name_99 WHERE record = "33-30-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
234,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
3,
9,
5400,
10086,
6039,
1368,
44,
234,
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,
234,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1368,
3274,
96,
4201,
10086,
6039,
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 score when the game is higher than 66 on march 28? | CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR, march VARCHAR) | SELECT score FROM table_name_82 WHERE game > 66 AND march = 28 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
7,
9022,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
10556,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2604,
116,
8,
467,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
467,
2490,
3,
3539,
3430,
10556,
3274,
2059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Runner-Up has a Last 16 of 300? | CREATE TABLE table_37400 (
"Year" text,
"Winner" text,
"Runner-Up" text,
"Semi-Finalists" text,
"Quarter-Finalists" text,
"Last 16" text,
"Last 32" text,
"Last 64" text,
"Total" text
) | SELECT "Runner-Up" FROM table_37400 WHERE "Last 16" = '£300' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
5548,
41,
96,
476,
2741,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
11161,
121,
1499,
6,
96,
134,
15,
51,
23,
18,
371,
10270,
343,
7,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23572,
18,
11161,
121,
21680,
953,
834,
4118,
5548,
549,
17444,
427,
96,
3612,
7,
17,
898,
121,
3274,
3,
31,
19853,
5426,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the low lap total for a grid of 14? | CREATE TABLE table_name_12 (
laps INTEGER,
grid VARCHAR
) | SELECT MIN(laps) FROM table_name_12 WHERE grid = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
731,
14941,
792,
21,
3,
9,
8634,
13,
968,
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,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
8634,
3274,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has a Week smaller than 11, and a Attendance of 54,094? | CREATE TABLE table_name_17 (date VARCHAR, week VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_17 WHERE week < 11 AND attendance = "54,094" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
6551,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
471,
3,
2,
850,
3430,
11364,
3274,
96,
5062,
6,
4198,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Year that has an Album of Remixes? | CREATE TABLE table_name_52 (
year INTEGER,
album VARCHAR
) | SELECT SUM(year) FROM table_name_52 WHERE album = "remixes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
215,
3,
21342,
17966,
6,
2306,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
2929,
24,
65,
46,
16135,
13,
419,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2306,
3274,
96,
60,
13682,
15,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.