NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue? | CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR) | SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
5522,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
3,
9,
2259,
13,
1673,
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,
833,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
2259,
3274,
96,
12172,
3,
9,
89,
75,
1921,
4119,
121,
3430,
5669,
3274,
96,
7664,
2551,
189,
3,
6287,
9,
7,
138,
9,
14939,
6,
3,
1258,
189,
348,
1259,
121,... |
how many patients admitted under procedure icd9 code 5198 stayed in the hospital for more than 1 day? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "1" AND procedures.icd9_code = "5198" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What club had 404 points against? | CREATE TABLE table_13741576_6 (club VARCHAR, points_against VARCHAR) | SELECT club FROM table_13741576_6 WHERE points_against = "404" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4581,
1808,
3959,
834,
948,
41,
13442,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1886,
141,
3,
25285,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1886,
21680,
953,
834,
2368,
4581,
1808,
3959,
834,
948,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
25285,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of episodes where hugh laurie was the 3rd performer? | CREATE TABLE table_name_70 (episode VARCHAR, performer_3 VARCHAR) | SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = "hugh laurie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
1912,
49,
834,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
13562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1912,
49,
834,
519,
3274,
96,
107,
14439,
50,
459,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Speed for Chris Swallow? | CREATE TABLE table_65035 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Speed" FROM table_65035 WHERE "Rider" = 'chris swallow' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15348,
2469,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
32102,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
28328,
121,
21680,
953,
834,
15348,
2469,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
524,
52,
159,
20370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits? | CREATE TABLE table_name_41 (significand VARCHAR, number_of_decimal_digits VARCHAR, total_bits VARCHAR) | SELECT COUNT(significand) FROM table_name_41 WHERE number_of_decimal_digits = "~34.0" AND total_bits > 128 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
6732,
3286,
232,
584,
4280,
28027,
6,
381,
834,
858,
834,
24223,
1982,
834,
9206,
7,
584,
4280,
28027,
6,
792,
834,
2360,
7,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
6732,
3286,
232,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
381,
834,
858,
834,
24223,
1982,
834,
9206,
7,
3274,
96,
2,
519,
15021,
121,
3430,
792,
834,
2360,
7,
2490,
209,
2577,
1,
-... |
What was the winning team when mikhail goikhberg was the winning driver? | CREATE TABLE table_27988 (
"Rnd" text,
"Circuit" text,
"Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text,
"Supporting" text
) | SELECT "Winning team" FROM table_27988 WHERE "Winning driver" = 'Mikhail Goikhberg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
4060,
41,
96,
448,
727,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
372,
121,
21680,
953,
834,
357,
4440,
4060,
549,
17444,
427,
96,
518,
10503,
2535,
121,
3274,
3,
31,
329,
19030,
9,
173,
1263,
19030,
2235,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who played Lily Cahill in the Australian 2012 production? | CREATE TABLE table_29289213_1 (
australian_cast VARCHAR,
_2012 VARCHAR,
character VARCHAR
) | SELECT australian_cast, _2012 FROM table_29289213_1 WHERE character = "Lily Cahill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2577,
4508,
2368,
834,
536,
41,
23407,
29,
834,
5254,
584,
4280,
28027,
6,
3,
834,
12172,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
23407,
29,
834,
5254,
6,
3,
834,
12172,
21680,
953,
834,
3166,
2577,
4508,
2368,
834,
536,
549,
17444,
427,
1848,
3274,
96,
434,
9203,
1336,
6321,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
patient 006-47576 had received any laboratory test since 08/2102? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate n... | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-47576')) AND STRFTIME('%y-%m', lab.labresulttime) >= '2102-08' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
what is the title of the episode with the production code of ad1a22? | CREATE TABLE table_54649 (
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "Title" FROM table_54649 WHERE "Production code" = 'ad1a22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4448,
3647,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,
10270,
799,
833,
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,
382,
155,
109,
121,
21680,
953,
834,
755,
4448,
3647,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
9,
26,
536,
9,
2884,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the average points for dallara 3087 lola t88/50 and year before 1988 | CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_63 WHERE chassis = "dallara 3087 lola t88/50" AND year < 1988 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
2700,
7,
3,
21342,
17966,
6,
22836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
979,
21,
836,
195,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
22836,
3274,
96,
26,
1748,
2551,
604,
4225,
16497,
9,
3,
17,
4060,
87,
1752,
121,
3430,
215,
3,
2,
10414,
1,
-100,
-100,
-100,
-100,
... |
Name the opponent with record of 52-58 | CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_10 WHERE record = "52-58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
28,
1368,
13,
9065,
18,
3449,
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,
15264,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1368,
3274,
96,
5373,
18,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the highest season number with a series number of 47? | CREATE TABLE table_29486 (
"No. in Series" real,
"No. in Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT MAX("No. in Season") FROM table_29486 WHERE "No. in Series" = '47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
3840,
41,
96,
4168,
5,
16,
4531,
121,
490,
6,
96,
4168,
5,
16,
7960,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
4168,
5,
16,
7960,
8512,
21680,
953,
834,
357,
4240,
3840,
549,
17444,
427,
96,
4168,
5,
16,
4531,
121,
3274,
3,
31,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the city where the most customers live. | CREATE TABLE addresses (
address_id number,
address_content text,
city text,
zip_postcode text,
state_province_county text,
country text,
other_address_details text
)
CREATE TABLE customer_contact_channels (
customer_id number,
channel_code text,
active_from_date time,
activ... | SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7181,
41,
1115,
834,
23,
26,
381,
6,
1115,
834,
14819,
1499,
6,
690,
1499,
6,
10658,
834,
5950,
4978,
1499,
6,
538,
834,
1409,
2494,
565,
834,
13362,
63,
1499,
6,
684,
1499,
6,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
6726,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
9,
26,
12039,
15,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
23,
26,
3,
1535... |
In what year was BBC 2 13th in rank? | CREATE TABLE table_name_51 (
year VARCHAR,
bbc_two_rank VARCHAR
) | SELECT year FROM table_name_51 WHERE bbc_two_rank = "13th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
215,
584,
4280,
28027,
6,
3,
115,
115,
75,
834,
8264,
834,
6254,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
9938,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3,
115,
115,
75,
834,
8264,
834,
6254,
3274,
96,
2368,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012? | CREATE TABLE table_71545 (
"Date" text,
"Winner" text,
"Score" text,
"Location" text,
"Series" text
) | SELECT "Winner" FROM table_71545 WHERE "Location" = 'clemson, sc' AND "Date" = 'november 17, 2012' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1808,
2128,
41,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
12106,
7,
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,
18455,
687,
121,
21680,
953,
834,
940,
1808,
2128,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
2482,
51,
739,
6,
3,
7,
75,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
12864,
1673,
3... |
What was the average grid at the time Vanwall was constructor and there were 17 laps? | CREATE TABLE table_11848 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_11848 WHERE "Constructor" = 'vanwall' AND "Laps" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
3707,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13313,
26,
8512,
21680,
953,
834,
20056,
3707,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
2132,
10279,
31,
3430,
96,
3612,
102,
7,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,... |
What is the frequency of the call sign licensed in Albany, New York? | CREATE TABLE table_name_7 (frequency_mhz VARCHAR, city_of_license VARCHAR) | SELECT frequency_mhz FROM table_name_7 WHERE city_of_license = "albany, new york" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
30989,
834,
51,
107,
172,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
834,
51,
107,
172,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
138,
3478,
63,
6,
126,
25453,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Director Bona Fajardo's Producer? | CREATE TABLE table_name_32 (producer VARCHAR, director VARCHAR) | SELECT producer FROM table_name_32 WHERE director = "bona fajardo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1409,
4817,
49,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2578,
4523,
9,
1699,
5670,
26,
32,
31,
7,
2534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8211,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2090,
3274,
96,
5407,
9,
3,
89,
9,
5670,
26,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Year saw the Production of Wicked at the Helpmann Awards Award ceremony? | CREATE TABLE table_61781 (
"Year" real,
"Award ceremony" text,
"Role" text,
"Production" text,
"Result" text
) | SELECT "Year" FROM table_61781 WHERE "Production" = 'wicked' AND "Award ceremony" = 'helpmann awards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3940,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
7252,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
3174,
8291,
121,
1499,
6,
96,
20119,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
4241,
3940,
536,
549,
17444,
427,
96,
3174,
8291,
121,
3274,
3,
31,
5981,
15,
26,
31,
3430,
96,
188,
2239,
7252,
121,
3274,
3,
31,
15061,
2434,
6120,
31,
1,
-100,
-100,
-100,
... |
What is the largest pick# for Greg Harris? | CREATE TABLE table_75178 (
"Pick #" real,
"Round" text,
"Player" text,
"Position" text,
"College" text
) | SELECT MAX("Pick #") FROM table_75178 WHERE "Player" = 'greg harris' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
27640,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
3072,
27640,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
18301,
3,
107,
10269,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Bar chart x axis time y axis meter_100, and display from high to low by the names. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_20... | SELECT Time, meter_100 FROM swimmer ORDER BY Time DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2900,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
2900,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD? | CREATE TABLE table_name_31 (
imed_avicenna_listed VARCHAR,
established VARCHAR,
degree VARCHAR,
regional_offshore VARCHAR,
country_territory VARCHAR
) | SELECT imed_avicenna_listed FROM table_name_31 WHERE regional_offshore = "offshore" AND country_territory = "saint kitts and nevis" AND degree = "md" AND established < 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3,
23,
2726,
834,
9,
7287,
35,
29,
9,
834,
19279,
584,
4280,
28027,
6,
2127,
584,
4280,
28027,
6,
1952,
584,
4280,
28027,
6,
3518,
834,
1647,
13303,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
2726,
834,
9,
7287,
35,
29,
9,
834,
19279,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
3518,
834,
1647,
13303,
3274,
96,
1647,
13303,
121,
3430,
684,
834,
17,
21301,
10972,
3274,
96,
7,
9,
77,
17,
... |
How many floors have a Height m / feet of 900 / 2,952? | CREATE TABLE table_4943 (
"Rank" text,
"Name" text,
"Height m / feet" text,
"Floors" text,
"Notes" text
) | SELECT "Floors" FROM table_4943 WHERE "Height m / feet" = '900 / 2,952' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4906,
41,
96,
22557,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
3,
51,
3,
87,
1922,
121,
1499,
6,
96,
11251,
127,
7,
121,
1499,
6,
96,
10358,
15,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11251,
127,
7,
121,
21680,
953,
834,
3647,
4906,
549,
17444,
427,
96,
3845,
2632,
3,
51,
3,
87,
1922,
121,
3274,
3,
31,
7015,
3,
87,
3547,
3301,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the average week of a game with a result of l 10-7 attended by 37,500? | CREATE TABLE table_38720 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Week") FROM table_38720 WHERE "Result" = 'l 10-7' AND "Attendance" < '37,500' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
18517,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
3747,
18517,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
335,
6832,
31,
3430,
96,
188,
17,
324,
26,
663,
121,
3,
2,
3,
31,
4118,
6,
2560,
31,
1,
-1... |
What type is the race with the vicenza to marostica course? | CREATE TABLE table_69446 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Type" FROM table_69446 WHERE "Course" = 'vicenza to marostica' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
591,
4448,
41,
96,
308,
342,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18455,
687,
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,
25160,
121,
21680,
953,
834,
3951,
591,
4448,
549,
17444,
427,
96,
3881,
3589,
15,
121,
3274,
3,
31,
7287,
35,
1629,
12,
954,
1859,
7439,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Share has a weekly Rank of 8 and is dated 15 June? | CREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR) | SELECT share FROM table_name_12 WHERE weekly_rank = "8" AND date = "15 june" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
12484,
584,
4280,
28027,
6,
5547,
834,
6254,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7105,
65,
3,
9,
5547,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
698,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
5547,
834,
6254,
3274,
96,
927,
121,
3430,
833,
3274,
96,
1808,
3,
6959,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled? | CREATE TABLE table_name_11 (
melbourne VARCHAR,
adelaide VARCHAR,
gold_coast VARCHAR,
perth VARCHAR
) | SELECT melbourne FROM table_name_11 WHERE gold_coast = "yes" AND perth = "cancelled" AND adelaide = "cancelled" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
3,
2341,
26255,
584,
4280,
28027,
6,
3,
15311,
5385,
584,
4280,
28027,
6,
2045,
834,
25500,
584,
4280,
28027,
6,
399,
189,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
2341,
26255,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
2045,
834,
25500,
3274,
96,
10070,
121,
3430,
399,
189,
3274,
96,
1608,
7125,
1361,
121,
3430,
3,
15311,
5385,
3274,
96,
1608,
7125,
1361,
121,
1,
-... |
what are every one of the rivals in conclusive where title is z rich | CREATE TABLE table_25713 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in final" text,
"Score in final" text
) | SELECT "Opponents in final" FROM table_25713 WHERE "Championship" = 'Zürich' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
2368,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
7,
16,
804,
121,
21680,
953,
834,
357,
3436,
2368,
549,
17444,
427,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
956,
4087,
362,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Spanish voice actor does the same character as French voice actor Dennis Boileau? | CREATE TABLE table_5916 (
"Character" text,
"French voice actor" text,
"Italian voice actor" text,
"German voice actor" text,
"Spanish voice actor" text
) | SELECT "Spanish voice actor" FROM table_5916 WHERE "French voice actor" = 'dennis boileau' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
2938,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
371,
60,
5457,
2249,
7556,
121,
1499,
6,
96,
196,
17,
9,
9928,
2249,
7556,
121,
1499,
6,
96,
24518,
2249,
7556,
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,
19675,
1273,
2249,
7556,
121,
21680,
953,
834,
3390,
2938,
549,
17444,
427,
96,
371,
60,
5457,
2249,
7556,
121,
3274,
3,
31,
537,
29,
159,
13374,
1607,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What Republican incumbent was elected in 1974? | CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR) | SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
3651,
834,
2534,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
8160,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
8994,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28406,
21680,
953,
834,
23747,
1808,
3651,
834,
2534,
549,
17444,
427,
8160,
3274,
17184,
3430,
1088,
3274,
96,
1649,
15727,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For the game with team of @ Chicago, what was the final score? | CREATE TABLE table_51022 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_51022 WHERE "Team" = '@ chicago' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
2884,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
22497,
663,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
25926,
2884,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
1741,
8780,
9,
839,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the county with code being 2 | CREATE TABLE table_1404456_1 (county VARCHAR, code VARCHAR) | SELECT county FROM table_1404456_1 WHERE code = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3628,
4834,
834,
536,
41,
13362,
63,
584,
4280,
28027,
6,
1081,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
5435,
28,
1081,
271,
204,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
22012,
3628,
4834,
834,
536,
549,
17444,
427,
1081,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Best score during the game played from 1971-1984? | CREATE TABLE table_18914438_1 (
best VARCHAR,
career VARCHAR
) | SELECT best FROM table_18914438_1 WHERE career = "1971-1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25312,
20885,
3747,
834,
536,
41,
200,
584,
4280,
28027,
6,
1415,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1648,
2604,
383,
8,
467,
1944,
45,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
200,
21680,
953,
834,
25312,
20885,
3747,
834,
536,
549,
17444,
427,
1415,
3274,
96,
2294,
4450,
4481,
4608,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many newborn admitted patients were discharged after long term hospital care? | 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.admission_type = "NEWBORN" AND demographic.discharge_location = "LONG TERM CARE HOSPITAL" | [
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,
9,
26,
5451,
834,
6137,
3274,
96,
4171,
518,
8471,
14151,
121,
3430,
14798,
5,
26,
159,
7993,
83... |
Name thenames for 2002-04-01 | CREATE TABLE table_1585609_2 (name VARCHAR, date_of_designation VARCHAR) | SELECT name FROM table_1585609_2 WHERE date_of_designation = "2002-04-01" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
4834,
4198,
834,
357,
41,
4350,
584,
4280,
28027,
6,
833,
834,
858,
834,
9124,
257,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4350,
7,
21,
4407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
26556,
4834,
4198,
834,
357,
549,
17444,
427,
833,
834,
858,
834,
9124,
257,
3274,
96,
24898,
18083,
14772,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number of dead patients who had brain mass intracranial hemorrhage? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" | [
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,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
22... |
Name the year for victoria hristova neli nedialkova | CREATE TABLE table_19666 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | SELECT "Year" FROM table_19666 WHERE "Womens doubles" = 'Victoria Hristova Neli Nedialkova' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
3539,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
7,
1486,
7,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
26937,
3539,
549,
17444,
427,
96,
518,
32,
904,
7,
1486,
7,
121,
3274,
3,
31,
553,
447,
3600,
9,
454,
17149,
900,
1484,
40,
23,
1484,
22233,
9789,
9,
31,
1,
-100,
-100,
-100,... |
What was the Int'l Debut for a player in the back position, that also had a Cross Code Debut of RU Australia v Wales? | CREATE TABLE table_65124 (
"Player" text,
"Int'l Debut" text,
"Year" text,
"Cross Code Debut" text,
"Date" text,
"Position" text
) | SELECT "Int'l Debut" FROM table_65124 WHERE "Position" = 'back' AND "Cross Code Debut" = 'ru australia v wales' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
22504,
41,
96,
15800,
49,
121,
1499,
6,
96,
1570,
17,
31,
40,
374,
2780,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
254,
1859,
7,
3636,
374,
2780,
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,
1570,
17,
31,
40,
374,
2780,
121,
21680,
953,
834,
4122,
22504,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
1549,
31,
3430,
96,
254,
1859,
7,
3636,
374,
2780,
121,
3274,
3,
31,
52,
76,
23407,
... |
What is the ISBN of 'Dead as a Doornail? | CREATE TABLE table_16907214_1 (
paperback VARCHAR,
title VARCHAR
) | SELECT paperback FROM table_16907214_1 WHERE title = "Dead as a Doornail" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
4560,
27357,
834,
536,
41,
1040,
1549,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
20133,
13,
3,
31,
2962,
9,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1040,
1549,
21680,
953,
834,
27096,
4560,
27357,
834,
536,
549,
17444,
427,
2233,
3274,
96,
2962,
9,
26,
38,
3,
9,
11080,
29,
9,
173,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Tries for has a Team of neath, and Points against larger than 109? | CREATE TABLE table_41018 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
) | SELECT SUM("Tries for") FROM table_41018 WHERE "Team" = 'neath' AND "Points against" > '109' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
2606,
41,
96,
18699,
121,
1499,
6,
96,
382,
2593,
21,
121,
490,
6,
96,
382,
2593,
581,
121,
490,
6,
96,
382,
651,
20624,
121,
1499,
6,
96,
22512,
7,
21,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
382,
2593,
21,
8512,
21680,
953,
834,
24175,
2606,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
29,
15,
9,
189,
31,
3430,
96,
22512,
7,
581,
121,
2490,
3,
31,
17304,
31,
1,
-100,
-100,
-100... |
Which chassis-engine had 77 laps? | CREATE TABLE table_48101 (
"Class" text,
"Team" text,
"Driver" text,
"Chassis \u2013 Engine" text,
"Laps" real
) | SELECT "Chassis \u2013 Engine" FROM table_48101 WHERE "Laps" = '77' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
19621,
41,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
3541,
6500,
7,
3,
2,
76,
11138,
10612,
121,
1499,
6,
96,
3612,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3541,
6500,
7,
3,
2,
76,
11138,
10612,
121,
21680,
953,
834,
3707,
19621,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
4013,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Attendances have a Score of 4 5? Question 4 | CREATE TABLE table_36394 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
) | SELECT MAX("Attendance") FROM table_36394 WHERE "Score" = '4 – 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
3288,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3420,
3288,
591,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
591,
3,
104,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Free Agent Type for player bryant johnson? | CREATE TABLE table_name_2 (
free_agent_type VARCHAR,
player VARCHAR
) | SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
339,
834,
9,
5560,
834,
6137,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1443,
8628,
6632,
21,
1959,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
339,
834,
9,
5560,
834,
6137,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1959,
3274,
96,
115,
651,
288,
3,
27341,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the latest amount of won legs in the payoffs when the prize money was £2,350? | CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR) | SELECT MAX(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£2,350" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4201,
4853,
3891,
834,
536,
41,
18455,
687,
7,
3,
21342,
17966,
6,
792,
834,
28442,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
18455,
687,
7,
61,
6157,
577,
834,
1647,
834,
5772,
7,
834,
210,
106,
21680,
953,
834,
2266,
4201,
4853,
3891,
834,
536,
549,
17444,
427,
792,
834,
28442,
834,
210,
106,
3274,
96,
19853,
4482,
16975,
... |
How much did Larry Nelson win? | CREATE TABLE table_name_73 (
money___$__ VARCHAR,
player VARCHAR
) | SELECT money___$__ FROM table_name_73 WHERE player = "larry nelson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
410,
17129,
14448,
1369,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
834,
834,
834,
3229,
834,
834,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1959,
3274,
96,
40,
291,
651,
3,
29,
3573,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which college had an overall smaller than 315 in round 17? | CREATE TABLE table_name_41 (
college VARCHAR,
overall VARCHAR,
round VARCHAR
) | SELECT college FROM table_name_41 WHERE overall < 315 AND round = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
1900,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1900,
141,
46,
1879,
2755,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1879,
3,
2,
220,
1808,
3430,
1751,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which chassis has more than 0 points and was before 1966? | CREATE TABLE table_name_59 (
chassis VARCHAR,
year VARCHAR,
points VARCHAR
) | SELECT chassis FROM table_name_59 WHERE year < 1966 AND points > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
22836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
22836,
65,
72,
145,
3,
632,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22836,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
215,
3,
2,
20658,
3430,
979,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tell me the sex of patient 028-40370. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time... | SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '028-40370' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1868,
5,
122,
3868,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2577,
15862,
22520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the location of the tournament held in Spain? | CREATE TABLE table_41485 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
) | SELECT "Location" FROM table_41485 WHERE "Country" = 'spain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2534,
4433,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
591,
2534,
4433,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
14147,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which nation is where the horse parkmore ed is? | CREATE TABLE table_22552 (
"Nation" text,
"Rider" text,
"Horse" text,
"Cross Country Penalties" text,
"Total Penalties" text,
"Total Team Penalties" text,
"Team Rank" real
) | SELECT "Nation" FROM table_22552 WHERE "Horse" = 'Parkmore Ed' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
5373,
41,
96,
567,
257,
121,
1499,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
254,
1859,
7,
6993,
4511,
138,
3010,
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,
567,
257,
121,
21680,
953,
834,
20489,
5373,
549,
17444,
427,
96,
566,
127,
7,
15,
121,
3274,
3,
31,
26163,
3706,
4857,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up? | CREATE TABLE table_29295463_9 (
champion VARCHAR,
runner_up VARCHAR
) | SELECT champion FROM table_29295463_9 WHERE runner_up = "Marty Davis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3166,
5062,
3891,
834,
1298,
41,
6336,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1632,
8,
6336,
21,
8,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6336,
21680,
953,
834,
3166,
3166,
5062,
3891,
834,
1298,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
7286,
17,
63,
8688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which week was the game held at Kingdome on October 13, 1991? | CREATE TABLE table_name_71 (
week INTEGER,
game_site VARCHAR,
date VARCHAR
) | SELECT MIN(week) FROM table_name_71 WHERE game_site = "kingdome" AND date = "october 13, 1991" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
471,
3,
21342,
17966,
6,
467,
834,
3585,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
47,
8,
467,
1213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
467,
834,
3585,
3274,
96,
1765,
5012,
15,
121,
3430,
833,
3274,
96,
32,
75,
235,
1152,
10670,
9957,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
If the opponents in the final is Hewitt McMillan and the partner is Fleming, what is the surface? | CREATE TABLE table_22597626_2 (
surface VARCHAR,
partner VARCHAR,
opponents_in_the_final VARCHAR
) | SELECT surface FROM table_22597626_2 WHERE partner = "Fleming" AND opponents_in_the_final = "Hewitt McMillan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3390,
3959,
2688,
834,
357,
41,
1774,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
6,
16383,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1774,
21680,
953,
834,
2884,
3390,
3959,
2688,
834,
357,
549,
17444,
427,
2397,
3274,
96,
371,
109,
51,
53,
121,
3430,
16383,
834,
77,
834,
532,
834,
12406,
3274,
96,
3845,
7820,
17,
3038,
329,
1092,
152,
121,
1,
... |
give me the number of patients whose religion is christian scientist? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "CHRISTIAN SCIENTIST" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
60,
2825,
23,
106,
3274,
96,
254,
11120,
13582,
21758,
180,
3597,
6431,
13582,
121,
1,
-100,
-100,... |
If Socialist is at 46.1%, what are all percentages for social democratic? | CREATE TABLE table_1463383_1 (social_democratic VARCHAR, socialist VARCHAR) | SELECT social_democratic FROM table_1463383_1 WHERE socialist = "46.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
4201,
4591,
834,
536,
41,
15745,
834,
23319,
447,
584,
4280,
28027,
6,
23737,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
2730,
343,
19,
44,
9668,
5,
470... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
569,
834,
23319,
447,
21680,
953,
834,
24300,
4201,
4591,
834,
536,
549,
17444,
427,
23737,
3274,
96,
4448,
5,
4704,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the score for the home team for the venue glenferrie oval? | CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_57 WHERE venue = "glenferrie oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
234,
372,
21,
8,
5669,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
5669,
3274,
96,
3537,
29,
1010,
1753,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14? | CREATE TABLE table_name_82 (
date VARCHAR,
result VARCHAR,
winner VARCHAR,
year VARCHAR
) | SELECT date FROM table_name_82 WHERE winner = "new york giants" AND year > 1985 AND result = "17-14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
833,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
4668,
3274,
96,
5534,
25453,
6079,
7,
121,
3430,
215,
2490,
13200,
3430,
741,
3274,
96,
2517,
11590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
renal dysfunction. | CREATE TABLE table_train_280 (
"id" int,
"fpg" float,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"renal_disease" bool,
"hba1c" float,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_280 WHERE renal_disease = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
17518,
41,
96,
23,
26,
121,
16,
17,
6,
96,
89,
102,
122,
121,
3,
12660,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
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,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
17518,
549,
17444,
427,
23328,
834,
26,
159,
14608,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What try bonus has a club of caerphilly rfc? | CREATE TABLE table_name_27 (
try_bonus VARCHAR,
club VARCHAR
) | SELECT try_bonus FROM table_name_27 WHERE club = "caerphilly rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
653,
834,
5407,
302,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
653,
4023,
65,
3,
9,
1886,
13,
212,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
653,
834,
5407,
302,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1886,
3274,
96,
658,
49,
18118,
120,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What nation has a total less than 2, silver of 1 and bronze less than 1? | CREATE TABLE table_name_32 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT nation FROM table_name_32 WHERE total < 2 AND bronze < 1 AND silver = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
29,
257,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2982,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2982,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
792,
3,
2,
204,
3430,
13467,
3,
2,
209,
3430,
4294,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When has a Result of w 41-27? | CREATE TABLE table_50131 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Date" FROM table_50131 WHERE "Result" = 'w 41-27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
22048,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
308,
342,
121,
21680,
953,
834,
1752,
22048,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
210,
8798,
18,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the share of votes in the 2000 (2nd) election? | CREATE TABLE table_47454 (
"Election" text,
"Candidate" text,
"Number of votes" text,
"Share of votes" text,
"Outcome of election" text
) | SELECT "Share of votes" FROM table_47454 WHERE "Election" = '2000 (2nd)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
2128,
591,
41,
96,
427,
12252,
121,
1499,
6,
96,
14050,
12416,
342,
121,
1499,
6,
96,
567,
5937,
49,
13,
11839,
121,
1499,
6,
96,
24501,
13,
11839,
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,
24501,
13,
11839,
121,
21680,
953,
834,
4177,
2128,
591,
549,
17444,
427,
96,
427,
12252,
121,
3274,
3,
31,
13527,
4743,
727,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is date of birth and procedure short title of subject name tracy farmer? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT demographic.dob, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Tracy Farmer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
26,
32,
115,
6,
4293,
5,
7,
14184,
834,
21869,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5,
4... |
What is the most number of silvers for teams in rank 5 with more than 6 total medals? | CREATE TABLE table_name_43 (silver INTEGER, rank VARCHAR, total VARCHAR) | SELECT MAX(silver) FROM table_name_43 WHERE rank = "5" AND total > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
7,
173,
624,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
381,
13,
4294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
11003,
3274,
96,
17395,
3430,
792,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What ethnic group is 65,104 in 1931? | CREATE TABLE table_name_43 (
malay_ethnic_group VARCHAR
) | SELECT malay_ethnic_group FROM table_name_43 WHERE 1931 = "65,104" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
954,
5595,
834,
15,
189,
2532,
834,
10739,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11655,
563,
19,
7123,
6,
15442,
16,
957,
3341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
954,
5595,
834,
15,
189,
2532,
834,
10739,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
957,
3341,
3274,
96,
4122,
6,
15442,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is VFB Stuttgart II Team's Stadiuim? | CREATE TABLE table_name_91 (
stadium VARCHAR,
team VARCHAR
) | SELECT stadium FROM table_name_91 WHERE team = "vfb stuttgart ii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
14939,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
584,
15586,
17807,
2466,
2271,
31,
7,
30408,
76,
603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14939,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
372,
3274,
96,
208,
89,
115,
21341,
17,
17,
1478,
17,
3,
23,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the year elected for incumbent Cynthia Mckinney? | CREATE TABLE table_27021001_1 (
elected VARCHAR,
incumbent VARCHAR
) | SELECT elected FROM table_27021001_1 WHERE incumbent = "Cynthia McKinney" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
2658,
17465,
834,
536,
41,
8160,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
8160,
21,
28406,
31651,
3038,
291... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8160,
21680,
953,
834,
17485,
2658,
17465,
834,
536,
549,
17444,
427,
28406,
3274,
96,
254,
63,
29,
7436,
9,
3038,
439,
77,
3186,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Between November 25–30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was what? | CREATE TABLE table_22123920_4 (shows___sellout VARCHAR, sellout___percentage_ VARCHAR) | SELECT shows___sellout FROM table_22123920_4 WHERE sellout___percentage_ = "75%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
14574,
27749,
834,
591,
41,
10049,
7,
834,
834,
834,
12019,
670,
584,
4280,
28027,
6,
1789,
670,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1267,
834,
834,
834,
12019,
670,
21680,
953,
834,
2884,
14574,
27749,
834,
591,
549,
17444,
427,
1789,
670,
834,
834,
834,
883,
3728,
545,
834,
3274,
96,
940,
2712,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of weeks that were on September 25, 1955 with more than 16,901 people in attendance? | CREATE TABLE table_37773 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Week") FROM table_37773 WHERE "Attendance" > '16,901' AND "Date" = 'september 25, 1955' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4013,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
4118,
4013,
519,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
2490,
3,
31,
2938,
6,
2394,
536,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
182... |
For the week 1 show and order 2, what was the theme? | CREATE TABLE table_12074 (
"Show" text,
"Theme" text,
"Song" text,
"Original artist" text,
"Order" text,
"Result" text
) | SELECT "Theme" FROM table_12074 WHERE "Show" = 'week 1' AND "Order" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
4581,
41,
96,
134,
4067,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395,
588,
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,
634,
526,
121,
21680,
953,
834,
15518,
4581,
549,
17444,
427,
96,
134,
4067,
121,
3274,
3,
31,
8041,
209,
31,
3430,
96,
7395,
588,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many tasks does each project have? List the task count and the project detail. | CREATE TABLE organisation_types (
organisation_type text,
organisation_type_description text
)
CREATE TABLE project_outcomes (
project_id number,
outcome_code text,
outcome_details text
)
CREATE TABLE document_types (
document_type_code text,
document_description text
)
CREATE TABLE proje... | SELECT COUNT(*), T1.project_details FROM projects AS T1 JOIN tasks AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5102,
834,
6137,
7,
41,
5102,
834,
6137,
1499,
6,
5102,
834,
6137,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
516,
834,
670,
287,
15,
7,
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,
2847,
17161,
599,
1935,
201,
332,
5411,
23574,
834,
221,
5756,
7,
21680,
1195,
6157,
332,
536,
3,
15355,
3162,
4145,
6157,
332,
357,
9191,
332,
5411,
23574,
834,
23,
26,
3274,
332,
4416,
23574,
834,
23,
26,
350,
463... |
How many mens doubles when womens doubles is catrine bengtsson margit borg? | CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_doubles VARCHAR) | SELECT COUNT(mens_doubles) FROM table_12171145_1 WHERE womens_doubles = "Catrine Bengtsson Margit Borg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22011,
4450,
20987,
834,
536,
41,
904,
7,
834,
25761,
7,
584,
4280,
28027,
6,
887,
7,
834,
25761,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1076,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
904,
7,
834,
25761,
7,
61,
21680,
953,
834,
22011,
4450,
20987,
834,
536,
549,
17444,
427,
887,
7,
834,
25761,
7,
3274,
96,
18610,
9249,
2798,
122,
17,
7,
739,
16409,
155,
272,
1677,
121,
1,
-100... |
What is the Speed at Lake Mead? | CREATE TABLE table_name_80 (
speed VARCHAR,
location VARCHAR
) | SELECT speed FROM table_name_80 WHERE location = "lake mead" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
1634,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9913,
44,
2154,
1212,
9,
26,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1634,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1128,
3274,
96,
16948,
140,
9,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the segment d for chicken | CREATE TABLE table_15187735_3 (segment_d VARCHAR, segment_c VARCHAR) | SELECT segment_d FROM table_15187735_3 WHERE segment_c = "Chicken" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26578,
27697,
2469,
834,
519,
41,
7,
15,
122,
297,
834,
26,
584,
4280,
28027,
6,
5508,
834,
75,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5508,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5508,
834,
26,
21680,
953,
834,
26578,
27697,
2469,
834,
519,
549,
17444,
427,
5508,
834,
75,
3274,
96,
3541,
23,
4695,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Winner has a Last 16 of 400? | CREATE TABLE table_37398 (
"Year" text,
"Winner" text,
"Runner-Up" text,
"Semi-Finalists" text,
"Quarter-Finalists" text,
"Last 16" text,
"Last 32" text,
"Last 64" text,
"Total" text
) | SELECT "Winner" FROM table_37398 WHERE "Last 16" = '£400' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
519,
3916,
41,
96,
476,
2741,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
11161,
121,
1499,
6,
96,
134,
15,
51,
23,
18,
371,
10270,
343,
7,
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,
18455,
687,
121,
21680,
953,
834,
4118,
519,
3916,
549,
17444,
427,
96,
3612,
7,
17,
898,
121,
3274,
3,
31,
19853,
5548,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the team when the category is field goal percentage? | CREATE TABLE table_28628309_6 (
team VARCHAR,
category VARCHAR
) | SELECT team FROM table_28628309_6 WHERE category = "Field goal percentage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4056,
4591,
4198,
834,
948,
41,
372,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
372,
116,
8,
3295,
19,
1057,
1288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2577,
4056,
4591,
4198,
834,
948,
549,
17444,
427,
3295,
3274,
96,
3183,
8804,
1288,
5294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the time in a heat smaller than 5, in Lane 5, for Vietnam? | CREATE TABLE table_79599 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Time" FROM table_79599 WHERE "Heat" < '5' AND "Lane" = '5' AND "Nationality" = 'vietnam' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3301,
3264,
41,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
940,
3301,
3264,
549,
17444,
427,
96,
3845,
144,
121,
3,
2,
3,
31,
755,
31,
3430,
96,
434,
152,
15,
121,
3274,
3,
31,
755,
31,
3430,
96,
24732,
485,
121,
3274,
3,
31,
5914,
17,... |
What is the lenth of a 2003 Make & Model of nabi 35-lfw? | CREATE TABLE table_name_52 (
length VARCHAR,
year VARCHAR,
make_ VARCHAR,
_model VARCHAR
) | SELECT length FROM table_name_52 WHERE year = "2003" AND make_ & _model = "nabi 35-lfw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2475,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
143,
834,
584,
4280,
28027,
6,
3,
834,
21770,
584,
4280,
28027,
3,
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,
2475,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
215,
3274,
96,
23948,
121,
3430,
143,
834,
3,
184,
3,
834,
21770,
3274,
96,
29,
15975,
3097,
18,
40,
89,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
in how many titles on this list did he not play the role of phineas bogg ? | CREATE TABLE table_202_205 (
id number,
"year" text,
"title" text,
"role" text,
"notes" text
) | SELECT COUNT("title") FROM table_202_205 WHERE "role" <> 'phineas bogg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
23201,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
7977,
7,
121,
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,
121,
21869,
8512,
21680,
953,
834,
19818,
834,
23201,
549,
17444,
427,
96,
3491,
15,
121,
3,
2,
3155,
3,
31,
22230,
15,
9,
7,
3005,
4102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How much Total has a Silver smaller than 0? | CREATE TABLE table_name_38 (total VARCHAR, silver INTEGER) | SELECT COUNT(total) FROM table_name_38 WHERE silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
235,
1947,
584,
4280,
28027,
6,
4294,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
9273,
65,
3,
9,
5642,
2755,
145,
3,
632,
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,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which study included autoimmune disease and inflammation? | CREATE TABLE table_name_41 (name VARCHAR, indication VARCHAR) | SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and inflammation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
4350,
584,
4280,
28027,
6,
10369,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
810,
1285,
3,
31650,
1994,
11,
13386,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
953,
834,
4350,
834,
4853,
549,
17444,
427,
10369,
3274,
96,
31650,
1994,
11,
13386,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the race number of bob wollek | CREATE TABLE table_name_95 (race_number VARCHAR, driver VARCHAR) | SELECT race_number FROM table_name_95 WHERE driver = "bob wollek" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
12614,
834,
5525,
1152,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1964,
381,
13,
3,
17396,
3,
22569,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
2535,
3274,
96,
17396,
3,
22569,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the date of the game where Essendon is the away team? | CREATE TABLE table_name_36 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_36 WHERE away_team = "essendon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
467,
213,
11722,
2029,
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,
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,
3420,
549,
17444,
427,
550,
834,
11650,
3274,
96,
8185,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times did the Centurions play the Rhein Fire? | CREATE TABLE table_27764201_2 (
game_site VARCHAR,
opponent VARCHAR
) | SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = "Rhein Fire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3959,
21899,
536,
834,
357,
41,
467,
834,
3585,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
410,
8,
18434,
450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7261,
834,
3585,
61,
21680,
953,
834,
2555,
3959,
21899,
536,
834,
357,
549,
17444,
427,
15264,
3274,
96,
448,
88,
77,
3655,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the grand finalist where scores is 8.9 (57) 7.12 (54) | CREATE TABLE table_1139835_3 (
grand_finalist VARCHAR,
scores VARCHAR
) | SELECT grand_finalist FROM table_1139835_3 WHERE scores = "8.9 (57) – 7.12 (54)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
3916,
2469,
834,
519,
41,
1907,
834,
12406,
343,
584,
4280,
28027,
6,
7586,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
1907,
804,
343,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1907,
834,
12406,
343,
21680,
953,
834,
20522,
3916,
2469,
834,
519,
549,
17444,
427,
7586,
3274,
96,
927,
5,
1298,
41,
3436,
61,
3,
104,
4306,
2122,
9209,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Gecko value for the item that has a Trident value of 'font'? | CREATE TABLE table_name_34 (gecko VARCHAR, trident VARCHAR) | SELECT gecko FROM table_name_34 WHERE trident = "font" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
122,
5007,
32,
584,
4280,
28027,
6,
3,
17,
52,
4215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
350,
5007,
32,
701,
21,
8,
2118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
873,
2406,
32,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
3,
17,
52,
4215,
3274,
96,
89,
1770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score of the Browns week 4 game? | CREATE TABLE table_74766 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_74766 WHERE "Week" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4177,
3539,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
940,
4177,
3539,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the team 2 for the match with a team 1 of Panathinaikos? | CREATE TABLE table_name_34 (
team_2 VARCHAR,
team_1 VARCHAR
) | SELECT team_2 FROM table_name_34 WHERE team_1 = "panathinaikos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
372,
834,
357,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
204,
21,
8,
1588,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
357,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
372,
834,
536,
3274,
96,
2837,
144,
2907,
9,
12027,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the first series episode number for 'the christmas watch'? | CREATE TABLE table_29108 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original Airdate" text
) | SELECT MIN("Series #") FROM table_29108 WHERE "Title" = 'The Christmas Watch' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
16169,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12106,
7,
1713,
8512,
21680,
953,
834,
3166,
16169,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
1619,
4195,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Population where the Median House-hold Income is $25,016? | CREATE TABLE table_name_59 (
population INTEGER,
median_house__hold_income VARCHAR
) | SELECT MIN(population) FROM table_name_59 WHERE median_house__hold_income = "$25,016" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
2074,
3,
21342,
17966,
6,
15572,
834,
1840,
834,
834,
6134,
834,
15759,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
29659,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
15572,
834,
1840,
834,
834,
6134,
834,
15759,
3274,
96,
3229,
1828,
6,
632,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the rider with a 399cc Kawasaki? | CREATE TABLE table_name_94 (
rider VARCHAR,
team VARCHAR
) | SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
2564,
52,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2564,
52,
28,
3,
9,
220,
3264,
75,
75,
2209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2564,
52,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
372,
3274,
96,
519,
3264,
75,
75,
3,
1258,
9491,
11259,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is listed for the Week 1 Aug 26 that has a Week 7 Oct 6 of USC (3-2)? | CREATE TABLE table_name_36 (week_1_aug_26 VARCHAR, week_7_oct_6 VARCHAR) | SELECT week_1_aug_26 FROM table_name_36 WHERE week_7_oct_6 = "usc (3-2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
8041,
834,
536,
834,
402,
122,
834,
2688,
584,
4280,
28027,
6,
471,
834,
940,
834,
32,
75,
17,
834,
948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
471,
834,
536,
834,
402,
122,
834,
2688,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
471,
834,
940,
834,
32,
75,
17,
834,
948,
3274,
96,
302,
75,
41,
21160,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the mosst finals apps | CREATE TABLE table_21220720_1 (finals_apps INTEGER) | SELECT MAX(finals_apps) FROM table_21220720_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
1755,
18517,
834,
536,
41,
12406,
7,
834,
3096,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
3972,
7,
17,
804,
7,
4050,
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,
4800,
4,
599,
12406,
7,
834,
3096,
7,
61,
21680,
953,
834,
24837,
1755,
18517,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tell me the type of admission and the prescription drug for the patient with patient id 2560. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT demographic.admission_type, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
7744,
7,
5,
26,
13534,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
... |
Can you tell me the Player that has the Place of t5, and the Score of 73-72-71-75=291? | CREATE TABLE table_12744 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT "Player" FROM table_12744 WHERE "Place" = 't5' AND "Score" = '73-72-71-75=291' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22367,
3628,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
96,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
22367,
3628,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
755,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
4552,
18,
5865,
18,
4450,
18,
3072,
2423,
357,
4729,
31,
1... |
Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes? | CREATE TABLE table_32158 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Venue" FROM table_32158 WHERE "Year" > '2006' AND "Notes" = '3000 m s''chase' AND "Position" = '2nd' AND "Competition" = 'african championships' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
26556,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10358,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
2668,
26556,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
21196,
31,
3430,
96,
10358,
15,
7,
121,
3274,
3,
31,
519,
2313,
3,
51,
3,
7,
31,
31,
3441,
7,
15,
31,... |
What tournament has Samantha Stosur as the opponent in the final? | CREATE TABLE table_name_99 (tournament VARCHAR, opponent_in_the_final VARCHAR) | SELECT tournament FROM table_name_99 WHERE opponent_in_the_final = "samantha stosur" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
65,
29298... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
15264,
834,
77,
834,
532,
834,
12406,
3274,
96,
7,
9,
348,
189,
9,
3,
7,
235,
3042,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose primary disease is atrial septal defect\mitral valve replacement;repair atrial-septal defect/sda and admission year is less than 2164? | 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.diagnosis = "ATRIAL SEPTAL DEFECT\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA" AND demographic.admityear < "2164" | [
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,
25930,
4844,
159,
3274,
96,
188,
16840,
4090,
180,
8569,
16359,
3396,
371,
14196,
2,
12604,
21415,
... |
tell me the number of points the blackhawks had on march 4 . | CREATE TABLE table_204_388 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
) | SELECT "pts" FROM table_204_388 WHERE "date" = 'march 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4060,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
3466,
155,
127,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
5515,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
102,
17,
7,
121,
21680,
953,
834,
26363,
834,
519,
4060,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
51,
7064,
314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.