NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
what is the date for the game in prague for the world group, consolation round competition? | CREATE TABLE table_name_57 (date VARCHAR, location VARCHAR, competition VARCHAR) | SELECT date FROM table_name_57 WHERE location = "prague" AND competition = "world group, consolation round" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
5522,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
833,
21,
8,
467,
16,
31096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1128,
3274,
96,
5319,
5398,
121,
3430,
2259,
3274,
96,
7276,
563,
6,
6900,
32,
6105,
1751,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which District has a First Elected of 1904 and an Incumbent of Duncan E. Mckinlay? | CREATE TABLE table_name_31 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_31 WHERE first_elected = 1904 AND incumbent = "duncan e. mckinlay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
26,
23,
20066,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3570,
65,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
166,
834,
19971,
3274,
957,
6348,
3430,
28406,
3274,
96,
26,
202,
1608,
3,
15,
5,
3,
51,
2406,
77,
5595,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is minimum age of patients whose gender is f and ethnicity is white? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "WHITE" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Where did St KIlda play their away game? | CREATE TABLE table_name_46 (
venue VARCHAR,
away_team VARCHAR
) | SELECT venue FROM table_name_46 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
5669,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
472,
3,
14108,
40,
26,
9,
577,
70,
550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how much do antithyroid therapy's cost? | 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 = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'antithyroid therapy') | [
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,
26889,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
1058,
5,
26889,
23,
26,
21680,
1058,
549,
... |
What is the record time at the Nascar Camping World Truck Series? | CREATE TABLE table_name_20 (time VARCHAR, record VARCHAR) | SELECT time FROM table_name_20 WHERE record = "nascar camping world truck series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
715,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
97,
44,
8,
10571,
1720,
20443,
1150,
14049,
4531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1368,
3274,
96,
29,
8419,
52,
8515,
296,
4072,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which school are the Red Devils from? | CREATE TABLE table_name_24 (
school VARCHAR,
team_name VARCHAR
) | SELECT school FROM table_name_24 WHERE team_name = "red devils" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
496,
584,
4280,
28027,
6,
372,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
496,
33,
8,
1624,
19558,
7,
45,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
372,
834,
4350,
3274,
96,
1271,
20,
6372,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
During the play-off quarter-final which team scored position was the team that scored 56 points? | CREATE TABLE table_name_91 (pos VARCHAR, play_offs VARCHAR, pts VARCHAR) | SELECT pos FROM table_name_91 WHERE play_offs = "quarter-final" AND pts = "56" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
2748,
584,
4280,
28027,
6,
577,
834,
1647,
7,
584,
4280,
28027,
6,
3,
102,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
8,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
2748,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
577,
834,
1647,
7,
3274,
96,
19973,
18,
12406,
121,
3430,
3,
102,
17,
7,
3274,
96,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of races that took place with points of 257? | CREATE TABLE table_name_28 (
races INTEGER,
points VARCHAR
) | SELECT SUM(races) FROM table_name_28 WHERE points = 257 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
10879,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
10879,
24,
808,
286,
28,
979,
13,
204,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
12614,
7,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
979,
3274,
204,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the record for the last 10 meetings when the overall record is *as of March 14, 2013? | CREATE TABLE table_name_53 (last_10_meetings VARCHAR, overall_record VARCHAR) | SELECT last_10_meetings FROM table_name_53 WHERE overall_record = "*as of march 14, 2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
5064,
834,
1714,
834,
526,
15,
1222,
7,
584,
4280,
28027,
6,
1879,
834,
60,
7621,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
834,
1714,
834,
526,
15,
1222,
7,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1879,
834,
60,
7621,
3274,
96,
1935,
9,
7,
13,
10556,
11363,
2038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the overall number for Louisiana Tech college, and a pick more than 10? | CREATE TABLE table_35388 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT SUM("Overall") FROM table_35388 WHERE "College" = 'louisiana tech' AND "Pick #" > '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
519,
4060,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
2469,
519,
4060,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
40,
1063,
159,
13662,
5256,
31,
3430,
96,
345,
3142,
1713,
121,
2490,
3,
31,
1714,
31,
1... |
What score has February 10 as the date? | CREATE TABLE table_34998 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" text,
"Record" text
) | SELECT "Score" FROM table_34998 WHERE "Date" = 'february 10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
3916,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
519,
3647,
3916,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
335,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose diagnoses short title is need prphyl vc vrl hepat and lab test abnormal status is abnormal? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Need prphyl vc vrl hepat" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
At which location did 29753 fans show up to watch the game? | CREATE TABLE table_26866 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT "Game site" FROM table_26866 WHERE "Attendance" = '29753' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
26750,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
439,
3142,
1647,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
371,
10270,
2604,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
353,
121,
21680,
953,
834,
2688,
26750,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
3166,
3072,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What day(s) did the team play indiana? | CREATE TABLE table_21592 (
"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_21592 WHERE "Team" = 'Indiana' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
4508,
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,
1808,
4508,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
22126,
29,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average for the gymnast with a 9.9 start value and a total of 9.612? | CREATE TABLE table_name_33 (average INTEGER, start_value VARCHAR, total VARCHAR) | SELECT AVG(average) FROM table_name_33 WHERE start_value = 9.9 AND total = 9.612 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
28951,
3,
21342,
17966,
6,
456,
834,
12097,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
21,
8,
233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
28951,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
456,
834,
12097,
3274,
5835,
1298,
3430,
792,
3274,
5835,
4241,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the total number of valid poll with seats more than 4 and candidates more than 9 | CREATE TABLE table_35218 (
"Constituency" text,
"Electorate" real,
"Turnout" text,
"Spoilt" text,
"Valid Poll" real,
"Quota" text,
"Seats" real,
"Candidates" real
) | SELECT COUNT("Valid Poll") FROM table_35218 WHERE "Seats" > '4' AND "Candidates" > '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
357,
2606,
41,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
21543,
127,
342,
121,
490,
6,
96,
382,
450,
29,
670,
121,
1499,
6,
96,
134,
102,
32,
173,
17,
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,
2847,
17161,
599,
121,
18392,
23,
26,
14457,
8512,
21680,
953,
834,
2469,
357,
2606,
549,
17444,
427,
96,
134,
1544,
7,
121,
2490,
3,
31,
591,
31,
3430,
96,
14050,
12416,
6203,
121,
2490,
3,
31,
1298,
31,
1,
-100,... |
What is the points when the club is Barry RFC with a 5 as the try bonus? | CREATE TABLE table_name_27 (
points VARCHAR,
try_bonus VARCHAR,
club VARCHAR
) | SELECT points FROM table_name_27 WHERE try_bonus = "5" AND club = "barry rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
979,
584,
4280,
28027,
6,
653,
834,
5407,
302,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
979,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
653,
834,
5407,
302,
3274,
96,
17395,
3430,
1886,
3274,
96,
1047,
651,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What event had zhamash l 1 2 in the quarterfinal? | CREATE TABLE table_56717 (
"Athlete" text,
"Event" text,
"Round of 16" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text
) | SELECT "Event" FROM table_56717 WHERE "Quarterfinal" = 'zhamash l 1–2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3708,
2517,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
448,
32,
1106,
13,
898,
121,
1499,
6,
96,
5991,
1408,
49,
12406,
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,
427,
2169,
121,
21680,
953,
834,
755,
3708,
2517,
549,
17444,
427,
96,
5991,
1408,
49,
12406,
121,
3274,
3,
31,
172,
1483,
3198,
3,
40,
209,
104,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which total number of starts has more than 2 wins and a money list rank greater than 1? | CREATE TABLE table_name_18 (
starts VARCHAR,
wins VARCHAR,
money_list_rank VARCHAR
) | SELECT COUNT(starts) FROM table_name_18 WHERE wins > 2 AND money_list_rank > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
3511,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
540,
834,
3350,
834,
6254,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
792,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10208,
7,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
9204,
2490,
204,
3430,
540,
834,
3350,
834,
6254,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In which Tournament was Mansour Bahrami Eric Winogradsky | CREATE TABLE table_14438 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent in Final" text,
"Score in Final" text
) | SELECT "Tournament" FROM table_14438 WHERE "Opponent in Final" = 'mansour bahrami eric winogradsky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
3747,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
20885,
3747,
549,
17444,
427,
96,
667,
102,
9977,
16,
6514,
121,
3274,
3,
31,
348,
7,
1211,
3,
17670,
2375,
23,
3,
15,
2234,
1369,
32,
3987,
5352,
31,
1,
-100,
-10... |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the founder , and group by attribute founder, and display x axis in ascending order. | 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 T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder | [
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,
332,
4416,
19145,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4416,
1... |
Who was number 9 that had a number 7 of Joana and a Final of Pedro? | CREATE TABLE table_name_96 (
no9 VARCHAR,
no7 VARCHAR,
final VARCHAR
) | SELECT no9 FROM table_name_96 WHERE no7 = "joana" AND final = "pedro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
150,
1298,
584,
4280,
28027,
6,
150,
940,
584,
4280,
28027,
6,
804,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
381,
668,
24,
141... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
1298,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
150,
940,
3274,
96,
1927,
152,
9,
121,
3430,
804,
3274,
96,
3138,
52,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many players named paddy rowan? | CREATE TABLE table_16527640_2 (rank_held_at_time_of_death VARCHAR, player VARCHAR) | SELECT COUNT(rank_held_at_time_of_death) FROM table_16527640_2 WHERE player = "Paddy Rowan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2555,
23714,
834,
357,
41,
6254,
834,
14796,
834,
144,
834,
715,
834,
858,
834,
221,
9,
189,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
834,
14796,
834,
144,
834,
715,
834,
858,
834,
221,
9,
189,
61,
21680,
953,
834,
22823,
2555,
23714,
834,
357,
549,
17444,
427,
1959,
3274,
96,
345,
9,
8155,
11768,
152,
121,
1,
-100,
-100,
... |
Who won the womens singles when Marc Zwiebler won the men's singles? | CREATE TABLE table_17427 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Womens singles" FROM table_17427 WHERE "Mens singles" = 'Marc Zwiebler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
2555,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
7,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
32,
904,
7,
712,
7,
121,
21680,
953,
834,
27693,
2555,
549,
17444,
427,
96,
329,
35,
7,
712,
7,
121,
3274,
3,
31,
7286,
75,
1027,
6092,
2296,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients on buccal route of drug administration who were admitted before the year 2173. | 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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2173" AND prescriptions.route = "BUCCAL" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
how many of the patients with creation of conduit between left ventricle and aorta had a lab test for pleural fluid? | 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 procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Creation of conduit between left ventricle and aorta" AND lab.fluid = "Pleural" | [
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,
3388,
18206... |
What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1? | CREATE TABLE table_name_51 (
silver VARCHAR,
rank VARCHAR,
total VARCHAR,
bronze VARCHAR
) | SELECT silver FROM table_name_51 WHERE total > 4 AND bronze = "2" AND rank > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
4294,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
4294,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
792,
2490,
314,
3430,
13467,
3274,
96,
357,
121,
3430,
11003,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the first elected for texas 6 district | CREATE TABLE table_1341423_43 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_1341423_43 WHERE district = "Texas 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
2773,
834,
4906,
41,
14672,
834,
19971,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
166,
8160,
21,
3,
10354,
9,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
19971,
21680,
953,
834,
23747,
2534,
2773,
834,
4906,
549,
17444,
427,
3939,
3274,
96,
13598,
9,
7,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What event was on 26 August 2005? | CREATE TABLE table_name_14 (event VARCHAR, date VARCHAR) | SELECT event FROM table_name_14 WHERE date = "26 august 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
15,
2169,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
605,
47,
30,
2208,
1660,
3105,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
833,
3274,
96,
2688,
14663,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which college had a running back player | CREATE TABLE table_20898602_1 (
college VARCHAR,
position VARCHAR
) | SELECT college FROM table_20898602_1 WHERE position = "Running back" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3914,
3840,
4305,
834,
536,
41,
1900,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
84,
1900,
141,
3,
9,
1180,
223,
1959,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
1755,
3914,
3840,
4305,
834,
536,
549,
17444,
427,
1102,
3274,
96,
17137,
9416,
223,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Count the number of people of each sex who have a weight higher than 85, display x-axis from low to high order. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Sex, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex ORDER BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
151,
549,
17444,
427,
14230,
2490,
11989,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the netflix code where the series and episode are 4-11? | CREATE TABLE table_15187735_4 (
netflix VARCHAR,
series_ep VARCHAR
) | SELECT netflix FROM table_15187735_4 WHERE series_ep = "4-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
591,
41,
3134,
89,
17591,
584,
4280,
28027,
6,
939,
834,
15,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3134,
89,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3134,
89,
17591,
21680,
953,
834,
26578,
27697,
2469,
834,
591,
549,
17444,
427,
939,
834,
15,
102,
3274,
96,
591,
9169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When atsv erlangen is the mittelfranken nord and alemannia haibach is the unterfranken west what is the mittelfranken s d? | CREATE TABLE table_2806 (
"Season" text,
"Mittelfranken Nord" text,
"Mittelfranken S\u00fcd" text,
"Unterfranken West" text,
"Unterfranken Ost" text,
"Oberfranken West" text,
"Oberfranken Ost" text
) | SELECT "Mittelfranken S\u00fcd" FROM table_2806 WHERE "Unterfranken West" = 'Alemannia Haibach' AND "Mittelfranken Nord" = 'ATSV Erlangen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
5176,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
19999,
1625,
6296,
2217,
4980,
121,
1499,
6,
96,
19999,
1625,
6296,
2217,
180,
2,
76,
1206,
89,
75,
26,
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,
19999,
1625,
6296,
2217,
180,
2,
76,
1206,
89,
75,
26,
121,
21680,
953,
834,
2577,
5176,
549,
17444,
427,
96,
25324,
6296,
2217,
1244,
121,
3274,
3,
31,
188,
109,
2434,
23,
9,
13758,
6425,
31,
3430,
96,
19999,... |
What is Position, when Event is 60 m, and when Venue is Budapest , Hungary? | CREATE TABLE table_name_40 (
position VARCHAR,
event VARCHAR,
venue VARCHAR
) | SELECT position FROM table_name_40 WHERE event = "60 m" AND venue = "budapest , hungary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1102,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
14258,
6,
116,
8042,
19,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
605,
3274,
96,
3328,
3,
51,
121,
3430,
5669,
3274,
96,
11073,
9,
102,
222,
3,
6,
3,
6668,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12? | CREATE TABLE table_name_28 (
Giant VARCHAR,
overall VARCHAR,
super_g VARCHAR
) | SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
3156,
288,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
1355,
834,
122,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
160,
3156,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3156,
288,
6157,
3,
7,
40,
138,
32,
51,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1879,
2490,
220,
3430,
1355,
834,
122,
3274,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For all employees who have the letters D or S in their first name, find hire_date and the average of salary bin hire_date by weekday, and visualize them by a bar chart. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
... | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
145... |
What is the highest amount of floors in Stockholm with a rank of 15? | CREATE TABLE table_name_96 (
floors INTEGER,
location VARCHAR,
rank VARCHAR
) | SELECT MAX(floors) FROM table_name_96 WHERE location = "stockholm" AND rank = "15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
8242,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
866,
13,
8242,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
20924,
7,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1128,
3274,
96,
7149,
2831,
51,
121,
3430,
11003,
3274,
96,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Points have a Home of pittsburgh, and a Score of 1 7? | CREATE TABLE table_49316 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT SUM("Points") FROM table_49316 WHERE "Home" = 'pittsburgh' AND "Score" = '1–7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
25946,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3647,
25946,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
5230,
17,
7289,
107,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
536,
104,
940,
31,
1,
-100,
-100,
... |
what is date of birth and lab test fluid of subject name jerry deberry? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.dob, lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Jerry Deberry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
7690,
5,
6947,
23,
26,
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,
427,
14798,
5,
4350,
327... |
What is the surface of the score, 7 6 (7 3) , 6 3? | CREATE TABLE table_70920 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Surface" FROM table_70920 WHERE "Score" = '7–6 (7–3) , 6–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
27749,
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,
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,
134,
450,
4861,
121,
21680,
953,
834,
2518,
27749,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
940,
104,
948,
13649,
104,
5268,
3,
6,
431,
104,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total for the state of new york and a swimsuit less than 9.394? | CREATE TABLE table_name_97 (
interview INTEGER,
state VARCHAR,
swimsuit VARCHAR
) | SELECT SUM(interview) FROM table_name_97 WHERE state = "new york" AND swimsuit < 9.394 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
2772,
3,
21342,
17966,
6,
538,
584,
4280,
28027,
6,
9728,
7628,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
21,
8,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
3870,
4576,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
538,
3274,
96,
5534,
25453,
121,
3430,
9728,
7628,
3,
2,
5835,
3288,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many buildings are managed by 'Kyle'? Return a bar chart grouping by apartment type codes. | CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_la... | SELECT apt_type_code, COUNT(apt_type_code) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = "Kyle" GROUP BY apt_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
7,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
6137,
834,
4978,
3,
28027,
599,
1808,
201,
3,
6789,
834,
5525,
1152,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6789,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
6789,
834,
6137,
834,
4978,
61,
21680,
15970,
834,
24752,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
10905,
834,
23,
26,
3... |
How many US viewers (millions) were there for 'cold reveal | CREATE TABLE table_17018 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT "U.S. viewers (millions)" FROM table_17018 WHERE "Title" = 'Cold Reveal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
2606,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
5,
134,
5,
13569,
41,
17030,
7,
61,
121,
21680,
953,
834,
536,
2518,
2606,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
9939,
26,
6342,
15,
138,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how long was the last hospital stay of patient 005-76770 in the icu? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-76770') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
26,
159,
7993,
715,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
21680,
1868,
549,
17444,
427... |
Who was the minister of the labor party and had 26 goverments? | CREATE TABLE table_name_82 (
minister VARCHAR,
party VARCHAR,
governments VARCHAR
) | SELECT minister FROM table_name_82 WHERE party = "labor party" AND governments = "26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
6323,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
10524,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
6323,
13,
8,
5347,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6323,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1088,
3274,
96,
9456,
1088,
121,
3430,
10524,
3274,
96,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the capacity for the Denver Broncos? | CREATE TABLE table_28884858_2 (
capacity_percentage VARCHAR,
team VARCHAR
) | SELECT capacity_percentage FROM table_28884858_2 WHERE team = "Denver Broncos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10927,
3707,
3449,
834,
357,
41,
2614,
834,
883,
3728,
545,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2614,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2614,
834,
883,
3728,
545,
21680,
953,
834,
357,
10927,
3707,
3449,
834,
357,
549,
17444,
427,
372,
3274,
96,
308,
35,
624,
4027,
29,
509,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For each account type, find the average account balance of customers with credit score lower than 50 Show bar chart, show by the y-axis in ascending. | CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state ... | SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type ORDER BY AVG(acc_bal) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
123,
7,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
3,
6004,
834,
6137,
3,
4059,
14296,
6,
3,
6004,
834,
3849,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6004,
834,
6137,
6,
71,
17217,
599,
6004,
834,
3849,
61,
21680,
884,
549,
17444,
427,
998,
834,
7,
9022,
3,
2,
943,
350,
4630,
6880,
272,
476,
3,
6004,
834,
6137,
4674,
11300,
272,
476,
71,
17217,
599,
6004,
... |
How many total finals where there when the last win was in 2012-13? | CREATE TABLE table_72521 (
"School" text,
"Winners" real,
"Finalists" real,
"Total Finals" real,
"Year of last win" text
) | SELECT "Total Finals" FROM table_72521 WHERE "Year of last win" = '2012-13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1828,
2658,
41,
96,
29364,
121,
1499,
6,
96,
18455,
687,
7,
121,
490,
6,
96,
371,
10270,
343,
7,
121,
490,
6,
96,
3696,
1947,
6514,
7,
121,
490,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
1947,
6514,
7,
121,
21680,
953,
834,
940,
1828,
2658,
549,
17444,
427,
96,
476,
2741,
13,
336,
1369,
121,
3274,
3,
31,
12172,
13056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the country for geoff ogilvy? | CREATE TABLE table_name_88 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_88 WHERE player = "geoff ogilvy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
684,
21,
873,
1647,
3,
32,
122,
173,
208,
63,
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,
684,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1959,
3274,
96,
397,
1647,
3,
32,
122,
173,
208,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Scottish Cup has a League smaller than 561, Years of 1989 1995 1997 2001, and Europe smaller than 11? | CREATE TABLE table_name_22 (
scottish_cup VARCHAR,
europe VARCHAR,
league VARCHAR,
years VARCHAR
) | SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = "1989–1995 1997–2001" AND europe < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
3,
7,
10405,
1273,
834,
4658,
584,
4280,
28027,
6,
3,
28188,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
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,
7,
10405,
1273,
834,
4658,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
5533,
3,
2,
305,
4241,
3430,
203,
3274,
96,
2294,
3914,
104,
2294,
3301,
6622,
104,
23658,
121,
3430,
3,
28188,
3,
... |
When is it that successor's formal installation has a Vacator of ross bass (d)? | CREATE TABLE table_66237 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successor's formal installation" text
) | SELECT "Date of successor's formal installation" FROM table_66237 WHERE "Vacator" = 'ross bass (d)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
357,
4118,
41,
96,
134,
4748,
41,
4057,
61,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
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,
13,
22261,
31,
7,
4727,
2545,
121,
21680,
953,
834,
3539,
357,
4118,
549,
17444,
427,
96,
25203,
1016,
121,
3274,
3,
31,
1859,
7,
7981,
41,
26,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the grades served at Manchester Junior-Senior High School? | CREATE TABLE table_1984697_85 (grades VARCHAR, school VARCHAR) | SELECT grades FROM table_1984697_85 WHERE school = "Manchester Junior-Senior High school" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4448,
4327,
834,
4433,
41,
6801,
7,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
13082,
2098,
44,
9145,
10243,
18,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13082,
21680,
953,
834,
24151,
4448,
4327,
834,
4433,
549,
17444,
427,
496,
3274,
96,
7296,
13263,
10243,
18,
134,
35,
23,
127,
1592,
496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the dysart of the principal? | CREATE TABLE table_11340432_1 (dysart VARCHAR, information VARCHAR) | SELECT dysart FROM table_11340432_1 WHERE information = "Principal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
25285,
2668,
834,
536,
41,
26,
63,
7,
1408,
584,
4280,
28027,
6,
251,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16633,
1408,
13,
8,
3218,
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,
16633,
1408,
21680,
953,
834,
20522,
25285,
2668,
834,
536,
549,
17444,
427,
251,
3274,
96,
7855,
29,
3389,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose admission type is urgent and diagnoses icd9 code is 725? | 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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.icd9_code = "725" | [
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... |
What is the number of patients less than 79 years who had an other body fluid lab test done? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "79" AND lab.fluid = "Other Body Fluid" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find meter_600 and ID , and visualize them by a bar chart, sort Y from low to high order please. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
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
)
... | SELECT meter_600, ID FROM swimmer ORDER BY ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6007,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
4699,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the release that was Wrongun as the label? | CREATE TABLE table_name_66 (
date VARCHAR,
label VARCHAR
) | SELECT date FROM table_name_66 WHERE label = "wrongun" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
833,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
1576,
24,
47,
549,
52,
2444,
202,
38,
8,
378... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
3783,
3274,
96,
210,
52,
2444,
202,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the total number of record for 27 | CREATE TABLE table_1351 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Record") FROM table_1351 WHERE "Game" = '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
5553,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1649,
7621,
8512,
21680,
953,
834,
2368,
5553,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Title, when Release Date is 2011-12-01 December 2011? | CREATE TABLE table_name_65 (title VARCHAR, release_date VARCHAR) | SELECT title FROM table_name_65 WHERE release_date = "2011-12-01 december 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
21869,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11029,
6,
116,
13048,
7678,
19,
2722,
5947,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1576,
834,
5522,
3274,
96,
13907,
5947,
14772,
20,
75,
18247,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the typhoid fever number for the year 1929 | CREATE TABLE table_1007688_1 (typhoid_fever VARCHAR, year VARCHAR) | SELECT typhoid_fever FROM table_1007688_1 WHERE year = "1929" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
3959,
4060,
834,
536,
41,
17,
63,
9553,
23,
26,
834,
89,
3258,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3,
17,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
63,
9553,
23,
26,
834,
89,
3258,
21680,
953,
834,
2915,
3959,
4060,
834,
536,
549,
17444,
427,
215,
3274,
96,
2294,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what team was silvestre varela a member of before moving to porto ? | CREATE TABLE table_204_539 (
id number,
"date" text,
"name" text,
"moving from" text,
"moving to" text,
"fee" text
) | SELECT "moving from" FROM table_204_539 WHERE "name" = 'silvestre varela' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3288,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
7168,
53,
45,
121,
1499,
6,
96,
7168,
53,
12,
121,
1499,
6,
96,
89,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7168,
53,
45,
121,
21680,
953,
834,
26363,
834,
755,
3288,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
7,
23,
8391,
929,
409,
60,
521,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the statuses and average populations of each city. | CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
)
CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pi... | SELECT Status, AVG(Population) FROM city GROUP BY Status | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
690,
41,
896,
834,
4309,
16,
17,
6,
13686,
834,
23954,
1499,
6,
19318,
1499,
6,
5690,
834,
5848,
834,
357,
490,
6,
29659,
490,
6,
23086,
834,
22557,
53,
1499,
3,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
19318,
6,
71,
17217,
599,
27773,
7830,
61,
21680,
690,
350,
4630,
6880,
272,
476,
19318,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of votes for the green party? | CREATE TABLE table_name_38 (votes__gib_ INTEGER, party VARCHAR) | SELECT SUM(votes__gib_) FROM table_name_38 WHERE party = "green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
1621,
1422,
834,
834,
122,
23,
115,
834,
3,
21342,
17966,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
11839,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1621,
1422,
834,
834,
122,
23,
115,
834,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1088,
3274,
96,
9423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which currency has a central rate of 0.702804? | CREATE TABLE table_name_12 (currency VARCHAR, central_rate VARCHAR) | SELECT currency FROM table_name_12 WHERE central_rate = "0.702804" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
3663,
52,
4392,
584,
4280,
28027,
6,
2069,
834,
2206,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7481,
65,
3,
9,
2069,
1080,
13,
4097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7481,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
2069,
834,
2206,
3274,
96,
22426,
4305,
2079,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Bronze has a Country of malaysia, and a Total smaller than 2644? | CREATE TABLE table_name_75 (bronze INTEGER, country VARCHAR, total VARCHAR) | SELECT SUM(bronze) FROM table_name_75 WHERE country = "malaysia" AND total < 2644 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
13711,
776,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
20841,
65,
3,
9,
6993,
13,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
684,
3274,
96,
51,
9,
20244,
23,
9,
121,
3430,
792,
3,
2,
2208,
3628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what were the number of races held in march ? | CREATE TABLE table_204_409 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" number,
"winner" text,
"team" text
) | SELECT COUNT("race name") FROM table_204_409 WHERE "date" = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
4198,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
12614,
564,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
6809,
5773,
121,
381,
6,
96,
3757,
687,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12614,
564,
8512,
21680,
953,
834,
26363,
834,
591,
4198,
549,
17444,
427,
96,
5522,
121,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date has a Week smaller than 14, and an Opponent of san francisco 49ers? | CREATE TABLE table_9070 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_9070 WHERE "Week" < '14' AND "Opponent" = 'san francisco 49ers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2394,
2518,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
2394,
2518,
549,
17444,
427,
96,
518,
10266,
121,
3,
2,
3,
31,
2534,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
7,
152,
2515,
11389,
3523,
9526,
277,
31,
1,
-100,
-100,
... |
What is the description of the marketing region China? | CREATE TABLE Marketing_Regions (Marketing_Region_Descriptrion VARCHAR, Marketing_Region_Name VARCHAR) | SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = "China" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4329,
834,
17748,
2865,
41,
22572,
53,
834,
17748,
23,
106,
834,
2962,
11815,
16310,
584,
4280,
28027,
6,
4329,
834,
17748,
23,
106,
834,
23954,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4329,
834,
17748,
23,
106,
834,
2962,
11815,
16310,
21680,
4329,
834,
17748,
2865,
549,
17444,
427,
4329,
834,
17748,
23,
106,
834,
23954,
3274,
96,
26154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which entrant has 4 points and BRM p25 for the Chassis? | CREATE TABLE table_name_33 (
entrant VARCHAR,
pts VARCHAR,
chassis VARCHAR
) | SELECT entrant FROM table_name_33 WHERE pts = "4" AND chassis = "brm p25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
3,
295,
3569,
584,
4280,
28027,
6,
3,
102,
17,
7,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
295,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
3,
102,
17,
7,
3274,
96,
20364,
3430,
22836,
3274,
96,
115,
52,
51,
3,
102,
1828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who were the candidates if the incumbent was Henry Logan? | CREATE TABLE table_2668173_4 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_2668173_4 WHERE incumbent = "Henry Logan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
2517,
519,
834,
591,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
3,
99,
8,
28406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
2688,
3651,
2517,
519,
834,
591,
549,
17444,
427,
28406,
3274,
96,
566,
35,
651,
22227,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What glider did thomas gostner pilot? | CREATE TABLE table_name_84 (
glider VARCHAR,
pilot VARCHAR
) | SELECT glider FROM table_name_84 WHERE pilot = "thomas gostner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
26537,
52,
584,
4280,
28027,
6,
4487,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
26537,
52,
410,
3,
189,
32,
2754,
281,
7,
17,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26537,
52,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
4487,
3274,
96,
189,
32,
2754,
281,
7,
17,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
On which circuit does lorenzo bandini have the fastest lap as well as the pole position? | CREATE TABLE table_57912 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Circuit" FROM table_57912 WHERE "Fastest lap" = 'lorenzo bandini' AND "Pole position" = 'lorenzo bandini' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
4729,
357,
41,
96,
448,
3302,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
371,
9,
7,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
3436,
4729,
357,
549,
17444,
427,
96,
371,
9,
7,
4377,
14941,
121,
3274,
3,
31,
322,
15,
20547,
1928,
77,
23,
31,
3430,
96,
8931,
15,
1102,
121,
3274,
3,
31,
322,
... |
Who are the rowers with a time of 6:41.45 and notes of FA? | CREATE TABLE table_63439 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Rowers" FROM table_63439 WHERE "Notes" = 'fa' AND "Time" = '6:41.45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
591,
3288,
41,
96,
22557,
121,
490,
6,
96,
448,
2381,
277,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
2381,
277,
121,
21680,
953,
834,
3891,
591,
3288,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
89,
9,
31,
3430,
96,
13368,
121,
3274,
3,
31,
948,
10,
4853,
5,
2128,
31,
1,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the average of manufacturer , and group by attribute headquarter. | 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 Headquarter, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | [
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,
3642,
19973,
6,
71,
17217,
599,
7296,
76,
8717,
450,
49,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
... |
How many episodes were written by Ross brown? | CREATE TABLE table_2468961_2 (
no_in_series VARCHAR,
written_by VARCHAR
) | SELECT COUNT(no_in_series) FROM table_2468961_2 WHERE written_by = "Ross Brown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3651,
4314,
536,
834,
357,
41,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
2266,
3651,
4314,
536,
834,
357,
549,
17444,
427,
1545,
834,
969,
3274,
96,
448,
32,
7,
7,
3899,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the frequency for katherine? | CREATE TABLE table_name_99 (frequency VARCHAR, area_served VARCHAR) | SELECT frequency FROM table_name_99 WHERE area_served = "katherine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
30989,
584,
4280,
28027,
6,
616,
834,
3473,
15,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
21,
3,
8682,
760,
630,
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,
7321,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
616,
834,
3473,
15,
26,
3274,
96,
8682,
760,
630,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Notes, when Silver is 'Jarkko Huovila'? | CREATE TABLE table_name_3 (
notes VARCHAR,
silver VARCHAR
) | SELECT notes FROM table_name_3 WHERE silver = "jarkko huovila" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
3358,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2507,
7,
6,
116,
5642,
19,
3,
31,
683,
6604,
157,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3358,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
4294,
3274,
96,
5670,
8511,
32,
3,
107,
76,
9881,
521,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which game did New Jersey Devils played in? | CREATE TABLE table_39034 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Game" FROM table_39034 WHERE "Opponent" = 'new jersey devils' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2394,
3710,
41,
96,
23055,
121,
490,
6,
96,
31122,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
23055,
121,
21680,
953,
834,
519,
2394,
3710,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
5534,
13426,
20,
6372,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the lead supporting vocalist on the song that was 4:54 long? | CREATE TABLE table_50428 (
"Track" real,
"Song" text,
"Author" text,
"Worship Leader" text,
"Lead Supporting Vocal" text,
"Time" text
) | SELECT "Lead Supporting Vocal" FROM table_50428 WHERE "Time" = '4:54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
2577,
41,
96,
382,
16729,
121,
490,
6,
96,
134,
2444,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
518,
127,
2009,
10310,
121,
1499,
6,
96,
2796,
9,
26,
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,
96,
2796,
9,
26,
4224,
53,
3152,
1489,
121,
21680,
953,
834,
1752,
591,
2577,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
591,
10,
5062,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What release date is when kids-270 is a reference? | CREATE TABLE table_16410 (
"Romaji title" text,
"Japanese title" text,
"Release date" text,
"Reference" text,
"Oricon" real
) | SELECT "Release date" FROM table_16410 WHERE "Reference" = 'KIDS-270' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
1714,
41,
96,
448,
32,
16547,
23,
2233,
121,
1499,
6,
96,
683,
9750,
1496,
15,
2233,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
1649,
11788,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
40,
14608,
833,
121,
21680,
953,
834,
26987,
1714,
549,
17444,
427,
96,
1649,
11788,
121,
3274,
3,
31,
14108,
3592,
18,
17485,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients were admitted urgently and had the formation of cutaneous uretero-ileostomy procedure? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | 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.short_title = "Form cutan ileoureterost" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
When was Dale Alford first elected in the Arkansas 5 district? | CREATE TABLE table_18437 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "First elected" FROM table_18437 WHERE "District" = 'Arkansas 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
4118,
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,
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,
25171,
8160,
121,
21680,
953,
834,
25987,
4118,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
188,
52,
3304,
7,
9,
7,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the date of the tournament with carlos moyà as the opponent? | CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_6 WHERE opponent = "carlos moyà" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
5892,
28,
443,
2298,
2288,
63,
85,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
15264,
3274,
96,
1720,
2298,
2288,
63,
85,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Ludo Peeters' team classification? | CREATE TABLE table_name_74 (
team_classification VARCHAR,
winner VARCHAR
) | SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
372,
834,
4057,
2420,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2318,
26,
32,
1276,
15,
4849,
31,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
4668,
3274,
96,
40,
76,
26,
32,
158,
15,
4849,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest Points, when Home is 'Boston'? | CREATE TABLE table_47366 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT MIN("Points") FROM table_47366 WHERE "Home" = 'boston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
3539,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22512,
7,
8512,
21680,
953,
834,
4177,
519,
3539,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
115,
32,
4411,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the division record for Woodbridge? | CREATE TABLE table_70187 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
) | SELECT "Division Record" FROM table_70187 WHERE "School" = 'woodbridge' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
25828,
41,
96,
29364,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
308,
23,
6610,
11392,
121,
1499,
6,
96,
23847,
1748,
11392,
121,
1499,
6,
96,
134,
15,
9,
739,
3387... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
6610,
11392,
121,
21680,
953,
834,
2518,
25828,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
2037,
9818,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Rank Points, when Event is 'WC Milan', and when Shooter is 'Lalita Yauhleuskaya ( AUS )'? | CREATE TABLE table_60176 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
) | SELECT "Rank points" FROM table_60176 WHERE "Event" = 'wc milan' AND "Shooter" = 'lalita yauhleuskaya ( aus )' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
26782,
41,
96,
10499,
32,
32,
449,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
22557,
979,
121,
1499,
6,
96,
134,
9022,
979,
121,
1499,
6,
96,
3696,
1947,
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,
22557,
979,
121,
21680,
953,
834,
3328,
26782,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
210,
75,
1337,
1618,
31,
3430,
96,
10499,
32,
32,
449,
121,
3274,
3,
31,
521,
4250,
9,
3,
63,
402,
107,
109,
... |
What is Record, when High Points is 'Ray Allen (27)'? | CREATE TABLE table_name_90 (
record VARCHAR,
high_points VARCHAR
) | SELECT record FROM table_name_90 WHERE high_points = "ray allen (27)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1368,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11392,
6,
116,
1592,
4564,
7,
19,
3,
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,
1368,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
2866,
6127,
4743,
12703,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average attendance of game 1? | CREATE TABLE table_name_72 (
attendance INTEGER,
game INTEGER
) | SELECT AVG(attendance) FROM table_name_72 WHERE game < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
11364,
3,
21342,
17966,
6,
467,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
11364,
13,
467,
209,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
467,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Frequency has a Model Number of c3 1.4a? | CREATE TABLE table_name_5 (
frequency VARCHAR,
model_number VARCHAR
) | SELECT frequency FROM table_name_5 WHERE model_number = "c3 1.4a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
7321,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5532,
835,
11298,
65,
3,
9,
5154,
7720,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7321,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
75,
519,
3,
14912,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who's the player eliminated on episode 5? | CREATE TABLE table_name_50 (player VARCHAR, eliminated VARCHAR) | SELECT player FROM table_name_50 WHERE eliminated = "episode 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
20846,
584,
4280,
28027,
6,
17809,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
8,
1959,
17809,
30,
5640,
305,
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,
1959,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
17809,
3274,
96,
15,
102,
159,
32,
221,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result when the attendance was 78,793? | CREATE TABLE table_name_53 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_53 WHERE attendance = "78,793" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
116,
8,
11364,
47,
3,
3940,
6,
4440,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
11364,
3274,
96,
3940,
6,
4440,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What location has kingsmen as the mascot? | CREATE TABLE table_name_48 (location VARCHAR, mascot VARCHAR) | SELECT location FROM table_name_48 WHERE mascot = "kingsmen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
14836,
584,
4280,
28027,
6,
3,
2754,
4310,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1128,
65,
3,
1765,
7,
904,
38,
8,
3,
2754,
4310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
2754,
4310,
3274,
96,
1765,
7,
904,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is High Assists, when High Points is Keon Clark (19)? | CREATE TABLE table_name_57 (high_assists VARCHAR, high_points VARCHAR) | SELECT high_assists FROM table_name_57 WHERE high_points = "keon clark (19)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1592,
282,
7,
343,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
1050,
106,
6860,
157,
2863,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the population where the area (sq. mi.) is area (sq. mi.)? | CREATE TABLE table_72275 (
"No." text,
"Region" text,
"Capital" text,
"Area (km\u00b2)" text,
"Area (sq. mi.)" text,
"Population" text,
"GDP ( bn )" text
) | SELECT "Population" FROM table_72275 WHERE "Area (sq. mi.)" = 'Area (sq. mi.)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
25988,
41,
96,
4168,
535,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
19566,
9538,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
27773,
7830,
121,
21680,
953,
834,
5865,
25988,
549,
17444,
427,
96,
188,
864,
41,
7,
1824,
5,
1337,
5,
61,
121,
3274,
3,
31,
188,
864,
41,
7,
1824,
5,
1337,
5,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Brand, when Frequency is '640'? | CREATE TABLE table_59395 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"City of License" text,
"Type" text
) | SELECT "Brand" FROM table_59395 WHERE "Frequency" = '640' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
519,
3301,
41,
96,
371,
60,
835,
11298,
121,
490,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
18304,
727,
121,
1499,
6,
96,
254,
485,
13,
16452,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18304,
727,
121,
21680,
953,
834,
3390,
519,
3301,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
23714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers? | CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) | SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.96" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4448,
3072,
3940,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2517,
4448,
3072,
3940,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
5787,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Party, when Opinion Research Centre (OPC) is 1.5%? | CREATE TABLE table_name_33 (
party VARCHAR,
opinion_research_centre__opc_ VARCHAR
) | SELECT party FROM table_name_33 WHERE opinion_research_centre__opc_ = "1.5%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1088,
584,
4280,
28027,
6,
3474,
834,
60,
13173,
834,
3728,
60,
834,
834,
32,
102,
75,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
3474,
834,
60,
13173,
834,
3728,
60,
834,
834,
32,
102,
75,
834,
3274,
96,
5411,
2712,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the number of the player that was 6-6? | CREATE TABLE table_25260 (
"Number" real,
"Name" text,
"Position" text,
"Height" text,
"Experience" text,
"College" text
) | SELECT "Number" FROM table_25260 WHERE "Height" = '6-6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
18365,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
5420,
4267,
1433,
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,
567,
5937,
49,
121,
21680,
953,
834,
1828,
18365,
549,
17444,
427,
96,
3845,
2632,
121,
3274,
3,
31,
948,
5783,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.