NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Name the poll source for republican joe kenney being 28% | CREATE TABLE table_21787 (
"Poll Source" text,
"Dates administered" text,
"Democrat: John Lynch" text,
"Republican: Joe Kenney" text,
"Lead Margin" real
) | SELECT "Poll Source" FROM table_21787 WHERE "Republican: Joe Kenney" = '28%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
4225,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
19679,
10,
1079,
25381,
121,
1499,
6,
96,
1649,
15727,
152,
10,
4967,
16267,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8931,
40,
9149,
121,
21680,
953,
834,
357,
2517,
4225,
549,
17444,
427,
96,
1649,
15727,
152,
10,
4967,
16267,
63,
121,
3274,
3,
31,
357,
5953,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue? | CREATE TABLE table_name_37 (
call_sign VARCHAR,
tail_code VARCHAR,
weapon_systems_officer VARCHAR
) | SELECT call_sign FROM table_name_37 WHERE tail_code = "oy" AND weapon_systems_officer = "capt charles b. debellevue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
580,
834,
6732,
584,
4280,
28027,
6,
9891,
834,
4978,
584,
4280,
28027,
6,
10931,
834,
3734,
7,
834,
19632,
52,
584,
4280,
28027,
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,
580,
834,
6732,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
9891,
834,
4978,
3274,
96,
32,
63,
121,
3430,
10931,
834,
3734,
7,
834,
19632,
52,
3274,
96,
4010,
17,
3,
4059,
965,
3,
115,
5,
20,
2370,
10912,
... |
crinan canal is only half of what other canal | CREATE TABLE table_203_594 (
id number,
"canal" text,
"length (miles)" number,
"locks" number,
"max length (ft)" number,
"width (ft)" number,
"year opened" number,
"year abandoned" number,
"year restored" number
) | SELECT "canal" FROM table_203_594 WHERE "length (miles)" = (SELECT "length (miles)" FROM table_203_594 WHERE "canal" = 'crinan canal') / 0.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3390,
591,
41,
3,
23,
26,
381,
6,
96,
1608,
138,
121,
1499,
6,
96,
19457,
41,
8770,
7,
61,
121,
381,
6,
96,
4029,
7,
121,
381,
6,
96,
9128,
2475,
41,
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,
1608,
138,
121,
21680,
953,
834,
23330,
834,
3390,
591,
549,
17444,
427,
96,
19457,
41,
8770,
7,
61,
121,
3274,
41,
23143,
14196,
96,
19457,
41,
8770,
7,
61,
121,
21680,
953,
834,
23330,
834,
3390,
591,
549,
1... |
What is the average overall value for a round less than 4 associated with the College of Georgia? | CREATE TABLE table_name_32 (overall INTEGER, round VARCHAR, college VARCHAR) | SELECT AVG(overall) FROM table_name_32 WHERE round < 4 AND college = "georgia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1890,
1748,
3,
21342,
17966,
6,
1751,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1879,
701,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1751,
3,
2,
314,
3430,
1900,
3274,
96,
397,
1677,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the region of the release from May 27, 2009? | CREATE TABLE table_80341 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Region" FROM table_80341 WHERE "Date" = 'may 27, 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
3710,
536,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
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,
17748,
23,
106,
121,
21680,
953,
834,
2079,
3710,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
14141,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose discharge location is short term hospital and age is less than 68? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.age < "68" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
134,
6299,
5934,
3,
5946,
329,
454,
3638,
4111,
16359,
121,
... |
count the number of patients whose days of hospital stay is greater than 30 and lab test name is heparin, lmw? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "30" AND lab.label = "Heparin, LMW" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many directed by entries have UK viewership over 6.16 million? | CREATE TABLE table_30917 (
"No. overall" real,
"No. for series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"UK viewers (million)" text
) | SELECT COUNT("Directed by") FROM table_30917 WHERE "UK viewers (million)" = '6.16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
1298,
2517,
41,
96,
4168,
5,
1879,
121,
490,
6,
96,
4168,
5,
21,
939,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
249... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23620,
15,
26,
57,
8512,
21680,
953,
834,
1458,
1298,
2517,
549,
17444,
427,
96,
15787,
13569,
41,
17030,
61,
121,
3274,
3,
31,
23769,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
IN WHAT STAGE DID ALEXANDER VINOKOUROV WON THE GENERAL CLASSIFICATION? | CREATE TABLE table_11667521_17 (
stage__winner_ VARCHAR,
general_classification VARCHAR
) | SELECT stage__winner_ FROM table_11667521_17 WHERE general_classification = "Alexander Vinokourov" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3539,
3072,
2658,
834,
2517,
41,
1726,
834,
834,
3757,
687,
834,
584,
4280,
28027,
6,
879,
834,
4057,
2420,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3388... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1726,
834,
834,
3757,
687,
834,
21680,
953,
834,
2596,
3539,
3072,
2658,
834,
2517,
549,
17444,
427,
879,
834,
4057,
2420,
3274,
96,
27280,
11849,
8653,
12948,
76,
8843,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many medals has switzerland won in the gold category ? | CREATE TABLE table_204_374 (
id number,
"event" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number,
"ranking" text
) | SELECT SUM("gold") FROM table_204_374 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4581,
41,
3,
23,
26,
381,
6,
96,
15,
2169,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
121,
381,
6,
96,
235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14910,
8512,
21680,
953,
834,
26363,
834,
519,
4581,
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 did patient 022-100453 have to pay for the hospital stay last year? | 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 SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-100453') AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
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,
180,
6122,
599,
11290,
5,
11290,
61,
21680,
583,
549,
17444,
427,
583,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
... |
What type of state is bo qin? | CREATE TABLE table_45585 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "Type" FROM table_45585 WHERE "Name" = 'bo qin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3449,
755,
41,
96,
134,
4748,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
63,
138,
629,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25160,
121,
21680,
953,
834,
2128,
3449,
755,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
115,
32,
3,
1824,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the state for the royal house of ying? | CREATE TABLE table_name_58 (state VARCHAR, royal_house VARCHAR) | SELECT state FROM table_name_58 WHERE royal_house = "ying" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
5540,
584,
4280,
28027,
6,
11268,
834,
1840,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
538,
21,
8,
11268,
629,
13,
3,
8149,
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,
538,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
11268,
834,
1840,
3274,
96,
8149,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What score has a record of 21-25-7-4? | CREATE TABLE table_name_92 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_92 WHERE record = "21-25-7-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
65,
3,
9,
1368,
13,
204,
9596,
23440,
4278,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1368,
3274,
96,
357,
9596,
23440,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Date of Issue with a Theme with mental health? | CREATE TABLE table_name_3 (
date_of_issue VARCHAR,
theme VARCHAR
) | SELECT date_of_issue FROM table_name_3 WHERE theme = "mental health" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
833,
834,
858,
834,
13159,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
13,
13235,
28,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
13159,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3800,
3274,
96,
13974,
533,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Let institution types as the X-axis and the number of institutions for each type as Y-axis, the visualization type is bar chart, rank bars in descending order. | CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest text,
Height_feet int,
Floors int
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Pri... | SELECT Type, COUNT(*) FROM Institution GROUP BY Type ORDER BY Type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
740,
41,
740,
834,
23,
26,
1499,
6,
5570,
1499,
6,
1887,
834,
9,
26,
12039,
1499,
6,
13825,
834,
9,
7,
834,
17,
1748,
222,
1499,
6,
24231,
834,
89,
15,
15,
17,
16,
17,
6,
12324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
1935,
61,
21680,
14932,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
6632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the high rebounds from the date of April 14? | CREATE TABLE table_name_29 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_name_29 WHERE date = "april 14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
6739,
834,
23768,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
306,
3,
23768,
45,
8,
833,
13,
1186,
968,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
23768,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times was the venue in greece ? | CREATE TABLE table_203_300 (
id number,
"year" number,
"tournament" text,
"venue" text,
"result" text,
"extra" text
) | SELECT COUNT(*) FROM table_203_300 WHERE "venue" = 'greece' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
5426,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
5426,
549,
17444,
427,
96,
15098,
121,
3274,
3,
31,
3584,
15,
565,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the district of Paraswada with none reserved? | CREATE TABLE table_name_64 (
district VARCHAR,
reserved_for___sc___st__none_ VARCHAR,
name VARCHAR
) | SELECT district FROM table_name_64 WHERE reserved_for___sc___st__none_ = "none" AND name = "paraswada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
3939,
584,
4280,
28027,
6,
14040,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
584,
4280,
28027,
6,
564,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
14040,
834,
1161,
834,
834,
834,
7,
75,
834,
834,
834,
7,
17,
834,
834,
29,
782,
834,
3274,
96,
29,
782,
121,
3430,
564,
3274,
96,
6583,
7,
210,
9,
26,
... |
Find the names of all patients who have an undergoing treatment and are staying in room 111. | CREATE TABLE stay (
stayid number,
patient number,
room number,
staystart time,
stayend time
)
CREATE TABLE department (
departmentid number,
name text,
head number
)
CREATE TABLE block (
blockfloor number,
blockcode number
)
CREATE TABLE appointment (
appointmentid number... | SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn JOIN stay AS T3 ON T1.stay = T3.stayid WHERE T3.room = 111 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1049,
41,
1049,
23,
26,
381,
6,
1868,
381,
6,
562,
381,
6,
1049,
10208,
97,
6,
1049,
989,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
3066,
23,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
4416,
4350,
21680,
17601,
15,
7,
6157,
332,
536,
3,
15355,
3162,
1868,
6157,
332,
357,
9191,
332,
5411,
10061,
3274,
332,
4416,
7,
7,
29,
3,
15355,
3162,
1049,
6157,
332,
519,
9191,
332,
... |
What is the title with chuck jones as the director and the production number 9537? | CREATE TABLE table_62779 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" text,
"Release date" text
) | SELECT "Title" FROM table_62779 WHERE "Director" = 'chuck jones' AND "Production Number" = '9537' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2555,
4440,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
7720,
121,
1499,
6,
96,
1649,
40,
14608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
155,
109,
121,
21680,
953,
834,
948,
2555,
4440,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
24238,
3,
1927,
1496,
31,
3430,
96,
3174,
8291,
7720,
121,
3274,
3,
31,
3301,
4118,
31,
1,
-100,
-100,
... |
Which Type has a Capacity of 10 tons, and a Number of 24-27? | CREATE TABLE table_8433 (
"Number" text,
"Builder" text,
"Type" text,
"Date" real,
"Length" text,
"Capacity" text
) | SELECT "Type" FROM table_8433 WHERE "Capacity" = '10 tons' AND "Number" = '24-27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
4201,
41,
96,
567,
5937,
49,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
434,
4606,
189,
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,
25160,
121,
21680,
953,
834,
4608,
4201,
549,
17444,
427,
96,
19566,
9,
6726,
121,
3274,
3,
31,
1714,
8760,
31,
3430,
96,
567,
5937,
49,
121,
3274,
3,
31,
2266,
18,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the launched for 13 september 1934 completion | CREATE TABLE table_name_91 (launched VARCHAR, completed VARCHAR) | SELECT launched FROM table_name_91 WHERE completed = "13 september 1934" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
27493,
15,
26,
584,
4280,
28027,
6,
2012,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3759,
21,
1179,
16022,
18247,
28828,
6929,
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,
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,
3759,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
2012,
3274,
96,
2368,
16022,
18247,
28828,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest number of wins when more than 17 cuts and more than 25 starts were made, and the top 10 ranking is less than 8? | CREATE TABLE table_41648 (
"Year" text,
"Starts" real,
"Cuts Made" real,
"Wins" real,
"Top 10" real,
"Top 25" real,
"Earnings (\u20ac)" real,
"Money list rank" text
) | SELECT MAX("Wins") FROM table_41648 WHERE "Cuts Made" > '17' AND "Starts" > '25' AND "Top 10" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2938,
3707,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
15784,
17,
7,
6465,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
335,
121,
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,
4800,
4,
599,
121,
18455,
7,
8512,
21680,
953,
834,
591,
2938,
3707,
549,
17444,
427,
96,
15784,
17,
7,
6465,
121,
2490,
3,
31,
2517,
31,
3430,
96,
7681,
17,
7,
121,
2490,
3,
31,
1828,
31,
3430,
96,
22481,
335,
... |
How many players are at the DT position? | CREATE TABLE table_21321804_3 (player VARCHAR, position VARCHAR) | SELECT COUNT(player) FROM table_21321804_3 WHERE position = "DT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2668,
2606,
6348,
834,
519,
41,
20846,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
33,
44,
8,
3,
12111,
1102,
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,
2847,
17161,
599,
20846,
61,
21680,
953,
834,
2658,
2668,
2606,
6348,
834,
519,
549,
17444,
427,
1102,
3274,
96,
12111,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of clubs when the runner-up was Liaoning Fushun? | CREATE TABLE table_1740 (
"Season" real,
"Winners" text,
"Total wins" real,
"Runners-up" text,
"Third-place" text,
"fourth-placed" text,
"Number of clubs" real
) | SELECT COUNT("Number of clubs") FROM table_1740 WHERE "Runners-up" = 'Liaoning Fushun' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2445,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
3696,
1947,
9204,
121,
490,
6,
96,
23572,
7,
18,
413,
121,
1499,
6,
96,
382,
92... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
5937,
49,
13,
8122,
8512,
21680,
953,
834,
2517,
2445,
549,
17444,
427,
96,
23572,
7,
18,
413,
121,
3274,
3,
31,
434,
23,
9,
106,
53,
377,
8489,
202,
31,
1,
-100,
-100,
-100,
-100,
-1... |
creatinine clearance < 60 ml / min / 1.73 meter _ squared | CREATE TABLE table_train_272 (
"id" int,
"fasting_plasma_glucose_fpg" float,
"creatinine_clearance_cl" float,
"baseline_hemoglobin_hgb" float,
"sensitization_on_pra" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_272 WHERE creatinine_clearance_cl < 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2555,
357,
41,
96,
23,
26,
121,
16,
17,
6,
96,
11584,
53,
834,
21178,
9,
834,
13492,
509,
7,
15,
834,
89,
102,
122,
121,
3,
12660,
6,
96,
5045,
144,
77,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2555,
357,
549,
17444,
427,
8830,
77,
630,
834,
2482,
9,
5219,
834,
75,
40,
3,
2,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of the cheapest products in each category along with the cheapest price in a bar chart? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, MIN(Price) FROM Products GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3,
17684,
599,
345,
4920,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
If the player is Hashan Tillakaratne, what is the catches minimum? | CREATE TABLE table_26041144_16 (catches INTEGER, player VARCHAR) | SELECT MIN(catches) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
4853,
20885,
834,
2938,
41,
23386,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1959,
19,
4498,
2618,
22067,
5667,
1795,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
23386,
61,
21680,
953,
834,
18365,
4853,
20885,
834,
2938,
549,
17444,
427,
1959,
3274,
96,
566,
3198,
152,
22067,
5667,
1795,
29,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Airport with the ICAO fo KSEA? | CREATE TABLE table_name_10 (airport VARCHAR, icao VARCHAR) | SELECT airport FROM table_name_10 WHERE icao = "ksea" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2256,
1493,
584,
4280,
28027,
6,
3,
2617,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5735,
28,
8,
3,
15038,
667,
5575,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3761,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
3,
2617,
32,
3274,
96,
157,
7,
15,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the only province with population density under 30 ? | CREATE TABLE table_203_152 (
id number,
"province" text,
"capital" text,
"area (km2)" number,
"population" number,
"density" number
) | SELECT "province" FROM table_203_152 WHERE "density" < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26320,
41,
3,
23,
26,
381,
6,
96,
1409,
2494,
565,
121,
1499,
6,
96,
4010,
9538,
121,
1499,
6,
96,
498,
41,
5848,
7318,
121,
381,
6,
96,
9791,
7830,
121,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1409,
2494,
565,
121,
21680,
953,
834,
23330,
834,
26320,
549,
17444,
427,
96,
537,
7,
485,
121,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many episodes did Eve Weston write? | CREATE TABLE table_27462177_1 (
no_in_series VARCHAR,
written_by VARCHAR
) | SELECT COUNT(no_in_series) FROM table_27462177_1 WHERE written_by = "Eve Weston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4448,
2658,
4013,
834,
536,
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,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2555,
4448,
2658,
4013,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
427,
162,
1244,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which delegates are from counties with population smaller than 100000? | CREATE TABLE county (
County_id VARCHAR,
Population INTEGER
)
CREATE TABLE election (
Delegate VARCHAR,
District VARCHAR
) | SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5435,
41,
1334,
834,
23,
26,
584,
4280,
28027,
6,
29659,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
374,
8791,
584,
4280,
28027,
6,
3570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2962,
8791,
21680,
5435,
6157,
332,
536,
3,
15355,
3162,
4356,
6157,
332,
357,
9191,
332,
5411,
10628,
63,
834,
23,
26,
3274,
332,
4416,
308,
23,
20066,
549,
17444,
427,
332,
5411,
27773,
7830,
3,
2,
910,... |
what is the total population in dzhebariki khaya ? | CREATE TABLE table_204_6 (
id number,
"category" text,
"urban settlements" text,
"population" number,
"male" text,
"female" text,
"inhabited localities in jurisdiction" text
) | SELECT "population" FROM table_204_6 WHERE "urban settlements" = 'dzhebariki-khaya' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
41,
3,
23,
26,
381,
6,
96,
8367,
839,
651,
121,
1499,
6,
96,
19413,
7025,
7,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
13513,
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,
9791,
7830,
121,
21680,
953,
834,
26363,
834,
948,
549,
17444,
427,
96,
19413,
7025,
7,
121,
3274,
3,
31,
26,
172,
88,
1047,
9069,
18,
18276,
63,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the total number from each type, and order names in asc order. | CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
) | SELECT Type, COUNT(*) FROM artwork GROUP BY Type ORDER BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3994,
834,
221,
5756,
41,
3397,
834,
4309,
16,
17,
6,
3397,
834,
23954,
1499,
6,
6651,
834,
23954,
1499,
6,
10450,
1499,
6,
2929,
16,
17,
6,
1174,
51,
834,
858,
834,
188,
5291,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
1935,
61,
21680,
7924,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
6632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Result has a Home Team of rochester, and a Game of game 5? | CREATE TABLE table_77453 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Result" FROM table_77453 WHERE "Home Team" = 'rochester' AND "Game" = 'game 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2128,
519,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
32,
9,
26,
2271,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
4013,
2128,
519,
549,
17444,
427,
96,
19040,
2271,
121,
3274,
3,
31,
52,
32,
13263,
31,
3430,
96,
23055,
121,
3274,
3,
31,
7261,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What college did Jamie Butt go to? | CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR) | SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "jamie butt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3297,
7883,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1959,
3274,
96,
1191,
2720,
68,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Attendance has a Result of l12–21? | CREATE TABLE table_name_13 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_13 WHERE result = "l12–21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
15116,
663,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
22497,
663,
65,
3,
9,
3,
20119,
13,
3,
40,
2122,
104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
741,
3274,
96,
40,
2122,
104,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze? | CREATE TABLE table_name_25 (
rank VARCHAR,
bronze VARCHAR,
silver VARCHAR,
gold VARCHAR
) | SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
4294,
2490,
209,
3430,
2045,
2490,
209,
3430,
13467,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the least horizontal for smpte 259m three quarters | CREATE TABLE table_272313_2 (
horizontal INTEGER,
pixel_aspect_ratio VARCHAR
) | SELECT MIN(horizontal) FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M three quarters" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2773,
2368,
834,
357,
41,
9969,
3,
21342,
17966,
6,
3,
14251,
834,
9,
5628,
834,
6850,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
9969,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
12158,
1947,
61,
21680,
953,
834,
2555,
2773,
2368,
834,
357,
549,
17444,
427,
3,
14251,
834,
9,
5628,
834,
6850,
32,
3274,
96,
134,
5244,
3463,
204,
3390,
329,
386,
2893,
7,
121,
1,
-100,
-100,
-10... |
What district is the parish who had the South Cambridgeshire rural district as the former local authority? | CREATE TABLE table_37683 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
) | SELECT "District" FROM table_37683 WHERE "Former local authority" = 'south cambridgeshire rural district' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
3651,
519,
41,
96,
23954,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
3809,
935,
415,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
20066,
121,
21680,
953,
834,
4118,
3651,
519,
549,
17444,
427,
96,
3809,
935,
415,
5015,
121,
3274,
3,
31,
7,
670,
107,
5511,
9818,
5718,
5372,
3939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose item id is 50824 and lab test abnormal status is abnormal. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50824" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the song name that featured Marcus Temu as the lead supporting vocalist? | CREATE TABLE table_name_12 (
song VARCHAR,
lead_supporting_vocal VARCHAR
) | SELECT song FROM table_name_12 WHERE lead_supporting_vocal = "marcus temu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
2324,
584,
4280,
28027,
6,
991,
834,
20390,
53,
834,
6117,
138,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2324,
564,
24,
4510... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
991,
834,
20390,
53,
834,
6117,
138,
3274,
96,
1635,
1071,
7,
3,
3524,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Notes of the Frequency with a call sign of CBUE-FM? | CREATE TABLE table_65752 (
"Frequency" text,
"Call sign" text,
"Format" text,
"Owner" text,
"Notes" text
) | SELECT "Notes" FROM table_65752 WHERE "Call sign" = 'cbue-fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3072,
357,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
210,
687,
121,
1499,
6,
96,
10358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10358,
15,
7,
121,
21680,
953,
834,
4122,
3072,
357,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
75,
3007,
15,
18,
89,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rank of the petroleum company who has a revenue of $481.7 billion? | CREATE TABLE table_name_7 (rank INTEGER, industry VARCHAR, revenue_in_usd VARCHAR) | SELECT MIN(rank) FROM table_name_7 WHERE industry = "petroleum" AND revenue_in_usd = "$481.7 billion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
6254,
3,
21342,
17966,
6,
681,
584,
4280,
28027,
6,
3751,
834,
77,
834,
302,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
681,
3274,
96,
4995,
3491,
15,
440,
121,
3430,
3751,
834,
77,
834,
302,
26,
3274,
96,
3229,
3707,
18596,
2108,
121,
1,
-100,
-100,
-100,
-... |
What season ended on April 18? | CREATE TABLE table_22383603_1 (season VARCHAR, finish__incl_championship_ VARCHAR) | SELECT season FROM table_22383603_1 WHERE finish__incl_championship_ = "April 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3747,
19208,
519,
834,
536,
41,
9476,
584,
4280,
28027,
6,
1992,
834,
834,
77,
75,
40,
834,
17788,
12364,
2009,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
2884,
3747,
19208,
519,
834,
536,
549,
17444,
427,
1992,
834,
834,
77,
75,
40,
834,
17788,
12364,
2009,
834,
3274,
96,
23323,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the the opponent with district being ohio12 | CREATE TABLE table_1341522_38 (opponent VARCHAR, district VARCHAR) | SELECT opponent FROM table_1341522_38 WHERE district = "Ohio12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
2884,
834,
3747,
41,
32,
102,
9977,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
8,
15264,
28,
3939,
271,
3,
32,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
23747,
1808,
2884,
834,
3747,
549,
17444,
427,
3939,
3274,
96,
15046,
23,
32,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which province got a swimsuit score of 8.43 | CREATE TABLE table_1177 (
"Province" text,
"Swimsuit" text,
"Evening Gown" text,
"Interview" text,
"Average" text
) | SELECT "Province" FROM table_1177 WHERE "Swimsuit" = '8.43' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4013,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
134,
210,
603,
7628,
121,
1499,
6,
96,
427,
1926,
53,
350,
9197,
121,
1499,
6,
96,
17555,
4576,
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,
3174,
2494,
565,
121,
21680,
953,
834,
2596,
4013,
549,
17444,
427,
96,
134,
210,
603,
7628,
121,
3274,
3,
31,
927,
5,
4906,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What party has the South Carolina 2 district? | CREATE TABLE table_60810 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) | SELECT "Party" FROM table_60810 WHERE "District" = 'south carolina 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
927,
1714,
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,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
3328,
927,
1714,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
7,
670,
107,
443,
12057,
9,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what was the name of the last team listed on this chart ? | CREATE TABLE table_203_208 (
id number,
"team" text,
"location" text,
"venue" text,
"capacity" number,
"position in 1993-94" number
) | SELECT "team" FROM table_203_208 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
23946,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
4010,
9,
6726,
121,
381,
6,
96,
4718,
16,
8388,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11650,
121,
21680,
953,
834,
23330,
834,
23946,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the opponent with the record of 4-0-0? | CREATE TABLE table_name_46 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_46 WHERE record = "4-0-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
28,
8,
1368,
13,
7769,
18629,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
1368,
3274,
96,
591,
18,
18629,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Score during the Season in which the Winner was C.F. Atlante? | CREATE TABLE table_name_15 (score VARCHAR, winner VARCHAR) | SELECT score FROM table_name_15 WHERE winner = "c.f. atlante" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
7,
9022,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
17763,
383,
8,
7960,
16,
84,
8,
18125,
47,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
4668,
3274,
96,
75,
5,
89,
5,
44,
6761,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Date, when Championship is Mackay? | CREATE TABLE table_name_72 (
date VARCHAR,
championship VARCHAR
) | SELECT date FROM table_name_72 WHERE championship = "mackay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
833,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
7666,
19,
2143,
18075,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
10183,
3274,
96,
20072,
9,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the average bronze when gold is more than 0, the nation is greece and silver is less than 0? | CREATE TABLE table_9782 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Bronze") FROM table_9782 WHERE "Gold" > '0' AND "Nation" = 'greece' AND "Silver" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21441,
357,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
21441,
357,
549,
17444,
427,
96,
23576,
121,
2490,
3,
31,
632,
31,
3430,
96,
567,
257,
121,
3274,
3,
31,
3584,
15,
565,
31,
3430,
96,
134,
173,
624,
12... |
who lost on august 21? | CREATE TABLE table_name_10 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_10 WHERE date = "august 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2298,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
1513,
30,
14663,
1401,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
833,
3274,
96,
402,
17198,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many teams had the most seasons ? | CREATE TABLE table_204_506 (
id number,
"seasons" number,
"team" text,
"ch.wins" number,
"promotions" number,
"relegations" number
) | SELECT COUNT("team") FROM table_204_506 WHERE "seasons" = (SELECT MAX("seasons") FROM table_204_506) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1752,
948,
41,
3,
23,
26,
381,
6,
96,
9476,
7,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
524,
5,
3757,
7,
121,
381,
6,
96,
1409,
7259,
7,
121,
381,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
11650,
8512,
21680,
953,
834,
26363,
834,
1752,
948,
549,
17444,
427,
96,
9476,
7,
121,
3274,
41,
23143,
14196,
4800,
4,
599,
121,
9476,
7,
8512,
21680,
953,
834,
26363,
834,
1752,
10938,
1,
-... |
What is the reg gp of the player with a round number less than 2? | CREATE TABLE table_57105 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
) | SELECT SUM("Reg GP") FROM table_57105 WHERE "Rd #" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
12869,
41,
96,
448,
26,
1713,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
41,
2796,
9,
5398,
61,
121,
1499,
6,
96,
1774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17748,
3,
8049,
8512,
21680,
953,
834,
3436,
12869,
549,
17444,
427,
96,
448,
26,
1713,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the value in 2008-09 for the Autumn Gold event? | CREATE TABLE table_name_9 (
event VARCHAR
) | SELECT 2008 AS _09 FROM table_name_9 WHERE event = "autumn gold" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
16,
2628,
18,
4198,
21,
8,
23321,
2540,
605,
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,
2628,
6157,
3,
834,
4198,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
605,
3274,
96,
402,
17,
440,
29,
2045,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the ids and names of stations from which at least 200 trips started, and list y-axis in descending order please. | CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE weather (
date TEX... | SELECT start_station_name, start_station_id FROM trip ORDER BY start_station_id DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
3,
21342,
17966,
6,
8659,
3,
21342,
17966,
6,
456,
834,
5522,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
4350,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
23,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
456,
834,
6682,
834,
4350,
6,
456,
834,
6682,
834,
23,
26,
21680,
1469,
4674,
11300,
272,
476,
456,
834,
6682,
834,
23,
26,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When is Cadott Rock Fest taken place? | CREATE TABLE table_name_65 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_65 WHERE venue = "cadott rock fest" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
15562,
32,
17,
17,
3120,
7116,
1026,
286,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5669,
3274,
96,
658,
26,
32,
17,
17,
2480,
5423,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the command set with FDD capacity of 270kb and sides of ds with #FDD more than 1 | CREATE TABLE table_name_35 (
command_set VARCHAR,
_number_fdd VARCHAR,
fdd_capacity__each_ VARCHAR,
sides VARCHAR
) | SELECT command_set FROM table_name_35 WHERE fdd_capacity__each_ = "270kb" AND sides = "ds" AND _number_fdd > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
4106,
834,
2244,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
89,
26,
26,
584,
4280,
28027,
6,
3,
89,
26,
26,
834,
4010,
9,
6726,
834,
834,
15,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4106,
834,
2244,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3,
89,
26,
26,
834,
4010,
9,
6726,
834,
834,
15,
1836,
834,
3274,
96,
17485,
157,
115,
121,
3430,
4458,
3274,
96,
26,
7,
121,
3430,
3,
834,
552... |
What occupation does Mary Louise Lorefice have? | CREATE TABLE table_name_35 (occupation VARCHAR, candidate VARCHAR) | SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
24911,
584,
4280,
28027,
6,
4775,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
13792,
405,
3790,
5181,
15,
8410,
15,
4638,
15,
43,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13792,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
4775,
3274,
96,
51,
1208,
16585,
159,
15,
3,
322,
15,
4638,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the relation between team id and school_id for each All_Games using a scatter chart | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT Team_ID, School_ID FROM basketball_match GROUP BY All_Games | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2271,
834,
4309,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the home team for tie number 11? | CREATE TABLE table_47395 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Home team" FROM table_47395 WHERE "Tie no" = '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
519,
3301,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
19040,
372,
121,
21680,
953,
834,
4177,
519,
3301,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2nd leg of team 2 Far rabat? | CREATE TABLE table_6142 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_6142 WHERE "Team 2" = 'far rabat' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
4165,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
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,
357,
727,
4553,
121,
21680,
953,
834,
4241,
4165,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
5544,
3,
7093,
144,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the team for record 3-2 | CREATE TABLE table_22654073_6 (
team VARCHAR,
record VARCHAR
) | SELECT team FROM table_22654073_6 WHERE record = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4122,
2445,
4552,
834,
948,
41,
372,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
21,
1368,
3,
21160,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2884,
4122,
2445,
4552,
834,
948,
549,
17444,
427,
1368,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
where would you find a public university which was founded in 1915? | CREATE TABLE table_2317 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment" real,
"Founded" real
) | SELECT "Location(s)" FROM table_2317 WHERE "Control" = 'Public university' AND "Founded" = '1915' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2517,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
599,
7,
61,
121,
1499,
6,
96,
25716,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
599,
7,
61,
121,
21680,
953,
834,
2773,
2517,
549,
17444,
427,
96,
25716,
121,
3274,
3,
31,
30931,
3819,
31,
3430,
96,
20100,
121,
3274,
3,
31,
2294,
1808,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is IATA, when City is 'Alexandria'? | CREATE TABLE table_8821 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "IATA" FROM table_8821 WHERE "City" = 'alexandria' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4060,
2658,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
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,
196,
19282,
121,
21680,
953,
834,
4060,
2658,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
138,
994,
232,
52,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what was the length of the game on may 19 | CREATE TABLE table_35182 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
) | SELECT "Length" FROM table_35182 WHERE "Date" = 'may 19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2606,
357,
41,
96,
448,
3302,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
434,
4606,
189,
121,
21680,
953,
834,
2469,
2606,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
957,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the record is 5-8, what is the team name? | CREATE TABLE table_23285805_4 (
team VARCHAR,
record VARCHAR
) | SELECT team FROM table_23285805_4 WHERE record = "5-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
3449,
3076,
834,
591,
41,
372,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1368,
19,
3,
27698,
6,
125,
19,
8,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2773,
2577,
3449,
3076,
834,
591,
549,
17444,
427,
1368,
3274,
96,
27698,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the against were there were less than 3 byes? | CREATE TABLE table_13636 (
"Millewa" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT AVG("Against") FROM table_13636 WHERE "Byes" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
3420,
41,
96,
329,
1092,
15,
210,
9,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
10936,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
20749,
8512,
21680,
953,
834,
23459,
3420,
549,
17444,
427,
96,
279,
10070,
121,
3,
2,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which away team had a score of 11.11 (77)? | CREATE TABLE table_57088 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_57088 WHERE "Away team score" = '11.11 (77)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
4060,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
28363,
4060,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
10032,
2596,
41,
4013,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the mean drawn when the difference is 0 and the against stat is more than 31? | CREATE TABLE table_34594 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Drawn") FROM table_34594 WHERE "Difference" = '0' AND "Against" > '31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2128,
4240,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
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,
71,
17217,
599,
121,
308,
10936,
29,
8512,
21680,
953,
834,
519,
2128,
4240,
549,
17444,
427,
96,
308,
99,
11788,
121,
3274,
3,
31,
632,
31,
3430,
96,
20749,
121,
2490,
3,
31,
3341,
31,
1,
-100,
-100,
-100,
-100,
... |
Find the distinct student first names of all students that have grade point at least 3.8 in one course. | CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR) | SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
262,
9142,
5194,
17717,
834,
3162,
41,
4744,
221,
584,
4280,
28027,
6,
3,
13076,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5097,
10161,
6431,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5787,
371,
4350,
21680,
262,
9142,
5194,
17717,
834,
3162,
6157,
332,
536,
3,
15355,
3162,
23194,
5596,
17752,
26794,
9215,
6157,
332,
357,
3,
15355,
3162,
5097,
10161,
6431,
6157,
332,
519,
... |
What is the Away Team when the Home Team is Fulham? | CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_26 WHERE home_team = "fulham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
71,
1343,
2271,
116,
8,
1210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1329,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Chord with a Major that is third of e? | CREATE TABLE table_name_69 (chord VARCHAR, major_third VARCHAR) | SELECT chord FROM table_name_69 WHERE major_third = "e" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
19220,
26,
584,
4280,
28027,
6,
779,
834,
14965,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17531,
26,
28,
3,
9,
9236,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20513,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
779,
834,
14965,
3274,
96,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show theme and year for all exhibitions with ticket prices lower than 15. | CREATE TABLE exhibition (
exhibition_id number,
year number,
theme text,
artist_id number,
ticket_price number
)
CREATE TABLE artist (
artist_id number,
name text,
country text,
year_join number,
age number
)
CREATE TABLE exhibition_record (
exhibition_id number,
date t... | SELECT theme, year FROM exhibition WHERE ticket_price < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
4473,
834,
23,
26,
381,
6,
215,
381,
6,
3800,
1499,
6,
2377,
834,
23,
26,
381,
6,
4142,
834,
102,
4920,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3800,
6,
215,
21680,
4473,
549,
17444,
427,
4142,
834,
102,
4920,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the muzzle velocity for the .38 long colt cartridge? | CREATE TABLE table_50170 (
"Cartridge" text,
"Bullet weight" text,
"Muzzle velocity" text,
"Muzzle energy" text,
"Max pressure" text
) | SELECT "Muzzle velocity" FROM table_50170 WHERE "Cartridge" = '.38 long colt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20176,
2518,
41,
96,
6936,
17,
7700,
121,
1499,
6,
96,
279,
83,
1655,
1293,
121,
1499,
6,
96,
329,
76,
15133,
22924,
121,
1499,
6,
96,
329,
76,
15133,
827,
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,
329,
76,
15133,
22924,
121,
21680,
953,
834,
20176,
2518,
549,
17444,
427,
96,
6936,
17,
7700,
121,
3274,
3,
31,
5,
3747,
307,
7632,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which of the mill names contains the french word 'Moulin'? | CREATE TABLE mill (
name VARCHAR
) | SELECT name FROM mill WHERE name LIKE '%Moulin%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3293,
41,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
3293,
3056,
2579,
8,
20609,
1448,
3,
31,
329,
7115,
77,
31,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
3293,
549,
17444,
427,
564,
8729,
9914,
3,
31,
1454,
329,
7115,
77,
1454,
31,
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 strongs # of the english spelling word jehojakin? | CREATE TABLE table_1242447_1 (
strongs__number VARCHAR,
english_spelling VARCHAR
) | SELECT strongs__number FROM table_1242447_1 WHERE english_spelling = "Jehojakin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
2266,
4177,
834,
536,
41,
1101,
7,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
22269,
834,
7,
19510,
53,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1101,
7,
834,
834,
5525,
1152,
21680,
953,
834,
22504,
2266,
4177,
834,
536,
549,
17444,
427,
22269,
834,
7,
19510,
53,
3274,
96,
7851,
107,
32,
1191,
2917,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the total points for GP/GS of 24/23? | CREATE TABLE table_name_28 (
total_points VARCHAR,
gp_gs VARCHAR
) | SELECT total_points FROM table_name_28 WHERE gp_gs = "24/23" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
792,
834,
2700,
7,
584,
4280,
28027,
6,
3,
122,
102,
834,
122,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
979,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
834,
2700,
7,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
3,
122,
102,
834,
122,
7,
3274,
96,
2266,
87,
2773,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the player that lost more than 4? | CREATE TABLE table_name_69 (name VARCHAR, lost INTEGER) | SELECT name FROM table_name_69 WHERE lost > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
4350,
584,
4280,
28027,
6,
1513,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
1959,
24,
1513,
72,
145,
314,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1513,
2490,
314,
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's the least 180's of John Part having a LWAT less than 28 with 100+ less than 180? | CREATE TABLE table_64636 (
"Name" text,
"LWAT" real,
"100+" real,
"140+" real,
"180s" real
) | SELECT MIN("180s") FROM table_64636 WHERE "LWAT" < '28' AND "Name" = 'john part' AND "100+" < '180' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
948,
3420,
41,
96,
23954,
121,
1499,
6,
96,
434,
518,
5767,
121,
490,
6,
96,
2915,
1220,
121,
490,
6,
96,
22012,
1220,
121,
490,
6,
96,
20829,
7,
121,
490,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
20829,
7,
8512,
21680,
953,
834,
4389,
948,
3420,
549,
17444,
427,
96,
434,
518,
5767,
121,
3,
2,
3,
31,
2577,
31,
3430,
96,
23954,
121,
3274,
3,
31,
27341,
294,
31,
3430,
96,
2915,
1220,
121... |
How much Overall has a Pick # of 26? | CREATE TABLE table_39720 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT SUM("Overall") FROM table_39720 WHERE "Pick #" = '26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
18517,
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,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
3288,
18517,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Home team of rochdale? | CREATE TABLE table_9664 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Date" FROM table_9664 WHERE "Home team" = 'rochdale' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
4389,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
4314,
4389,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
11492,
5437,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the license for Rygel? | CREATE TABLE table_66149 (
"Name" text,
"License" text,
"OS X" text,
"Unix-like" text,
"Windows" text,
"Web Interface" text
) | SELECT "License" FROM table_66149 WHERE "Name" = 'rygel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
24816,
41,
96,
23954,
121,
1499,
6,
96,
434,
447,
5167,
121,
1499,
6,
96,
3638,
3,
4,
121,
1499,
6,
96,
5110,
2407,
18,
2376,
121,
1499,
6,
96,
28265,
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,
434,
447,
5167,
121,
21680,
953,
834,
3539,
24816,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
651,
1803,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the novel that has a valid status, located in Mongolia, and named Prenocephale? | CREATE TABLE table_name_40 (novelty VARCHAR, name VARCHAR, status VARCHAR, location VARCHAR) | SELECT novelty FROM table_name_40 WHERE status = "valid" AND location = "mongolia" AND name = "prenocephale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
5326,
15,
40,
17,
63,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30372,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2637,
3274,
96,
27769,
121,
3430,
1128,
3274,
96,
2157,
7579,
23,
9,
121,
3430,
564,
3274,
96,
2026,
14880,
15,
21367,
15,
121,
1,
-100,
-100,
-100,
-100,
-1... |
How many points are there, when the grade is A? | CREATE TABLE table_54524 (
"Grade" text,
"Points" real,
"Sit-up (reps)" text,
"Standing Broad Jump (cm)" text,
"Chin-up (reps)" text,
"Shuttle Run (sec)" text,
"2.4km Run (min:sec)" text
) | SELECT MAX("Points") FROM table_54524 WHERE "Grade" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2128,
2266,
41,
96,
4744,
221,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
134,
155,
18,
413,
41,
60,
102,
7,
61,
121,
1499,
6,
96,
134,
17,
232,
53,
13017,
190... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
755,
2128,
2266,
549,
17444,
427,
96,
4744,
221,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which season led to a position of 13, and a head coach of Protasov Lyutyi Talalayev Balakhnin Baidachny? | CREATE TABLE table_name_24 (
season VARCHAR,
pos VARCHAR,
head_coach VARCHAR
) | SELECT season FROM table_name_24 WHERE pos = 13 AND head_coach = "protasov lyutyi talalayev balakhnin baidachny" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
774,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
6,
819,
834,
509,
1836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
2237,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
3,
2748,
3274,
1179,
3430,
819,
834,
509,
1836,
3274,
96,
1409,
17,
9,
7,
32,
208,
3,
120,
76,
17,
63,
23,
3,
1947,
9,
5595,
15,
208,
6561,
18965,
29,
77... |
Which Overall place has a Yacht name of lg flatron? | CREATE TABLE table_name_57 (
overall_place VARCHAR,
yacht_name VARCHAR
) | SELECT overall_place FROM table_name_57 WHERE yacht_name = "lg flatron" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1879,
834,
4687,
584,
4280,
28027,
6,
18082,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9126,
286,
65,
3,
9,
26397,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1879,
834,
4687,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
18082,
834,
4350,
3274,
96,
40,
122,
5731,
6255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many long term care hospital discharged patients have hemoptysis primary disease? | 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 WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" AND demographic.diagnosis = "HEMOPYTSIS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
434,
15628,
3,
5946,
329,
3,
22443,
454,
3638,
4111,
16359,
... |
What's the pick for Georgia tech? | CREATE TABLE table_name_94 (
pick VARCHAR,
college VARCHAR
) | SELECT pick FROM table_name_94 WHERE college = "georgia tech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1432,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1432,
21,
5664,
5256,
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,
1432,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
1900,
3274,
96,
397,
1677,
23,
9,
5256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the original air date for barnaby southcomb for charlie martin | CREATE TABLE table_18335117_5 (
original_air_date VARCHAR,
director VARCHAR,
writer VARCHAR
) | SELECT original_air_date FROM table_18335117_5 WHERE director = "Barnaby Southcomb" AND writer = "Charlie Martin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
2469,
20275,
834,
755,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
4346,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
557... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
24361,
2469,
20275,
834,
755,
549,
17444,
427,
2090,
3274,
96,
279,
15918,
969,
1013,
9763,
121,
3430,
4346,
3274,
96,
18947,
1896,
3394,
121,
1,
-100,
-100,
-100,
-100,
-10... |
Where did Zimbabwe play? | CREATE TABLE table_name_63 (
venue VARCHAR,
opponent VARCHAR
) | SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
5669,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
23241,
577,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
15264,
3274,
96,
172,
17982,
115,
1123,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in how many dates the game was 2 | CREATE TABLE table_31453 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Date") FROM table_31453 WHERE "Game" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
2128,
519,
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,
2847,
17161,
599,
121,
308,
342,
8512,
21680,
953,
834,
3341,
2128,
519,
549,
17444,
427,
96,
23055,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
non _ smoker | CREATE TABLE table_train_200 (
"id" int,
"gender" string,
"fasting_triglycerides" int,
"fasting_plasma_glucose" int,
"smoking" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_200 WHERE smoking = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3632,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
11584,
53,
834,
17,
3380,
120,
2110,
9361,
121,
16,
17,
6,
96,
11584,
53,
834,
21178,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
3632,
549,
17444,
427,
10257,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the highest number of dismissals in a match with 8 innings | CREATE TABLE table_19870086_24 (dismissals VARCHAR, innings VARCHAR) | SELECT COUNT(dismissals) FROM table_19870086_24 WHERE innings = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
9295,
3840,
834,
2266,
41,
26,
159,
11502,
5405,
584,
4280,
28027,
6,
19714,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
381,
13,
16708,
540... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26,
159,
11502,
5405,
61,
21680,
953,
834,
24151,
9295,
3840,
834,
2266,
549,
17444,
427,
19714,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of draws when there are fewer than 3 wins? | CREATE TABLE table_name_20 (draws VARCHAR, wins INTEGER) | SELECT COUNT(draws) FROM table_name_20 WHERE wins < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
19489,
7,
584,
4280,
28027,
6,
9204,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
14924,
116,
132,
33,
3,
10643,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
9204,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the names of aircrafts and the number of times it won matches by a bar chart, and sort x-axis from high to low order. | CREATE TABLE airport (
Airport_ID int,
Airport_Name text,
Total_Passengers real,
%_Change_2007 text,
International_Passengers real,
Domestic_Passengers real,
Transit_Passengers real,
Aircraft_Movements real,
Freight_Metric_Tonnes real
)
CREATE TABLE aircraft (
Aircraft_ID int(11... | SELECT Aircraft, COUNT(*) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY Aircraft DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
41,
5735,
834,
4309,
16,
17,
6,
5735,
834,
23954,
1499,
6,
9273,
834,
20192,
4606,
277,
490,
6,
3,
1454,
834,
3541,
3280,
834,
20615,
1499,
6,
1331,
834,
20192,
4606,
277,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1761,
6696,
6,
2847,
17161,
599,
1935,
61,
21680,
6442,
6157,
332,
536,
3,
15355,
3162,
1588,
6157,
332,
357,
9191,
332,
5411,
20162,
6696,
834,
4309,
3274,
332,
4416,
518,
10503,
834,
20162,
6696,
350,
4630,
6880,
27... |
What were the Bills points on Nov. 11? | CREATE TABLE table_41927 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Bills points" real,
"Opponents" real,
"Bills first downs" real,
"Record" text
) | SELECT SUM("Bills points") FROM table_41927 WHERE "Date" = 'nov. 11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2294,
2555,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
279,
1092,
7,
979,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
279,
1092,
7,
979,
8512,
21680,
953,
834,
591,
2294,
2555,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
5,
850,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.