NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is Gold, when Silver is 5, and when Nation is Belgium? | CREATE TABLE table_name_91 (
gold VARCHAR,
silver VARCHAR,
nation VARCHAR
) | SELECT gold FROM table_name_91 WHERE silver = "5" AND nation = "belgium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
2045,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2540,
6,
116,
5642,
19,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2045,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
4294,
3274,
96,
17395,
3430,
2982,
3274,
96,
2370,
122,
2552,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the team set at junction oval? | CREATE TABLE table_52086 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_52086 WHERE "Venue" = 'junction oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25356,
3840,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
25356,
3840,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
6959,
4985,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find out the age and preferred language for the patient with patient id 2560. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.age, demographic.language FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
545,
6,
14798,
5,
24925,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the possible children per donor levels for countries where the allowed recipients is no data. | CREATE TABLE table_16175217_1 (
children_per_donor VARCHAR,
allowed_recipients VARCHAR
) | SELECT children_per_donor FROM table_16175217_1 WHERE allowed_recipients = "no data" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2517,
5373,
2517,
834,
536,
41,
502,
834,
883,
834,
2029,
127,
584,
4280,
28027,
6,
2225,
834,
60,
3389,
4741,
7,
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,
0,
0,
0... | [
3,
23143,
14196,
502,
834,
883,
834,
2029,
127,
21680,
953,
834,
2938,
2517,
5373,
2517,
834,
536,
549,
17444,
427,
2225,
834,
60,
3389,
4741,
7,
3274,
96,
29,
32,
331,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the grid total for ralf schumacher racing over 53 laps? | CREATE TABLE table_77800 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT SUM("Grid") FROM table_77800 WHERE "Driver" = 'ralf schumacher' AND "Laps" > '53' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
6192,
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,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
4013,
6192,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
4900,
89,
3,
7,
8019,
24113,
31,
3430,
96,
3612,
102,
7,
121,
2490,
3,
31,
4867,
31,
1,
-100,
... |
What is the percent yes of Alberta, which had a percent no larger than 60.2? | CREATE TABLE table_name_68 (percent_yes VARCHAR, jurisdiction VARCHAR, percent_no VARCHAR) | SELECT COUNT(percent_yes) FROM table_name_68 WHERE jurisdiction = "alberta" AND percent_no > 60.2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
883,
3728,
834,
10070,
584,
4280,
28027,
6,
10185,
584,
4280,
28027,
6,
1093,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
883,
3728,
834,
10070,
61,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
10185,
3274,
96,
138,
7041,
9,
121,
3430,
1093,
834,
29,
32,
2490,
431,
18189,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Please show the results of music festivals and the number of music festivals that have had each, ordered by this count. | CREATE TABLE music_festival (RESULT VARCHAR) | SELECT RESULT, COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
723,
834,
89,
24742,
41,
12200,
4254,
382,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
863,
504,
8,
772,
13,
723,
14856,
11,
8,
381,
13,
723,
14856,
24,
43,
141,
284,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4083,
4138,
9012,
6,
2847,
17161,
599,
1935,
61,
21680,
723,
834,
89,
24742,
350,
4630,
6880,
272,
476,
4083,
4138,
9012,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,... |
Show the host names for parties with number of hosts greater than 20. | CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Number_of_hosts INTEGER) | SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
454,
14464,
41,
23954,
584,
4280,
28027,
6,
1546,
7,
17,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
12675,
41,
566,
3481,
834,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
21680,
1088,
834,
12675,
6157,
332,
536,
3,
15355,
3162,
454,
14464,
6157,
332,
357,
9191,
332,
5411,
566,
3481,
834,
4309,
3274,
332,
4416,
566,
3481,
834,
4309,
3,
15355,
3162,
1088,
6157,
332,
519... |
provide the number of patients admitted before 2119 who were diagnosed with septic shock. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2119" AND diagnoses.short_title = "Septic shock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
what is maximum age of patients whose insurance is self pay and primary disease is colangitis? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Self Pay" AND demographic.diagnosis = "COLANGITIS" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
134,
10386,
5077,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
19617,
19775,
3177,
4555,
121,
1,
-100,
-100,
-100,
... |
What bore goes with an 18 AB? | CREATE TABLE table_name_9 (
bore VARCHAR,
name VARCHAR
) | SELECT bore FROM table_name_9 WHERE name = "18 ab" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
18033,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
18033,
1550,
28,
46,
507,
3,
5359,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
18033,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
564,
3274,
96,
2606,
703,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Title has a Director of rowell santiago? | CREATE TABLE table_34864 (
"Year" text,
"Title" text,
"Role" text,
"Producer" text,
"Director" text
) | SELECT "Title" FROM table_34864 WHERE "Director" = 'rowell santiago' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3707,
4389,
41,
96,
476,
2741,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
3174,
4817,
49,
121,
1499,
6,
96,
23620,
127,
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,
382,
155,
109,
121,
21680,
953,
834,
519,
3707,
4389,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
3623,
3820,
3,
7,
5965,
9,
839,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the number of start date of the apartment bookings made by female guests (gender code 'Female') for each year? Plot a bar chart. | CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address ... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4197,
834,
5110,
155,
834,
134,
17,
144,
302,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
2637,
834,
5522,
309,
6048,
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,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
3,
22360,
6157,
332,
357,
9191,
332,
5411,
15991,
17,
834,
23,
... |
Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80. | CREATE TABLE acceptance (
submission_id number,
workshop_id number,
result text
)
CREATE TABLE workshop (
workshop_id number,
date text,
venue text,
name text
)
CREATE TABLE submission (
submission_id number,
scores number,
author text,
college text
) | SELECT college FROM submission WHERE scores > 90 INTERSECT SELECT college FROM submission WHERE scores < 80 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11122,
41,
8121,
834,
23,
26,
381,
6,
4786,
834,
23,
26,
381,
6,
741,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4786,
41,
4786,
834,
23,
26,
381,
6,
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,
1900,
21680,
8121,
549,
17444,
427,
7586,
2490,
2777,
3,
21342,
5249,
14196,
3,
23143,
14196,
1900,
21680,
8121,
549,
17444,
427,
7586,
3,
2,
2775,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What province is in the district of Condoroma? | CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR) | SELECT province FROM table_2251578_4 WHERE district = "Condoroma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
1808,
3940,
834,
591,
41,
1409,
2494,
565,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
7985,
19,
16,
8,
3939,
13,
21723,
3522,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7985,
21680,
953,
834,
20489,
1808,
3940,
834,
591,
549,
17444,
427,
3939,
3274,
96,
254,
17381,
3522,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pldi 2015 list of papers | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE author (
authorid i... | SELECT DISTINCT paper.paperid FROM paper, venue WHERE paper.year = 2015 AND venue.venueid = paper.venueid AND venue.venuename = 'pldi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
6757,
2244,
41,
1040,
23,
26,
16,
17,
6,
17953,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1040,
5,
19587,
23,
26,
21680,
1040,
6,
5669,
549,
17444,
427,
1040,
5,
1201,
3274,
1230,
3430,
5669,
5,
15098,
23,
26,
3274,
1040,
5,
15098,
23,
26,
3430,
5669,
5,
15098,
4350,
3274,
3,
31,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the correlation between employee_id and department_id in a scatter chart. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT EMPLOYEE_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
... |
Who was the Best Male MC if Best Album won the Best Male Lyricist? | CREATE TABLE table_22546460_4 (
best_male_mc VARCHAR,
best_male_lyricist VARCHAR
) | SELECT best_male_mc FROM table_22546460_4 WHERE best_male_lyricist = "Best Album" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
4448,
25991,
834,
591,
41,
200,
834,
13513,
834,
51,
75,
584,
4280,
28027,
6,
200,
834,
13513,
834,
120,
2234,
343,
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,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
200,
834,
13513,
834,
51,
75,
21680,
953,
834,
20489,
4448,
25991,
834,
591,
549,
17444,
427,
200,
834,
13513,
834,
120,
2234,
343,
3274,
96,
17278,
16135,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the results for top 12? | CREATE TABLE table_26250176_1 (result VARCHAR, week__number VARCHAR) | SELECT result FROM table_26250176_1 WHERE week__number = "Top 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
11434,
26782,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
772,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2688,
11434,
26782,
834,
536,
549,
17444,
427,
471,
834,
834,
5525,
1152,
3274,
96,
22481,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Scatter plot to show avg(age) on x axis and minimal age on y axis. | CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnSc... | SELECT AVG(Age), MIN(Age) FROM Student GROUP BY Major | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2911,
7,
834,
23055,
7,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
4435,
4309,
3,
21342,
17966,
6,
10768,
7,
834,
15800,
15,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
188,
397,
201,
3,
17684,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
9236,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the attendance of the game on November 20, 1966 after week 10? | CREATE TABLE table_name_54 (
attendance VARCHAR,
week VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_54 WHERE week > 10 AND date = "november 20, 1966" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
11364,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11364,
13,
8,
467,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
471,
2490,
335,
3430,
833,
3274,
96,
5326,
18247,
16047,
20658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What year has the ride flight deck and a rating of less than 5? | CREATE TABLE table_50848 (
"Ride" text,
"Year Opened" real,
"Ride Manufacturer and Type" text,
"Minimum Height" text,
"Rating" real
) | SELECT COUNT("Year Opened") FROM table_50848 WHERE "Ride" = 'flight deck' AND "Rating" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
927,
3707,
41,
96,
448,
1599,
121,
1499,
6,
96,
476,
2741,
2384,
15,
26,
121,
490,
6,
96,
448,
1599,
15248,
11,
6632,
121,
1499,
6,
96,
12858,
603,
440,
24231,
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,
476,
2741,
2384,
15,
26,
8512,
21680,
953,
834,
1752,
927,
3707,
549,
17444,
427,
96,
448,
1599,
121,
3274,
3,
31,
89,
2242,
3854,
31,
3430,
96,
448,
1014,
121,
3,
2,
3,
31,
755,
31,
1,
... |
what is the longest song ? | CREATE TABLE table_204_184 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"length" text
) | SELECT "title" FROM table_204_184 ORDER BY "length" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
25987,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
1409,
4817,
49,
599,
7,
61,
121,
1499,
6,
96,
30844,
26,
3886,
599,
7,
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,
21869,
121,
21680,
953,
834,
26363,
834,
25987,
4674,
11300,
272,
476,
96,
19457,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Compute the total the average of amount of transaction across transaction type code as a pie chart. | CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TAB... | SELECT transaction_type_code, AVG(amount_of_transaction) FROM Transactions GROUP BY transaction_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14868,
41,
418,
834,
23,
26,
3,
21342,
17966,
6,
12024,
834,
23,
26,
3,
21342,
17966,
6,
418,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5878,
834,
6137,
834,
4978,
6,
71,
17217,
599,
9,
11231,
834,
858,
834,
7031,
4787,
61,
21680,
21469,
7,
350,
4630,
6880,
272,
476,
5878,
834,
6137,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What episode # has govinda & david dhawan as the eliminated contestant? | CREATE TABLE table_63432 (
"Contestant Name" text,
"Episode #" text,
"Date Premiered (2009)" text,
"Winning Amount" text,
"Eliminated Contestant" text
) | SELECT "Episode #" FROM table_63432 WHERE "Eliminated Contestant" = 'govinda & david dhawan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
591,
2668,
41,
96,
4302,
4377,
288,
5570,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
1713,
121,
1499,
6,
96,
308,
342,
6552,
15,
26,
3,
25812,
121,
1499,
6,
96,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
102,
159,
32,
221,
1713,
121,
21680,
953,
834,
3891,
591,
2668,
549,
17444,
427,
96,
427,
4941,
77,
920,
21537,
288,
121,
3274,
3,
31,
9527,
77,
26,
9,
3,
184,
836,
6961,
3,
26,
1024,
3877,
31,
1,
-10... |
What is City, when Country is 'Kuwait'? | CREATE TABLE table_8823 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "City" FROM table_8823 WHERE "Country" = 'kuwait' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4060,
2773,
41,
96,
254,
485,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,
667,
121,
1499,
6,
96,
20162,
1493,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
4060,
2773,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
2729,
26745,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which stage has a Winner of lucien van impe? | CREATE TABLE table_52599 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Trofeo Fast Team" text
) | SELECT "Stage" FROM table_52599 WHERE "Winner" = 'lucien van impe' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
3264,
41,
96,
134,
6505,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
382,
52,
858,
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,
134,
6505,
121,
21680,
953,
834,
755,
1828,
3264,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
12804,
35,
4049,
4840,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List all countries and their number of airlines in the descending order of number of airlines. | CREATE TABLE airlines (country VARCHAR) | SELECT country, COUNT(*) FROM airlines GROUP BY country ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19184,
41,
17529,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
1440,
11,
70,
381,
13,
19184,
16,
8,
3,
30960,
455,
13,
381,
13,
19184,
5,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
6,
2847,
17161,
599,
1935,
61,
21680,
19184,
350,
4630,
6880,
272,
476,
684,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the comptroller for republican | CREATE TABLE table_22607062_1 (
comptroller VARCHAR,
ticket___office VARCHAR
) | SELECT comptroller FROM table_22607062_1 WHERE ticket___office = "Republican" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
18365,
2518,
4056,
834,
536,
41,
20248,
4046,
49,
584,
4280,
28027,
6,
4142,
834,
834,
834,
19632,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
20248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20248,
4046,
49,
21680,
953,
834,
357,
18365,
2518,
4056,
834,
536,
549,
17444,
427,
4142,
834,
834,
834,
19632,
3274,
96,
1649,
15727,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 1991 with a 2r 1996? | CREATE TABLE table_name_34 (Id VARCHAR) | SELECT 1991 FROM table_name_34 WHERE 1996 = "2r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9957,
28,
3,
9,
204,
52,
6911,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9957,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
6911,
3274,
96,
357,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the lowest overall when the pick is 20? | CREATE TABLE table_44648 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MIN("Overall") FROM table_44648 WHERE "Pick" = '20' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4448,
3707,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
3,
17684,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
591,
4448,
3707,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the first broadcast date of episode 4x03? | CREATE TABLE table_23292220_4 (first_broadcast VARCHAR, episode VARCHAR) | SELECT first_broadcast FROM table_23292220_4 WHERE episode = "4x03" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3166,
2884,
1755,
834,
591,
41,
14672,
834,
115,
8635,
5254,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
166,
6878,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
115,
8635,
5254,
21680,
953,
834,
2773,
3166,
2884,
1755,
834,
591,
549,
17444,
427,
5640,
3274,
96,
591,
226,
4928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento? | CREATE TABLE table_64898 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) | SELECT "Elevated" FROM table_64898 WHERE "Cardinalatial title" = 'priest of s. eusebio and archbishop of benevento' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3707,
3916,
41,
96,
21543,
127,
121,
1499,
6,
96,
345,
11706,
13,
3879,
121,
1499,
6,
96,
6936,
26,
10270,
9,
10646,
2233,
121,
1499,
6,
96,
427,
10912,
920,
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,
427,
10912,
920,
121,
21680,
953,
834,
948,
3707,
3916,
549,
17444,
427,
96,
6936,
26,
10270,
9,
10646,
2233,
121,
3274,
3,
31,
2246,
222,
13,
3,
7,
5,
3,
15,
1074,
6420,
11,
11508,
11514,
10776,
13,
3,
1571... |
Who was Footscray's opponent on June 15th of 1968? | CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_54 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
15213,
7,
2935,
63,
31,
7,
15264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result for Steve & Anna when the score was 21 (7, 7, 7)? | CREATE TABLE table_name_80 (
result VARCHAR,
score VARCHAR,
couple VARCHAR
) | SELECT result FROM table_name_80 WHERE score = "21 (7, 7, 7)" AND couple = "steve & anna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
741,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1158,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
5659,
3,
184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
2604,
3274,
96,
2658,
13649,
6,
7973,
3,
12703,
121,
3430,
1158,
3274,
96,
849,
162,
3,
184,
3,
10878,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite? | CREATE TABLE table_name_86 (
launch_site VARCHAR,
satellite VARCHAR,
date VARCHAR,
rocket VARCHAR
) | SELECT launch_site FROM table_name_86 WHERE date = "unknown" AND rocket = "delta iv" AND satellite = "gps iif-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3289,
834,
3585,
584,
4280,
28027,
6,
7605,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
15721,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3289,
834,
3585,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
833,
3274,
96,
202,
5661,
121,
3430,
15721,
3274,
96,
24876,
9,
3,
23,
208,
121,
3430,
7605,
3274,
96,
122,
102,
7,
3,
23,
99,
4536,
121,
1,
-1... |
What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1? | CREATE TABLE table_6921 (
"Rank" real,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
) | SELECT "Gold" FROM table_6921 WHERE "Total" < '4' AND "Silver" = '1' AND "Bronze" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
2658,
41,
96,
22557,
121,
490,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
1499,
6,
96,
3696,
1947,
121,
490,
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,
23576,
121,
21680,
953,
834,
3951,
2658,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
134,
173,
624,
121,
3274,
3,
31,
536,
31,
3430,
96,
22780,
29,
776,
121,
3274,
3,
31,
536,
31,... |
What is every value on Thursday August 25 for rank 3? | CREATE TABLE table_74449 (
"Rank" real,
"Rider" text,
"Sat 20 Aug" text,
"Mon 22 Aug" text,
"Tues 23 Aug" text,
"Wed 24 Aug" text,
"Thurs 25 Aug" text,
"Fri 26 Aug" text
) | SELECT "Thurs 25 Aug" FROM table_74449 WHERE "Rank" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
591,
3647,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
134,
144,
460,
6128,
121,
1499,
6,
96,
9168,
1630,
6128,
121,
1499,
6,
96,
382,
76,
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,
8991,
3589,
944,
6128,
121,
21680,
953,
834,
4581,
591,
3647,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Compute the proportion of acceptance result, and return a pie chart. | CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
) | SELECT Result, COUNT(Result) FROM Acceptance GROUP BY Result | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
20592,
663,
41,
29779,
834,
4309,
16,
17,
6,
9644,
834,
4309,
16,
17,
6,
3,
20119,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4786,
41,
9644,
834,
4309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20119,
6,
2847,
17161,
599,
20119,
61,
21680,
20592,
663,
350,
4630,
6880,
272,
476,
3,
20119,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the streak for game 2? | CREATE TABLE table_name_6 (streak VARCHAR, game VARCHAR) | SELECT streak FROM table_name_6 WHERE game = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
7,
929,
1639,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
18631,
21,
467,
204,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
18631,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
467,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When 3 - 1 hughes 64' is the score what is the stadium? | CREATE TABLE table_21377473_7 (
stadium VARCHAR,
score VARCHAR
) | SELECT stadium FROM table_21377473_7 WHERE score = "3 - 1 Hughes 64'" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4118,
4581,
4552,
834,
940,
41,
14939,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
220,
3,
18,
209,
18233,
88,
7,
6687,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14939,
21680,
953,
834,
2658,
4118,
4581,
4552,
834,
940,
549,
17444,
427,
2604,
3274,
96,
519,
3,
18,
209,
21512,
6687,
31,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the records when Elzbieta Urbanczik competed? | CREATE TABLE table_14884844_2 (record VARCHAR, athletes VARCHAR) | SELECT record FROM table_14884844_2 WHERE athletes = "Elzbieta Urbanczik" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4060,
3707,
3628,
834,
357,
41,
60,
7621,
584,
4280,
28027,
6,
9227,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3187,
116,
1289,
172,
4232,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2534,
4060,
3707,
3628,
834,
357,
549,
17444,
427,
9227,
3274,
96,
10991,
172,
4232,
17,
9,
10127,
75,
702,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What season had 3rd position, a 36 pld, and a bbl div? | CREATE TABLE table_name_81 (season VARCHAR, div VARCHAR, pos VARCHAR, pld VARCHAR) | SELECT season FROM table_name_81 WHERE pos = "3rd" AND pld = "36" AND div = "bbl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
9476,
584,
4280,
28027,
6,
3,
8481,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
6,
4752,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
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,
774,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
3,
2748,
3274,
96,
519,
52,
26,
121,
3430,
4752,
26,
3274,
96,
3420,
121,
3430,
3,
8481,
3274,
96,
115,
115,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is average age of patients whose age is greater than or equal to 55 and days of hospital stay is 8? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.age >= "55" AND demographic.days_stay = "8" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
2490,
2423,
96,
3769,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What college did Bill Cappleman go to? | CREATE TABLE table_10361230_1 (college VARCHAR, player_name VARCHAR) | SELECT college FROM table_10361230_1 WHERE player_name = "Bill Cappleman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
4241,
13427,
834,
536,
41,
3297,
7883,
584,
4280,
28027,
6,
1959,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
410,
3259,
4000,
4788,
348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
21680,
953,
834,
17864,
4241,
13427,
834,
536,
549,
17444,
427,
1959,
834,
4350,
3274,
96,
279,
1092,
4000,
4788,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the home team when the Tie no was 60? | CREATE TABLE table_name_31 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_31 WHERE tie_no = "60" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
116,
8,
2262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What years did the player with a total larger than 157 have wins? | CREATE TABLE table_name_75 (year_s__won VARCHAR, total INTEGER) | SELECT year_s__won FROM table_name_75 WHERE total > 157 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
1201,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
203,
410,
8,
1959,
28,
3,
9,
792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
834,
7,
834,
834,
210,
106,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
792,
2490,
3,
27452,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who did the Trail Blazers play on January 2? | CREATE TABLE table_21240 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_21240 WHERE "Date" = 'January 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
11944,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
2658,
11944,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
get the number of american indian/alaska native patients who had (aorto)coronary bypass of three coronary arteries. | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND procedures.short_title = "Aortocor bypas-3 cor art" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which team drafted a player from HC Slavia Praha (Czechoslovakia)? | CREATE TABLE table_2850912_10 (nhl_team VARCHAR, college_junior_club_team VARCHAR) | SELECT nhl_team FROM table_2850912_10 WHERE college_junior_club_team = "HC Slavia Praha (Czechoslovakia)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
4729,
357,
834,
1714,
41,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
2577,
1752,
4729,
357,
834,
1714,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
8095,
180,
521,
5907,
6110,
1024,
41,
254,
776,
3995,
7,
... |
Name the most margin for nco party and p. ramachandran won | CREATE TABLE table_25275 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
) | SELECT MAX("Margin") FROM table_25275 WHERE "Party" = 'NCO' AND "Winner" = 'P. Ramachandran' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
25988,
41,
96,
4302,
2248,
17,
76,
4392,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
7286,
122,
77,
121,
490,
6,
96,
23572,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
7286,
122,
77,
8512,
21680,
953,
834,
1828,
25988,
549,
17444,
427,
96,
13725,
63,
121,
3274,
3,
31,
567,
5911,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31,
345,
5,
4425,
1836,
232,
2002,
31,
1... |
What is To Par, when Score is "66", and when Player is "Brad Faxon"? | CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_25 WHERE score = 66 AND player = "brad faxon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
304,
2180,
6,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
2604,
3274,
3,
3539,
3430,
1959,
3274,
96,
1939,
26,
3,
11517,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is average days of hospital stay of patients whose admission location is phys referral/normal deli? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" | [
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,
71,
17217,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
22590,
121,
1,
-100... |
Where was the fight that lasted 5:00 when Yundt's record was 8-4? | CREATE TABLE table_name_39 (location VARCHAR, time VARCHAR, record VARCHAR) | SELECT location FROM table_name_39 WHERE time = "5:00" AND record = "8-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
14836,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
2870,
24,
3,
19054,
3,
198... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
97,
3274,
96,
19870,
121,
3430,
1368,
3274,
96,
927,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the least dismissals for 4 rank | CREATE TABLE table_25975 (
"Rank" real,
"Dismissals" real,
"Player" text,
"Caught" real,
"Stumped" real,
"Matches" real,
"Innings" real
) | SELECT MAX("Dismissals") FROM table_25975 WHERE "Rank" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
3072,
41,
96,
22557,
121,
490,
6,
96,
308,
159,
11502,
5405,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
254,
9313,
121,
490,
6,
96,
13076,
18109,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
308,
159,
11502,
5405,
8512,
21680,
953,
834,
357,
3390,
3072,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Return a bar chart on how old is the youngest person for each job?, could you rank by the x-axis in asc? | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1246,
3,
21342,
17966,
6,
690,
3,
3463,
4,
382,
6,
7285,
3,
3463,
4,
382,
6,
613,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
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,
613,
6,
3,
17684,
599,
545,
61,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
4674,
11300,
272,
476,
613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November? | CREATE TABLE table_name_12 (
july VARCHAR,
november VARCHAR,
october VARCHAR,
december VARCHAR
) | SELECT COUNT(july) FROM table_name_12 WHERE october < 8.05 AND december > 4.46 AND november > 6.79 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
3,
2047,
120,
584,
4280,
28027,
6,
3,
5326,
18247,
584,
4280,
28027,
6,
3,
32,
75,
235,
1152,
584,
4280,
28027,
6,
20,
75,
18247,
584,
4280,
28027,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
2047,
120,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
32,
75,
235,
1152,
3,
2,
4848,
3076,
3430,
20,
75,
18247,
2490,
2853,
4448,
3430,
3,
5326,
18247,
2490,
4357,
4440,
1,
-100,
-... |
What is the first name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in with a bar chart. | CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
... | SELECT Fname, COUNT(*) FROM Faculty AS T1 JOIN Faculty_Participates_in AS T2 ON T1.FacID = T2.FacID GROUP BY T1.FacID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
6203,
834,
77,
41,
21341,
23,
26,
3,
21342,
17966,
6,
1810,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
22536,
41,
1810,
23,
26,
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,
377,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
6157,
332,
536,
3,
15355,
3162,
16896,
834,
13725,
23,
3389,
6203,
834,
77,
6157,
332,
357,
9191,
332,
5411,
371,
9,
75,
4309,
3274,
332,
4416,
371,
9,
75,
4... |
How many patients stayed in hospital for more than 27 days and got diagnosed for intermed coronary synd? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "27" AND diagnoses.short_title = "Intermed coronary synd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the home team's score when North Melbourne was the away team? | CREATE TABLE table_10161 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_10161 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19621,
4241,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
19621,
4241,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is points sgsinst when points diff is +96? | CREATE TABLE table_name_70 (points_against VARCHAR, points_diff VARCHAR) | SELECT points_against FROM table_name_70 WHERE points_diff = "+96" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
2700,
7,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
834,
26,
5982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
979,
3,
7,
122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
979,
834,
26,
5982,
3274,
96,
1220,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many Vacators were listed when the district was North Carolina 3rd? | CREATE TABLE table_25065 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | SELECT COUNT("Vacator") FROM table_25065 WHERE "District" = 'North Carolina 3rd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
4122,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25203,
1016,
8512,
21680,
953,
834,
11434,
4122,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
22969,
5089,
220,
52,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the opponent was the Philadelphia flyers, what was the record? | CREATE TABLE table_27537870_6 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_27537870_6 WHERE opponent = "Philadelphia Flyers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3940,
2518,
834,
948,
41,
60,
7621,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
15264,
47,
8,
9511,
3971,
277,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2555,
4867,
3940,
2518,
834,
948,
549,
17444,
427,
15264,
3274,
96,
23305,
15311,
11692,
9,
8223,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the catalog number of Venus Demilo's A-side? | CREATE TABLE table_name_30 (catalog_number VARCHAR, a_side VARCHAR) | SELECT catalog_number FROM table_name_30 WHERE a_side = "venus demilo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
2138,
9,
2152,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
9,
834,
1583,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10173,
381,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10173,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
3,
9,
834,
1583,
3274,
96,
25116,
340,
173,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the pick in round 17? | CREATE TABLE table_44165 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT SUM("Pick") FROM table_44165 WHERE "Round" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
22823,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
180,
6122,
599,
121,
345,
3142,
8512,
21680,
953,
834,
3628,
22823,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the television network with the television channel of Astro Pelangi & Astro Bintang? | CREATE TABLE table_27469019_2 (
television_network VARCHAR,
television_channel VARCHAR
) | SELECT television_network FROM table_27469019_2 WHERE television_channel = "Astro Pelangi & Astro Bintang" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4448,
2394,
2294,
834,
357,
41,
4390,
834,
1582,
1981,
584,
4280,
28027,
6,
4390,
834,
19778,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4390,
834,
1582,
1981,
21680,
953,
834,
2555,
4448,
2394,
2294,
834,
357,
549,
17444,
427,
4390,
834,
19778,
3274,
96,
188,
6626,
1276,
4612,
23,
3,
184,
15001,
7617,
8967,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Player has a Total Goals greater than 1 and Qualifying Goals smaller than 3? | CREATE TABLE table_61311 (
"Player" text,
"Club" text,
"Qualifying Goals" real,
"Finals Goals" real,
"Total Goals" real
) | SELECT "Player" FROM table_61311 WHERE "Total Goals" > '1' AND "Qualifying Goals" < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
519,
2596,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
5991,
138,
8587,
17916,
7,
121,
490,
6,
96,
371,
10270,
7,
17916,
7,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4241,
519,
2596,
549,
17444,
427,
96,
3696,
1947,
17916,
7,
121,
2490,
3,
31,
536,
31,
3430,
96,
5991,
138,
8587,
17916,
7,
121,
3,
2,
3,
31,
519,
31,
1,
-100,
-100,
-100,
... |
What is the average round of the s position player from the college of Mississippi and has an overall less than 214? | CREATE TABLE table_name_79 (
round INTEGER,
overall VARCHAR,
position VARCHAR,
college VARCHAR
) | SELECT AVG(round) FROM table_name_79 WHERE position = "s" AND college = "mississippi" AND overall < 214 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1751,
3,
21342,
17966,
6,
1879,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1102,
3274,
96,
7,
121,
3430,
1900,
3274,
96,
11502,
159,
7,
23,
1572,
23,
121,
3430,
1879,
3,
2,
3,
27357,
1,
-100,
-100,
-100,
-100,
... |
What is the Term in office with an Order that is 9? | CREATE TABLE table_name_21 (term_in_office VARCHAR, order VARCHAR) | SELECT term_in_office FROM table_name_21 WHERE order = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1987,
834,
77,
834,
19632,
584,
4280,
28027,
6,
455,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
11679,
16,
828,
28,
46,
5197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1657,
834,
77,
834,
19632,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
455,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the number of processors for october 2006 - january 2010 | CREATE TABLE table_3895 (
"Model - Computer name" text,
"CPU type" text,
"No. of processors" text,
"Period of operation" text,
"Maximum peak performance ( Teraflops )" text,
"Use" text
) | SELECT "No. of processors" FROM table_3895 WHERE "Period of operation" = 'October 2006 - January 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3301,
41,
96,
24663,
3,
18,
5491,
564,
121,
1499,
6,
96,
254,
10744,
686,
121,
1499,
6,
96,
4168,
5,
13,
7502,
7,
121,
1499,
6,
96,
12988,
23,
32,
26,
13,
2986,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
13,
7502,
7,
121,
21680,
953,
834,
3747,
3301,
549,
17444,
427,
96,
12988,
23,
32,
26,
13,
2986,
121,
3274,
3,
31,
28680,
3581,
3,
18,
1762,
2735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the date the high assists was andre miller (7)? | CREATE TABLE table_27734769_8 (
date VARCHAR,
high_assists VARCHAR
) | SELECT date FROM table_27734769_8 WHERE high_assists = "Andre Miller (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4177,
3951,
834,
927,
41,
833,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
833,
8,
306,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
2555,
4552,
4177,
3951,
834,
927,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
7175,
60,
9429,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hba1c levels between 6 and 9.5 to be enrolled in the study. | CREATE TABLE table_train_191 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"serum_creatinine" float,
"allergy_to_glyburide" bool,
"kidney_disease" bool,
"drug_abuse" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_191 WHERE hemoglobin_a1c_hba1c >= 6 AND hemoglobin_a1c_hba1c <= 9.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2294,
536,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
121,
3,
12660,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2294,
536,
549,
17444,
427,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
2423,
431,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
3,... |
What is the series score of the game with Vancouver as the visiting team on April 16? | CREATE TABLE table_58268 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Series" text
) | SELECT "Series" FROM table_58268 WHERE "Visitor" = 'vancouver' AND "Date" = 'april 16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
357,
3651,
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,
12106,
7,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12106,
7,
121,
21680,
953,
834,
3449,
357,
3651,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
2132,
3422,
624,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
898,
31,
1,
-100,
-100,
-... |
Which ground has a crowd over 41,185? | CREATE TABLE table_name_79 (
ground VARCHAR,
crowd INTEGER
) | SELECT ground FROM table_name_79 WHERE crowd > 41 OFFSET 185 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1591,
584,
4280,
28027,
6,
4374,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1591,
65,
3,
9,
4374,
147,
8798,
6,
21594,
58,
1,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1591,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
4374,
2490,
8798,
3,
15316,
20788,
3,
21594,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6 4, 6 1? | CREATE TABLE table_37606 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Tournament" FROM table_37606 WHERE "Outcome" = 'winner' AND "Surface" = 'clay' AND "Score" = '6–4, 6–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3959,
5176,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
519,
3959,
5176,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
3757,
687,
31,
3430,
96,
134,
450,
4861,
121,
3274,
3,
31,
4651,
63,
31,
3430,
96,
134,
902... |
Who has won $98,860? | CREATE TABLE table_32886 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" text,
"Laps" real,
"Winnings" text
) | SELECT "Driver" FROM table_32886 WHERE "Winnings" = '$98,860' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28070,
3840,
41,
96,
20982,
52,
121,
1499,
6,
96,
6936,
1713,
121,
490,
6,
96,
22638,
121,
1499,
6,
96,
22512,
7,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
28070,
3840,
549,
17444,
427,
96,
518,
10503,
7,
121,
3274,
3,
31,
3229,
3916,
6,
3840,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Nation, when Model is M1895 & M1897 Carbine? | CREATE TABLE table_name_76 (nation VARCHAR, model VARCHAR) | SELECT nation FROM table_name_76 WHERE model = "m1895 & m1897 carbine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
29,
257,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11046,
6,
116,
5154,
19,
283,
2606,
3301,
3,
184,
283,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2982,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
825,
3274,
96,
51,
2606,
3301,
3,
184,
3,
51,
2606,
4327,
443,
12712,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the home team at the game that had a score of 2 2? | CREATE TABLE table_name_96 (
home VARCHAR,
score VARCHAR
) | SELECT home FROM table_name_96 WHERE score = "2 – 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
234,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
44,
8,
467,
24,
141,
3,
9,
2604,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2604,
3274,
96,
357,
3,
104,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the fixed telephone line for 25.6% vehicle | CREATE TABLE table_27324 (
"Region" text,
"Vehicle" text,
"Automatic washing machine" text,
"Refrigerator" text,
"Water heater" text,
"Fixed telephone line" text,
"Mobile phone" text,
"Cable/Sat. TV connection" text
) | SELECT "Fixed telephone line" FROM table_27324 WHERE "Vehicle" = '25.6%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
519,
2266,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
553,
15,
107,
23,
2482,
121,
1499,
6,
96,
16204,
4992,
9834,
1437,
121,
1499,
6,
96,
1649,
89,
3380,
49,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3183,
226,
15,
26,
6596,
689,
121,
21680,
953,
834,
2555,
519,
2266,
549,
17444,
427,
96,
553,
15,
107,
23,
2482,
121,
3274,
3,
31,
1828,
5,
6370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the number of losses that have Ties of 1 and 3 or more poll wins? | CREATE TABLE table_name_49 (losses VARCHAR, ties VARCHAR, poll_wins VARCHAR) | SELECT COUNT(losses) FROM table_name_49 WHERE ties = 1 AND poll_wins > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
2298,
2260,
584,
4280,
28027,
6,
3,
3010,
584,
4280,
28027,
6,
5492,
834,
3757,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
3,
3010,
3274,
209,
3430,
5492,
834,
3757,
7,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date was a GTS class on the Mosport International Raceway? | CREATE TABLE table_name_98 (date VARCHAR, class VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_98 WHERE class = "gts" AND circuit = "mosport international raceway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
5522,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
47,
3,
9,
10188,
134,
853,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
853,
3274,
96,
122,
17,
7,
121,
3430,
4558,
3274,
96,
3972,
1493,
1038,
1964,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many losses did the East Division have who appeared 18 times and lost 8? | CREATE TABLE table_name_19 (
wins INTEGER,
appearances VARCHAR,
division VARCHAR,
losses VARCHAR
) | SELECT MIN(wins) FROM table_name_19 WHERE division = "east" AND losses = 8 AND appearances < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
9204,
3,
21342,
17966,
6,
3179,
7,
584,
4280,
28027,
6,
4889,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
4889,
3274,
96,
11535,
121,
3430,
8467,
3274,
505,
3430,
3179,
7,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the lowest attendance figure at Football Park? | CREATE TABLE table_1161065_28 (
lowest VARCHAR,
venue VARCHAR
) | SELECT lowest FROM table_1161065_28 WHERE venue = "Football Park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
1714,
4122,
834,
2577,
41,
7402,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
11364,
2320,
44,
10929,
1061,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7402,
21680,
953,
834,
20159,
1714,
4122,
834,
2577,
549,
17444,
427,
5669,
3274,
96,
371,
32,
32,
17,
3184,
1061,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which title had 20 episodes and aired on 11 jun- 6 jul? | CREATE TABLE table_11712 (
"Airing date" text,
"English Title (Chinese title)" text,
"Number of episodes" real,
"Theme song (T) Sub-theme song (ST)" text,
"Genre" text,
"Official website" text
) | SELECT "English Title (Chinese title)" FROM table_11712 WHERE "Number of episodes" = '20' AND "Airing date" = '11 jun- 6 jul' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20275,
2122,
41,
96,
20162,
53,
833,
121,
1499,
6,
96,
26749,
11029,
41,
3541,
4477,
15,
2233,
61,
121,
1499,
6,
96,
567,
5937,
49,
13,
13562,
121,
490,
6,
96,
634,
526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26749,
11029,
41,
3541,
4477,
15,
2233,
61,
121,
21680,
953,
834,
20275,
2122,
549,
17444,
427,
96,
567,
5937,
49,
13,
13562,
121,
3274,
3,
31,
1755,
31,
3430,
96,
20162,
53,
833,
121,
3274,
3,
31,
2596,
3,
... |
I want the replaced for date of appointment being 12 october 2007 | CREATE TABLE table_name_73 (replaced_by VARCHAR, date_of_appointment VARCHAR) | SELECT replaced_by FROM table_name_73 WHERE date_of_appointment = "12 october 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
60,
4687,
26,
834,
969,
584,
4280,
28027,
6,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5821,
834,
969,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
833,
834,
858,
834,
9,
102,
2700,
297,
3274,
96,
2122,
3,
32,
75,
235,
1152,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão? | CREATE TABLE table_name_8 (literacy__2003_ VARCHAR, state VARCHAR, hdi__2005_ VARCHAR, gdp_per_capita__us$___2004_ VARCHAR) | SELECT literacy__2003_ FROM table_name_8 WHERE hdi__2005_ < 0.718 AND gdp_per_capita__us$___2004_ < 3877 AND state = "maranhão" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
9842,
4710,
834,
834,
23948,
834,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
6,
3,
107,
26,
23,
834,
834,
22594,
834,
584,
4280,
28027,
6,
3,
122,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18298,
834,
834,
23948,
834,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
3,
107,
26,
23,
834,
834,
22594,
834,
3,
2,
3,
22426,
2606,
3430,
3,
122,
26,
102,
834,
883,
834,
4010,
155,
9,
834,
834,
302,
3229,... |
count the number of patients whose days of hospital stay is greater than 7 and procedure icd9 code is 9703? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "7" AND procedures.icd9_code = "9703" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Wins has an Against of 1940, and a Byes larger than 0? | CREATE TABLE table_name_61 (
wins INTEGER,
against VARCHAR,
byes VARCHAR
) | SELECT MAX(wins) FROM table_name_61 WHERE against = 1940 AND byes > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
9204,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4871,
7,
65,
46,
3,
2074... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
581,
3274,
15830,
3430,
57,
15,
7,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which challenge loser has a Challenge Winner of roseny? | CREATE TABLE table_name_81 (challenge_loser VARCHAR, challenge_winner VARCHAR) | SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = "roseny" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
12654,
40,
35,
397,
834,
2298,
49,
584,
4280,
28027,
6,
1921,
834,
3757,
687,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1921,
2615,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1921,
834,
2298,
49,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1921,
834,
3757,
687,
3274,
96,
1859,
35,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Played has Goals against smaller than 34, and Wins smaller than 13? | CREATE TABLE table_name_51 (
played INTEGER,
goals_against VARCHAR,
wins VARCHAR
) | SELECT SUM(played) FROM table_name_51 WHERE goals_against < 34 AND wins < 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1944,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
2911... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3,
2,
6154,
3430,
9204,
3,
2,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
against which opponent were there the most people in attendance ? | CREATE TABLE table_203_478 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
) | SELECT "opponent" FROM table_203_478 ORDER BY "attendance" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
3940,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
23330,
834,
591,
3940,
4674,
11300,
272,
476,
96,
15116,
663,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which country has a rand of 2 and a silver less than 6? | CREATE TABLE table_33376 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Total") FROM table_33376 WHERE "Rank" = '2' AND "Silver" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23360,
3959,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
23360,
3959,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
357,
31,
3430,
96,
134,
173,
624,
121,
3,
2,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Give me a bar chart for how many grape of each grape | CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases IN... | SELECT Grape, COUNT(Grape) FROM wine GROUP BY Grape | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
465,
3,
21342,
17966,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1334,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5690,
3,
3463,
4,
382,
6,
19,
6968,
188,
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,
29083,
6,
2847,
17161,
599,
4744,
855,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
29083,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the name of the state | CREATE TABLE table_1260 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
) | SELECT "Name" FROM table_1260 WHERE "School/Club Team" = 'State' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3328,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
29364,
87,
254,
11158,
2271,
121,
1499,
6,
96,
134,
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,
23954,
121,
21680,
953,
834,
2122,
3328,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
134,
4748,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How big was the crowd when Geelong was the home team? | CREATE TABLE table_name_96 (crowd VARCHAR, home_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_96 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
75,
3623,
26,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
600,
47,
8,
4374,
116,
961,
15,
2961,
47,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the gender of Congresswoman Jaime Herrera Beutler's baby? | CREATE TABLE table_name_66 (baby_gender VARCHAR, congresswoman VARCHAR) | SELECT baby_gender FROM table_name_66 WHERE congresswoman = "jaime herrera beutler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
12534,
63,
834,
122,
3868,
584,
4280,
28027,
6,
27197,
15893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7285,
13,
4442,
15893,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1871,
834,
122,
3868,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
27197,
15893,
3274,
96,
354,
9595,
160,
52,
1498,
36,
76,
14539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is average days of hospital stay of patients whose ethnicity is hispanic or latino? | 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 AVG(demographic.days_stay) FROM demographic WHERE demographic.ethnicity = "HISPANIC OR LATINO" | [
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,
71,
17217,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
7094,
21215,
18830,
4674,
301,
21580,
7400,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score of the match on May 21, 1984 with Outcome of runner-up? | CREATE TABLE table_name_94 (score VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT score FROM table_name_94 WHERE outcome = "runner-up" AND date = "may 21, 1984" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
7,
9022,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
1588,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
833,
3274,
96,
13726,
12026,
13480,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many points did the Weslake v12 get in 1966? | CREATE TABLE table_name_28 (points INTEGER, engine VARCHAR, year VARCHAR) | SELECT MAX(points) FROM table_name_28 WHERE engine = "weslake v12" AND year < 1966 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2700,
7,
3,
21342,
17966,
6,
1948,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
8,
101,
7,
16948,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1948,
3274,
96,
1123,
7,
16948,
3,
208,
2122,
121,
3430,
215,
3,
2,
20658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the pick # for a center picked before round 6? | CREATE TABLE table_48366 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("Pick #") FROM table_48366 WHERE "Position" = 'center' AND "Round" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
519,
3539,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
1713,
8512,
21680,
953,
834,
3707,
519,
3539,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
13866,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
948,
31,
1,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.