NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181? | CREATE TABLE table_70546 (
"Production year" text,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
) | SELECT SUM("2006") FROM table_70546 WHERE "2011" > '4113' AND "2008" < '7181' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
755,
4448,
41,
96,
3174,
8291,
215,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21196,
8512,
21680,
953,
834,
2518,
755,
4448,
549,
17444,
427,
96,
13907,
121,
2490,
3,
31,
4853,
2368,
31,
3430,
96,
16128,
121,
3,
2,
3,
31,
4450,
4959,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
How many vehicle theft data were recorded for a year with a population of 4465430? | CREATE TABLE table_26060884_2 (
vehicle_theft VARCHAR,
population VARCHAR
) | SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE population = 4465430 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
3328,
4060,
591,
834,
357,
41,
1689,
834,
17,
20250,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1689,
14806,
331,
130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
162,
107,
23,
2482,
834,
17,
20250,
61,
21680,
953,
834,
18365,
3328,
4060,
591,
834,
357,
549,
17444,
427,
2074,
3274,
8537,
4122,
25449,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which week had safe as the result and Dolly Parton as the theme? | CREATE TABLE table_40291 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" real,
"Result" text
) | SELECT "Week #" FROM table_40291 WHERE "Result" = 'safe' AND "Theme" = 'dolly parton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
357,
4729,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10266,
1713,
121,
21680,
953,
834,
2445,
357,
4729,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
15233,
31,
3430,
96,
634,
526,
121,
3274,
3,
31,
26,
32,
6073,
294,
106,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the -500 number for Theo Bos? | CREATE TABLE table_1912276_2 (
__500m VARCHAR,
name VARCHAR
) | SELECT __500m FROM table_1912276_2 WHERE name = "Theo Bos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
20889,
3959,
834,
357,
41,
3,
834,
834,
2560,
51,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
18,
2560,
381,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
834,
834,
2560,
51,
21680,
953,
834,
2294,
20889,
3959,
834,
357,
549,
17444,
427,
564,
3274,
96,
634,
32,
1491,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what did seth produce next , after cry wolf ? | CREATE TABLE table_204_228 (
id number,
"year" number,
"title" text,
"credit" text,
"role" text,
"notes" text
) | SELECT "title" FROM table_204_228 WHERE "year" > (SELECT "year" FROM table_204_228 WHERE "title" = 'cry_wolf') ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
2577,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
15547,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
7977,
7,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
26363,
834,
357,
2577,
549,
17444,
427,
96,
1201,
121,
2490,
41,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
357,
2577,
549,
17444,
427,
96,
21869,
121,
3274,
3,
31,
75... |
What is the release price for the GPU frequency of standard power, embedded? | CREATE TABLE table_64274 (
"Model number" text,
"sSpec number" text,
"Cores" text,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s)" text,
... | SELECT "Release price ( USD )" FROM table_64274 WHERE "GPU frequency" = 'standard power, embedded' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
2555,
591,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
254,
14846,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
382,
450,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
40,
14608,
594,
41,
9513,
3,
61,
121,
21680,
953,
834,
4389,
2555,
591,
549,
17444,
427,
96,
517,
10744,
7321,
121,
3274,
3,
31,
16020,
579,
6,
13612,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees who did not have any job in the past, for manager_id, hire_date, visualize the trend, and sort by the X in ascending. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID... | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680,
613,
834,
1... |
which film came directly after aaha ? | CREATE TABLE table_203_393 (
id number,
"year" number,
"film" text,
"director" text,
"cast" text,
"details" text
) | SELECT "film" FROM table_203_393 WHERE id = (SELECT id FROM table_203_393 WHERE "film" = 'aaha') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3288,
519,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
9988,
121,
1499,
6,
96,
25982,
121,
1499,
6,
96,
5254,
121,
1499,
6,
96,
221,
5756,
7,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9988,
121,
21680,
953,
834,
23330,
834,
3288,
519,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
3288,
519,
549,
17444,
427,
96,
9988,
121,
3274,
3,
31,
9,
9,
10... |
What are all classes for the position SLB? | CREATE TABLE table_19447 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
) | SELECT "Class" FROM table_19447 WHERE "Position" = 'SLB' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
591,
4177,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
1326,
2632,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
2294,
591,
4177,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
5629,
279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients had the diagnosis short title cardiac arrest with a main drug type? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Cardiac arrest" AND prescriptions.drug_type = "MAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which school's nationality was United States when its pick was 595? | CREATE TABLE table_name_65 (school VARCHAR, nationality VARCHAR, pick VARCHAR) | SELECT school FROM table_name_65 WHERE nationality = "united states" AND pick = "595" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
6646,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
496,
31,
7,
1157,
485,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1432,
3274,
96,
3390,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the BBI for the bowler whose average is 24.50? | CREATE TABLE table_27922491_20 (
bbi VARCHAR,
average VARCHAR
) | SELECT bbi FROM table_27922491_20 WHERE average = "24.50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4508,
2266,
4729,
834,
1755,
41,
3,
115,
115,
23,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
272,
5972,
21,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
115,
115,
23,
21680,
953,
834,
2555,
4508,
2266,
4729,
834,
1755,
549,
17444,
427,
1348,
3274,
96,
2266,
5,
1752,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the player with the PBA team of Barangay Ginebra Kings? | CREATE TABLE table_name_11 (
player VARCHAR,
pba_team VARCHAR
) | SELECT player FROM table_name_11 WHERE pba_team = "barangay ginebra kings" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
1959,
584,
4280,
28027,
6,
3,
102,
115,
9,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1959,
28,
8,
276,
4882,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
3,
102,
115,
9,
834,
11650,
3274,
96,
1047,
1468,
9,
63,
3,
122,
630,
1939,
3,
1765,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the sum of rank with wins of 17 | CREATE TABLE table_name_6 (
rank INTEGER,
wins VARCHAR
) | SELECT SUM(rank) FROM table_name_6 WHERE wins = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
11003,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
4505,
13,
11003,
28,
9204,
13,
1003,
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,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
9204,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 17 is the number in series who is the director? | CREATE TABLE table_2409041_2 (
directed_by VARCHAR,
no_in_series VARCHAR
) | SELECT directed_by FROM table_2409041_2 WHERE no_in_series = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
2394,
4853,
834,
357,
41,
6640,
834,
969,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
1003,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
11944,
2394,
4853,
834,
357,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has a Location of davos, and a Time of 45.7? | CREATE TABLE table_8103 (
"Distance" text,
"Time" text,
"Date" text,
"Location" text,
"Notes" text
) | SELECT "Date" FROM table_8103 WHERE "Location" = 'davos' AND "Time" = '45.7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
927,
17864,
41,
96,
308,
23,
8389,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
927,
17864,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
26,
9,
1621,
7,
31,
3430,
96,
13368,
121,
3274,
3,
31,
591,
27220,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What band has a year above 2011? | CREATE TABLE table_name_75 (
band VARCHAR,
year INTEGER
) | SELECT band FROM table_name_75 WHERE year > 2011 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
1928,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1928,
65,
3,
9,
215,
756,
2722,
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,
1928,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
215,
2490,
2722,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the total number of years that frederik beichmann was a deputy judge ? | CREATE TABLE table_204_301 (
id number,
"nationality" text,
"name" text,
"term as a deputy judge" text,
"reason for termination" text
) | SELECT "term as a deputy judge" - "term as a deputy judge" FROM table_204_301 WHERE "name" = 'frederik beichmann' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25626,
41,
3,
23,
26,
381,
6,
96,
16557,
485,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
1987,
38,
3,
9,
21108,
5191,
121,
1499,
6,
96,
864,
739,
21,
18739,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1987,
38,
3,
9,
21108,
5191,
121,
3,
18,
96,
1987,
38,
3,
9,
21108,
5191,
121,
21680,
953,
834,
26363,
834,
25626,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
89,
1271,
15,
9629,
36,
362,
2434,
31,
1,
-10... |
What are all the .308 Winchester cartridge types with 38 for the 300 m group (mm) | CREATE TABLE table_17497 (
".308 Winchester cartridge type" text,
"100 m group (mm)" text,
"100 m group ( MOA )" text,
"300 m group (mm)" text,
"300 m group ( MOA )" text
) | SELECT ".308 Winchester cartridge type" FROM table_17497 WHERE "300 m group (mm)" = '38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
4327,
41,
96,
5,
1458,
927,
4871,
13263,
16041,
686,
121,
1499,
6,
96,
2915,
3,
51,
563,
41,
635,
61,
121,
1499,
6,
96,
2915,
3,
51,
563,
41,
7109,
188,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5,
1458,
927,
4871,
13263,
16041,
686,
121,
21680,
953,
834,
27693,
4327,
549,
17444,
427,
96,
5426,
3,
51,
563,
41,
635,
61,
121,
3274,
3,
31,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony? | CREATE TABLE table_name_69 (interregnum_ended VARCHAR, count_palatine_of_saxony VARCHAR) | SELECT interregnum_ended FROM table_name_69 WHERE count_palatine_of_saxony = "john george ii, elector of saxony" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
3870,
60,
122,
5525,
834,
14550,
584,
4280,
28027,
6,
3476,
834,
13878,
4070,
834,
858,
834,
7,
9,
226,
106,
63,
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,
1413,
60,
122,
5525,
834,
14550,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
3476,
834,
13878,
4070,
834,
858,
834,
7,
9,
226,
106,
63,
3274,
96,
27341,
873,
1677,
15,
3,
23,
23,
6,
11924,
127,
13,
3,
7,
... |
What is the name and salary of the employee with the id 242518965? | CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE aircraft (
aid number,
name text,
di... | SELECT name, salary FROM employee WHERE eid = 242518965 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
32,
381,
6,
5233,
1499,
6,
3954,
1499,
6,
2357,
381,
6,
12028,
834,
5522,
97,
6,
6870,
834,
5522,
97,
6,
594,
381,
6,
3052,
381,
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,
564,
6,
9090,
21680,
3490,
549,
17444,
427,
3,
15,
23,
26,
3274,
997,
1828,
25312,
4122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider? | CREATE TABLE table_name_96 (winning_driver VARCHAR, fastest_lap VARCHAR, winning_team VARCHAR, round VARCHAR) | SELECT winning_driver FROM table_name_96 WHERE winning_team = "opel team holzer 1" AND round < 9 AND fastest_lap = "bernd schneider" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3447,
834,
11650,
3274,
96,
32,
4343,
372,
3,
13085,
49,
209,
121,
3430,
1751,
3,
2,
668,
3430,
10391,
834,
8478,
3274,
96,
1152,
727,
3,
28... |
How many attended the game at Arden Street Oval? | CREATE TABLE table_78237 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_78237 WHERE "Venue" = 'arden street oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
357,
4118,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
3940,
357,
4118,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
986,
35,
2815,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What body styles have devaux-hall inline 6 as the engine? | CREATE TABLE table_name_9 (body_styles VARCHAR, engine VARCHAR) | SELECT body_styles FROM table_name_9 WHERE engine = "devaux-hall inline 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
6965,
834,
4084,
7,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
643,
4634,
43,
20,
208,
1724,
18,
11516,
16,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
643,
834,
4084,
7,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1948,
3274,
96,
9776,
1724,
18,
11516,
16,
747,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location of the 200m backstroke? | CREATE TABLE table_name_75 (location VARCHAR, event VARCHAR) | SELECT location FROM table_name_75 WHERE event = "200m backstroke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
14836,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
2382,
51,
223,
24790,
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,
1128,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
605,
3274,
96,
3632,
51,
223,
24790,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the first year in the competition? | CREATE TABLE table_22773 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT MIN("Year") FROM table_22773 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2555,
4552,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
2555,
4552,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the task number on January 22, 2010 (day 111)? | CREATE TABLE table_name_94 (task_no INTEGER, date_given VARCHAR) | SELECT MAX(task_no) FROM table_name_94 WHERE date_given = "january 22, 2010 (day 111)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
23615,
834,
29,
32,
3,
21342,
17966,
6,
833,
834,
17935,
29,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2491,
381,
30,
1762,
1288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
23615,
834,
29,
32,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
833,
834,
17935,
29,
3274,
96,
7066,
76,
1208,
12889,
2735,
41,
1135,
850,
6982,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of current patients whose age is in their 40s. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age BETWEEN 40 AND 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
3430,
1868,
5,
545,
272,
7969,
518,
23394,
1283,
3430,
9526,
1... |
Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives? | CREATE TABLE table_name_40 (
season INTEGER,
score VARCHAR,
venue VARCHAR
) | SELECT SUM(season) FROM table_name_40 WHERE score = "1:3" AND venue = "national stadium, maldives" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
774,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
47,
132,
3,
9,
467,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
9476,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2604,
3274,
96,
536,
10,
519,
121,
3430,
5669,
3274,
96,
16557,
14939,
6,
1460,
26,
8763,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many years was there a team that was part of the usisl pro league? | CREATE TABLE table_name_38 (
year VARCHAR,
league VARCHAR
) | SELECT COUNT(year) FROM table_name_38 WHERE league = "usisl pro league" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
215,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
47,
132,
3,
9,
372,
24,
47,
294,
13,
8,
178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
5533,
3274,
96,
302,
159,
40,
813,
5533,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the series # of 'tanarak'? | CREATE TABLE table_28141 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT MIN("Series #") FROM table_28141 WHERE "Title" = 'Tanarak' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
26059,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12106,
7,
1713,
8512,
21680,
953,
834,
2577,
26059,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
382,
152,
9,
9782,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the chassis for b. bira | CREATE TABLE table_28190534_1 (chassis VARCHAR, driver VARCHAR) | SELECT chassis FROM table_28190534_1 WHERE driver = "B. Bira" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2294,
3076,
3710,
834,
536,
41,
524,
6500,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
22836,
21,
3,
115,
5,
3,
8781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22836,
21680,
953,
834,
2577,
2294,
3076,
3710,
834,
536,
549,
17444,
427,
2535,
3274,
96,
279,
5,
10158,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What channel is Gladiators on? | CREATE TABLE table_name_19 (
new_channel_s_ VARCHAR,
programme VARCHAR
) | SELECT new_channel_s_ FROM table_name_19 WHERE programme = "gladiators" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
126,
834,
19778,
834,
7,
834,
584,
4280,
28027,
6,
2486,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4245,
19,
14240,
23,
6230,
30,
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,
126,
834,
19778,
834,
7,
834,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
2486,
3274,
96,
7002,
26,
23,
6230,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the portfolio of minister of carlo giovanardi | CREATE TABLE table_name_77 (portfolio VARCHAR, minister VARCHAR) | SELECT portfolio FROM table_name_77 WHERE minister = "carlo giovanardi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
1493,
8047,
32,
584,
4280,
28027,
6,
6323,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
4833,
13,
6323,
13,
443,
40,
32,
3,
10253... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4833,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
6323,
3274,
96,
1720,
40,
32,
3,
10253,
2132,
986,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average year for Wallenstein with 1a1 design? | CREATE TABLE table_15142 (
"Name" text,
"Design" text,
"Manufacturer" text,
"Acquired" real,
"Disposed" text
) | SELECT AVG("Acquired") FROM table_15142 WHERE "Design" = '1a1' AND "Name" = 'wallenstein' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
24978,
41,
96,
23954,
121,
1499,
6,
96,
19103,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
188,
75,
1169,
1271,
121,
490,
6,
96,
308,
159,
12151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
75,
1169,
1271,
8512,
21680,
953,
834,
1808,
24978,
549,
17444,
427,
96,
19103,
121,
3274,
3,
31,
536,
9,
536,
31,
3430,
96,
23954,
121,
3274,
3,
31,
10279,
20207,
31,
1,
-100,
-100,
-100... |
What was the date of the game at Princes Park? | CREATE TABLE table_10612 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_10612 WHERE "Venue" = 'princes park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
2122,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
16431,
2122,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
12298,
2319,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return me the keyword, which have been contained by the most number of papers in VLDB conference . | CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation... | SELECT keyword.keyword FROM conference, keyword, publication, publication_keyword WHERE conference.name = 'VLDB' AND publication_keyword.kid = keyword.kid AND publication.cid = conference.cid AND publication.pid = publication_keyword.pid GROUP BY keyword.keyword ORDER BY COUNT(DISTINCT (publication.title)) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
22844,
3,
4331,
4059,
6,
3,
354,
23,
26,
16,
17,
6,
564,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1470,
41,
10829,
3,
4331,
4059,
6,
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,
15693,
5,
4397,
6051,
21680,
2542,
6,
15693,
6,
5707,
6,
5707,
834,
4397,
6051,
549,
17444,
427,
2542,
5,
4350,
3274,
3,
31,
553,
9815,
279,
31,
3430,
5707,
834,
4397,
6051,
5,
2168,
26,
3274,
15693,
5,
2168,
26,
... |
What is the score of the Boston Bruins away game on March 13? | CREATE TABLE table_name_92 (score VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT score FROM table_name_92 WHERE visitor = "boston bruins" AND date = "march 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7,
9022,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
5053,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
7019,
3274,
96,
115,
32,
4411,
3,
115,
23162,
121,
3430,
833,
3274,
96,
51,
7064,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Player has a Hc Cska Moscow (Russia)? | CREATE TABLE table_39455 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "Player" FROM table_39455 WHERE "College/Junior/Club Team (League)" = 'hc cska moscow (russia)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
2128,
755,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3288,
2128,
755,
549,
17444,
427,
96,
9939,
7883,
87,
683,
202,
23,
127,
87,
254,
11158,
2271,
41,
2796,
9,
5398,
61,
121,
3274,
3,
31,
107,
75,
3,
75,
10717,
2288,
3523,
210... |
Show me salary by last name in a histogram, list y axis in asc order. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... | SELECT LAST_NAME, SALARY FROM employees ORDER BY SALARY | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
301,
12510,
834,
567,
17683,
6,
180,
4090,
24721,
21680,
1652,
4674,
11300,
272,
476,
180,
4090,
24721,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007? | CREATE TABLE table_name_56 (
poles INTEGER,
series VARCHAR,
season VARCHAR
) | SELECT MAX(poles) FROM table_name_56 WHERE series = "ginetta championship" AND season < 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
11148,
7,
3,
21342,
17966,
6,
939,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
19418,
7,
6,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
14332,
7,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
939,
3274,
96,
122,
77,
10669,
10183,
121,
3430,
774,
3,
2,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of each winning aircraft? Visualize by bar chart, sort by the Aircraft in ascending. | CREATE TABLE airport_aircraft (
ID int,
Airport_ID int,
Aircraft_ID int
)
CREATE TABLE airport (
Airport_ID int,
Airport_Name text,
Total_Passengers real,
%_Change_2007 text,
International_Passengers real,
Domestic_Passengers real,
Transit_Passengers real,
Aircraft_Movements... | SELECT Aircraft, COUNT(Aircraft) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY Aircraft ORDER BY Aircraft | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
834,
2256,
6696,
41,
4699,
16,
17,
6,
5735,
834,
4309,
16,
17,
6,
1761,
6696,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
5735,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1761,
6696,
6,
2847,
17161,
599,
20162,
6696,
61,
21680,
6442,
6157,
332,
536,
3,
15355,
3162,
1588,
6157,
332,
357,
9191,
332,
5411,
20162,
6696,
834,
4309,
3274,
332,
4416,
518,
10503,
834,
20162,
6696,
350,
4630,
6... |
How many games did the player with 3-dart average of 66.86 play? | CREATE TABLE table_23664 (
"Player" text,
"Played" real,
"Sets Won" real,
"Sets Lost" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
) | SELECT "Played" FROM table_23664 WHERE "3-dart Average" = '66.86' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
4389,
41,
96,
15800,
49,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
17175,
7,
549,
106,
121,
490,
6,
96,
17175,
7,
19576,
121,
490,
6,
96,
2796,
122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
15,
26,
121,
21680,
953,
834,
357,
3420,
4389,
549,
17444,
427,
96,
519,
18,
26,
1408,
23836,
121,
3274,
3,
31,
3539,
5,
3840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the distance for the team time trial? | CREATE TABLE table_name_26 (
distance VARCHAR,
type VARCHAR
) | SELECT distance FROM table_name_26 WHERE type = "team time trial" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
2357,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2357,
21,
8,
372,
97,
3689,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2357,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
686,
3274,
96,
11650,
97,
3689,
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 To par of St Andrews before the year 1888? | CREATE TABLE table_13963 (
"Year" real,
"Country" text,
"Course" text,
"Location" text,
"Total score" text,
"To par [a ]" text
) | SELECT "To par [a ]" FROM table_13963 WHERE "Course" = 'st andrews' AND "Year" < '1888' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
3891,
41,
96,
476,
2741,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
3696,
1947,
2604,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
260,
784,
9,
3,
908,
121,
21680,
953,
834,
24090,
3891,
549,
17444,
427,
96,
3881,
3589,
15,
121,
3274,
3,
31,
7,
17,
11,
60,
210,
7,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
536,
10927,
31,
1,
... |
what artist has a book called cyberella | CREATE TABLE table_name_80 (
artist_s_ VARCHAR,
book_title VARCHAR
) | SELECT artist_s_ FROM table_name_80 WHERE book_title = "cyberella" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
2377,
834,
7,
834,
584,
4280,
28027,
6,
484,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
2377,
65,
3,
9,
484,
718,
9738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2377,
834,
7,
834,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
484,
834,
21869,
3274,
96,
75,
63,
1152,
5303,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of podiums before 2008 with a 5th position and more than 0 f/laps? | CREATE TABLE table_name_62 (podiums INTEGER, f_laps VARCHAR, season VARCHAR, position VARCHAR) | SELECT MAX(podiums) FROM table_name_62 WHERE season < 2008 AND position = "5th" AND f_laps > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
11410,
2552,
7,
3,
21342,
17966,
6,
3,
89,
834,
8478,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1102,
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,
4800,
4,
599,
11410,
2552,
7,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
774,
3,
2,
2628,
3430,
1102,
3274,
96,
755,
189,
121,
3430,
3,
89,
834,
8478,
7,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100... |
what's the deadline for completion where description is iphone recall within the first 3 months of release | CREATE TABLE table_12078626_1 (deadline_for_completion VARCHAR, description VARCHAR) | SELECT deadline_for_completion FROM table_12078626_1 WHERE description = "iPhone recall within the first 3 months of release" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4560,
3840,
2688,
834,
536,
41,
221,
9,
26,
747,
834,
1161,
834,
7699,
109,
1575,
584,
4280,
28027,
6,
4210,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
7183,
834,
1161,
834,
7699,
109,
1575,
21680,
953,
834,
2122,
4560,
3840,
2688,
834,
536,
549,
17444,
427,
4210,
3274,
96,
23,
345,
107,
782,
7881,
441,
8,
166,
220,
767,
13,
1576,
121,
1,
-100,
-100,
-100,
-100,
... |
What race did the team Mi-Jack Conquest racing win with a pole position of andreas wirth? | CREATE TABLE table_name_16 (
race_name VARCHAR,
winning_team VARCHAR,
pole_position VARCHAR
) | SELECT race_name FROM table_name_16 WHERE winning_team = "mi-jack conquest racing" AND pole_position = "andreas wirth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1964,
834,
4350,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
6,
11148,
834,
4718,
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,
1964,
834,
4350,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3447,
834,
11650,
3274,
96,
51,
23,
18,
9325,
975,
10952,
8191,
121,
3430,
11148,
834,
4718,
3274,
96,
232,
864,
7,
558,
189,
121,
1,
-100,
-100,
... |
symptomatic hypotension or hypertension ( supine diastolic blood pressure > 95 mmhg ) ( in the judgment of the investigator ) | CREATE TABLE table_train_118 (
"id" int,
"hypocalcemia" bool,
"heart_disease" bool,
"renal_disease" bool,
"fibrinogen" float,
"diastolic_blood_pressure_dbp" int,
"symptomatic_hypotension" bool,
"serum_creatinine" float,
"ca" float,
"hypertension" bool,
"NOUSE" float
) | SELECT * FROM table_train_118 WHERE symptomatic_hypotension = 1 OR (hypertension = 1 OR diastolic_blood_pressure_dbp > 95) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
20056,
41,
96,
23,
26,
121,
16,
17,
6,
96,
13397,
32,
10379,
11658,
121,
3,
12840,
40,
6,
96,
88,
1408,
834,
26,
159,
14608,
121,
3,
12840,
40,
6,
96,
1536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
953,
834,
9719,
834,
20056,
549,
17444,
427,
3,
18018,
6049,
834,
13397,
32,
13177,
3274,
209,
4674,
41,
13397,
49,
13177,
3274,
209,
4674,
1227,
9,
7,
235,
2176,
834,
27798,
834,
26866,
834,
26,
115,
1... |
How many dead patients had a lactate dehydrogenase pleural lab test? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.expire_flag = "1" AND lab.label = "Lactate Dehydrogenase, Pleural" | [
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,... |
In what heat did the swimmer in Lane 6 rank higher than 7 with a time of 4:08.27? | CREATE TABLE table_name_17 (heat INTEGER, rank VARCHAR, lane VARCHAR, time VARCHAR) | SELECT SUM(heat) FROM table_name_17 WHERE lane = 6 AND time = "4:08.27" AND rank > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
88,
144,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3,
8102,
3274,
431,
3430,
97,
3274,
96,
591,
10,
15000,
2555,
121,
3430,
11003,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score for the away team of north melbourne? | CREATE TABLE table_51750 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_51750 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
9979,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
5553,
9979,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the date for score l 89 91 (ot) | CREATE TABLE table_21461 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_21461 WHERE "Score" = 'L 89–91 (OT)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
4241,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
27357,
4241,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
434,
3,
3914,
104,
4729,
41,
6951,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
out of total number of patients who had a lab test for other body fluid, how many of them remained admitted in hospital for more than 10 days? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "10" AND lab.fluid = "Other Body Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many age figures for the player fired in week 6? | CREATE TABLE table_26890 (
"Candidate" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
) | SELECT COUNT("Age") FROM table_26890 WHERE "Result" = 'Fired in week 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
2394,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
21106,
9232,
121,
1499,
6,
96,
667,
3380,
10270,
372,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
19040,
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,
2847,
17161,
599,
121,
188,
397,
8512,
21680,
953,
834,
357,
3651,
2394,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3183,
1271,
16,
471,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the result of the game against Hungary? | CREATE TABLE table_name_54 (
results¹ VARCHAR,
opponent VARCHAR
) | SELECT results¹ FROM table_name_54 WHERE opponent = "hungary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
772,
536,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
581,
22768,
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,
772,
536,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
15264,
3274,
96,
6668,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which air date had the least viewers ? | CREATE TABLE table_204_384 (
id number,
"#" number,
"air date" text,
"timeslot (est)" text,
"season" text,
"rating" number,
"share" number,
"18-49 (rating/share)" text,
"viewers (m)" number,
"weekly rank (#)" number
) | SELECT "air date" FROM table_204_384 ORDER BY "viewers (m)" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3747,
591,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
2256,
833,
121,
1499,
6,
96,
715,
7,
3171,
41,
222,
61,
121,
1499,
6,
96,
9476,
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,
2256,
833,
121,
21680,
953,
834,
26363,
834,
3747,
591,
4674,
11300,
272,
476,
96,
4576,
277,
41,
51,
61,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what country has tiger woods | CREATE TABLE table_name_47 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_47 WHERE player = "tiger woods" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
684,
65,
3,
17,
4424,
1679,
7,
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,
684,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
1959,
3274,
96,
17,
4424,
1679,
7,
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 total attendance of the leagues in season of 2010? | CREATE TABLE table_10815352_1 (
total_attendance VARCHAR,
season VARCHAR
) | SELECT COUNT(total_attendance) FROM table_10815352_1 WHERE season = "2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
27025,
5373,
834,
536,
41,
792,
834,
15116,
663,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
792,
11364,
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,
2847,
17161,
599,
235,
1947,
834,
15116,
663,
61,
21680,
953,
834,
16169,
27025,
5373,
834,
536,
549,
17444,
427,
774,
3274,
96,
14926,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What CFL team was the player playing on SB position drafted for? | CREATE TABLE table_26198 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"School" text
) | SELECT "CFL Team" FROM table_26198 WHERE "Position" = 'SB' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
24151,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
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,
254,
10765,
2271,
121,
21680,
953,
834,
2688,
24151,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
134,
279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the election in california 2? | CREATE TABLE table_1341973_6 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1341973_6 WHERE district = "California 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2294,
4552,
834,
948,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
4356,
16,
3,
15534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
23747,
2294,
4552,
834,
948,
549,
17444,
427,
3939,
3274,
96,
14318,
99,
127,
29,
23,
9,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where was the game played where the away team has a score of 7.6 (48)? | CREATE TABLE table_77843 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_77843 WHERE "Away team score" = '7.6 (48)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4608,
519,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4013,
4608,
519,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
940,
5,
948,
41,
3707,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What game site has december 24, 2000 as a date? | CREATE TABLE table_37461 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
) | SELECT "Game site" FROM table_37461 WHERE "Date" = 'december 24, 2000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4448,
536,
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,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
353,
121,
21680,
953,
834,
4118,
4448,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
14320,
2766,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the duration, file size, and song format for every pop song, ordered by title alphabetically? | CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
... | SELECT T1.duration, T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = "pop" ORDER BY T2.song_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
3,
89,
834,
23,
26,
381,
6,
2377,
834,
4350,
1499,
6,
1042,
834,
7991,
1499,
6,
8659,
1499,
6,
10874,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
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,
332,
5411,
1259,
2661,
6,
332,
5411,
11966,
834,
7991,
6,
332,
5411,
8995,
7,
21680,
2073,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
9191,
332,
5411,
89,
834,
23,
26,
3274,
332,
4416,
89,
834,
23,
26,
... |
What is the number of bronze that silver is smaller than 1 and gold bigger than 0? | CREATE TABLE table_name_51 (
bronze INTEGER,
silver VARCHAR,
gold VARCHAR
) | SELECT AVG(bronze) FROM table_name_51 WHERE silver < 1 AND gold > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
13467,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
13467,
24,
429... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
4294,
3,
2,
209,
3430,
2045,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri? | CREATE TABLE table_name_89 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, common_of VARCHAR) | SELECT SUM(altitude__mslm_) FROM table_name_89 WHERE density__inhabitants_km_2__ < 1467.5 AND common_of = "moncalieri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
138,
6592,
834,
834,
51,
7,
40,
51,
834,
3,
21342,
17966,
6,
11048,
834,
834,
77,
29884,
7,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
6,
1017,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
138,
6592,
834,
834,
51,
7,
40,
51,
834,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
11048,
834,
834,
77,
29884,
7,
834,
5848,
834,
357,
834,
834,
3,
2,
3,
24300,
15731,
3430,
1017,
83... |
HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006? | CREATE TABLE table_16583 (
"Country" text,
"Carbon dioxide emissions per year (10 6 Tons) (2006)" real,
"Percentage of global total" text,
"Avg. emission per km 2 of its land (tons)" real,
"Carbon dioxide emissions per year (Tons per person) (2007)" text
) | SELECT MAX("Carbon dioxide emissions per year (10 6 Tons) (2006)") FROM table_16583 WHERE "Country" = 'Russia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
4591,
41,
96,
10628,
651,
121,
1499,
6,
96,
6936,
5407,
22122,
9830,
399,
215,
11704,
431,
8475,
7,
61,
28272,
121,
490,
6,
96,
12988,
3728,
545,
13,
1252,
792,
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,
4800,
4,
599,
121,
6936,
5407,
22122,
9830,
399,
215,
11704,
431,
8475,
7,
61,
28272,
8512,
21680,
953,
834,
22823,
4591,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
29613,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Which Surface had an Opponent of chris evert-lloyd? | CREATE TABLE table_name_45 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_45 WHERE opponent = "chris evert-lloyd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
26899,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
18884,
141,
46,
4495,
9977,
13,
3,
524,
52,
159,
664,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
15264,
3274,
96,
524,
52,
159,
664,
17,
18,
195,
32,
63,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What week was the opponent the San Diego Chargers? | CREATE TABLE table_name_94 (
week VARCHAR,
opponent VARCHAR
) | SELECT COUNT(week) FROM table_name_94 WHERE opponent = "san diego chargers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
471,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
47,
8,
15264,
8,
1051,
8851,
15907,
52,
7,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
15264,
3274,
96,
7,
152,
67,
839,
17020,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the attendance date of the game home team Shrewsbury Town played? | CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR) | SELECT attendance FROM table_name_48 WHERE home_team = "shrewsbury town" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
15116,
663,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11364,
833,
13,
8,
467,
234,
372,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
13296,
7,
7165,
1511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the IHSAA class for Portage? | CREATE TABLE table_name_69 (
ihsaa_class VARCHAR,
school VARCHAR
) | SELECT ihsaa_class FROM table_name_69 WHERE school = "portage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
3,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27,
4950,
5498,
853,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23,
107,
7,
9,
9,
834,
4057,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
496,
3274,
96,
1493,
545,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year a Chairman who took office after 2011 is up for reelection? | CREATE TABLE table_name_80 (up_for_reelection INTEGER, took_office VARCHAR, position VARCHAR) | SELECT MIN(up_for_reelection) FROM table_name_80 WHERE took_office > 2011 AND position = "chairman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
413,
834,
1161,
834,
60,
15,
12252,
3,
21342,
17966,
6,
808,
834,
19632,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
413,
834,
1161,
834,
60,
15,
12252,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
808,
834,
19632,
2490,
2722,
3430,
1102,
3274,
96,
15657,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many titles does fortuna 60 have ? | CREATE TABLE table_203_664 (
id number,
"club" text,
"town" text,
"founded" number,
"nickname" text,
"colours" text,
"home ground" text,
"titles" number,
"website" text
) | SELECT "titles" FROM table_203_664 WHERE "club" = 'fortuna 60' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3539,
591,
41,
3,
23,
26,
381,
6,
96,
13442,
121,
1499,
6,
96,
3540,
121,
1499,
6,
96,
23329,
121,
381,
6,
96,
11191,
4350,
121,
1499,
6,
96,
24814,
7,
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,
21869,
7,
121,
21680,
953,
834,
23330,
834,
3539,
591,
549,
17444,
427,
96,
13442,
121,
3274,
3,
31,
1161,
17,
202,
9,
1640,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which away team has Away team score of 20.12 (132)? | CREATE TABLE table_10270 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_10270 WHERE "Away team score" = '20.12 (132)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
17485,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
1714,
17485,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
1755,
5,
2122,
41,
23757,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least rank for the premier that assumed office on 17 may 1919 and was in office for 7 years, 335 days? | CREATE TABLE table_66471 (
"Rank:" real,
"State:" text,
"Premier:" text,
"Party:" text,
"Assumed office:" text,
"Left office:" text,
"TOTAL Time in office:" text
) | SELECT MIN("Rank:") FROM table_66471 WHERE "TOTAL Time in office:" = '7 years, 335 days' AND "Assumed office:" = '17 may 1919' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4177,
536,
41,
96,
22557,
10,
121,
490,
6,
96,
134,
4748,
10,
121,
1499,
6,
96,
10572,
51,
972,
10,
121,
1499,
6,
96,
13725,
63,
10,
121,
1499,
6,
96,
188,
7,
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,
3,
17684,
599,
121,
22557,
10,
8512,
21680,
953,
834,
3539,
4177,
536,
549,
17444,
427,
96,
5647,
16359,
2900,
16,
828,
10,
121,
3274,
3,
31,
940,
203,
6,
220,
2469,
477,
31,
3430,
96,
188,
7,
4078,
15,
26,
828,... |
Which date has Total Holocaust records in the ed Remaster cassette format? | CREATE TABLE table_78786 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog Nr." text
) | SELECT "Date" FROM table_78786 WHERE "Label" = 'total holocaust records' AND "Format" = 'ed remaster cassette' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
940,
3840,
41,
96,
10628,
651,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
16750,
535,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3940,
940,
3840,
549,
17444,
427,
96,
434,
10333,
121,
3274,
3,
31,
235,
1947,
3534,
5133,
2064,
17,
3187,
31,
3430,
96,
3809,
3357,
121,
3274,
3,
31,
15,
26,
3,
60,
7429,
285... |
What number is in Bois de Warville with a time less than 810? | CREATE TABLE table_name_4 (number INTEGER, location VARCHAR, time VARCHAR) | SELECT SUM(number) FROM table_name_4 WHERE location = "bois de warville" AND time < 810 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
5525,
1152,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
381,
19,
16,
1491,
159,
20,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
1128,
3274,
96,
115,
32,
159,
20,
615,
1420,
121,
3430,
97,
3,
2,
505,
1714,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the most number of blocks kendall gill had? | CREATE TABLE table_22824324_2 (
blocks INTEGER,
player VARCHAR
) | SELECT MAX(blocks) FROM table_22824324_2 WHERE player = "Kendall Gill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
27730,
2266,
834,
357,
41,
6438,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
381,
13,
6438,
3,
2217,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10734,
7,
61,
21680,
953,
834,
357,
2577,
27730,
2266,
834,
357,
549,
17444,
427,
1959,
3274,
96,
439,
989,
1748,
18584,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
League Cup smaller than 0 is what sum of the total? | CREATE TABLE table_name_31 (total INTEGER, league_cup INTEGER) | SELECT SUM(total) FROM table_name_31 WHERE league_cup < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
235,
1947,
3,
21342,
17966,
6,
5533,
834,
4658,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
3815,
3802,
2755,
145,
3,
632,
19,
125,
4505,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
5533,
834,
4658,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Incumbent Deborah Pryce was a member of what party? | CREATE TABLE table_72357 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_72357 WHERE "Incumbent" = 'Deborah Pryce' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2773,
3436,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13725,
63,
121,
21680,
953,
834,
940,
2773,
3436,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
2962,
6693,
9,
107,
276,
651,
565,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the attendance for the game with alfreton town as the home team? | CREATE TABLE table_name_53 (
attendance VARCHAR,
home_team VARCHAR
) | SELECT attendance FROM table_name_53 WHERE home_team = "alfreton town" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
11364,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
21,
8,
467,
28,
491,
89,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
234,
834,
11650,
3274,
96,
138,
89,
60,
17,
106,
1511,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What LINER class has a W.A. of 0-6-0st with a 2 No. Built? | CREATE TABLE table_41678 (
"1st built" real,
"1913 Class" text,
"W.A." text,
"No. Built" real,
"Builder" text,
"Date" text,
"LNER Class" text
) | SELECT "LNER Class" FROM table_41678 WHERE "W.A." = '0-6-0st' AND "No. Built" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2938,
3940,
41,
96,
536,
7,
17,
1192,
121,
490,
6,
96,
2294,
2368,
4501,
121,
1499,
6,
96,
518,
5,
188,
535,
1499,
6,
96,
4168,
5,
14862,
121,
490,
6,
96,
24752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18206,
4501,
121,
21680,
953,
834,
591,
2938,
3940,
549,
17444,
427,
96,
518,
5,
188,
535,
3274,
3,
31,
9498,
28625,
7,
17,
31,
3430,
96,
4168,
5,
14862,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
... |
Which country is the Nova TV network from? | CREATE TABLE table_name_53 (
country VARCHAR,
tv_network_s_ VARCHAR
) | SELECT country FROM table_name_53 WHERE tv_network_s_ = "nova tv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
684,
584,
4280,
28027,
6,
3,
17,
208,
834,
1582,
1981,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
19,
8,
17259,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3,
17,
208,
834,
1582,
1981,
834,
7,
834,
3274,
96,
14979,
3,
17,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Time has a Round larger than 1, and an Event of total fighting alliance 2? | CREATE TABLE table_5031 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_5031 WHERE "Round" > '1' AND "Event" = 'total fighting alliance 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3341,
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,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
1752,
3341,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
536,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
235,
1947,
6237,
15454,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who is the cyber girl in week 3 when Demi Jessica was the cyber girl in week 1? | CREATE TABLE table_name_33 (week_3 VARCHAR, week_1 VARCHAR) | SELECT week_3 FROM table_name_33 WHERE week_1 = "demi jessica" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
8041,
834,
519,
584,
4280,
28027,
6,
471,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
9738,
3202,
16,
471,
220,
116,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
519,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
471,
834,
536,
3274,
96,
1778,
23,
528,
7,
7,
2617,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When did the callbacks from rancho bernardo inn air | CREATE TABLE table_16477 (
"Episode Air Date" text,
"Audition City" text,
"Date" text,
"First Audition Venue" text,
"Callback Date" text,
"Callback Venue" text,
"Golden Tickets" real
) | SELECT "Episode Air Date" FROM table_16477 WHERE "Callback Venue" = 'Rancho Bernardo Inn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
4013,
41,
96,
427,
102,
159,
32,
221,
1761,
7678,
121,
1499,
6,
96,
188,
76,
10569,
896,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
25171,
9835,
1575,
29940,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
102,
159,
32,
221,
1761,
7678,
121,
21680,
953,
834,
26987,
4013,
549,
17444,
427,
96,
254,
1748,
1549,
29940,
121,
3274,
3,
31,
448,
152,
3995,
14735,
32,
86,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
with year greater than 1988 what is the total number of points? | CREATE TABLE table_34605 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT COUNT("Points") FROM table_34605 WHERE "Year" > '1988' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4448,
3076,
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,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
519,
4448,
3076,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In the race with a winning time of 4:17:18, how many laps were run? | CREATE TABLE table_2241841_1 (laps VARCHAR, race_time VARCHAR) | SELECT laps FROM table_2241841_1 WHERE race_time = "4:17:18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
2606,
4853,
834,
536,
41,
8478,
7,
584,
4280,
28027,
6,
1964,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
1964,
28,
3,
9,
3447,
97,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14941,
7,
21680,
953,
834,
24622,
2606,
4853,
834,
536,
549,
17444,
427,
1964,
834,
715,
3274,
96,
591,
10,
2517,
10,
2606,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player has 12 caps? | CREATE TABLE table_name_36 (player VARCHAR, caps VARCHAR) | SELECT player FROM table_name_36 WHERE caps = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
20846,
584,
4280,
28027,
6,
16753,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
65,
586,
16753,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
16753,
3274,
586,
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's was the 2008 during the Year End Ranking? | CREATE TABLE table_12898 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2008" FROM table_12898 WHERE "Tournament" = 'year end ranking' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2577,
3916,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16128,
121,
21680,
953,
834,
536,
2577,
3916,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
1201,
414,
11592,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score that led to an 11-16 record? | CREATE TABLE table_38464 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
) | SELECT "Score" FROM table_38464 WHERE "Record" = '11-16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
591,
4389,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
13368,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3747,
591,
4389,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2596,
10892,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which TV Time has a Date of january 2, 2005? | CREATE TABLE table_14111 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
) | SELECT "TV Time" FROM table_14111 WHERE "Date" = 'january 2, 2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
15866,
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,
4562,
2900,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4562,
2900,
121,
21680,
953,
834,
2534,
15866,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7066,
76,
1208,
3547,
3105,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many consecutive years were there 20 or more assisted tackles ? | CREATE TABLE table_204_756 (
id number,
"year" number,
"team" text,
"games" number,
"combined tackles" number,
"tackles" number,
"assisted tackles" number,
"sacks" number,
"forced fumbles" number,
"fumble recoveries" number,
"fumble return yards" number,
"interceptions" n... | SELECT COUNT("year") FROM table_204_756 WHERE "assisted tackles" >= 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3072,
948,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
7261,
7,
121,
381,
6,
96,
287,
12712,
26,
8000,
7,
121,
381,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1201,
8512,
21680,
953,
834,
26363,
834,
3072,
948,
549,
17444,
427,
96,
9,
7,
15777,
8000,
7,
121,
2490,
2423,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141? | CREATE TABLE table_44994 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "To par" FROM table_44994 WHERE "Place" = 't8' AND "Score" = '73-68=141' AND "Country" = 'zimbabwe' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3264,
591,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3628,
3264,
591,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
927,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
4552,
18,
3651,
2423,
26059,
31,
3430,
96,
10628,
651,
... |
What are the names of students who have taken Statistics courses? | CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE student (
id text,
name text,
dept_name text,
tot_cred number
)
C... | SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
503,
834,
23,
26,
1499,
6,
2233,
1499,
6,
20,
102,
17,
834,
4350,
1499,
6,
11893,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1217,
41,
3,
23,
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,
332,
5787,
4350,
21680,
503,
6157,
332,
536,
3,
15355,
3162,
1217,
6157,
332,
357,
9191,
332,
5411,
19221,
834,
23,
26,
3274,
332,
4416,
19221,
834,
23,
26,
3,
15355,
3162,
1236,
6157,
332,
519,
9191,
332,
4416,
23,... |
when was the last appearance in the greek league ? | CREATE TABLE table_203_391 (
id number,
"season" text,
"greek league" text,
"greek cup" text,
"europe" text,
"coach" text,
"roster" text
) | SELECT MAX("season") FROM table_203_391 WHERE NOT "greek league" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3288,
536,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
3584,
15,
157,
5533,
121,
1499,
6,
96,
3584,
15,
157,
4119,
121,
1499,
6,
96,
28188,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
9476,
8512,
21680,
953,
834,
23330,
834,
3288,
536,
549,
17444,
427,
4486,
96,
3584,
15,
157,
5533,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters? | CREATE TABLE table_name_38 (stories INTEGER, height__m_ VARCHAR, location VARCHAR, year_of_completion VARCHAR) | SELECT MAX(stories) FROM table_name_38 WHERE location = "recife" AND year_of_completion > 2007 AND height__m_ < 135 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
7279,
725,
3,
21342,
17966,
6,
3902,
834,
834,
51,
834,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
215,
834,
858,
834,
7699,
109,
1575,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
7279,
725,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1128,
3274,
96,
7886,
89,
15,
121,
3430,
215,
834,
858,
834,
7699,
109,
1575,
2490,
4101,
3430,
3902,
834,
834,
51,
834,
3,
2,
209,
... |
Name the opponent on april 27 | CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_60 WHERE date = "april 27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
32,
102,
9977,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
30,
3,
9,
2246,
40,
2307,
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,
15264,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
2307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients last year had a sputum, expectorated microbiology test taken? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperio... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'sputum, expectorated' AND DATETIME(microlab.culturetakentime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
21680,
2179,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.