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 total works number of the locomotive with 0-6-4t type after 1875? | CREATE TABLE table_name_78 (works_number INTEGER, type VARCHAR, date VARCHAR) | SELECT SUM(works_number) FROM table_name_78 WHERE type = "0-6-4t" AND date > 1875 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
13631,
834,
5525,
1152,
3,
21342,
17966,
6,
686,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
930,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
13631,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
686,
3274,
96,
9498,
25618,
17,
121,
3430,
833,
2490,
507,
3072,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the away team that scored 9.12 (66) at Windy Hill? | CREATE TABLE table_74719 (
"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_74719 WHERE "Away team score" = '9.12 (66)' AND "Venue" = 'windy hill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4177,
2294,
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,
940,
4177,
2294,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
8797,
2122,
41,
3539,
61,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
5165,
63,
9956,
... |
What is the overall pick number for the player who was picked on round 8? | CREATE TABLE table_name_91 (overall INTEGER, round VARCHAR) | SELECT MIN(overall) FROM table_name_91 WHERE round = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
1890,
1748,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1879,
1432,
381,
21,
8,
1959,
113,
47,
4758,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
1751,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many receptions were smaller than 7? | CREATE TABLE table_49096 (
"Player" text,
"Games" real,
"Reception" real,
"Yards" real,
"Long" real
) | SELECT COUNT("Reception") FROM table_49096 WHERE "Long" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2394,
4314,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
1649,
7239,
121,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
434,
2444,
121,
490,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1649,
7239,
8512,
21680,
953,
834,
591,
2394,
4314,
549,
17444,
427,
96,
434,
2444,
121,
3,
2,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance where the record was 8-4? | CREATE TABLE table_78115 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Rams points" real,
"Opponents" real,
"Record" text,
"Attendance" real
) | SELECT MIN("Attendance") FROM table_78115 WHERE "Record" = '8-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
15660,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
265,
7,
979,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3940,
15660,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
927,
4278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the value for Slalom in seasons later than 1994 and overall value greater than 22? | CREATE TABLE table_name_90 (
slalom VARCHAR,
season VARCHAR,
overall VARCHAR
) | SELECT slalom FROM table_name_90 WHERE season > 1994 AND overall > 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3,
7,
40,
138,
32,
51,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
7,
40,
138,
32,
51,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
774,
2490,
7520,
3430,
1879,
2490,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What districts of Bihar have a sex ratio in 1991 of 864? | CREATE TABLE table_19589113_5 (
districts_of_bihar VARCHAR,
sex_ratio_‡_1991 VARCHAR
) | SELECT districts_of_bihar FROM table_19589113_5 WHERE sex_ratio_‡_1991 = 864 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
3914,
20522,
834,
755,
41,
14126,
834,
858,
834,
115,
23,
3272,
584,
4280,
28027,
6,
3,
7,
994,
834,
6850,
32,
834,
2,
834,
2294,
4729,
584,
4280,
28027,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14126,
834,
858,
834,
115,
23,
3272,
21680,
953,
834,
22464,
3914,
20522,
834,
755,
549,
17444,
427,
3,
7,
994,
834,
6850,
32,
834,
2,
834,
2294,
4729,
3274,
505,
4389,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which competition took place on October 11, 2006? | CREATE TABLE table_name_63 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_63 WHERE date = "october 11, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2259,
808,
286,
30,
1797,
9694,
3581,
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,
2259,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
9694,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many bronze medals has a total less than 3 with a silver less than 1 and gold more than 1? | CREATE TABLE table_name_66 (
bronze INTEGER,
gold VARCHAR,
total VARCHAR,
silver VARCHAR
) | SELECT AVG(bronze) FROM table_name_66 WHERE total < 3 AND silver < 1 AND gold > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
13467,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
792,
3,
2,
220,
3430,
4294,
3,
2,
209,
3430,
2045,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart to compare the stars of each movie by title, and sort in descending by the Y-axis. | CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY stars DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
3,
52,
4309,
16,
17,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
6,
4811,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
4674,
11300,
272,
476,
4811,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest swimsuit that has an evening gown bigger than 8.794 for illinois? | CREATE TABLE table_11541 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT MIN("Swimsuit") FROM table_11541 WHERE "Evening Gown" > '8.794' AND "State" = 'illinois' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
4853,
41,
96,
134,
4748,
121,
1499,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
53,
350,
9197,
121,
490,
6,
96,
188,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
134,
210,
603,
7628,
8512,
21680,
953,
834,
15660,
4853,
549,
17444,
427,
96,
427,
1926,
53,
350,
9197,
121,
2490,
3,
31,
927,
5,
4440,
591,
31,
3430,
96,
134,
4748,
121,
3274,
3,
31,
1092,
7... |
give the number of patients whose admission type is urgent and primary disease is pneumonia. | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.diagnosis = "PNEUMONIA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
... |
WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS? | CREATE TABLE table_name_28 (semifinalists VARCHAR, tournament VARCHAR) | SELECT semifinalists FROM table_name_28 WHERE tournament = "paris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
7,
15,
51,
23,
28077,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
20989,
3,
7451,
1853,
180,
25284,
17630,
4090,
1358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4772,
28077,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
5892,
3274,
96,
1893,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the third bridge over panama canal? | CREATE TABLE table_name_83 (
location VARCHAR,
name VARCHAR
) | SELECT location FROM table_name_83 WHERE name = "third bridge over panama canal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1128,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1025,
4716,
147,
3418,
51,
9,
10130,
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,
1128,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
564,
3274,
96,
14965,
4716,
147,
3418,
51,
9,
10130,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the pick of Texas-San Antonio? | CREATE TABLE table_44326 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
) | SELECT AVG("Pick") FROM table_44326 WHERE "College" = 'texas-san antonio' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
519,
2688,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
345,
3142,
8512,
21680,
953,
834,
3628,
519,
2688,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
10354,
9,
7,
18,
7,
152,
3,
9,
6992,
23,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of founder and the average of code , and group by attribute founder, display y-axis in ascending order please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T1.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
19145,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4416,
1... |
Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10? | CREATE TABLE table_name_88 (top_5 INTEGER, cuts_made VARCHAR, events VARCHAR) | SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
2916,
834,
755,
3,
21342,
17966,
6,
8620,
834,
4725,
584,
4280,
28027,
6,
984,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2224,
4525,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2916,
834,
9120,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
8620,
834,
4725,
3274,
335,
3430,
984,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Record for April 15? | CREATE TABLE table_name_45 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_45 WHERE date = "april 15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11392,
21,
1186,
627,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Margin, when Match Date is Oct 17, 2007? | CREATE TABLE table_41135 (
"S No" real,
"Team (A)" text,
"Team (B)" text,
"Winner" text,
"Margin" text,
"Match Date" text
) | SELECT "Margin" FROM table_41135 WHERE "Match Date" = 'oct 17, 2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2596,
2469,
41,
96,
134,
465,
121,
490,
6,
96,
18699,
41,
188,
61,
121,
1499,
6,
96,
18699,
41,
279,
61,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
7286,
122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7286,
122,
77,
121,
21680,
953,
834,
591,
2596,
2469,
549,
17444,
427,
96,
329,
14547,
7678,
121,
3274,
3,
31,
32,
75,
17,
12864,
4101,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Country, when Points are more than 12? | CREATE TABLE table_name_30 (country VARCHAR, points INTEGER) | SELECT country FROM table_name_30 WHERE points > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
17529,
584,
4280,
28027,
6,
979,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
4564,
7,
33,
72,
145,
586,
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,
684,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
979,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is moving from Treviso with a loan return? | CREATE TABLE table_12988 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" text
) | SELECT "Name" FROM table_12988 WHERE "Moving from" = 'treviso' AND "Type" = 'loan return' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22174,
4060,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
45,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18474,
1010,
2034,
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,
23954,
121,
21680,
953,
834,
22174,
4060,
549,
17444,
427,
96,
329,
32,
3745,
45,
121,
3274,
3,
31,
929,
3466,
32,
31,
3430,
96,
25160,
121,
3274,
3,
31,
40,
32,
152,
1205,
31,
1,
-100,
-100,
-100,
-100,
-10... |
which Event that has an Opponent of kendall grove? | CREATE TABLE table_name_2 (
event VARCHAR,
opponent VARCHAR
) | SELECT event FROM table_name_2 WHERE opponent = "kendall grove" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
605,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
8042,
24,
65,
46,
4495,
9977,
13,
3,
2217,
26,
1748,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
15264,
3274,
96,
2217,
26,
1748,
3,
20254,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
has fasting serum triglycerides > 400 mg / dl ( > 4.52 mmol / l ) or > 250 mg / dl ( > 2.85 mmol / l ) if not on stable lipid _ lowering therapy for at least 4 weeks prior to screening | CREATE TABLE table_train_175 (
"id" int,
"lipid_lowering_therapy" bool,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"fasting_serum_triglycerides" int,
"gilbert_syndrome" bool,
"age" float,
"alanine_aminotransferase" bool,
"NOUSE" float
) | SELECT * FROM table_train_175 WHERE fasting_serum_triglycerides > 400 OR (fasting_serum_triglycerides > 250 AND lipid_lowering_therapy = 0) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
536,
3072,
41,
96,
23,
26,
121,
16,
17,
6,
96,
19437,
834,
23358,
834,
10896,
121,
3,
12840,
40,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
536,
3072,
549,
17444,
427,
1006,
53,
834,
7,
49,
440,
834,
17,
3380,
120,
2110,
9361,
2490,
4837,
4674,
41,
11584,
53,
834,
7,
49,
440,
834,
17,
3380,
120,
2110,
9361,
2490,
5986... |
What team features garth tander? | CREATE TABLE table_32325 (
"Name" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Team" FROM table_32325 WHERE "Name" = 'garth tander' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
1828,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
26,
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,
0,
0... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
2668,
519,
1828,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1478,
189,
3,
17,
11849,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the population of durham parish? | CREATE TABLE table_name_73 (
population VARCHAR,
official_name VARCHAR
) | SELECT COUNT(population) FROM table_name_73 WHERE official_name = "durham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2074,
584,
4280,
28027,
6,
2314,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2074,
13,
11184,
1483,
14961,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2314,
834,
4350,
3274,
96,
13629,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is thursday day five when friday day six is პარასკევი p'arask'evi? | CREATE TABLE table_1277350_7 (thursday_day_five VARCHAR, friday_day_six VARCHAR) | SELECT thursday_day_five FROM table_1277350_7 WHERE friday_day_six = "პარასკევი p'arask'evi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4013,
16975,
834,
940,
41,
189,
3589,
1135,
834,
1135,
834,
16443,
584,
4280,
28027,
6,
9030,
1135,
834,
1135,
834,
7,
2407,
584,
4280,
28027,
61,
3,
32102,
32103,
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,
3,
189,
3589,
1135,
834,
1135,
834,
16443,
21680,
953,
834,
2122,
4013,
16975,
834,
940,
549,
17444,
427,
9030,
1135,
834,
1135,
834,
7,
2407,
3274,
96,
2,
3,
102,
31,
2551,
7,
157,
31,
15,
2099,
121,
1,
-100,
-... |
what is the number of patients whose diagnoses icd9 code is 7245 and lab test abnormal status is delta? | 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 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "7245" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
provide the number of patients whose insurance is medicare and diagnoses long title is streptococcal septicemia? | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.long_title = "Streptococcal septicemia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the name of the winner or 2nd when the result was , and weight was 6.7? | CREATE TABLE table_76972 (
"Result" text,
"Race" text,
"Distance" text,
"Weight" real,
"Winner or 2nd" text,
"Pos'n" text
) | SELECT "Winner or 2nd" FROM table_76972 WHERE "Result" = '–' AND "Weight" = '6.7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4327,
357,
41,
96,
20119,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
1326,
2632,
121,
490,
6,
96,
18455,
687,
42,
204,
727,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
687,
42,
204,
727,
121,
21680,
953,
834,
3959,
4327,
357,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
104,
31,
3430,
96,
1326,
2632,
121,
3274,
3,
31,
29045,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What manner of departure was Dick Advocaat replaced by? | CREATE TABLE table_name_47 (
manner_of_departure VARCHAR,
replaced_by VARCHAR
) | SELECT manner_of_departure FROM table_name_47 WHERE replaced_by = "dick advocaat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3107,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
5821,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3107,
13,
12028,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3107,
834,
858,
834,
221,
2274,
1462,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
5821,
834,
969,
3274,
96,
26,
3142,
3,
9,
26,
6117,
9,
144,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4? | CREATE TABLE table_name_12 (samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR) | SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = "qingdao suncare nutritional technology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7,
9,
9208,
7,
834,
4914,
29,
3,
21342,
17966,
6,
3,
2341,
8721,
834,
14819,
834,
51,
122,
834,
8711,
834,
584,
4280,
28027,
6,
8211,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7,
9,
9208,
7,
834,
4914,
29,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
2341,
8721,
834,
14819,
834,
51,
122,
834,
8711,
834,
3,
2,
305,
23204,
3430,
8211,
3274,
96,
1824,
53,
26,... |
If the manufacturer is Proton Kr and the grid was over 10, what was the time retired? | CREATE TABLE table_name_79 (
time_retired VARCHAR,
grid VARCHAR,
manufacturer VARCHAR
) | SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = "proton kr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
4818,
19,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
8634,
2490,
335,
3430,
4818,
3274,
96,
1409,
17,
106,
3,
157,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many drivers completed at least 52 laps > | CREATE TABLE table_204_584 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT COUNT("driver") FROM table_204_584 WHERE "laps" >= 52 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3449,
591,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
15982,
5317,
121,
1499,
6,
96,
8478,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
13739,
52,
8512,
21680,
953,
834,
26363,
834,
3449,
591,
549,
17444,
427,
96,
8478,
7,
121,
2490,
2423,
9065,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?, and show enr from high to low order. | CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
) | SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' ORDER BY enr DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12387,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
102,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
63,
6936,
26,
3,
4331,
4059,
17867,
6,
3,
4950,
206,
17552,
599,
11116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
538,
6,
3,
35,
52,
21680,
1888,
6157,
332,
536,
3,
15355,
3162,
5263,
670,
6157,
332,
357,
9191,
332,
5411,
75,
23954,
3274,
332,
4416,
75,
23954,
549,
17444,
427,
332,
4416,
221,
18901,
3274,
3,
31,
10070,
31,
46... |
Which Music has a Score of 30 (10, 10, 10), and a Style of cha-cha-cha? | CREATE TABLE table_name_22 (
music VARCHAR,
score VARCHAR,
style VARCHAR
) | SELECT music FROM table_name_22 WHERE score = "30 (10, 10, 10)" AND style = "cha-cha-cha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
723,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3057,
65,
3,
9,
17763,
13,
604,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
723,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
2604,
3274,
96,
1458,
11704,
6,
10372,
3,
16968,
121,
3430,
869,
3274,
96,
3441,
18,
3441,
18,
3441,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose year of birth is less than 1879 and lab test name is hematocrit, calculated? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "1879" AND lab.label = "Hematocrit, Calculated" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Show the member names which are in both the party with id 3 and the party with id 1. | CREATE TABLE member (member_name VARCHAR, party_id VARCHAR) | SELECT member_name FROM member WHERE party_id = 3 INTERSECT SELECT member_name FROM member WHERE party_id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
12066,
834,
4350,
584,
4280,
28027,
6,
1088,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
1144,
3056,
84,
33,
16,
321,
8,
1088,
28,
3,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1144,
834,
4350,
21680,
1144,
549,
17444,
427,
1088,
834,
23,
26,
3274,
220,
3,
21342,
5249,
14196,
3,
23143,
14196,
1144,
834,
4350,
21680,
1144,
549,
17444,
427,
1088,
834,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
... |
What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26? | CREATE TABLE table_name_8 (silver INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT AVG(silver) FROM table_name_8 WHERE gold > 3 AND nation = "soviet union (urs)" AND bronze > 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
7,
173,
624,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
2982,
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... | [
3,
23143,
14196,
71,
17217,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2045,
2490,
220,
3430,
2982,
3274,
96,
7,
9881,
15,
17,
7021,
41,
3589,
61,
121,
3430,
13467,
2490,
2208,
1,
-100,
-100,
-100,
-10... |
When 4 clubs are involved, what is the average number of fixtures? | CREATE TABLE table_name_3 (fixtures INTEGER, clubs_involved VARCHAR) | SELECT AVG(fixtures) FROM table_name_3 WHERE clubs_involved = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
12304,
10471,
3,
21342,
17966,
6,
8122,
834,
77,
4571,
162,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
314,
8122,
33,
1381,
6,
125,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
12304,
10471,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
8122,
834,
77,
4571,
162,
26,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who's the Republican ticket with a Democratic ticket of flora d. johnson? | CREATE TABLE table_40851 (
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Communist ticket" text,
"Socialist ticket" text
) | SELECT "Republican ticket" FROM table_40851 WHERE "Democratic ticket" = 'flora d. johnson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4433,
536,
41,
96,
1649,
15727,
152,
4142,
121,
1499,
6,
96,
19679,
447,
4142,
121,
1499,
6,
96,
8778,
9836,
4142,
121,
1499,
6,
96,
10205,
202,
343,
4142,
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,
1649,
15727,
152,
4142,
121,
21680,
953,
834,
2445,
4433,
536,
549,
17444,
427,
96,
19679,
447,
4142,
121,
3274,
3,
31,
89,
322,
9,
3,
26,
5,
3,
27341,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many times is the seasons 2 and the coach guy lowman? | CREATE TABLE table_name_92 (
winning__percentage VARCHAR,
seasons VARCHAR,
coach VARCHAR
) | SELECT COUNT(winning__percentage) FROM table_name_92 WHERE seasons = 2 AND coach = "guy lowman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
3447,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
9385,
584,
4280,
28027,
6,
3763,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8163,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
9385,
3274,
204,
3430,
3763,
3274,
96,
1744,
63,
731,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the hdtv when number is 378 | CREATE TABLE table_15887683_6 (
hdtv VARCHAR,
n° VARCHAR
) | SELECT hdtv FROM table_15887683_6 WHERE n° = 378 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4060,
3959,
4591,
834,
948,
41,
3,
107,
26,
17,
208,
584,
4280,
28027,
6,
3,
29,
1956,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
107,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
26,
17,
208,
21680,
953,
834,
1808,
4060,
3959,
4591,
834,
948,
549,
17444,
427,
3,
29,
1956,
3274,
220,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many teams were at 10 points? | CREATE TABLE table_28743 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT COUNT("Team") FROM table_28743 WHERE "Points" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4581,
519,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18699,
8512,
21680,
953,
834,
2577,
4581,
519,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Points, when Games is greater than 20, and when Team is Partizan Belgrade? | CREATE TABLE table_name_30 (points INTEGER, games VARCHAR, team VARCHAR) | SELECT MIN(points) FROM table_name_30 WHERE games > 20 AND team = "partizan belgrade" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2700,
7,
3,
21342,
17966,
6,
1031,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
4564,
7,
6,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1031,
2490,
460,
3430,
372,
3274,
96,
2274,
5584,
29,
36,
40,
6801,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, find hire_date and the sum of employee_id bin hire_date by time, and visualize them by a bar chart, and sort y axis in asc order please. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 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 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(EMPLOYEE_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
1... |
What was the score for the opponent florida panthers? | CREATE TABLE table_74118 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Location (Attendance)" text,
"Record" text,
"Points" real,
"Decision" text
) | SELECT COUNT("Score") FROM table_74118 WHERE "Opponent" = 'Florida Panthers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
20056,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
41,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
9022,
8512,
21680,
953,
834,
4581,
20056,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
11251,
4055,
9,
21149,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which nation has a heat of 4, and is ranked 8? | CREATE TABLE table_name_13 (
nation VARCHAR,
heat VARCHAR,
rank VARCHAR
) | SELECT nation FROM table_name_13 WHERE heat = 4 AND rank = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
2982,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982,
65,
3,
9,
1678,
13,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1678,
3274,
314,
3430,
11003,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152? | CREATE TABLE table_name_58 (
games_won VARCHAR,
points_for VARCHAR,
points_against VARCHAR,
bonus_points VARCHAR,
points_difference VARCHAR
) | SELECT COUNT(games_won) FROM table_name_58 WHERE bonus_points > 1 AND points_difference < 50 AND points_against = 106 AND points_for < 152 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1031,
834,
210,
106,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
4023,
834,
2700,
7,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7261,
7,
834,
210,
106,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
4023,
834,
2700,
7,
2490,
209,
3430,
979,
834,
26,
99,
11788,
3,
2,
943,
3430,
979,
834,
9,
16720,
7,
17,
3274,
3,... |
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 sum of employee_id bin hire_date by time, and display total number from high to low order. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
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 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
... |
What is the house colour associated with the house name of Kupe? | CREATE TABLE table_1942683_1 (
house_colour VARCHAR,
house_name VARCHAR
) | SELECT house_colour FROM table_1942683_1 WHERE house_name = "Kupe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
591,
2688,
4591,
834,
536,
41,
629,
834,
24814,
584,
4280,
28027,
6,
629,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
629,
3243,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
629,
834,
24814,
21680,
953,
834,
2294,
591,
2688,
4591,
834,
536,
549,
17444,
427,
629,
834,
4350,
3274,
96,
439,
413,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the collor commentator(s) for ESPN before 2012? | CREATE TABLE table_name_53 (
color_commentator_s_ VARCHAR,
year VARCHAR,
network VARCHAR
) | SELECT color_commentator_s_ FROM table_name_53 WHERE year < 2012 AND network = "espn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
945,
834,
287,
297,
1016,
834,
7,
834,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1229,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
945,
834,
287,
297,
1016,
834,
7,
834,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
215,
3,
2,
1673,
3430,
1229,
3274,
96,
15,
7,
102,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return all players sorted by college in ascending alphabetical order. | CREATE TABLE country (
country_id number,
country_name text,
capital text,
official_native_language text
)
CREATE TABLE match_season (
season number,
player text,
position text,
country number,
team number,
draft_pick_number number,
draft_class text,
college text
)
CREATE TABLE player (
player_id number,
player text,
years_played text,
total_wl text,
singles_wl text,
doubles_wl text,
team number
)
CREATE TABLE team (
team_id number,
name text
) | SELECT player FROM match_season ORDER BY college | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
684,
41,
684,
834,
23,
26,
381,
6,
684,
834,
4350,
1499,
6,
1784,
1499,
6,
2314,
834,
29,
1528,
834,
24925,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1959,
21680,
1588,
834,
9476,
4674,
11300,
272,
476,
1900,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Return a bar chart about the distribution of meter_200 and the sum of meter_100 , and group by attribute meter_200. | 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 event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
) | SELECT meter_200, SUM(meter_100) FROM swimmer GROUP BY meter_200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,
6,
868,
485,
1499,
6,
3,
4401,
834,
2915,
490,
6,
3,
4401,
834,
3632,
1499,
6,
3,
4401,
834,
5426,
1499,
6,
3,
4401,
834,
5548,
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,
3,
4401,
834,
3632,
6,
180,
6122,
599,
4401,
834,
2915,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is week 6 when week 7, week 4, and week 3 are evicted and week 2 29.35? | CREATE TABLE table_name_22 (
week_6 VARCHAR,
week_2 VARCHAR,
week_3 VARCHAR,
week_7 VARCHAR,
week_4 VARCHAR
) | SELECT week_6 FROM table_name_22 WHERE week_7 = "evicted" AND week_4 = "evicted" AND week_3 = "evicted" AND week_2 = "29.35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
471,
834,
948,
584,
4280,
28027,
6,
471,
834,
357,
584,
4280,
28027,
6,
471,
834,
519,
584,
4280,
28027,
6,
471,
834,
940,
584,
4280,
28027,
6,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
471,
834,
948,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
471,
834,
940,
3274,
96,
15,
7287,
1054,
121,
3430,
471,
834,
591,
3274,
96,
15,
7287,
1054,
121,
3430,
471,
834,
519,
3274,
96,
15,
7287,
1054,
12... |
Name the opponent for game 5 | CREATE TABLE table_name_25 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_25 WHERE game = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
32,
102,
9977,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
21,
467,
305,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
467,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the sum of the total apps of player benayoun, who has a PL G greater than 0 and more than 9 CL apps? | CREATE TABLE table_name_28 (
total_apps INTEGER,
cl_apps VARCHAR,
pl_g VARCHAR,
player VARCHAR
) | SELECT SUM(total_apps) FROM table_name_28 WHERE pl_g > 0 AND player = "benayoun" AND cl_apps > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
792,
834,
3096,
7,
3,
21342,
17966,
6,
3,
75,
40,
834,
3096,
7,
584,
4280,
28027,
6,
4752,
834,
122,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
834,
3096,
7,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
4752,
834,
122,
2490,
3,
632,
3430,
1959,
3274,
96,
115,
35,
9,
4188,
29,
121,
3430,
3,
75,
40,
834,
3096,
7,
2490,... |
how many institutions have at least 1000 listed for enrollment ? | CREATE TABLE table_203_135 (
id number,
"institution" text,
"location" text,
"founded" number,
"type" text,
"enrollment" number,
"joined" number,
"nickname" text
) | SELECT COUNT("institution") FROM table_203_135 WHERE "enrollment" >= 1000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
536,
2469,
41,
3,
23,
26,
381,
6,
96,
77,
17448,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
23329,
121,
381,
6,
96,
6137,
121,
1499,
6,
96,
35,
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,
2847,
17161,
599,
121,
77,
17448,
8512,
21680,
953,
834,
23330,
834,
536,
2469,
549,
17444,
427,
96,
35,
4046,
297,
121,
2490,
2423,
5580,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the week number for the date of September 14, 1980? | CREATE TABLE table_60627 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MAX("Week") FROM table_60627 WHERE "Date" = 'september 14, 1980' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
948,
2555,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3328,
948,
2555,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
11363,
6694,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who won the Metas Volantes Classification in the stage in which Damiano Cunego won the points classification? | CREATE TABLE table_9762 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Points Classification" text,
"Mountains Classification" text,
"Metas Volantes Classification" text,
"Team Classification" text
) | SELECT "Metas Volantes Classification" FROM table_9762 WHERE "Points Classification" = 'damiano cunego' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
4056,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
4501,
2420,
121,
1499,
6,
96,
22512,
7,
4501,
2420,
121,
1499,
6,
96,
329,
32,
14016,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23351,
9,
7,
4969,
8386,
4501,
2420,
121,
21680,
953,
834,
4327,
4056,
549,
17444,
427,
96,
22512,
7,
4501,
2420,
121,
3274,
3,
31,
7812,
20028,
123,
29,
6066,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 1956 has a County of vâlcea, and a 2011 smaller than 371714? | CREATE TABLE table_name_40 (county VARCHAR) | SELECT SUM(1956) FROM table_name_40 WHERE county = "vâlcea" AND 2011 < 371714 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
13362,
63,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
22951,
65,
3,
9,
1334,
13,
3,
208,
1439,
40,
8433,
6,
11,
3,
9,
2722,
2755,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
22464,
10938,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
5435,
3274,
96,
208,
1439,
40,
8433,
121,
3430,
2722,
3,
2,
6862,
2517,
2534,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission type is urgent and lab test fluid is urine? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who won the mixed doubles when ji xinpeng won the mens singles? | CREATE TABLE table_12027364_1 (mixed_doubles VARCHAR, mens_singles VARCHAR) | SELECT mixed_doubles FROM table_12027364_1 WHERE mens_singles = "Ji Xinpeng" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
2555,
3420,
591,
834,
536,
41,
13682,
15,
26,
834,
25761,
7,
584,
4280,
28027,
6,
1076,
7,
834,
7,
53,
965,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4838,
834,
25761,
7,
21680,
953,
834,
15518,
2555,
3420,
591,
834,
536,
549,
17444,
427,
1076,
7,
834,
7,
53,
965,
3274,
96,
683,
23,
3,
4,
77,
3208,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients under 77 years of age had a renal epithelial cells lab test done? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "77" AND lab.label = "Renal Epithelial Cells" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the score when the runner-up is richard krajicek? | CREATE TABLE table_name_54 (
score VARCHAR,
runner_up VARCHAR
) | SELECT score FROM table_name_54 WHERE runner_up = "richard krajicek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
2604,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2604,
116,
8,
3,
10806,
18,
413,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
3723,
986,
3,
157,
9655,
867,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What home team had a score of 6.9 (45) | CREATE TABLE table_58127 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_58127 WHERE "Home team score" = '6.9 (45)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
22367,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
3449,
22367,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
948,
5,
1298,
41,
2128,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For Vegas Verdicts week, what was the result? | CREATE TABLE table_name_21 (
result VARCHAR,
week VARCHAR
) | SELECT result FROM table_name_21 WHERE week = "vegas verdicts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
7615,
781,
12194,
7,
471,
6,
125,
47,
8,
741,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
471,
3274,
96,
162,
5556,
23173,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What city has a charter date of november 24, 1999? | CREATE TABLE table_60721 (
"Greek Designation" text,
"Collegiate Institution" text,
"Charter Date" text,
"Status" text,
"City" text,
"U.S. State/District" text
) | SELECT "City" FROM table_60721 WHERE "Charter Date" = 'november 24, 1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
940,
2658,
41,
96,
517,
52,
10266,
1642,
257,
121,
1499,
6,
96,
9939,
8492,
342,
14932,
121,
1499,
6,
96,
18947,
449,
7678,
121,
1499,
6,
96,
134,
17,
144,
302,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
3328,
940,
2658,
549,
17444,
427,
96,
18947,
449,
7678,
121,
3274,
3,
31,
5326,
18247,
14320,
5247,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In May 2010, which party had a turnout of less than 3, but also the hightest turnout in May 2012? | CREATE TABLE table_10697 (
"Party" text,
"1999 Election" real,
"2003 Election" real,
"2007 Election" real,
"May 2010" real,
"2011 Election" real,
"May 2012" real
) | SELECT MAX("May 2012") FROM table_10697 WHERE "May 2010" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
4327,
41,
96,
13725,
63,
121,
1499,
6,
96,
2294,
3264,
19488,
121,
490,
6,
96,
23948,
19488,
121,
490,
6,
96,
20615,
19488,
121,
490,
6,
96,
15881,
2735,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
15881,
1673,
8512,
21680,
953,
834,
16431,
4327,
549,
17444,
427,
96,
15881,
2735,
121,
3,
2,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the top 3 products which have the largest number of problems? | CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR) | SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
982,
41,
15892,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
41,
15892,
834,
4350,
584,
4280,
28027,
6,
556,
834,
23,
26,
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,
0... | [
3,
23143,
14196,
332,
4416,
15892,
834,
4350,
21680,
982,
6157,
332,
536,
3,
15355,
3162,
556,
6157,
332,
357,
9191,
332,
5411,
15892,
834,
23,
26,
3274,
332,
4416,
15892,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
4416,
15892,
83... |
Visualize a bar chart about the distribution of All_Neutral and Team_ID , and I want to list by the x axis from high to low please. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Neutral, Team_ID FROM basketball_match ORDER BY All_Neutral DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
26288,
8792,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the developers for demon's souls? | CREATE TABLE table_name_8 (developer_s_ VARCHAR, game VARCHAR) | SELECT developer_s_ FROM table_name_8 WHERE game = "demon's souls" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
29916,
49,
834,
7,
834,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
5564,
21,
20,
2157,
31,
7,
3668,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7523,
834,
7,
834,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
467,
3274,
96,
1778,
106,
31,
7,
3668,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Opponent has a Result of win, and a Date of march 17? | CREATE TABLE table_46172 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
) | SELECT "Opponent" FROM table_46172 WHERE "Result" = 'win' AND "Date" = 'march 17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
27156,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
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,
96,
667,
102,
9977,
121,
21680,
953,
834,
4448,
27156,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
3757,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
1003,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who had the lowest interview score from South Dakota with an evening gown less than 8.513? | CREATE TABLE table_name_52 (
interview INTEGER,
state VARCHAR,
evening_gown VARCHAR
) | SELECT MIN(interview) FROM table_name_52 WHERE state = "south dakota" AND evening_gown < 8.513 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2772,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
7402,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
538,
3274,
96,
7,
670,
107,
836,
15414,
9,
121,
3430,
2272,
834,
122,
9197,
3,
2,
3,
19253,
2368,
1,
-100,
-100,
-100,
-100,
-100,
... |
Show the relationship between the subject ID and the corresponding number of courses for each subject in a scatter chart. | CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
) | SELECT T1.subject_id, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
41,
3816,
834,
23,
26,
3,
21342,
17966,
6,
1236,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
23,
26,
3,
21342,
17966,
6,
833,
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,
332,
5411,
7304,
11827,
834,
23,
26,
6,
2847,
17161,
599,
1935,
61,
21680,
8670,
7,
6157,
332,
536,
3,
15355,
3162,
19237,
7,
6157,
332,
357,
9191,
332,
5411,
7304,
11827,
834,
23,
26,
3274,
332,
4416,
7304,
11827,
... |
What was the earliest year for a car with 3 points and Cooper t20 chassis? | CREATE TABLE table_name_36 (year INTEGER, points VARCHAR, chassis VARCHAR) | SELECT MIN(year) FROM table_name_36 WHERE points = 3 AND chassis = "cooper t20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1201,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
16454,
215,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
979,
3274,
220,
3430,
22836,
3274,
96,
25911,
49,
3,
17,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the sum of draws for against larger than 1228 with fewer than 1 wins? | CREATE TABLE table_58599 (
"Mid Gippsland FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT SUM("Draws") FROM table_58599 WHERE "Against" > '1228' AND "Wins" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
755,
3264,
41,
96,
329,
23,
26,
3156,
1572,
7,
40,
232,
7212,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
308,
10936,
7,
8512,
21680,
953,
834,
3449,
755,
3264,
549,
17444,
427,
96,
20749,
121,
2490,
3,
31,
2122,
2577,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,... |
What is the highest population for the | CREATE TABLE table_12496904_1 (
_august_15 VARCHAR,
_2002 VARCHAR,
population INTEGER
) | SELECT MAX(population), _august_15, _2002 FROM table_12496904_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3647,
3951,
6348,
834,
536,
41,
3,
834,
402,
17198,
834,
1808,
584,
4280,
28027,
6,
3,
834,
24898,
584,
4280,
28027,
6,
2074,
3,
21342,
17966,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9791,
7830,
201,
3,
834,
402,
17198,
834,
1808,
6,
3,
834,
24898,
21680,
953,
834,
2122,
3647,
3951,
6348,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who finished after will power ? | CREATE TABLE table_203_452 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT "driver" FROM table_203_452 WHERE "pos" = (SELECT "pos" FROM table_203_452 WHERE "driver" = 'will power') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2128,
357,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
8478,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13739,
52,
121,
21680,
953,
834,
23330,
834,
2128,
357,
549,
17444,
427,
96,
2748,
121,
3274,
41,
23143,
14196,
96,
2748,
121,
21680,
953,
834,
23330,
834,
2128,
357,
549,
17444,
427,
96,
13739,
52,
121,
3274,
3... |
Name the fewest gold for tanzania with bronze less than 0 | CREATE TABLE table_name_54 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MIN(gold) FROM table_name_54 WHERE nation = "tanzania" AND bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
14910,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
360,
222,
2045,
21,
3,
14137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
2982,
3274,
96,
14137,
11219,
121,
3430,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which package/option has sky wwe 24/7 television service? | CREATE TABLE table_41265 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) | SELECT "Package/Option" FROM table_41265 WHERE "Television service" = 'sky wwe 24/7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
4122,
41,
96,
382,
400,
6610,
313,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
1468,
76,
545,
121,
1499,
6,
96,
4302,
4669,
121,
1499,
6,
96,
11083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24376,
545,
87,
9546,
106,
121,
21680,
953,
834,
591,
2122,
4122,
549,
17444,
427,
96,
382,
400,
6610,
313,
121,
3274,
3,
31,
5352,
3,
210,
1123,
12680,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the record on december 8 when the boston bruins visited? | CREATE TABLE table_name_49 (
record VARCHAR,
visitor VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_49 WHERE visitor = "boston bruins" AND date = "december 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1368,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
30,
20,
75,
18247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
7019,
3274,
96,
115,
32,
4411,
3,
115,
23162,
121,
3430,
833,
3274,
96,
221,
75,
18247,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which model has a frequency of 750 mhz and a socket of bga2 pga2? | CREATE TABLE table_77189 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text,
"Release date" text
) | SELECT "Model number" FROM table_77189 WHERE "Frequency" = '750 mhz' AND "Socket" = 'bga2μpga2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
25312,
41,
96,
24663,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
357,
11800,
121,
1499,
6,
96,
329,
83,
17,
535,
1499,
6,
96,
22803,
6505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24663,
381,
121,
21680,
953,
834,
4013,
25312,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
9979,
3,
51,
107,
172,
31,
3430,
96,
5231,
8849,
17,
121,
3274,
3,
31,
115,
122,
9,
357,
2,
102,
1... |
On what date did Aymo Maggi win the Rome Grand Prix ? | CREATE TABLE table_68068 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
) | SELECT "Date" FROM table_68068 WHERE "Winning driver" = 'aymo maggi' AND "Name" = 'rome grand prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2079,
3651,
41,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
10503,
6774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
948,
2079,
3651,
549,
17444,
427,
96,
518,
10503,
2535,
121,
3274,
3,
31,
9,
63,
51,
32,
954,
15406,
31,
3430,
96,
23954,
121,
3274,
3,
31,
11956,
1907,
3407,
31,
1,
-100,
-10... |
What is the Away team score for Away team Melbourne? | CREATE TABLE table_name_89 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_89 WHERE away_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
8006,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
71,
1343,
372,
2604,
21,
71,
1343,
372,
9396,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many teams competed for medals ? | CREATE TABLE table_204_297 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_204_297 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
4327,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
8512,
21680,
953,
834,
26363,
834,
357,
4327,
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 Record with a Date that is may 20, 1961? | CREATE TABLE table_42209 (
"Record" text,
"Athlete" text,
"Nation" text,
"Venue" text,
"Date" text
) | SELECT "Record" FROM table_42209 WHERE "Date" = 'may 20, 1961' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
357,
4198,
41,
96,
1649,
7621,
121,
1499,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
308,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4165,
357,
4198,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
16047,
21018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team had 159 laps and a Time/Retired of 6:30:02.3733? | CREATE TABLE table_name_75 (
team VARCHAR,
laps VARCHAR,
time_retired VARCHAR
) | SELECT team FROM table_name_75 WHERE laps = 159 AND time_retired = "6:30:02.3733" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
372,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
141,
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,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
14941,
7,
3274,
3,
27904,
3430,
97,
834,
10682,
1271,
3274,
96,
948,
10,
1458,
10,
12328,
4118,
4201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team? | CREATE TABLE table_name_29 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_29 WHERE visitor = "edmonton oilers" AND date = "may 22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
5515,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
13,
8,
467,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
7019,
3274,
96,
15,
26,
4662,
106,
1043,
277,
121,
3430,
833,
3274,
96,
13726,
1630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest episode number? | CREATE TABLE table_2501754_4 (
episode__number INTEGER
) | SELECT MIN(episode__number) FROM table_2501754_4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
2517,
5062,
834,
591,
41,
5640,
834,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
5640,
381,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15,
102,
159,
32,
221,
834,
834,
5525,
1152,
61,
21680,
953,
834,
11434,
2517,
5062,
834,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What time was the match played with a score of 3-2? | CREATE TABLE table_72062 (
"Date" text,
"Time" text,
"Competition" text,
"Opponent" text,
"Ground" text,
"Score" text
) | SELECT "Time" FROM table_72062 WHERE "Score" = '3-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
4056,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
517,
7775,
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,
13368,
121,
21680,
953,
834,
18517,
4056,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
21160,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro? | CREATE TABLE table_name_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR) | SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = "minimal" AND camera = "naturalpoint trackir 3 pro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
26052,
834,
60,
14913,
584,
4280,
28027,
6,
3,
75,
4987,
834,
18672,
584,
4280,
28027,
6,
1861,
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... | [
3,
23143,
14196,
7824,
834,
60,
14913,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
3,
75,
4987,
834,
18672,
3274,
96,
7619,
1982,
121,
3430,
1861,
3274,
96,
14884,
2700,
1463,
23,
52,
220,
813,
121,
1,
-100,
-100,
-100,
-100,... |
Find the first name of students who is older than 20. | CREATE TABLE student (
fname VARCHAR,
age INTEGER
) | SELECT fname FROM student WHERE age > 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
3,
89,
4350,
584,
4280,
28027,
6,
1246,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
166,
564,
13,
481,
113,
19,
2749,
145,
460,
5,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
89,
4350,
21680,
1236,
549,
17444,
427,
1246,
2490,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What school did the player drafted for the New York Mets attend? | CREATE TABLE table_13881 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
) | SELECT "School" FROM table_13881 WHERE "Team" = 'new york mets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
4959,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
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,
96,
29364,
121,
21680,
953,
834,
22744,
4959,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
5534,
25453,
1736,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the final position for the season 2012? | CREATE TABLE table_44183 (
"Season" text,
"Division" text,
"Wins" text,
"Ties" text,
"Final Position" text
) | SELECT "Final Position" FROM table_44183 WHERE "Season" = '2012' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
24361,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
382,
725,
121,
1499,
6,
96,
371,
10270,
14258,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
10270,
14258,
121,
21680,
953,
834,
3628,
24361,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
12172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest attendance? | CREATE TABLE table_27551 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT MIN("Attendance") FROM table_27551 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
5553,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
439,
3142,
1647,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
371,
10270,
2604,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
25988,
5553,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
If the cross-section area is 21.2, what is the weight? | CREATE TABLE table_2071644_2 (weight__kg_m_ VARCHAR, cross_section_area__cm_2__ VARCHAR) | SELECT weight__kg_m_ FROM table_2071644_2 WHERE cross_section_area__cm_2__ = "21.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
2938,
3628,
834,
357,
41,
9378,
834,
834,
8711,
834,
51,
834,
584,
4280,
28027,
6,
2269,
834,
14309,
834,
498,
834,
834,
75,
51,
834,
357,
834,
834,
584,
4280,
28027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1293,
834,
834,
8711,
834,
51,
834,
21680,
953,
834,
26426,
2938,
3628,
834,
357,
549,
17444,
427,
2269,
834,
14309,
834,
498,
834,
834,
75,
51,
834,
357,
834,
834,
3274,
96,
357,
10917,
121,
1,
-100,
-100,
-100,
... |
In what location was the fastest time 1:37.071s? | CREATE TABLE table_14884844_2 (
location VARCHAR,
record VARCHAR
) | SELECT location FROM table_14884844_2 WHERE record = "1:37.071s" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4060,
3707,
3628,
834,
357,
41,
1128,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
1128,
47,
8,
10391,
97,
209,
10,
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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2534,
4060,
3707,
3628,
834,
357,
549,
17444,
427,
1368,
3274,
96,
536,
10,
519,
26346,
4450,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List the names of climbers whose country is not Switzerland. | CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
) | SELECT name FROM climber WHERE country <> "Switzerland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
4180,
834,
23,
26,
381,
6,
564,
1499,
6,
3902,
381,
6,
31829,
381,
6,
620,
1499,
6,
684,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8147,
49,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
8147,
49,
549,
17444,
427,
684,
3,
2,
3155,
96,
134,
15686,
15,
7721,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the competition that had a score of 4-0? | CREATE TABLE table_name_95 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_95 WHERE score = "4-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
2259,
24,
141,
3,
9,
2604,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
2604,
3274,
96,
26814,
121,
1,
-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 part number when the release date is january 2011, the frequency is 3.4 ghz and the release price (usd) is $317? | CREATE TABLE table_name_99 (
part_number_s_ VARCHAR,
release_price___usd__ VARCHAR,
release_date VARCHAR,
frequency VARCHAR
) | SELECT part_number_s_ FROM table_name_99 WHERE release_date = "january 2011" AND frequency = "3.4 ghz" AND release_price___usd__ = "$317" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
294,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
1576,
834,
5522,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
294,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1576,
834,
5522,
3274,
96,
7066,
76,
1208,
2722,
121,
3430,
7321,
3274,
96,
23204,
3,
122,
107,
172,
121,
3430,
1576,
834,
102,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.