NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the score against hapoel tel aviv? | CREATE TABLE table_69968 (
"Match" real,
"Date" text,
"Competition or tour" text,
"Ground" text,
"Opponent" text,
"Score1" text
) | SELECT "Score1" FROM table_69968 WHERE "Opponent" = 'hapoel tel aviv' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3264,
3651,
41,
96,
329,
14547,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
5890,
4995,
4749,
42,
1552,
121,
1499,
6,
96,
517,
7775,
121,
1499,
6,
96,
667,
102,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
536,
121,
21680,
953,
834,
948,
3264,
3651,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
9516,
32,
15,
40,
3,
1625,
3,
9,
7003,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is icu stay id of subject id 18112? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT prescriptions.icustay_id FROM prescriptions WHERE prescriptions.subject_id = "18112" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2606,
2596,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is melbourne's away score? | CREATE TABLE table_name_29 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_29 WHERE away_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
8006,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
2341,
26255,
31,
7,
550,
2604,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3166,
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,
... |
List the distinct hometowns that are not associated with any gymnast. | CREATE TABLE gymnast (
gymnast_id number,
floor_exercise_points number,
pommel_horse_points number,
rings_points number,
vault_points number,
parallel_bars_points number,
horizontal_bar_points number,
total_points number
)
CREATE TABLE people (
people_id number,
name text,
a... | SELECT DISTINCT hometown FROM people EXCEPT SELECT DISTINCT T2.hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
23379,
17,
834,
23,
26,
381,
6,
1501,
834,
6667,
21645,
15,
834,
2700,
7,
381,
6,
26234,
40,
834,
107,
127,
7,
15,
834,
2700,
7,
381,
6,
10631,
834,
2700,
7,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
22295,
21680,
151,
262,
4,
30416,
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
4416,
5515,
3540,
21680,
23379,
17,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
122,
63,
... |
Give me a histogram for what are the names and average salaries for departments with average salary higher than 42000?, and could you order by the Y-axis from high to low? | CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2)... | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
7,
834,
4309,
3,
4331,
4059,
15757,
6,
3,
23,
834,
4309,
3,
4331,
4059,
15757,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
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,
20,
102,
17,
834,
4350,
6,
71,
17217,
599,
7,
138,
1208,
61,
21680,
10617,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
71,
17217,
599,
7,
138,
1208,
61,
309,
25067,
1,
-100,
-100,
-... |
Name the name in syriac for 500 believers | CREATE TABLE table_24613895_1 (name_in_syriac VARCHAR, number_of_believers VARCHAR) | SELECT name_in_syriac FROM table_24613895_1 WHERE number_of_believers = 500 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4241,
3747,
3301,
834,
536,
41,
4350,
834,
77,
834,
7,
63,
52,
23,
9,
75,
584,
4280,
28027,
6,
381,
834,
858,
834,
29958,
52,
7,
584,
4280,
28027,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
564,
834,
77,
834,
7,
63,
52,
23,
9,
75,
21680,
953,
834,
2266,
4241,
3747,
3301,
834,
536,
549,
17444,
427,
381,
834,
858,
834,
29958,
52,
7,
3274,
2899,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many rebounds did crystal ayers have? | CREATE TABLE table_23346303_4 (rebounds VARCHAR, player VARCHAR) | SELECT COUNT(rebounds) FROM table_23346303_4 WHERE player = "Crystal Ayers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4448,
23335,
834,
591,
41,
23768,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
23768,
410,
6884,
3,
9,
63,
277,
43,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23768,
61,
21680,
953,
834,
20879,
4448,
23335,
834,
591,
549,
17444,
427,
1959,
3274,
96,
254,
651,
8407,
71,
63,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Director for the episode titled some lapse of time ? | CREATE TABLE table_7091 (
"Episode" real,
"Title" text,
"Story" text,
"Adapted by" text,
"Director" text,
"Airdate" text,
"Exists?" text
) | SELECT "Director" FROM table_7091 WHERE "Title" = '“some lapse of time”' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
4729,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
10972,
121,
1499,
6,
96,
14808,
15,
26,
57,
121,
1499,
6,
96,
23620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
127,
121,
21680,
953,
834,
2518,
4729,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
735,
5529,
3,
16543,
13,
97,
153,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the date for home team Collingwood? | CREATE TABLE table_name_19 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_19 WHERE home_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
833,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
234,
372,
9919,
53,
2037,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the score where the opponent was Mardy Fish? | CREATE TABLE table_41298 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Score" FROM table_41298 WHERE "Opponent" = 'mardy fish' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2122,
3916,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
591,
2122,
3916,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1635,
26,
63,
2495,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what squad # is listed previous to squad # 7 ? | CREATE TABLE table_204_968 (
id number,
"squad #" number,
"position" text,
"player" text,
"transferred to" text,
"fee" text,
"date" text
) | SELECT "squad #" FROM table_204_968 WHERE id = (SELECT id FROM table_204_968 WHERE "squad #" = 7) - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4314,
927,
41,
3,
23,
26,
381,
6,
96,
7,
4960,
26,
1713,
121,
381,
6,
96,
4718,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
7031,
1010,
1271,
12,
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,
7,
4960,
26,
1713,
121,
21680,
953,
834,
26363,
834,
4314,
927,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
4314,
927,
549,
17444,
427,
96,
7,
4960,
26,
1713,
... |
how much does it cost for intracranial venous thrombosis - lateral sinus to be diagnosed? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'intracranial venous thrombosis - lateral sinus') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
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,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
25930,
4844,
159,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
23,
... |
What contestant was premiered on July 25? | CREATE TABLE table_22384 (
"Contestant Name" text,
"Episode #" real,
"Date Premiered (2009)" text,
"Winning Amount" text,
"Eliminated Contestant" text
) | SELECT "Contestant Name" FROM table_22384 WHERE "Date Premiered (2009)" = 'July 25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2773,
4608,
41,
96,
4302,
4377,
288,
5570,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
308,
342,
6552,
15,
26,
3,
25812,
121,
1499,
6,
96,
518... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4302,
4377,
288,
5570,
121,
21680,
953,
834,
357,
2773,
4608,
549,
17444,
427,
96,
308,
342,
6552,
15,
26,
3,
25812,
121,
3274,
3,
31,
683,
83,
63,
944,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many of the patients aged below 68 were on medicaid insurance? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.age < "68" | [
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,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
15789,
6146,
121,
3430,
14798,
5,
545,
3,
2,
96,
3651,
121,
1,
-100,
-100,
-100... |
Draw a bar chart about the distribution of meter_200 and the amount of meter_200 , and group by attribute meter_200, and rank by the x-axis in descending please. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE... | SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
3632,
6,
2847,
17161,
599,
4401,
834,
3632,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
3,
4401,
834,
3632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the Centerfold model on 5-88? | CREATE TABLE table_41913 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) | SELECT "Centerfold model" FROM table_41913 WHERE "Date" = '5-88' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
2368,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24382,
10533,
825,
121,
21680,
953,
834,
591,
2294,
2368,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
27698,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the opponent of the game with final score won 4-1? | CREATE TABLE table_17120964_8 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_17120964_8 WHERE result = "Won 4-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
4198,
4389,
834,
927,
41,
32,
102,
9977,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
13,
8,
467,
28,
804,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
2517,
2122,
4198,
4389,
834,
927,
549,
17444,
427,
741,
3274,
96,
518,
106,
314,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What to par has t3 as the place and england as the country? | CREATE TABLE table_name_96 (
to_par VARCHAR,
place VARCHAR,
country VARCHAR
) | SELECT to_par FROM table_name_96 WHERE place = "t3" AND country = "england" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
12,
834,
1893,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
12,
260,
65,
3,
17,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
286,
3274,
96,
17,
519,
121,
3430,
684,
3274,
96,
4606,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady? | CREATE TABLE table_67266 (
"Title" text,
"Studio" text,
"Role" text,
"Leading lady" text,
"Director" text
) | SELECT "Role" FROM table_67266 WHERE "Leading lady" = 'sheila terry' AND "Title" = 'the lawless frontier' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
357,
3539,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
2796,
9,
26,
53,
9360,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
109,
121,
21680,
953,
834,
3708,
357,
3539,
549,
17444,
427,
96,
2796,
9,
26,
53,
9360,
121,
3274,
3,
31,
7,
88,
173,
9,
3,
449,
651,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
532,
973,
924... |
what was the title of the first album released in 2011 ? | CREATE TABLE table_204_680 (
id number,
"released" text,
"title" text,
"artist" text,
"format" text,
"language" text
) | SELECT "title" FROM table_204_680 ORDER BY "released" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2079,
41,
3,
23,
26,
381,
6,
96,
21019,
26,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
1408,
343,
121,
1499,
6,
96,
8995,
121,
1499,
6,
96,
24925,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
26363,
834,
948,
2079,
4674,
11300,
272,
476,
96,
21019,
26,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the average attendance on january 6, 2008? | CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_34 WHERE date = "january 6, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1348,
11364,
30,
3,
7066,
76,
1208,
8580,
2628... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
8580,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and commission_pct , order in ascending by the total number. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... | SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
42... |
What was the lead margin when Nixon had 48% and reporting was done by Rasmussen Reports? | CREATE TABLE table_51069 (
"Poll Source" text,
"Dates administered" text,
"Democrat: Jay Nixon" text,
"Republican: Kenny Hulshof" text,
"Lead Margin" real
) | SELECT COUNT("Lead Margin") FROM table_51069 WHERE "Democrat: Jay Nixon" = '48%' AND "Poll Source" = 'rasmussen reports' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
3951,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
19679,
10,
9373,
30506,
121,
1499,
6,
96,
1649,
15727,
152,
10,
5704,
29,
63,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
2796,
9,
26,
16409,
77,
8512,
21680,
953,
834,
25926,
3951,
549,
17444,
427,
96,
19679,
10,
9373,
30506,
121,
3274,
3,
31,
591,
5953,
31,
3430,
96,
8931,
40,
9149,
121,
3274,
3,
31,
52,
9,
... |
Find all dates of the logs for the problem whose id is 10, show me a bar chart that bins the dates into the weekday interval, and counts the dates, could you display by the y axis in asc? | CREATE TABLE Problems (
problem_id INTEGER,
product_id INTEGER,
closure_authorised_by_staff_id INTEGER,
reported_by_staff_id INTEGER,
date_problem_reported DATETIME,
date_problem_closed DATETIME,
problem_description VARCHAR(255),
other_problem_details VARCHAR(255)
)
CREATE TABLE Problem... | SELECT log_entry_date, COUNT(log_entry_date) FROM Problem_Log WHERE problem_id = 10 ORDER BY COUNT(log_entry_date) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5289,
7,
41,
682,
834,
23,
26,
3,
21342,
17966,
6,
556,
834,
23,
26,
3,
21342,
17966,
6,
12493,
834,
23429,
834,
969,
834,
26416,
834,
23,
26,
3,
21342,
17966,
6,
2196,
834,
969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4303,
834,
295,
651,
834,
5522,
6,
2847,
17161,
599,
2152,
834,
295,
651,
834,
5522,
61,
21680,
5289,
834,
22084,
549,
17444,
427,
682,
834,
23,
26,
3274,
335,
4674,
11300,
272,
476,
2847,
17161,
599,
2152,
834,
295... |
Who was the writer that worked with arranger Tarek Akef on a 4:58 song? | CREATE TABLE table_name_20 (writer VARCHAR, arranger VARCHAR, length VARCHAR) | SELECT writer FROM table_name_20 WHERE arranger = "tarek akef" AND length = "4:58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
12756,
584,
4280,
28027,
6,
8031,
52,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4346,
24,
1279,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
8031,
52,
3274,
96,
17,
355,
157,
3,
9,
1050,
89,
121,
3430,
2475,
3274,
96,
591,
10,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which chassis is ranked 24th? | CREATE TABLE table_name_96 (chassis VARCHAR, rank VARCHAR) | SELECT chassis FROM table_name_96 WHERE rank = "24th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
524,
6500,
7,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
22836,
19,
3,
8232,
997,
189,
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,
22836,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
11003,
3274,
96,
2266,
189,
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 rank of flori lang when his time was less than 22.27 | CREATE TABLE table_64754 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
) | SELECT SUM("Rank") FROM table_64754 WHERE "Name" = 'flori lang' AND "Time" < '22.27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3072,
591,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
4389,
3072,
591,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
89,
322,
23,
12142,
31,
3430,
96,
13368,
121,
3,
2,
3,
31,
2884,
5,
2555,
31,
1,
-100,
-100,
-100... |
what are the top five most commonly prescribed drugs since 3 years ago? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid numb... | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
26,
13534,
4350,
21680,
41,
23143,
14196,
7757,
5,
26,
13534,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
... |
how many patients whose ethnicity is asian and diagnoses long title is neutropenia, unspecified? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.long_title = "Neutropenia, unspecified" | [
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,
5... |
which country had a release with the same label as germany ? | CREATE TABLE table_204_17 (
id number,
"region" text,
"date" text,
"format" text,
"version(s)" text,
"label" text
) | SELECT "region" FROM table_204_17 WHERE "region" <> 'germany' AND "label" = (SELECT "label" FROM table_204_17 WHERE "region" = 'germany') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2517,
41,
3,
23,
26,
381,
6,
96,
18145,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
8995,
121,
1499,
6,
96,
8674,
599,
7,
61,
121,
1499,
6,
96,
40,
10333,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18145,
121,
21680,
953,
834,
26363,
834,
2517,
549,
17444,
427,
96,
18145,
121,
3,
2,
3155,
3,
31,
1304,
348,
63,
31,
3430,
96,
40,
10333,
121,
3274,
41,
23143,
14196,
96,
40,
10333,
121,
21680,
953,
834,
2636... |
with silver count at 0, what is the lowest bronze count? | CREATE TABLE table_name_82 (
bronze INTEGER,
silver INTEGER
) | SELECT MIN(bronze) FROM table_name_82 WHERE silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
13467,
3,
21342,
17966,
6,
4294,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
28,
4294,
3476,
44,
8014,
125,
19,
8,
7402,
13467,
3476,
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,
3,
17684,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the city of license with resolution of sd 480i and official website of telemundo.com | CREATE TABLE table_79811 (
"Dish" text,
"Callsign" text,
"Network" text,
"Resolution" text,
"City of License" text,
"Official Website" text
) | SELECT "City of License" FROM table_79811 WHERE "Resolution" = 'sd 480i' AND "Official Website" = 'telemundo.com' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
2596,
41,
96,
308,
1273,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
1649,
14913,
121,
1499,
6,
96,
254,
485,
13,
16452,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
16452,
121,
21680,
953,
834,
940,
3916,
2596,
549,
17444,
427,
96,
1649,
14913,
121,
3274,
3,
31,
7,
26,
3,
20579,
23,
31,
3430,
96,
667,
89,
22816,
3637,
121,
3274,
3,
31,
1931,
51,
1106,
32,
... |
What year was incumbent joe b. bates first elected? | CREATE TABLE table_1342233_17 (
first_elected VARCHAR,
incumbent VARCHAR
) | SELECT first_elected FROM table_1342233_17 WHERE incumbent = "Joe B. Bates" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
20879,
834,
2517,
41,
166,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
28406,
3,
1927,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
2368,
4165,
20879,
834,
2517,
549,
17444,
427,
28406,
3274,
96,
683,
32,
15,
272,
5,
272,
6203,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Runner(s)-up has a Tournament of cameron park open? | CREATE TABLE table_name_62 (
runner_s__up VARCHAR,
tournament VARCHAR
) | SELECT runner_s__up FROM table_name_62 WHERE tournament = "cameron park open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
23572,
599,
7,
61,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
7,
834,
834,
413,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
5892,
3274,
96,
6527,
49,
106,
2447,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose ethnicity is black/african american and year of birth is less than 2064? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dob_year < "2064" | [
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,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
6282,
5593,
11425,
3,
17683,
5593,
11425,
121,
3430... |
in which city did the most operettas premiere ? | CREATE TABLE table_203_501 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text
) | SELECT "place, theatre" FROM table_203_501 GROUP BY "place, theatre" ORDER BY COUNT("title") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
20176,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
729,
60,
121,
1499,
6,
96,
7304,
2,
76,
1206,
13039,
23,
6610,
7,
121,
1499,
6,
96,
6856,
60,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4687,
6,
8516,
121,
21680,
953,
834,
23330,
834,
20176,
350,
4630,
6880,
272,
476,
96,
4687,
6,
8516,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
21869,
8512,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
... |
What type of event had the wrestler with a reign of 2 and held the title for 35 days? | CREATE TABLE table_75664 (
"Wrestler" text,
"Reign" text,
"Days held" text,
"Location" text,
"Event" text
) | SELECT "Event" FROM table_75664 WHERE "Reign" = '2' AND "Days held" = '35' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
3539,
591,
41,
96,
518,
6216,
1171,
121,
1499,
6,
96,
1649,
3191,
121,
1499,
6,
96,
16803,
7,
1213,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
427,
216... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
3072,
3539,
591,
549,
17444,
427,
96,
1649,
3191,
121,
3274,
3,
31,
357,
31,
3430,
96,
16803,
7,
1213,
121,
3274,
3,
31,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the away team in tie number 20? | CREATE TABLE table_name_55 (
away_team VARCHAR,
tie_no VARCHAR
) | SELECT away_team FROM table_name_55 WHERE tie_no = "20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
550,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
550,
372,
16,
6177,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the different ship flags, and how many ships have each Plot them as bar chart, and order x-axis in desc order. | CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15508,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
14862,
834,
476,
2741,
490,
6,
4501,
1499,
6,
17016,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17016,
6,
2847,
17161,
599,
1935,
61,
21680,
15508,
350,
4630,
6880,
272,
476,
17016,
4674,
11300,
272,
476,
17016,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average crowd attendance for Collingwood? | CREATE TABLE table_name_92 (
crowd INTEGER,
home_team VARCHAR
) | SELECT AVG(crowd) FROM table_name_92 WHERE home_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
4374,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
4374,
11364,
21,
9919,
53,
2037,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did a show last aired in 2002 return? | CREATE TABLE table_78869 (
"Show" text,
"Network (Last Aired)" text,
"Last aired" real,
"Network (New/Returning)" text,
"Returning" text
) | SELECT "Returning" FROM table_78869 WHERE "Last aired" = '2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
927,
3951,
41,
96,
134,
4067,
121,
1499,
6,
96,
9688,
1981,
41,
3612,
7,
17,
1761,
15,
26,
61,
121,
1499,
6,
96,
3612,
7,
17,
3,
2378,
26,
121,
490,
6,
96,
9688... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7535,
53,
121,
21680,
953,
834,
3940,
927,
3951,
549,
17444,
427,
96,
3612,
7,
17,
3,
2378,
26,
121,
3274,
3,
31,
24898,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who sponsored the bill that was introduced on June 2, 2009? | CREATE TABLE table_name_55 (sponsor_s_ VARCHAR, date_introduced VARCHAR) | SELECT sponsor_s_ FROM table_name_55 WHERE date_introduced = "june 2, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
7,
5041,
7,
127,
834,
7,
834,
584,
4280,
28027,
6,
833,
834,
20322,
32,
12160,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
11851,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9037,
834,
7,
834,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
833,
834,
20322,
32,
12160,
26,
3274,
96,
6959,
15,
3547,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the playoffs result in years where Open Canada Cup was 'N/A' and regular season result was '2nd, New England'? | CREATE TABLE table_1999350_1 (
playoffs VARCHAR,
open_canada_cup VARCHAR,
regular_season VARCHAR
) | SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = "N/A" AND regular_season = "2nd, New England" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3264,
16975,
834,
536,
41,
15289,
7,
584,
4280,
28027,
6,
539,
834,
658,
18089,
834,
4658,
584,
4280,
28027,
6,
1646,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15289,
7,
21680,
953,
834,
2294,
3264,
16975,
834,
536,
549,
17444,
427,
539,
834,
658,
18089,
834,
4658,
3274,
96,
567,
87,
188,
121,
3430,
1646,
834,
9476,
3274,
96,
357,
727,
6,
368,
2789,
121,
1,
-100,
-100,
-... |
Which Third has a Champion of metalurh novomoskovsk? | CREATE TABLE table_name_20 (
third VARCHAR,
champion VARCHAR
) | SELECT third FROM table_name_20 WHERE champion = "metalurh novomoskovsk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1025,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9879,
65,
3,
9,
16127,
13,
1946,
450,
107,
150,
1621,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1025,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
6336,
3274,
96,
3493,
138,
450,
107,
150,
1621,
3972,
9789,
7,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was the school with green and white colors founded? | CREATE TABLE table_2589963_1 (founded INTEGER, color VARCHAR) | SELECT MAX(founded) FROM table_2589963_1 WHERE color = "Green and White" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
3264,
3891,
834,
536,
41,
23329,
3,
21342,
17966,
6,
945,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
8,
496,
28,
1442,
11,
872,
2602,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
23329,
61,
21680,
953,
834,
357,
3449,
3264,
3891,
834,
536,
549,
17444,
427,
945,
3274,
96,
22918,
11,
1945,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the total number of bronze medals for Sweden (SWE) having less than 1 gold and silver? | CREATE TABLE table_name_90 (
bronze VARCHAR,
silver VARCHAR,
gold VARCHAR,
nation VARCHAR
) | SELECT COUNT(bronze) FROM table_name_90 WHERE gold < 1 AND nation = "sweden (swe)" AND silver < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13711,
776,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
2045,
3,
2,
209,
3430,
2982,
3274,
96,
7,
1123,
537,
41,
7,
1123,
61,
121,
3430,
4294,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-... |
What is the 1st leg of the Al Fahaheel Team 1? | CREATE TABLE table_75967 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "1st leg" FROM table_75967 WHERE "Team 1" = 'al fahaheel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3390,
3708,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
4553,
121,
21680,
953,
834,
940,
3390,
3708,
549,
17444,
427,
96,
18699,
209,
121,
3274,
3,
31,
138,
3,
89,
9,
1024,
88,
15,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest silver that has 1 as the rank, with a bronze greater than 5? | CREATE TABLE table_name_76 (
silver INTEGER,
rank VARCHAR,
bronze VARCHAR
) | SELECT MIN(silver) FROM table_name_76 WHERE rank = 1 AND bronze > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
4294,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
4294,
24,
65,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
11003,
3274,
209,
3430,
13467,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Place of the Player with a To par of +1 and Score of 74-70-69-72=285? | CREATE TABLE table_name_97 (place VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT place FROM table_name_97 WHERE to_par = "+1" AND score = 74 - 70 - 69 - 72 = 285 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
4687,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3399,
13,
8,
1238... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
12,
834,
1893,
3274,
96,
18446,
121,
3430,
2604,
3274,
3,
4581,
3,
18,
2861,
3,
18,
3,
3951,
3,
18,
9455,
3274,
204,
4433,
1,
-100,
-100,
-100,
-100,
-100,
... |
Where is lootospark from? | CREATE TABLE table_27409644_1 (
location VARCHAR,
ground VARCHAR
) | SELECT location FROM table_27409644_1 WHERE ground = "Lootospark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2445,
4314,
3628,
834,
536,
41,
1128,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
6899,
32,
235,
7,
6334,
45,
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,
1128,
21680,
953,
834,
2555,
2445,
4314,
3628,
834,
536,
549,
17444,
427,
1591,
3274,
96,
434,
32,
32,
235,
7,
6334,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers? | CREATE TABLE table_name_95 (
conference_joined VARCHAR,
previous_conference VARCHAR,
mascot VARCHAR
) | SELECT conference_joined FROM table_name_95 WHERE previous_conference = "northwestern" AND mascot = "oilers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2542,
834,
1927,
630,
26,
584,
4280,
28027,
6,
1767,
834,
28496,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2542,
834,
1927,
630,
26,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1767,
834,
28496,
3274,
96,
29,
127,
189,
24411,
121,
3430,
3,
2754,
4310,
3274,
96,
32,
173,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the Rich Savage percentage in the poll with Jody Wagner at 30%? | CREATE TABLE table_name_90 (
rich_savage VARCHAR,
jody_wagner VARCHAR
) | SELECT rich_savage FROM table_name_90 WHERE jody_wagner = "30%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
2354,
834,
7,
9,
11515,
584,
4280,
28027,
6,
3,
354,
9666,
834,
15238,
687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2354,
834,
7,
9,
11515,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
3,
354,
9666,
834,
15238,
687,
3274,
96,
1458,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What position had notes of 20km and a year earlier than 2002? | CREATE TABLE table_name_29 (
position VARCHAR,
notes VARCHAR,
year VARCHAR
) | SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
1102,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
141,
3358,
13,
460,
5848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
3358,
3274,
96,
1755,
5848,
121,
3430,
215,
3,
2,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose discharge location is left against medical advi and procedure short title is coronar arteriogr-1 cath? | 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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND procedures.short_title = "Coronar arteriogr-1 cath" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the total win % of manager viktor prokopenko, when he lost fewer than 2? | CREATE TABLE table_name_43 (
win__percentage VARCHAR,
manager VARCHAR,
lost VARCHAR
) | SELECT COUNT(win__percentage) FROM table_name_43 WHERE manager = "viktor prokopenko" AND lost < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1369,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
2743,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
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,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
2743,
3274,
96,
2099,
10377,
813,
17466,
18994,
121,
3430,
1513,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Name the city of license for call sign of kcmp | CREATE TABLE table_name_95 (city_of_license VARCHAR, call_sign VARCHAR) | SELECT city_of_license FROM table_name_95 WHERE call_sign = "kcmp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
6726,
834,
858,
834,
28062,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
690,
13,
3344,
21,
580,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
690,
834,
858,
834,
28062,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
580,
834,
6732,
3274,
96,
157,
75,
1167,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose marital status is widowed and procedure long title is laryngoscopy and other tracheoscopy. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.long_title = "Laryngoscopy and other tracheoscopy" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What date shows corrado barazzutti's partner? | CREATE TABLE table_33365 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Partner" text,
"Opponents in the final" text
) | SELECT "Date" FROM table_33365 WHERE "Partner" = 'corrado barazzutti' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4201,
10402,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4201,
10402,
549,
17444,
427,
96,
13725,
687,
121,
3274,
3,
31,
5715,
19042,
1207,
9,
5271,
31944,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the name of the airports located in Cuba or Argentina. | CREATE TABLE airports (name VARCHAR, country VARCHAR) | SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
4350,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
13,
8,
3761,
7,
1069,
16,
13052,
42,
17946,
5,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
3761,
7,
549,
17444,
427,
684,
3274,
3,
31,
254,
17309,
31,
4674,
684,
3274,
3,
31,
22808,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the competition that was held on August 20, 2004? | CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_4 WHERE date = "august 20, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
2259,
24,
47,
1213,
30,
1660,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2259,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
833,
3274,
96,
402,
17198,
16047,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The episode written by Rebecca Dameron aired on what date? | CREATE TABLE table_16465 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT "Original air date" FROM table_16465 WHERE "Written by" = 'Rebecca Dameron' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
4122,
41,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
26987,
4122,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
1649,
346,
12464,
10939,
49,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the project id and detail for the project with at least two documents. Show a pie chart. | CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARC... | SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6288,
7,
41,
6288,
834,
4309,
3,
21342,
17966,
6,
16836,
834,
4309,
3,
21342,
17966,
6,
6288,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3174,
11827,
834,
2962,
5756,
7,
6,
332,
5411,
3174,
11827,
834,
4309,
21680,
2786,
7,
6157,
332,
536,
3,
15355,
3162,
11167,
7,
6157,
332,
357,
9191,
332,
5411,
3174,
11827,
834,
4309,
3274,
332,
4416,
3... |
Bar chart of minimal price from each name | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, MIN(Price) FROM Products GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3,
17684,
599,
345,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Competition, when Round is "8 A"? | CREATE TABLE table_name_1 (competition VARCHAR, round VARCHAR) | SELECT competition FROM table_name_1 WHERE round = "8 a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
15571,
6,
116,
9609,
19,
96,
927,
71,
121,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1751,
3274,
96,
927,
3,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What yacht had LOA Metres of 13.34? | CREATE TABLE table_25594271_2 (yacht VARCHAR, loa__metres_ VARCHAR) | SELECT yacht FROM table_25594271_2 WHERE loa__metres_ = "13.34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3390,
4165,
4450,
834,
357,
41,
63,
9,
3997,
584,
4280,
28027,
6,
6899,
9,
834,
834,
22404,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
18082,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18082,
21680,
953,
834,
1828,
3390,
4165,
4450,
834,
357,
549,
17444,
427,
6899,
9,
834,
834,
22404,
7,
834,
3274,
96,
2368,
5,
3710,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the different types of vocals? | CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
)
CREATE TABLE vocals (
songid number,
bandmate number,
type text
)
CREATE TABLE songs (
songid number,
title text
)
CREATE TABLE tracklists (
albumid number,
position number,
songid number
)
CR... | SELECT DISTINCT type FROM vocals | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
2324,
23,
26,
381,
6,
1928,
5058,
381,
6,
1726,
4718,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6721,
7,
41,
2324,
23,
26,
381,
6,
1928,
5058,
381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
686,
21680,
6721,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many ages for player Amy Cato? | CREATE TABLE table_26888 (
"Candidate" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
) | SELECT COUNT("Age") FROM table_26888 WHERE "Candidate" = 'Amy Cato' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
10927,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
21106,
9232,
121,
1499,
6,
96,
667,
3380,
10270,
372,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
19040,
3540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
397,
8512,
21680,
953,
834,
2688,
10927,
549,
17444,
427,
96,
14050,
12416,
342,
121,
3274,
3,
31,
188,
2258,
3431,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the spectral type is g1v, what is the constellation? | CREATE TABLE table_1820752_1 (constellation VARCHAR, spectral_type VARCHAR) | SELECT constellation FROM table_1820752_1 WHERE spectral_type = "G1V" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
26426,
5373,
834,
536,
41,
8056,
6714,
257,
584,
4280,
28027,
6,
3,
5628,
4900,
834,
6137,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
3,
5628,
4900,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30872,
21680,
953,
834,
2606,
26426,
5373,
834,
536,
549,
17444,
427,
3,
5628,
4900,
834,
6137,
3274,
96,
517,
536,
553,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are all the name(namesakes) for the entire chart? | CREATE TABLE table_29860752_11 (
name__namesake_ VARCHAR
) | SELECT name__namesake_ FROM table_29860752_11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3840,
4560,
5373,
834,
2596,
41,
564,
834,
834,
4350,
7,
9,
1050,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
564,
599,
4350,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
834,
834,
4350,
7,
9,
1050,
834,
21680,
953,
834,
3166,
3840,
4560,
5373,
834,
2596,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose admission type is urgent and procedure long title is single internal mammary-coronary artery bypass? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.long_title = "Single internal mammary-coronary artery bypass" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the average number of laps with 16 grids? | CREATE TABLE table_name_54 (laps INTEGER, grid VARCHAR) | SELECT AVG(laps) FROM table_name_54 WHERE grid = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
8478,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
14941,
7,
28,
898,
8634,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
8634,
3274,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What date did the capitols play the toronto maple leafs? | CREATE TABLE table_23308178_6 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_23308178_6 WHERE opponent = "Toronto Maple Leafs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4018,
27640,
834,
948,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
8,
23491,
7,
577,
8,
12,
4438,
32,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
20879,
4018,
27640,
834,
948,
549,
17444,
427,
15264,
3274,
96,
3696,
4438,
32,
23153,
19407,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the song that is part of the opening theme and has a drama of the revolving doors of vengeance? | CREATE TABLE table_67457 (
"Number" real,
"Name of the song" text,
"Singer" text,
"Drama" text,
"Kind of the song" text
) | SELECT "Name of the song" FROM table_67457 WHERE "Kind of the song" = 'opening theme' AND "Drama" = 'revolving doors of vengeance' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
591,
3436,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
13,
8,
2324,
121,
1499,
6,
96,
134,
9963,
121,
1499,
6,
96,
308,
10819,
121,
1499,
6,
96,
439,
77,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
13,
8,
2324,
121,
21680,
953,
834,
3708,
591,
3436,
549,
17444,
427,
96,
439,
77,
26,
13,
8,
2324,
121,
3274,
3,
31,
8751,
53,
3800,
31,
3430,
96,
308,
10819,
121,
3274,
3,
31,
60,
4571,
3745,
3377,
... |
What is listed for the Wins with a Year of 1989? | CREATE TABLE table_name_84 (
wins VARCHAR,
year VARCHAR
) | SELECT wins FROM table_name_84 WHERE year = 1989 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
9204,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2616,
21,
8,
4871,
7,
28,
3,
9,
2929,
13,
9975,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
215,
3274,
9975,
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... |
provide the number of patients whose gender is f and diagnoses icd9 code is 99813? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.icd9_code = "99813" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the result when the score is 8-1? | CREATE TABLE table_name_75 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_75 WHERE score = "8-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
116,
8,
2604,
19,
505,
2292,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2604,
3274,
96,
927,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona. | CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_status text,
order_date time,
order_details text
)
CREATE TABLE customers (
customer_id number,
payment_method text,
customer_name text,
date_became_customer time,
other_customer_details text
)
CREATE TAB... | SELECT address_content FROM addresses WHERE city = "East Julianaside" AND state_province_county = "Texas" UNION SELECT address_content FROM addresses WHERE city = "Gleasonmouth" AND state_province_county = "Arizona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
9397,
7,
41,
455,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
455,
834,
8547,
302,
1499,
6,
455,
834,
5522,
97,
6,
455,
834,
221,
5756,
7,
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,
1115,
834,
14819,
21680,
7181,
549,
17444,
427,
690,
3274,
96,
25235,
20080,
9,
1583,
121,
3430,
538,
834,
1409,
2494,
565,
834,
13362,
63,
3274,
96,
13598,
9,
7,
121,
4417,
9215,
3,
23143,
14196,
1115,
834,
14819,
... |
What's sawyer hannay's total pick number? | CREATE TABLE table_name_39 (
pick__number VARCHAR,
player VARCHAR
) | SELECT COUNT(pick__number) FROM table_name_39 WHERE player = "sawyer hannay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
1509,
7975,
3,
107,
10878,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1959,
3274,
96,
13125,
7975,
3,
107,
10878,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When have a Save of ||20,599||32-37? | CREATE TABLE table_38924 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Date" FROM table_38924 WHERE "Save" = '||20,599||32-37' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3914,
2266,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
23163,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
3914,
2266,
549,
17444,
427,
96,
23163,
121,
3274,
3,
31,
9175,
9175,
1755,
6,
755,
3264,
9175,
9175,
2668,
18,
4118,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was game 78 played on? | CREATE TABLE table_25816 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_25816 WHERE "Game" = '78' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
2938,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
3449,
2938,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which entrant has Ferrari 038 3.5 v12 engine? | CREATE TABLE table_58245 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) | SELECT "Entrant" FROM table_58245 WHERE "Engine" = 'ferrari 038 3.5 v12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
357,
2128,
41,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16924,
3569,
121,
21680,
953,
834,
3449,
357,
2128,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
1010,
52,
1665,
12811,
927,
3,
9285,
3,
208,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are below 71 years of age and tested with lab item id 50818? | 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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "71" AND lab.itemid = "50818" | [
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's the result for the clay surface edition on july 17, 1992? | CREATE TABLE table_name_97 (result VARCHAR, surface VARCHAR, date VARCHAR) | SELECT result FROM table_name_97 WHERE surface = "clay" AND date = "july 17, 1992" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
741,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1774,
3274,
96,
4651,
63,
121,
3430,
833,
3274,
96,
2047,
120,
12864,
9047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the Coat of Cash Wearing Celebrity in Episode 6? | CREATE TABLE table_name_81 (coat_of_cash_wearing_celebrity VARCHAR, episode_number VARCHAR) | SELECT coat_of_cash_wearing_celebrity FROM table_name_81 WHERE episode_number = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
18954,
834,
858,
834,
75,
3198,
834,
7258,
53,
834,
75,
400,
2160,
17,
63,
584,
4280,
28027,
6,
5640,
834,
5525,
1152,
584,
4280,
28027,
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,
0,
0... | [
3,
23143,
14196,
6001,
834,
858,
834,
75,
3198,
834,
7258,
53,
834,
75,
400,
2160,
17,
63,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
5640,
834,
5525,
1152,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Class has a Year(s) of Manufacture of 1899? | CREATE TABLE table_name_32 (
class VARCHAR,
year_s__of_manufacture VARCHAR
) | SELECT class FROM table_name_32 WHERE year_s__of_manufacture = "1899" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
853,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4501,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
3274,
96,
2606,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many rebounds were there total , according to this table , in 1978 ? | CREATE TABLE table_203_532 (
id number,
"rebounds" number,
"off" number,
"def" number,
"player" text,
"team" text,
"date" text,
"opponent" text,
"score" text,
"minutes played" text,
"points" number,
"assists" number,
"steals" number,
"blocks" number,
"20-20" t... | SELECT SUM("rebounds") FROM table_203_532 WHERE "date" = 1978 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4867,
357,
41,
3,
23,
26,
381,
6,
96,
23768,
121,
381,
6,
96,
1647,
121,
381,
6,
96,
221,
89,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
11650,
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,
180,
6122,
599,
121,
23768,
8512,
21680,
953,
834,
23330,
834,
4867,
357,
549,
17444,
427,
96,
5522,
121,
3274,
14834,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what type of surface was the tournament of Italy f28? | CREATE TABLE table_name_84 (
surface VARCHAR,
tournament VARCHAR
) | SELECT surface FROM table_name_84 WHERE tournament = "italy f28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1774,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
686,
13,
1774,
47,
8,
5892,
13,
5308,
3,
89,
2577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
5892,
3274,
96,
9538,
63,
3,
89,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS TEH SECOND WITH REGINA AS CITY AND SKIP OF MICHELLE ENGLOT? | CREATE TABLE table_name_59 (second VARCHAR, city VARCHAR, skip VARCHAR) | SELECT second FROM table_name_59 WHERE city = "regina" AND skip = "michelle englot" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
12091,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
11202,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
3,
3463,
566,
180,
3073,
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,
0,
0... | [
3,
23143,
14196,
511,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
690,
3274,
96,
60,
19604,
121,
3430,
11202,
3274,
96,
51,
362,
693,
3,
4606,
3171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are each physician's employee id and department id primarily affiliated. | CREATE TABLE affiliated_with (
physician number,
department number,
primaryaffiliation boolean
)
CREATE TABLE procedures (
code number,
name text,
cost number
)
CREATE TABLE appointment (
appointmentid number,
patient number,
prepnurse number,
physician number,
start time,
... | SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18273,
834,
4065,
41,
10027,
381,
6,
3066,
381,
6,
2329,
4127,
173,
23,
257,
3,
12840,
109,
152,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1081,
381,
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,
10027,
6,
3066,
21680,
18273,
834,
4065,
549,
17444,
427,
2329,
4127,
173,
23,
257,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the draw for the english meaning Eyes that Never Lie? | CREATE TABLE table_23064 (
"Draw" real,
"Artist" text,
"Original" text,
"English Meaning" text,
"Language" text,
"Authors" text
) | SELECT "Draw" FROM table_23064 WHERE "Language" = 'English' AND "English Meaning" = 'Eyes That Never Lie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
4389,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
667,
3380,
10270,
121,
1499,
6,
96,
26749,
25148,
121,
1499,
6,
96,
434,
1468,
76,
545,
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,
308,
10936,
121,
21680,
953,
834,
13427,
4389,
549,
17444,
427,
96,
434,
1468,
76,
545,
121,
3274,
3,
31,
26749,
31,
3430,
96,
26749,
25148,
121,
3274,
3,
31,
427,
10070,
466,
8400,
3,
19079,
31,
1,
-100,
-100... |
What was the pick number for Deji Karim, in a round lower than 6? | CREATE TABLE table_name_66 (pick__number INTEGER, name VARCHAR, round VARCHAR) | SELECT AVG(pick__number) FROM table_name_66 WHERE name = "deji karim" AND round < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
564,
3274,
96,
221,
354,
23,
3,
4031,
603,
121,
3430,
1751,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the number of nat for total g of 6 | CREATE TABLE table_22542179_3 (
nat VARCHAR,
total_g VARCHAR
) | SELECT COUNT(nat) FROM table_22542179_3 WHERE total_g = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
4165,
26593,
834,
519,
41,
3,
29,
144,
584,
4280,
28027,
6,
792,
834,
122,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
3,
29,
144,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
144,
61,
21680,
953,
834,
20489,
4165,
26593,
834,
519,
549,
17444,
427,
792,
834,
122,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose year of birth is less than 2089 and lab test fluid is ascites? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2089" AND lab.fluid = "Ascites" | [
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,... |
Give me a bar chart for team_id of each all neutral, show in descending by the names. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_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 captain where coach is geoff miles | CREATE TABLE table_1165048_1 (captain VARCHAR, coach VARCHAR) | SELECT captain FROM table_1165048_1 WHERE coach = "Geoff Miles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
1752,
3707,
834,
536,
41,
4010,
17,
9,
77,
584,
4280,
28027,
6,
3763,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
14268,
213,
3763,
19,
873,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14268,
21680,
953,
834,
20159,
1752,
3707,
834,
536,
549,
17444,
427,
3763,
3274,
96,
517,
15,
1647,
11705,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which charts had debut sales of 101976? | CREATE TABLE table_23180638_1 (
oricon_albums_chart VARCHAR,
debut_sales__copies_ VARCHAR
) | SELECT oricon_albums_chart FROM table_23180638_1 WHERE debut_sales__copies_ = 101976 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2606,
5176,
3747,
834,
536,
41,
5322,
1018,
834,
23703,
7,
834,
4059,
17,
584,
4280,
28027,
6,
5695,
834,
7,
4529,
834,
834,
17634,
7,
834,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5322,
1018,
834,
23703,
7,
834,
4059,
17,
21680,
953,
834,
2773,
2606,
5176,
3747,
834,
536,
549,
17444,
427,
5695,
834,
7,
4529,
834,
834,
17634,
7,
834,
3274,
335,
2294,
3959,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson? | CREATE TABLE table_39221 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
) | SELECT "Result" FROM table_39221 WHERE "First elected" > '1876' AND "Incumbent" = 'john s. richardson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
357,
2658,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3288,
357,
2658,
549,
17444,
427,
96,
25171,
8160,
121,
2490,
3,
31,
2606,
3959,
31,
3430,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
27341,
3,
7,
5,
2354,
986,
739,
31,
1,
-100,... |
What's the mean game number for the olympiacos team when there's less than 17 rebounds? | CREATE TABLE table_41845 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
) | SELECT AVG("Games") FROM table_41845 WHERE "Team" = 'olympiacos' AND "Rebounds" < '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2606,
2128,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
1649,
6115,
7,
121,
490,
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,
71,
17217,
599,
121,
23055,
7,
8512,
21680,
953,
834,
591,
2606,
2128,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
32,
120,
1167,
23,
9,
509,
7,
31,
3430,
96,
1649,
6115,
7,
121,
3,
2,
3,
31,
2517,
31,
1,
... |
How many totals have 2 for the bronze? | CREATE TABLE table_42742 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Total") FROM table_42742 WHERE "Bronze" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2555,
4165,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
8512,
21680,
953,
834,
591,
2555,
4165,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many stations have been owned since wfts-tv? | CREATE TABLE table_22339 (
"City of license /Market" text,
"Station" text,
"Channel ( TV / RF )" text,
"Owned Since" real,
"Affiliation" text
) | SELECT "Owned Since" FROM table_22339 WHERE "Station" = 'WFTS-TV' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2773,
3288,
41,
96,
254,
485,
13,
3344,
3,
87,
22572,
121,
1499,
6,
96,
134,
6821,
121,
1499,
6,
96,
3541,
4515,
40,
41,
1424,
3,
87,
3,
8556,
3,
61,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
210,
29,
15,
26,
1541,
121,
21680,
953,
834,
357,
2773,
3288,
549,
17444,
427,
96,
134,
6821,
121,
3274,
3,
31,
518,
6245,
134,
18,
4562,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.