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 lowest Subject, when Plural is t der (their)? | CREATE TABLE table_name_58 (
subject INTEGER,
plural VARCHAR
) | SELECT MIN(subject) FROM table_name_58 WHERE plural = "tãder (their)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1426,
3,
21342,
17966,
6,
28037,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
19237,
6,
116,
7337,
9709,
19,
3,
17,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7304,
11827,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
28037,
3274,
96,
17,
2,
588,
41,
17,
17265,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many districts had William F. Norrell as the incumbent? | CREATE TABLE table_1342233_5 (district VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_1342233_5 WHERE incumbent = "William F. Norrell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
20879,
834,
755,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14126,
141,
4599,
377,
5,
465,
2129... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
2368,
4165,
20879,
834,
755,
549,
17444,
427,
28406,
3274,
96,
518,
1092,
23,
265,
377,
5,
465,
21290,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who is the constructor when the laps is more than 72 and the driver is eddie irvine? | CREATE TABLE table_name_33 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
15982,
5317,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
6774,
127,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
14941,
7,
2490,
9455,
3430,
2535,
3274,
96,
15,
26,
2498,
3,
23,
52,
8402,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the winning mentor in season two? | CREATE TABLE table_16331144_1 (
winning_mentor VARCHAR,
season VARCHAR
) | SELECT winning_mentor FROM table_16331144_1 WHERE season = "Two" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4201,
2596,
3628,
834,
536,
41,
3447,
834,
297,
127,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3447,
9380,
16,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
297,
127,
21680,
953,
834,
2938,
4201,
2596,
3628,
834,
536,
549,
17444,
427,
774,
3274,
96,
382,
210,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the titles of the papers the author 'Stephanie Weirich' wrote. | CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE authors (
authid number,
lname text,
fname text
) | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16,
7,
17,
41,
16,
2248,
26,
381,
6,
564,
1499,
6,
684,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5778,
41,
1040,
23,
26,
381,
6,
2233,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
21869,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
17,
11740,
3,
15355,
3162,
5778,
6157,
3,
17,
519,
9191... |
what is the total of years on this chart | CREATE TABLE table_204_859 (
id number,
"year" number,
"seniors (trood award & rodda medal)" text,
"reserves (rex hartley medal)" text,
"under 18's (bruce wilkinson medal)" text,
"under 16's (shaw/carter medal)" text
) | SELECT COUNT("year") FROM table_204_859 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3390,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
7,
35,
23,
127,
7,
41,
17,
52,
32,
32,
26,
2760,
3,
184,
6102,
26,
9,
9365,
61,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1201,
8512,
21680,
953,
834,
26363,
834,
927,
3390,
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 was the score of the Insight Bowl? | CREATE TABLE table_name_53 (
score VARCHAR,
bowl_game VARCHAR
) | SELECT score FROM table_name_53 WHERE bowl_game = "insight bowl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
2604,
584,
4280,
28027,
6,
3047,
834,
7261,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
86,
7,
2632,
9713,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3047,
834,
7261,
3274,
96,
77,
7,
2632,
3047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What percentage of users were using other Mozilla browsers during the period in which 2.29% were using Opera? | CREATE TABLE table_name_97 (other_mozilla VARCHAR, opera VARCHAR) | SELECT other_mozilla FROM table_name_97 WHERE opera = "2.29%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
9269,
834,
51,
32,
29885,
584,
4280,
28027,
6,
6329,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
13,
1105,
130,
338,
119,
30699,
3509... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
119,
834,
51,
32,
29885,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
6329,
3274,
96,
15300,
7561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Out of the total number of patients admitted to emergency, calculate the minimum age of those who were born before the year 2078 | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dob_year > "2078" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
2490,
96,
1755,
3940,
121,
... |
What are the average points for the Project Indy team that has the Ford xb engine? | CREATE TABLE table_69582 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" real
) | SELECT AVG("Points") FROM table_69582 WHERE "Engine" = 'ford xb' AND "Team" = 'project indy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3449,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22512,
7,
8512,
21680,
953,
834,
3951,
3449,
357,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
2590,
3,
226,
115,
31,
3430,
96,
18699,
121,
3274,
3,
31,
23574,
16,
26,
63,
31,
1,
-100,
-100... |
Who had the high assists while Erick Dampier (8) had the high rebounds? | CREATE TABLE table_21472 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_21472 WHERE "High rebounds" = 'Erick Dampier (8)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
5865,
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,
21417,
13041,
121,
21680,
953,
834,
27357,
5865,
549,
17444,
427,
96,
21417,
3,
23768,
121,
3274,
3,
31,
427,
5206,
10939,
8343,
3,
28007,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 3rd largest where the largest city is Ardabil? | CREATE TABLE table_name_35 (largest_city VARCHAR) | SELECT 3 AS rd_largest FROM table_name_35 WHERE largest_city = "ardabil" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
15599,
7,
17,
834,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
220,
52,
26,
2015,
213,
8,
2015,
690,
19,
22635,
3587,
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,
220,
6157,
3,
52,
26,
834,
15599,
7,
17,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
2015,
834,
6726,
3274,
96,
986,
3587,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date has a loan expires date of end of the season, and a Position of mf? | CREATE TABLE table_13237 (
"Position" text,
"Player" text,
"Loaned to" text,
"Date" text,
"Loan expires" text
) | SELECT "Date" FROM table_13237 WHERE "Loan expires" = 'end of the season' AND "Position" = 'mf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23757,
4118,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
434,
8086,
26,
12,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
152,
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,
96,
308,
342,
121,
21680,
953,
834,
23757,
4118,
549,
17444,
427,
96,
434,
32,
152,
8982,
15,
7,
121,
3274,
3,
31,
989,
13,
8,
774,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
51,
89,
31,
1,
-100,
-100... |
For each classroom, show the classroom number and find how many students are using it. Plot them as scatter chart. | CREATE TABLE teachers (
LastName TEXT,
FirstName TEXT,
Classroom INTEGER
)
CREATE TABLE list (
LastName TEXT,
FirstName TEXT,
Grade INTEGER,
Classroom INTEGER
) | SELECT Classroom, COUNT(*) FROM list GROUP BY Classroom | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3081,
41,
2506,
23954,
3,
3463,
4,
382,
6,
1485,
23954,
3,
3463,
4,
382,
6,
29546,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
570,
41,
2506,
23954,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
29546,
6,
2847,
17161,
599,
1935,
61,
21680,
570,
350,
4630,
6880,
272,
476,
29546,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which points classification has 4 as the stage? | CREATE TABLE table_22464308_2 (
points_classification VARCHAR,
stage VARCHAR
) | SELECT points_classification FROM table_22464308_2 WHERE stage = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
4389,
1458,
927,
834,
357,
41,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
979,
13774,
65,
314,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
4057,
2420,
21680,
953,
834,
24622,
4389,
1458,
927,
834,
357,
549,
17444,
427,
1726,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which headphone models correspond to the US MSRP of $150? | CREATE TABLE table_1601027_1 (headphone_model VARCHAR, us_msrp VARCHAR) | SELECT headphone_model FROM table_1601027_1 WHERE us_msrp = "$150" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
1714,
2555,
834,
536,
41,
3313,
6399,
834,
21770,
584,
4280,
28027,
6,
178,
834,
51,
7,
52,
102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
819,
6399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
819,
6399,
834,
21770,
21680,
953,
834,
19129,
1714,
2555,
834,
536,
549,
17444,
427,
178,
834,
51,
7,
52,
102,
3274,
96,
3229,
12278,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date was held at Laguna Seca Raceway, in class GTX/GTO? | CREATE TABLE table_37436 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
) | SELECT "Date" FROM table_37436 WHERE "Circuit" = 'laguna seca raceway' AND "Class" = 'gtx/gto' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4581,
3420,
41,
96,
448,
3302,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
4581,
3420,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
5430,
202,
9,
4220,
9,
1964,
1343,
31,
3430,
96,
21486,
121,
3274,
3,
31,
122,
17,
226,
87,
122,
... |
What is the date of the game with a result of W 13-10? | CREATE TABLE table_name_53 (
date VARCHAR,
result VARCHAR
) | SELECT date FROM table_name_53 WHERE result = "w 13-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
833,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
467,
28,
3,
9,
741,
13,
549,
1179,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
741,
3274,
96,
210,
1179,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location of the institution nicknamed Lions? | CREATE TABLE table_27845 (
"Institution" text,
"Location" text,
"Type" text,
"Joined" real,
"Enrollment" real,
"Nickname" text
) | SELECT "Location" FROM table_27845 WHERE "Nickname" = 'Lions' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3940,
2128,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
683,
32,
630,
26,
121,
490,
6,
96,
8532,
4046,
297,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
357,
3940,
2128,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
434,
2865,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What did the away team score when playing North Melbourne? | CREATE TABLE table_77739 (
"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_77739 WHERE "Home team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
3288,
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,
26225,
3288,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won the Women's doubles in the year that Jesper Knudsen Nettie Nielsen won the Mixed doubles? | CREATE TABLE table_80384 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Women's doubles" FROM table_80384 WHERE "Mixed doubles" = 'jesper knudsen nettie nielsen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
3747,
591,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32,
904,
31,
7,
1486,
7,
121,
21680,
953,
834,
2079,
3747,
591,
549,
17444,
427,
96,
329,
2407,
15,
26,
1486,
7,
121,
3274,
3,
31,
1924,
4339,
3,
157,
29,
76,
26,
7,
35,
3,
10544,
23,
15,
6691,
40,
... |
Which Visitor has a Home of bulls? | CREATE TABLE table_6822 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
) | SELECT "Visitor" FROM table_6822 WHERE "Home" = 'bulls' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
2884,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
159,
155,
127,
121,
21680,
953,
834,
3651,
2884,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
20638,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the maximum average of the episode with a Chinese title b? | CREATE TABLE table_22886 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
) | SELECT MAX("Average") FROM table_22886 WHERE "Chinese title" = '古靈精探B' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
3840,
41,
96,
22557,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
3541,
4477,
15,
2233,
121,
1499,
6,
96,
188,
624,
545,
121,
490,
6,
96,
345,
15,
1639,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
624,
545,
8512,
21680,
953,
834,
357,
2577,
3840,
549,
17444,
427,
96,
3541,
4477,
15,
2233,
121,
3274,
3,
31,
2,
279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
when was patient 025-28600 last given a microbiology test on the last hospital encounter? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
) | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-28600' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) ORDER BY microlab.culturetakentime DESC LIMIT 1 | [
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,
2179,
9339,
5,
10547,
4914,
29,
715,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,... |
When was the game happening at Halton Stadium? | CREATE TABLE table_13328239_4 (
date VARCHAR,
venue VARCHAR
) | SELECT date FROM table_13328239_4 WHERE venue = "Halton Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
2577,
357,
3288,
834,
591,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
4626,
44,
1626,
7377,
12750,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
22974,
2577,
357,
3288,
834,
591,
549,
17444,
427,
5669,
3274,
96,
566,
9,
7377,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What team has adam barclay as the rider? | CREATE TABLE table_63966 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Team" FROM table_63966 WHERE "Rider" = 'adam barclay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3288,
3539,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
948,
3288,
3539,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
9,
7812,
1207,
4651,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the year with change being +8.0% | CREATE TABLE table_141541_5 (
year VARCHAR,
change VARCHAR
) | SELECT year FROM table_141541_5 WHERE change = "+8.0%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
1808,
4853,
834,
755,
41,
215,
584,
4280,
28027,
6,
483,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
215,
28,
483,
271,
1768,
27376,
1454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
2534,
1808,
4853,
834,
755,
549,
17444,
427,
483,
3274,
96,
1220,
27376,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Select the name and price of the cheapest product. | CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
) | SELECT name, price FROM products ORDER BY price LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
1499,
6,
7174,
1499,
6,
3751,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
594,
21680,
494,
4674,
11300,
272,
476,
594,
8729,
12604,
209,
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 California city has an active status and a greek designation of established colony? | CREATE TABLE table_name_57 (
city VARCHAR,
greek_designation VARCHAR,
status VARCHAR,
us_state_district VARCHAR
) | SELECT city FROM table_name_57 WHERE status = "active" AND us_state_district = "california" AND greek_designation = "established colony" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
690,
584,
4280,
28027,
6,
3542,
10266,
834,
9124,
257,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
178,
834,
5540,
834,
26,
23,
20066,
584,
4280,
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,
690,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2637,
3274,
96,
6645,
121,
3430,
178,
834,
5540,
834,
26,
23,
20066,
3274,
96,
15534,
1161,
29,
23,
9,
121,
3430,
3542,
10266,
834,
9124,
257,
3274,
96,
24109,... |
Which Played has Draws smaller than 7, and Goals for smaller than 61, and Goals against smaller than 48, and a Position of 5? | CREATE TABLE table_name_29 (played INTEGER, position VARCHAR, goals_against VARCHAR, draws VARCHAR, goals_for VARCHAR) | SELECT MAX(played) FROM table_name_29 WHERE draws < 7 AND goals_for < 61 AND goals_against < 48 AND position = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
4895,
15,
26,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
6,
1766,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
14924,
3,
2,
489,
3430,
1766,
834,
1161,
3,
2,
3,
4241,
3430,
1766,
834,
9,
16720,
7,
17,
3,
2,
4678,
3430,
1102,
3274,
305,
1... |
What is the highest Grid with a Name that is jamie whincup? | CREATE TABLE table_name_67 (
grid INTEGER,
name VARCHAR
) | SELECT MAX(grid) FROM table_name_67 WHERE name = "jamie whincup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
8634,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
23644,
28,
3,
9,
5570,
24,
19,
2662,
2720,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
564,
3274,
96,
1191,
2720,
14228,
77,
4658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many of the patients diagnosed with mv collision nos-driver received id therapy? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Mv collision NOS-driver" AND prescriptions.route = "ID" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which bike had a grid less than 35 and time at 37:58.607? | CREATE TABLE table_41271 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Bike" FROM table_41271 WHERE "Grid" < '35' AND "Time" = '37:58.607' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
4450,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
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,
279,
5208,
121,
21680,
953,
834,
591,
2122,
4450,
549,
17444,
427,
96,
13313,
26,
121,
3,
2,
3,
31,
2469,
31,
3430,
96,
13368,
121,
3274,
3,
31,
4118,
10,
3449,
5,
3328,
940,
31,
1,
-100,
-100,
-100,
-100,
... |
What is the earliest year a house opened? | CREATE TABLE table_1942683_1 (
year_opened INTEGER
) | SELECT MIN(year_opened) FROM table_1942683_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
591,
2688,
4591,
834,
536,
41,
215,
834,
26940,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
3,
9,
629,
2946,
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,
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,
3,
17684,
599,
1201,
834,
26940,
61,
21680,
953,
834,
2294,
591,
2688,
4591,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total average for swimsuits smaller than 9.62 in Colorado? | CREATE TABLE table_name_70 (
average INTEGER,
swimsuit VARCHAR,
country VARCHAR
) | SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = "colorado" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
1348,
3,
21342,
17966,
6,
9728,
7628,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
1348,
21,
9728... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
28951,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
9728,
7628,
3,
2,
5835,
4056,
3430,
684,
3274,
96,
8135,
19042,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the inductee for the ecw arena? | CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR) | SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
77,
7472,
15,
15,
834,
7,
834,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
16,
7472,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16,
7472,
15,
15,
834,
7,
834,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
5669,
3274,
96,
15,
75,
210,
15134,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Country has a Score of 71-74-70=215? | CREATE TABLE table_name_37 (
country VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_37 WHERE score = 71 - 74 - 70 = 215 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
65,
3,
9,
17763,
13,
3,
4450,
18,
4581,
18,
2518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4118,
549,
17444,
427,
2604,
3274,
3,
4450,
3,
18,
3,
4581,
3,
18,
2861,
3274,
204,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by weekday, and I want to order in ascending by the Y. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(EMPLOYEE_ID) | [
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,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
... |
What are the ends for the player with a transfer fee of loan? | CREATE TABLE table_name_33 (ends VARCHAR, transfer_fee VARCHAR) | SELECT ends FROM table_name_33 WHERE transfer_fee = "loan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
989,
7,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
5542,
21,
8,
1959,
28,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5542,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
40,
32,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what two models are only from the philippines ? | CREATE TABLE table_204_430 (
id number,
"model" text,
"origin" text,
"type" text,
"version" text,
"in service" text,
"notes" text
) | SELECT "model" FROM table_204_430 WHERE "origin" = 'philippines' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25449,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
32,
3380,
77,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
8674,
121,
1499,
6,
96,
77,
313,
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,
21770,
121,
21680,
953,
834,
26363,
834,
25449,
549,
17444,
427,
96,
32,
3380,
77,
121,
3274,
3,
31,
18118,
23,
1572,
4477,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total number of win % when John Gartin is coach, the crew is varsity 8+, and the year is 2005? | CREATE TABLE table_name_78 (win__percentage INTEGER, year VARCHAR, coach VARCHAR, crew VARCHAR) | SELECT SUM(win__percentage) FROM table_name_78 WHERE coach = "john gartin" AND crew = "varsity 8+" AND year = "2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3757,
834,
834,
883,
3728,
545,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
3763,
584,
4280,
28027,
6,
4627,
584,
4280,
28027,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
3763,
3274,
96,
27341,
5260,
17,
77,
121,
3430,
4627,
3274,
96,
31336,
505,
1220,
121,
3430,
215,
3274,
96,
2259... |
What is the lowest score of all games for match 2? | CREATE TABLE table_24538140_2 (match2 INTEGER) | SELECT MIN(match2) FROM table_24538140_2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2128,
3747,
22012,
834,
357,
41,
19515,
357,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2604,
13,
66,
1031,
21,
1588,
204,
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,
3,
17684,
599,
19515,
7318,
21680,
953,
834,
357,
2128,
3747,
22012,
834,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th? | CREATE TABLE table_name_41 (
attendance VARCHAR,
runner_up VARCHAR,
title VARCHAR
) | SELECT attendance FROM table_name_41 WHERE runner_up = "suntory sungoliath" AND title = "46th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
11364,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22497,
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,
11364,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
7,
202,
10972,
3,
7,
425,
4172,
9,
189,
121,
3430,
2233,
3274,
96,
4448,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
the 1995/96 season ranked the same place as which other season ? | CREATE TABLE table_204_79 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
) | SELECT "season" FROM table_204_79 WHERE "season" <> '1995/96' AND "place" = (SELECT "place" FROM table_204_79 WHERE "season" = '1995/96') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4440,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
3276,
121,
381,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
4687,
121,
1499,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9476,
121,
21680,
953,
834,
26363,
834,
4440,
549,
17444,
427,
96,
9476,
121,
3,
2,
3155,
3,
31,
2294,
3301,
87,
4314,
31,
3430,
96,
4687,
121,
3274,
41,
23143,
14196,
96,
4687,
121,
21680,
953,
834,
26363,
83... |
provide the drug type and drug route of drug code digo125. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "DIGO125" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
26,
13534,
834,
6137,
6,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
3274,
96,
308,
196,
5577,
10124,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the minimum number of points given up to the Baltimore Colts | CREATE TABLE table_16028459_2 (opponents INTEGER, opponent VARCHAR) | SELECT MIN(opponents) FROM table_16028459_2 WHERE opponent = "Baltimore Colts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
357,
4608,
3390,
834,
357,
41,
32,
102,
9977,
7,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
381,
13,
979,
787,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
32,
102,
9977,
7,
61,
21680,
953,
834,
19129,
357,
4608,
3390,
834,
357,
549,
17444,
427,
15264,
3274,
96,
279,
2920,
23,
3706,
3043,
17,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which highest number of Seats has votes of 244,867? | CREATE TABLE table_name_83 (
seats INTEGER,
votes VARCHAR
) | SELECT MAX(seats) FROM table_name_83 WHERE votes = 244 OFFSET 867 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
6116,
3,
21342,
17966,
6,
11839,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2030,
381,
13,
15915,
7,
65,
11839,
13,
997,
8525,
927,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7,
1544,
7,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
11839,
3274,
997,
591,
3,
15316,
20788,
505,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the statue for an against above 22? | CREATE TABLE table_name_68 (status VARCHAR, against INTEGER) | SELECT status FROM table_name_68 WHERE against > 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
8547,
302,
584,
4280,
28027,
6,
581,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
12647,
21,
46,
581,
756,
1630,
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,
2637,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
581,
2490,
1630,
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... |
When east carolina university is the school what is the highest year founded? | CREATE TABLE table_2076516_1 (founded INTEGER, school VARCHAR) | SELECT MAX(founded) FROM table_2076516_1 WHERE school = "East Carolina University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
4122,
2938,
834,
536,
41,
23329,
3,
21342,
17966,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
5727,
443,
12057,
9,
3819,
19,
8,
496,
125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
23329,
61,
21680,
953,
834,
26426,
4122,
2938,
834,
536,
549,
17444,
427,
496,
3274,
96,
25235,
5089,
636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the away team at Lake Oval? | CREATE TABLE table_32455 (
"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_32455 WHERE "Venue" = 'lake oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2266,
3769,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
519,
2266,
3769,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
16948,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the network for 2007 total | CREATE TABLE table_22654139_2 (
network VARCHAR,
year VARCHAR
) | SELECT COUNT(network) FROM table_22654139_2 WHERE year = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
5062,
24090,
834,
357,
41,
1229,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1229,
21,
4101,
792,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1582,
1981,
61,
21680,
953,
834,
357,
2688,
5062,
24090,
834,
357,
549,
17444,
427,
215,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest total that has barbados as the nation with a bronze greater than 0? | CREATE TABLE table_name_96 (total INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MIN(total) FROM table_name_96 WHERE nation = "barbados" AND bronze > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
235,
1947,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
792,
24,
65,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2982,
3274,
96,
1047,
115,
14073,
121,
3430,
13467,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the maximum season that has exactly 2 podiums? | CREATE TABLE table_29434211_1 (season INTEGER, podiums VARCHAR) | SELECT MAX(season) FROM table_29434211_1 WHERE podiums = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4906,
4165,
2596,
834,
536,
41,
9476,
3,
21342,
17966,
6,
22828,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
774,
24,
65,
1776,
204,
228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9476,
61,
21680,
953,
834,
3166,
4906,
4165,
2596,
834,
536,
549,
17444,
427,
22828,
7,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the sum of a rank whose nation is West Germany and has bronze larger than 0? | CREATE TABLE table_55345 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Rank") FROM table_55345 WHERE "Nation" = 'west germany' AND "Bronze" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
519,
2128,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
3769,
519,
2128,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
12425,
13692,
63,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
... |
Name the having things for privacy, intimate spaces of togetherness | CREATE TABLE table_68446 (
"Need" text,
"Being (qualities)" text,
"Having (things)" text,
"Doing (actions)" text,
"Interacting (settings)" text
) | SELECT "Having (things)" FROM table_68446 WHERE "Interacting (settings)" = 'privacy, intimate spaces of togetherness' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
591,
4448,
41,
96,
567,
6958,
121,
1499,
6,
96,
2703,
53,
41,
11433,
2197,
61,
121,
1499,
6,
96,
3985,
41,
8052,
7,
61,
121,
1499,
6,
96,
4135,
53,
41,
4787,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3985,
41,
8052,
7,
61,
121,
21680,
953,
834,
3651,
591,
4448,
549,
17444,
427,
96,
17555,
2708,
53,
41,
19966,
7,
61,
121,
3274,
3,
31,
2246,
8938,
63,
6,
11050,
4856,
13,
544,
655,
31,
1,
-100,
-100,
-100,
... |
What date was Notts County the opponent and the league position was 1st? | CREATE TABLE table_9674 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real,
"League position" text
) | SELECT "Date" FROM table_9674 WHERE "Opponents" = 'notts county' AND "League position" = '1st' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
4581,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
566,
3,
87,
71,
121,
1499,
6,
96,
20119,
377,
3,
2,
76,
11138,
71,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4314,
4581,
549,
17444,
427,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
2264,
17,
7,
5435,
31,
3430,
96,
2796,
9,
5398,
1102,
121,
3274,
3,
31,
536,
7,
17,
31,
1,
-100,
-100,
... |
Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63? | CREATE TABLE table_name_97 (
height__m_ INTEGER,
name VARCHAR,
ave__no VARCHAR
) | SELECT MIN(height__m_) FROM table_name_97 WHERE name = "plessur alps" AND ave__no > 63 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
3902,
834,
834,
51,
834,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
3,
9,
162,
834,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
88,
2632,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
564,
3274,
96,
4788,
7,
3042,
491,
102,
7,
121,
3430,
3,
9,
162,
834,
834,
29,
32,
2490,
3,
3891,
1,
-100,
-10... |
What are the commissioned for scotts, greenock and chieftain? | CREATE TABLE table_410 (
"Name" text,
"Pennant" text,
"Builder" text,
"Laid Down" text,
"Launched" text,
"Commissioned" text,
"Fate" text
) | SELECT "Commissioned" FROM table_410 WHERE "Builder" = 'Scotts, Greenock' AND "Name" = 'Chieftain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
41,
96,
23954,
121,
1499,
6,
96,
345,
35,
29,
288,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
434,
6146,
7309,
121,
1499,
6,
96,
3612,
202,
4513,
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,
5890,
5451,
15,
26,
121,
21680,
953,
834,
24175,
549,
17444,
427,
96,
24752,
49,
121,
3274,
3,
31,
134,
10405,
7,
6,
1862,
3961,
31,
3430,
96,
23954,
121,
3274,
3,
31,
3541,
23,
15,
89,
17,
9,
77,
31,
1,
... |
Which common has an area (km2) of 103.02? | CREATE TABLE table_1449169_1 (common VARCHAR, area__km_2__ VARCHAR) | SELECT common FROM table_1449169_1 WHERE area__km_2__ = "103.02" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3647,
27096,
834,
536,
41,
287,
2157,
584,
4280,
28027,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1017,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1017,
21680,
953,
834,
2534,
3647,
27096,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
834,
357,
834,
834,
3274,
96,
17864,
5,
4305,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the game with record being 29–3 | CREATE TABLE table_13480122_5 (game VARCHAR, record VARCHAR) | SELECT game FROM table_13480122_5 WHERE record = "29–3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
20579,
20889,
834,
755,
41,
7261,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
467,
28,
1368,
271,
2838,
104,
519,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
21680,
953,
834,
2368,
20579,
20889,
834,
755,
549,
17444,
427,
1368,
3274,
96,
3166,
104,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the average of employee_id bin hire_date by time. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
... |
When Michael Schumacher won the race, who had the fastest lap? | CREATE TABLE table_51715 (
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_51715 WHERE "Winning Driver" = 'michael schumacher' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
1808,
41,
96,
4744,
727,
12942,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,
96,
518,
10503,
10546,
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,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
755,
2517,
1808,
549,
17444,
427,
96,
518,
10503,
10546,
121,
3274,
3,
31,
51,
362,
9,
15,
40,
3,
7,
8019,
24113,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the declination with NGC number larger than 5750 | CREATE TABLE table_55067 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text,
"Apparent magnitude" real
) | SELECT "Declination ( J2000 )" FROM table_55067 WHERE "NGC number" > '5750' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17147,
3708,
41,
96,
12531,
254,
381,
121,
490,
6,
96,
17057,
686,
121,
1499,
6,
96,
4302,
7,
6714,
257,
121,
1499,
6,
96,
448,
2632,
38,
75,
35,
1938,
41,
446,
13527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2962,
11005,
257,
41,
446,
13527,
3,
61,
121,
21680,
953,
834,
17147,
3708,
549,
17444,
427,
96,
12531,
254,
381,
121,
2490,
3,
31,
3436,
1752,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who loss the 24-28 game? | CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_20 WHERE result = "loss" AND score = "24-28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
32,
102,
9977,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1453,
8,
12371,
2577,
467,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
741,
3274,
96,
2298,
7,
121,
3430,
2604,
3274,
96,
2266,
18,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When is the first elected in the Florida 19 district? | CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
5553,
4729,
834,
1714,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
8,
166,
8160,
16,
8,
2599,
957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
166,
834,
19971,
21680,
953,
834,
20829,
5553,
4729,
834,
1714,
549,
17444,
427,
3939,
3274,
96,
11251,
4055,
9,
957,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In the venue Corio Oval, who was the away team? | CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_97 WHERE venue = "corio oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
5669,
2487,
23,
32,
411,
2165,
6,
113,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
5669,
3274,
96,
5715,
23,
32,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the max 2010 value for a 1980 gap value is 2.43? | CREATE TABLE table_30133_3 (
gap_from_thailand_as_of_1980__times_ VARCHAR
) | SELECT MAX(2010) FROM table_30133_3 WHERE gap_from_thailand_as_of_1980__times_ = "2.43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
22974,
834,
519,
41,
6813,
834,
7152,
834,
189,
9,
173,
232,
834,
9,
7,
834,
858,
834,
2294,
2079,
834,
834,
715,
7,
834,
584,
4280,
28027,
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,
0... | [
3,
23143,
14196,
4800,
4,
599,
14926,
61,
21680,
953,
834,
1458,
22974,
834,
519,
549,
17444,
427,
6813,
834,
7152,
834,
189,
9,
173,
232,
834,
9,
7,
834,
858,
834,
2294,
2079,
834,
834,
715,
7,
834,
3274,
96,
17638,
519,
121,
1... |
Give me the comparison about the amount of meter_200 over the meter_200 , and group by attribute meter_200, sort from high to low by the meter_200. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
) | SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
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,
3,
4401,
834,
3632,
6,
2847,
17161,
599,
4401,
834,
3632,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
3,
4401,
834,
3632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the gas storage status for the nation that had "yes" for alternative fuel? | CREATE TABLE table_21690339_1 (gas_storage VARCHAR, alternative_fuel VARCHAR) | SELECT gas_storage FROM table_21690339_1 WHERE alternative_fuel = "Yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3951,
4928,
3288,
834,
536,
41,
5556,
834,
7279,
545,
584,
4280,
28027,
6,
2433,
834,
21692,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1807,
1606... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1807,
834,
7279,
545,
21680,
953,
834,
2658,
3951,
4928,
3288,
834,
536,
549,
17444,
427,
2433,
834,
21692,
3274,
96,
19739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Title has a Role of Mylene? | CREATE TABLE table_name_79 (
title VARCHAR,
role VARCHAR
) | SELECT title FROM table_name_79 WHERE role = "mylene" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
2233,
584,
4280,
28027,
6,
1075,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11029,
65,
3,
9,
2158,
109,
13,
499,
14205,
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,
2233,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1075,
3274,
96,
2258,
14205,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Format has a Catalog smaller than 61298? | CREATE TABLE table_name_11 (format VARCHAR, catalog INTEGER) | SELECT format FROM table_name_11 WHERE catalog < 61298 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
8995,
584,
4280,
28027,
6,
10173,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
12439,
65,
3,
9,
22424,
2755,
145,
431,
2122,
3916,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
10173,
3,
2,
431,
2122,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the average round the position of RB was drafted? | CREATE TABLE table_name_90 (round INTEGER, position VARCHAR) | SELECT AVG(round) FROM table_name_90 WHERE position = "rb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
7775,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1348,
1751,
8,
1102,
13,
3,
12108,
47,
3,
23505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1102,
3274,
96,
52,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many series numbers belong to the episode 'Vexation of Spirit'? | CREATE TABLE table_2645 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | SELECT COUNT("Series #") FROM table_2645 WHERE "Title" = 'Vexation of Spirit' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2128,
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,
2847,
17161,
599,
121,
12106,
7,
1713,
8512,
21680,
953,
834,
2688,
2128,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
553,
994,
257,
13,
5876,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the week 2 prior to the when Miranda Jordan was the week 4? | CREATE TABLE table_name_99 (week_2 VARCHAR, week_4 VARCHAR) | SELECT week_2 FROM table_name_99 WHERE week_4 = "miranda jordan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
8041,
834,
357,
584,
4280,
28027,
6,
471,
834,
591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
471,
204,
1884,
12,
8,
116,
31714,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
357,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
471,
834,
591,
3274,
96,
5884,
232,
9,
3,
12775,
3768,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
I want the sum of drawn for lost less than 0 | CREATE TABLE table_name_81 (
drawn INTEGER,
lost INTEGER
) | SELECT SUM(drawn) FROM table_name_81 WHERE lost < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
6796,
3,
21342,
17966,
6,
1513,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
4505,
13,
6796,
21,
1513,
705,
145,
3,
632,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1513,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What position is the round higher than 15 and has an overall of 411. | CREATE TABLE table_name_82 (position VARCHAR, round VARCHAR, overall VARCHAR) | SELECT position FROM table_name_82 WHERE round > 15 AND overall = 411 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
4718,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
19,
8,
1751,
1146,
145,
627,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1751,
2490,
627,
3430,
1879,
3274,
314,
2596,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the first leg score in the match against Twente? | CREATE TABLE table_name_58 (
first_leg VARCHAR,
opposition VARCHAR
) | SELECT first_leg FROM table_name_58 WHERE opposition = "twente" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
166,
834,
5772,
584,
4280,
28027,
6,
8263,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
166,
4553,
2604,
16,
8,
1588,
581,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
5772,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
8263,
3274,
96,
17,
16103,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver? | CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT COUNT(total) FROM table_name_98 WHERE bronze < 2 AND rank < 4 AND silver < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
235,
1947,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
13467,
3,
2,
204,
3430,
11003,
3,
2,
314,
3430,
4294,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which chassis has an Alfa Romeo flat-12 engine. | CREATE TABLE table_name_76 (
chassis VARCHAR,
engine VARCHAR
) | SELECT chassis FROM table_name_76 WHERE engine = "alfa romeo flat-12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
22836,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
22836,
65,
46,
27900,
7332,
32,
2667,
5947,
1948,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1948,
3274,
96,
138,
89,
9,
3,
11956,
32,
2667,
5947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which is the acquisition via that has a school or club team of state? | CREATE TABLE table_name_82 (
acquisition_via VARCHAR,
school_club_team VARCHAR
) | SELECT acquisition_via FROM table_name_82 WHERE school_club_team = "state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
6566,
834,
5907,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19,
8,
6566,
1009,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6566,
834,
5907,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
5540,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was finish Toulouse, and stage was larger than 12? | CREATE TABLE table_name_90 (year INTEGER, finish VARCHAR, stage VARCHAR) | SELECT SUM(year) FROM table_name_90 WHERE finish = "toulouse" AND stage > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1201,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
1992,
26244,
6,
11,
1726,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1992,
3274,
96,
235,
83,
1162,
15,
121,
3430,
1726,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did the Houston Rockets play Home? | CREATE TABLE table_name_48 (date VARCHAR, home VARCHAR) | SELECT date FROM table_name_48 WHERE home = "houston rockets" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5522,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
8018,
22176,
7,
577,
1210,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
234,
3274,
96,
9492,
4411,
15721,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which state is Mount Chiginagak located in? | CREATE TABLE table_68010 (
"Rank" real,
"Mountain Peak" text,
"State" text,
"Mountain Range" text,
"Location" text
) | SELECT "State" FROM table_68010 WHERE "Mountain Peak" = 'mount chiginagak' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2079,
1714,
41,
96,
22557,
121,
490,
6,
96,
329,
32,
14016,
77,
18996,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
329,
32,
14016,
77,
10971,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
948,
2079,
1714,
549,
17444,
427,
96,
329,
32,
14016,
77,
18996,
121,
3274,
3,
31,
11231,
3,
1436,
19604,
122,
1639,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart of minimal salary from each dept name, and list in descending by the X-axis please. | CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
) | SELECT dept_name, MIN(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
7,
834,
4309,
3,
4331,
4059,
15757,
6,
3,
23,
834,
4309,
3,
4331,
4059,
15757,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
4699,
3,
4331,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
3,
17684,
599,
7,
138,
1208,
61,
21680,
10617,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
309,
25067,
1,
-100,
-100,
-100,
-100,
... |
Who did the play-by-play with studio host Ward Cornell and color commentator Bob Goldham? | CREATE TABLE table_name_13 (
play_by_play VARCHAR,
studio_host VARCHAR,
colour_commentator_s_ VARCHAR
) | SELECT play_by_play FROM table_name_13 WHERE studio_host = "ward cornell" AND colour_commentator_s_ = "bob goldham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
577,
834,
969,
834,
4895,
584,
4280,
28027,
6,
3100,
834,
12675,
584,
4280,
28027,
6,
3243,
834,
287,
297,
1016,
834,
7,
834,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
577,
834,
969,
834,
4895,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3100,
834,
12675,
3274,
96,
2239,
7329,
3820,
121,
3430,
3243,
834,
287,
297,
1016,
834,
7,
834,
3274,
96,
17396,
2045,
1483,
121,
1,
-100... |
What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385? | CREATE TABLE table_name_43 (
language VARCHAR,
frequency VARCHAR,
issn VARCHAR
) | SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1612,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
6,
19,
7,
29,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1612,
21,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1612,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
7321,
3274,
96,
519,
648,
399,
215,
121,
3430,
19,
7,
29,
3274,
96,
20522,
25302,
3747,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score on January 16, 2010? | CREATE TABLE table_name_25 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_25 WHERE date = "january 16, 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
1762,
11940,
2735,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
11940,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many champions were there in 2009? | CREATE TABLE table_17033 (
"Season" text,
"Champion" text,
"Runner-up" text,
"Third place" text,
"Top scorer" text
) | SELECT COUNT("Champion") FROM table_17033 WHERE "Season" = '2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
4201,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
382,
9288,
26,
286,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
254,
1483,
12364,
8512,
21680,
953,
834,
536,
2518,
4201,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
16660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many entries are there for vote when the air date was 15 november 1997? | CREATE TABLE table_25016824_2 (vote VARCHAR, air_date VARCHAR) | SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = "15 November 1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
24274,
2266,
834,
357,
41,
1621,
17,
15,
584,
4280,
28027,
6,
799,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
10066,
33,
132,
21,
2902,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1621,
17,
15,
61,
21680,
953,
834,
11434,
24274,
2266,
834,
357,
549,
17444,
427,
799,
834,
5522,
3274,
96,
1808,
1671,
6622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time, and I want to display by the total number of salary in ascending. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
... |
What was the loss when the record was 46-59? | CREATE TABLE table_36628 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Loss" FROM table_36628 WHERE "Record" = '46-59' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3539,
2577,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
7,
121,
21680,
953,
834,
519,
3539,
2577,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
4448,
18,
3390,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients with drug code meth40 who have been admitted to hospital for more than a day. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "1" AND prescriptions.formulary_drug_cd = "METH40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who played women's singles in 1933? | CREATE TABLE table_5346 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Women's singles" FROM table_5346 WHERE "Year" = '1933' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
4448,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
32,
904,
31,
7,
712,
7,
121,
21680,
953,
834,
4867,
4448,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4201,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the wrestler when there was over 1 time? | CREATE TABLE table_34871 (
"Wrestler:" text,
"Times:" real,
"Date:" text,
"Place:" text,
"Successful defenses:" real
) | SELECT "Wrestler:" FROM table_34871 WHERE "Times:" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
4225,
536,
41,
96,
518,
6216,
1171,
10,
121,
1499,
6,
96,
13368,
7,
10,
121,
490,
6,
96,
308,
342,
10,
121,
1499,
6,
96,
345,
11706,
10,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
6216,
1171,
10,
121,
21680,
953,
834,
3710,
4225,
536,
549,
17444,
427,
96,
13368,
7,
10,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many deciles have Years of 1–8, and a Roll of 49? | CREATE TABLE table_name_95 (decile VARCHAR, years VARCHAR, roll VARCHAR) | SELECT COUNT(decile) FROM table_name_95 WHERE years = "1–8" AND roll = 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
24223,
109,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
6,
3812,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7908,
965,
43,
13825,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
203,
3274,
96,
536,
104,
927,
121,
3430,
3812,
3274,
9526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Engine has a Power of 114hp (85kw)? | CREATE TABLE table_name_72 (
engine VARCHAR,
power VARCHAR
) | SELECT engine FROM table_name_72 WHERE power = "114hp (85kw)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
1948,
584,
4280,
28027,
6,
579,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
10612,
65,
3,
9,
2621,
13,
3,
18959,
107,
102,
41,
4433,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1948,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
579,
3274,
96,
18959,
107,
102,
41,
4433,
157,
210,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of losses for teams with fewer than 0 wins? | CREATE TABLE table_name_23 (losses INTEGER, wins INTEGER) | SELECT AVG(losses) FROM table_name_23 WHERE wins < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
2298,
2260,
3,
21342,
17966,
6,
9204,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
8467,
21,
2323,
28,
3,
10643,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
9204,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the total yards lost by antwon bailey when he gained 227? | CREATE TABLE table_name_75 (loss INTEGER, name VARCHAR, gain VARCHAR) | SELECT MIN(loss) FROM table_name_75 WHERE name = "antwon bailey" AND gain > 227 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
2298,
7,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
2485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
6460,
1513,
57,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
2298,
7,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
564,
3274,
96,
288,
210,
106,
3,
9441,
1306,
121,
3430,
2485,
2490,
204,
2555,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total wins for Leopold that had fewer than 1706 against? | CREATE TABLE table_name_99 (wins INTEGER, against VARCHAR, geelong_fl VARCHAR) | SELECT SUM(wins) FROM table_name_99 WHERE against < 1706 AND geelong_fl = "leopold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
3757,
7,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
873,
15,
2961,
834,
89,
40,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
581,
3,
2,
1003,
5176,
3430,
873,
15,
2961,
834,
89,
40,
3274,
96,
109,
32,
3233,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the averag weights for people of each sex? Show a bar chart, I want to sort by the X from low to high. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
) | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
71,
17217,
599,
1326,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.