NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which episode title featured a visit to the country of Cuba? | CREATE TABLE table_name_26 (episode_title VARCHAR, countries_visited VARCHAR) | SELECT episode_title FROM table_name_26 WHERE countries_visited = "cuba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
15,
102,
159,
32,
221,
834,
21869,
584,
4280,
28027,
6,
1440,
834,
3466,
23,
1054,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5640,
2233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5640,
834,
21869,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1440,
834,
3466,
23,
1054,
3274,
96,
16377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find Nationality and the average of ID , and group by attribute Nationality, and visualize them by a bar chart, could you sort bars from high to low order? | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text... | SELECT Nationality, AVG(ID) FROM swimmer GROUP BY Nationality ORDER BY Nationality DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
71,
17217,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
868,
485,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the number is 2 what is the lowest amount of al-wedhat wins? | CREATE TABLE table_31370 (
"#" real,
"Tournament" text,
"Al-Faisaly Wins" real,
"Al-Wehdat Wins" real,
"Draws" real,
"Total" real,
"Al-Faisaly Goals" real,
"Al-Wehdat Goals" real
) | SELECT MIN("Al-Wehdat Wins") FROM table_31370 WHERE "#" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
22520,
41,
96,
4663,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
188,
40,
18,
371,
9,
159,
9,
120,
4871,
7,
121,
490,
6,
96,
188,
40,
18,
1326,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
40,
18,
1326,
107,
26,
144,
4871,
7,
8512,
21680,
953,
834,
3341,
22520,
549,
17444,
427,
96,
4663,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who built michael schumacher's car that went under 31 laps? | CREATE TABLE table_name_24 (
constructor VARCHAR,
laps VARCHAR,
driver VARCHAR
) | SELECT constructor FROM table_name_24 WHERE laps < 31 AND driver = "michael schumacher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
6774,
127,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1192,
2278,
9,
15,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
14941,
7,
3,
2,
2664,
3430,
2535,
3274,
96,
51,
362,
9,
15,
40,
3,
7,
8019,
24113,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the release Date of the 7' single in Catalog 87184? | CREATE TABLE table_34439 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
) | SELECT "Date" FROM table_34439 WHERE "Format" = '7" single' AND "Catalog" = '87184' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3628,
3288,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
3628,
3288,
549,
17444,
427,
96,
3809,
3357,
121,
3274,
3,
31,
940,
121,
712,
31,
3430,
96,
18610,
9,
2152,
121,
3274,
3,
31,
4225,
25987,
31,
1,
-100,
-100,
-100,
-100,
... |
What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day? | CREATE TABLE table_166346_1 (
area__km²_ INTEGER,
production___bbl__day_ VARCHAR
) | SELECT MIN(area__km²_) FROM table_166346_1 WHERE production___bbl__day_ = "3,200,000 (12th)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3891,
4448,
834,
536,
41,
616,
834,
834,
5848,
357,
834,
3,
21342,
17966,
6,
999,
834,
834,
834,
115,
115,
40,
834,
834,
1135,
834,
584,
4280,
28027,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
498,
834,
834,
5848,
357,
834,
61,
21680,
953,
834,
2938,
3891,
4448,
834,
536,
549,
17444,
427,
999,
834,
834,
834,
115,
115,
40,
834,
834,
1135,
834,
3274,
96,
6355,
22779,
16465,
189,
61,
121,
1,... |
Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00? | CREATE TABLE table_50613 (
"Athlete" text,
"Time" text,
"Country" text,
"Year" real,
"Place" real
) | SELECT "Athlete" FROM table_50613 WHERE "Place" = '1' AND "Year" < '1988' AND "Country" = 'gre' AND "Time" = '21:57:00' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
4241,
519,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
345,
11706,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
189,
1655,
15,
121,
21680,
953,
834,
1752,
4241,
519,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
536,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
4060,
31,
3430,
96,
10628,
651,
121,
3274,
... |
Which region is identified as 38xa-3 in the catalog? | CREATE TABLE table_name_7 (region VARCHAR, catalog VARCHAR) | SELECT region FROM table_name_7 WHERE catalog = "38xa-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
18145,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1719,
19,
4313,
38,
6654,
226,
9,
3486,
16,
8,
10173,
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,
1719,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
10173,
3274,
96,
3747,
226,
9,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return me the homepage of PVLDB . | CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE domain_keyword (
did int,
kid int
)
CREATE TABLE domain (
did int... | SELECT homepage FROM journal WHERE name = 'PVLDB' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
9838,
3,
4331,
4059,
6,
3,
10812,
16,
17,
6,
3,
13903,
834,
5525,
16,
17,
6,
3,
354,
23,
26,
16,
17,
6,
3,
12417,
16,
17,
6,
2848,
834,
5525,
16,
17,
6,
2233,
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,
22844,
21680,
6378,
549,
17444,
427,
564,
3274,
3,
31,
345,
553,
9815,
279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How much total has a To par of +9? | CREATE TABLE table_name_65 (total VARCHAR, to_par VARCHAR) | SELECT COUNT(total) FROM table_name_65 WHERE to_par = "+9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
235,
1947,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
792,
65,
3,
9,
304,
260,
13,
1768,
1298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is diagnoses long title of diagnoses icd9 code 55221? | 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 diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "55221" | [
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,
18730,
7,
5,
2961,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
447,
26,
1298,
834,
4978,
3274,
96,
3769,
357,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose drug code is neolevo5 and lab test fluid is cerebrospinal fluid (csf)? | 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 (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "NEOLEVO5" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
What is the sum of rounds where freddie mitchell was picked? | CREATE TABLE table_name_41 (round INTEGER, player VARCHAR) | SELECT SUM(round) FROM table_name_41 WHERE player = "freddie mitchell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
7775,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
14419,
213,
3,
89,
1271,
2498,
181,
1033,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1959,
3274,
96,
89,
1271,
2498,
181,
1033,
195,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose diagnoses long title is malignant carcinoid tumor of the rectum and drug type is main? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Malignant carcinoid tumor of the rectum" AND prescriptions.drug_type = "MAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
When 0 is the top 10's what is the highest amount of cuts made? | CREATE TABLE table_26751 (
"Year" real,
"Tournaments played" real,
"Cuts made" real,
"Wins" real,
"2nd" real,
"3rd" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Money list rank" real,
"Scoring average" text,
"Scoring rank" real
) | SELECT MAX("Cuts made") FROM table_26751 WHERE "Top 10s" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3072,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
29,
9,
4128,
1944,
121,
490,
6,
96,
15784,
17,
7,
263,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15784,
17,
7,
263,
8512,
21680,
953,
834,
2688,
3072,
536,
549,
17444,
427,
96,
22481,
335,
7,
121,
3274,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Record, when High Points is "Thaddeus Young (19)", and when Team is "@ Orlando"? | CREATE TABLE table_name_2 (record VARCHAR, high_points VARCHAR, team VARCHAR) | SELECT record FROM table_name_2 WHERE high_points = "thaddeus young (19)" AND team = "@ orlando" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
60,
7621,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11392,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
189,
13039,
15,
302,
1021,
2863,
61,
121,
3430,
372,
3274,
96,
1741,
3,
32,
7721,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the id and detail of the vehicle used in lessons for most of the times? | CREATE TABLE staff (
staff_id number,
staff_address_id number,
nickname text,
first_name text,
middle_name text,
last_name text,
date_of_birth time,
date_joined_staff time,
date_left_staff time
)
CREATE TABLE lessons (
lesson_id number,
customer_id number,
lesson_status_... | SELECT T1.vehicle_id, T1.vehicle_details FROM vehicles AS T1 JOIN lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
871,
834,
23,
26,
381,
6,
871,
834,
9,
26,
12039,
834,
23,
26,
381,
6,
24649,
1499,
6,
166,
834,
4350,
1499,
6,
2214,
834,
4350,
1499,
6,
336,
834,
4350,
1499,
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,
332,
5411,
162,
107,
23,
2482,
834,
23,
26,
6,
332,
5411,
162,
107,
23,
2482,
834,
221,
5756,
7,
21680,
3203,
6157,
332,
536,
3,
15355,
3162,
5182,
6157,
332,
357,
9191,
332,
5411,
162,
107,
23,
2482,
834,
23,
2... |
What pick was Scott Glennie from the Western hockey league | CREATE TABLE table_51284 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"League from" text
) | SELECT "Pick #" FROM table_51284 WHERE "League from" = 'western hockey league' AND "Player" = 'scott glennie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
4608,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
5398,
45,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
1713,
121,
21680,
953,
834,
24163,
4608,
549,
17444,
427,
96,
2796,
9,
5398,
45,
121,
3274,
3,
31,
24411,
16528,
5533,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
7,
10405,
3,
3537,
11113,
31,
1,
-... |
What is the area when the Iga name is Ahoada East? | CREATE TABLE table_28891101_3 (
area__km_2__ INTEGER,
lga_name VARCHAR
) | SELECT MAX(area__km_2__) FROM table_28891101_3 WHERE lga_name = "Ahoada East" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3914,
2596,
4542,
834,
519,
41,
616,
834,
834,
5848,
834,
357,
834,
834,
3,
21342,
17966,
6,
3,
40,
122,
9,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
498,
834,
834,
5848,
834,
357,
834,
834,
61,
21680,
953,
834,
2577,
3914,
2596,
4542,
834,
519,
549,
17444,
427,
3,
40,
122,
9,
834,
4350,
3274,
96,
188,
107,
32,
9,
26,
9,
1932,
121,
1,
-100,
-1... |
What racing team/s had the 92nd position? | CREATE TABLE table_73354 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT "Team(s)" FROM table_73354 WHERE "Position" = '92nd' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
2469,
591,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
8931,
15,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
599,
7,
61,
121,
21680,
953,
834,
4552,
2469,
591,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
4508,
727,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many parties received 29.9% of the vote in Manhattan? | CREATE TABLE table_139 (
"1921" text,
"party" text,
"Manhattan" text,
"The Bronx" text,
"Brooklyn" text,
"Queens" text,
"Richmond [Staten Is.]" text,
"Total" real,
"%" text
) | SELECT COUNT("party") FROM table_139 WHERE "Manhattan" = '29.9%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
41,
96,
2294,
2658,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
7296,
547,
17,
152,
121,
1499,
6,
96,
634,
4027,
29,
226,
121,
1499,
6,
96,
22780,
1825,
120,
29,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
8071,
8512,
21680,
953,
834,
24090,
549,
17444,
427,
96,
7296,
547,
17,
152,
121,
3274,
3,
31,
3166,
5,
7561,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which teams were in the 2006-07 season? | CREATE TABLE table_name_41 (teams VARCHAR, season VARCHAR) | SELECT teams FROM table_name_41 WHERE season = "2006-07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
11650,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2323,
130,
16,
8,
3581,
18,
4560,
774,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2323,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
774,
3274,
96,
21196,
18,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many video games have type Massively multiplayer online game? | CREATE TABLE Video_games (
gtype VARCHAR
) | SELECT COUNT(*) FROM Video_games WHERE gtype = "Massively multiplayer online game" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3953,
834,
7261,
7,
41,
3,
122,
6137,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
671,
1031,
43,
686,
5770,
13830,
29730,
367,
467,
58,
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,
2847,
17161,
599,
1935,
61,
21680,
3953,
834,
7261,
7,
549,
17444,
427,
3,
122,
6137,
3274,
96,
27189,
13830,
29730,
367,
467,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the attendance when the location is veterans stadium, the game is more than 3 and the time is 2:21? | CREATE TABLE table_name_39 (
attendance INTEGER,
time VARCHAR,
location VARCHAR,
game VARCHAR
) | SELECT AVG(attendance) FROM table_name_39 WHERE location = "veterans stadium" AND game > 3 AND time = "2:21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
11364,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1128,
3274,
96,
162,
449,
3247,
14939,
121,
3430,
467,
2490,
220,
3430,
97,
3274,
96,
357,
10,
2658,
121,
1,
-100,
-100,
-100,
-100,... |
What week was the game played at Mile High Stadium? | CREATE TABLE table_name_85 (week VARCHAR, venue VARCHAR) | SELECT week FROM table_name_85 WHERE venue = "mile high stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
8041,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
47,
8,
467,
1944,
44,
11705,
1592,
12750,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
5669,
3274,
96,
8770,
306,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date for the game that had a Location/Attendance of the spectrum? | CREATE TABLE table_65655 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Date" FROM table_65655 WHERE "Location/Attendance" = 'the spectrum' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
4122,
755,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
87,
188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4122,
4122,
755,
549,
17444,
427,
96,
434,
32,
75,
257,
87,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
532,
10113,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who directed the episode with production code 693-004? | CREATE TABLE table_26982362_2 (
directed_by VARCHAR,
production_code VARCHAR
) | SELECT directed_by FROM table_26982362_2 WHERE production_code = "693-004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3916,
2773,
4056,
834,
357,
41,
6640,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
8,
5640,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
2688,
3916,
2773,
4056,
834,
357,
549,
17444,
427,
999,
834,
4978,
3274,
96,
3951,
22773,
6348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many rushing yards are listed when the passing yards are 244? | CREATE TABLE table_28697228_4 (rushing_yards VARCHAR, passing_yards VARCHAR) | SELECT rushing_yards FROM table_28697228_4 WHERE passing_yards = 244 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3951,
5865,
2577,
834,
591,
41,
15842,
834,
6636,
7,
584,
4280,
28027,
6,
5792,
834,
6636,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
15842,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15842,
834,
6636,
7,
21680,
953,
834,
2577,
3951,
5865,
2577,
834,
591,
549,
17444,
427,
5792,
834,
6636,
7,
3274,
997,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the shield animal of knight phil? | CREATE TABLE table_name_57 (shield_animal VARCHAR, knight VARCHAR) | SELECT shield_animal FROM table_name_57 WHERE knight = "phil" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
7,
16219,
26,
834,
13607,
138,
584,
4280,
28027,
6,
29816,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
13128,
2586,
13,
29816,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13128,
834,
13607,
138,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
29816,
3274,
96,
18118,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the year that has the most number of matches. | CREATE TABLE matches (YEAR VARCHAR) | SELECT YEAR FROM matches GROUP BY YEAR ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6407,
41,
476,
19356,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
215,
24,
65,
8,
167,
381,
13,
6407,
5,
1,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30431,
21680,
6407,
350,
4630,
6880,
272,
476,
30431,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, find name and code , and group by attribute founder, and visualize them by a bar chart, display by the total number from high to low please. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
19145,
6,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the sum of department_id bin hire_date by weekday, and visualize them by a bar chart, and could you order in desc by the Y? | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLO... | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(DEPARTMENT_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,... |
which 1 ` st place champion had a record of 2-0 ? | CREATE TABLE table_204_110 (
id number,
"year" number,
"champion" text,
"city" text,
"llws" text,
"record" text
) | SELECT "champion" FROM table_204_110 WHERE "record" = '2-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19277,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
17788,
12364,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
195,
210,
7,
121,
1499,
6,
96,
60,
7621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17788,
12364,
121,
21680,
953,
834,
26363,
834,
19277,
549,
17444,
427,
96,
60,
7621,
121,
3274,
3,
31,
19423,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When river ness is the hr name what is the hr number? | CREATE TABLE table_22642 (
"HR no." text,
"HR name" text,
"CR no." real,
"LMS no." real,
"Built" text,
"Works" text,
"Withdrawn" text
) | SELECT "HR no." FROM table_22642 WHERE "HR name" = 'River Ness' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2688,
4165,
41,
96,
11120,
150,
535,
1499,
6,
96,
11120,
564,
121,
1499,
6,
96,
4545,
150,
535,
490,
6,
96,
11160,
134,
150,
535,
490,
6,
96,
7793,
173,
17,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11120,
150,
535,
21680,
953,
834,
357,
2688,
4165,
549,
17444,
427,
96,
11120,
564,
121,
3274,
3,
31,
448,
23,
624,
1484,
7,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many schools or teams had jalen rose | CREATE TABLE table_10015132_16 (
school_club_team VARCHAR,
player VARCHAR
) | SELECT COUNT(school_club_team) FROM table_10015132_16 WHERE player = "Jalen Rose" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
1808,
23757,
834,
2938,
41,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
2061,
42,
2323,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6646,
834,
13442,
834,
11650,
61,
21680,
953,
834,
2915,
1808,
23757,
834,
2938,
549,
17444,
427,
1959,
3274,
96,
683,
138,
35,
5088,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the average rank when the cyclist is alexandr pliuschin? | CREATE TABLE table_14259 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
) | SELECT AVG("Rank") FROM table_14259 WHERE "Cyclist" = 'alexandr pliuschin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
3390,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
254,
63,
75,
3350,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
20119,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
24978,
3390,
549,
17444,
427,
96,
254,
63,
75,
3350,
121,
3274,
3,
31,
138,
994,
232,
52,
3,
5900,
14220,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of bronzes with totals under 4 and ranks of 10? | CREATE TABLE table_name_43 (
bronze VARCHAR,
total VARCHAR,
rank VARCHAR
) | SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND rank = "10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
13467,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
792,
3,
2,
314,
3430,
11003,
3274,
96,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At what Platform is the Departure 18:00? | CREATE TABLE table_5089 (
"Station Code" text,
"Station Name" text,
"Arrival" text,
"Departure" text,
"Platform" text
) | SELECT "Platform" FROM table_5089 WHERE "Departure" = '18:00' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3914,
41,
96,
134,
6821,
3636,
121,
1499,
6,
96,
134,
6821,
5570,
121,
1499,
6,
96,
188,
52,
25295,
121,
1499,
6,
96,
2962,
2274,
1462,
121,
1499,
6,
96,
10146,
203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10146,
2032,
121,
21680,
953,
834,
1752,
3914,
549,
17444,
427,
96,
2962,
2274,
1462,
121,
3274,
3,
31,
536,
15692,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the sum of salary bin hire_date by weekday in a bar chart, display total number of salary in ascending order. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
145... |
what is the part number(s) when l2 cache is 512 kb, release date is june 2001 and sSpec number is sl5lv, sl5pu, sl6bw, sl6jm? | CREATE TABLE table_name_71 (part_number_s_ VARCHAR, sspec_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR) | SELECT part_number_s_ FROM table_name_71 WHERE l2_cache = "512 kb" AND release_date = "june 2001" AND sspec_number = "sl5lv, sl5pu, sl6bw, sl6jm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
2274,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
3,
7,
7576,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
40,
357,
834,
75,
4933,
584,
4280,
2802... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
294,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
3,
40,
357,
834,
75,
4933,
3274,
96,
24163,
3,
157,
115,
121,
3430,
1576,
834,
5522,
3274,
96,
6959,
15,
4402,
121,
3430,
3,
... |
WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R? | CREATE TABLE table_name_67 (Id VARCHAR) | SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "3r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
2722,
11951,
4101,
8043,
71,
3430,
357,
3,
1206,
927,
8043,
220,
448,
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,
2722,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
4101,
3274,
96,
9,
121,
3430,
2628,
3274,
96,
519,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Spoofed title had Mort Drucker as the artist in issue 88? | CREATE TABLE table_name_97 (spoofed_title VARCHAR, artist VARCHAR, issue VARCHAR) | SELECT spoofed_title FROM table_name_97 WHERE artist = "mort drucker" AND issue = 88 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
7,
18450,
19565,
834,
21869,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
6,
962,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
8927,
32,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
7,
18450,
19565,
834,
21869,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
2377,
3274,
96,
2528,
17,
3,
7355,
49,
121,
3430,
962,
3274,
3,
4060,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the right ascension (J2000) with a Declination (J2000) of 12 43 , is a constellation of dorado, and has an NGC number larger than 2068? | CREATE TABLE table_name_55 (
right_ascension___j2000__ VARCHAR,
declination___j2000__ VARCHAR,
ngc_number VARCHAR,
constellation VARCHAR
) | SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = "dorado" AND declination___j2000__ = "°12′43″" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
269,
834,
9,
7,
75,
35,
1938,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
6,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
584,
428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
269,
834,
9,
7,
75,
35,
1938,
834,
834,
834,
354,
13527,
834,
834,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
3,
1725,
75,
834,
5525,
1152,
2490,
460,
3651,
3430,
30872,
3274,
96,
26,
32,
19042,
121,
3430,... |
I want the lowest Grid for David Coulthard | CREATE TABLE table_name_85 (
grid INTEGER,
driver VARCHAR
) | SELECT MIN(grid) FROM table_name_85 WHERE driver = "david coulthard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
8634,
3,
21342,
17966,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
7402,
23644,
21,
1955,
638,
83,
17,
5651,
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,
3,
17684,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2535,
3274,
96,
26,
9,
6961,
576,
83,
17,
5651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of votes for the green party? | CREATE TABLE table_6693 (
"Party" text,
"Votes (Gib.)" real,
"Votes (SW Eng)" real,
"% (Gib.)" real,
"% (SW Eng)" real,
"Change (SW Eng)" real,
"Seats" real
) | SELECT SUM("Votes (Gib.)") FROM table_6693 WHERE "Party" = 'green' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4271,
41,
96,
13725,
63,
121,
1499,
6,
96,
553,
32,
1422,
41,
517,
23,
115,
5,
61,
121,
490,
6,
96,
553,
32,
1422,
41,
17838,
19650,
61,
121,
490,
6,
96,
1454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
553,
32,
1422,
41,
517,
23,
115,
5,
61,
8512,
21680,
953,
834,
3539,
4271,
549,
17444,
427,
96,
13725,
63,
121,
3274,
3,
31,
9423,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent when Raphael was 4-0? | CREATE TABLE table_32917 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Opponent" FROM table_32917 WHERE "Record" = '4-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3166,
2517,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
448,
32,
1106,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
519,
3166,
2517,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
26814,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
tell me the name of the specimen test that patient 031-3507 had last received? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3507')) ORDER BY microlab.culturetakentime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2179,
9339,
5,
10547,
3585,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
tell me the number of patients who had bicarbonate lab test and were hospitalized for more than 15 days. | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Bicarbonate" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many goals were achieved when Chievo was the club and the debut year was before 2002? | CREATE TABLE table_name_71 (goals VARCHAR, current_club VARCHAR, debut_year VARCHAR) | SELECT COUNT(goals) FROM table_name_71 WHERE current_club = "chievo" AND debut_year < 2002 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
839,
5405,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
6,
5695,
834,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
750,
834,
13442,
3274,
96,
9781,
1621,
121,
3430,
5695,
834,
1201,
3,
2,
4407,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which college has 41 picks? | CREATE TABLE table_name_86 (college VARCHAR, pick__number VARCHAR) | SELECT college FROM table_name_86 WHERE pick__number = 41 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3297,
7883,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1900,
65,
8798,
1432,
7,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1900,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
8798,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Gaelic name for an area less than 127 in Kintyre? | CREATE TABLE table_name_63 (gaelic_name VARCHAR, area___ha__ VARCHAR, location VARCHAR) | SELECT gaelic_name FROM table_name_63 WHERE area___ha__ < 127 AND location = "kintyre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
122,
9,
15,
2176,
834,
4350,
584,
4280,
28027,
6,
616,
834,
834,
834,
1024,
834,
834,
584,
4280,
28027,
6,
1128,
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,
7922,
15,
2176,
834,
4350,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
616,
834,
834,
834,
1024,
834,
834,
3,
2,
3,
22367,
3430,
1128,
3274,
96,
2917,
17,
63,
60,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the rank by average for the team who averaged 22.8? | CREATE TABLE table_25391981_3 (rank_by_average INTEGER, average VARCHAR) | SELECT MIN(rank_by_average) FROM table_25391981_3 WHERE average = "22.8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3288,
2294,
4959,
834,
519,
41,
6254,
834,
969,
834,
28951,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
57,
1348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
834,
969,
834,
28951,
61,
21680,
953,
834,
1828,
3288,
2294,
4959,
834,
519,
549,
17444,
427,
1348,
3274,
96,
357,
19419,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Calculate the minimum age of widowed patients who are 44 years or older. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.age >= "44" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
518,
4309,
15251,
2326,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
3628,
121,
1,
-100,
-100,
-100... |
Name the label with catalog of mhcl-20005 | CREATE TABLE table_name_88 (label VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_88 WHERE catalog = "mhcl-20005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
40,
10333,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3783,
28,
10173,
13,
3,
51,
107,
75,
40,
18,
3632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3783,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
10173,
3274,
96,
51,
107,
75,
40,
18,
13527,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which event only lasted for 3 rounds against Fernando Terere? | CREATE TABLE table_71519 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Event" FROM table_71519 WHERE "Round" = '3' AND "Opponent" = 'fernando terere' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1808,
2294,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
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,
427,
2169,
121,
21680,
953,
834,
940,
1808,
2294,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
519,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
8377,
232,
32,
3,
449,
49,
15,
31,
1,
-100,
-100... |
Name the number of song for julia bermejo | CREATE TABLE table_19763199_5 (song VARCHAR, artist VARCHAR) | SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Julia Bermejo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3891,
19479,
834,
755,
41,
7,
2444,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
2324,
21,
3,
354,
83,
23,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
2444,
61,
21680,
953,
834,
27181,
3891,
19479,
834,
755,
549,
17444,
427,
2377,
3274,
96,
683,
83,
23,
9,
5653,
526,
1927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What score has detroit as the home, and December 9 as the date? | CREATE TABLE table_name_78 (score VARCHAR, home VARCHAR, date VARCHAR) | SELECT score FROM table_name_78 WHERE home = "detroit" AND date = "december 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
7,
9022,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
65,
3,
26,
15252,
155,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
234,
3274,
96,
26,
15252,
155,
121,
3430,
833,
3274,
96,
221,
75,
18247,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients with private health insurance admitted before 2167. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admityear < "2167" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
29441,
3274,
96,
7855,
208,
342,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
2,
96,
2658,
3708,
121... |
Which Drawn has a Played of 20, and a Club of rhigos rfc? | CREATE TABLE table_name_78 (
drawn VARCHAR,
played VARCHAR,
club VARCHAR
) | SELECT drawn FROM table_name_78 WHERE played = "20" AND club = "rhigos rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
6796,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19183,
29,
65,
3,
9,
2911,
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,
0... | [
3,
23143,
14196,
6796,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
1944,
3274,
96,
1755,
121,
3430,
1886,
3274,
96,
52,
107,
23,
839,
7,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which town has the most people in their 2011 population ? | CREATE TABLE table_204_43 (
id number,
"name" text,
"rural\nmunicipality (rm)" text,
"population\n(2011)" number,
"population\n(2006)" number,
"change\n(%)" number,
"land\narea\n(km2)" number,
"population\ndensity\n(per km2)" number
) | SELECT "name" FROM table_204_43 ORDER BY "population\n(2011)" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4906,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
52,
9709,
2,
29,
11760,
3389,
10355,
41,
52,
51,
61,
121,
1499,
6,
96,
9791,
7830,
2,
29,
599,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
4906,
4674,
11300,
272,
476,
96,
9791,
7830,
2,
29,
599,
13907,
61,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the characters and durations for each actor. | CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
) | SELECT character, duration FROM actor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4183,
41,
4183,
834,
23,
26,
381,
6,
564,
1499,
6,
215,
381,
6,
2760,
1499,
6,
3295,
1499,
6,
21077,
1499,
6,
741,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1848,
6,
8659,
21680,
7556,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the date with a home team of melbourne | CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_74 WHERE home_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5522,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
28,
3,
9,
234,
372,
13,
3,
2341,
26255,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
234,
834,
11650,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most pick number for cfl team being edmonton eskimos | CREATE TABLE table_16575609_4 (
pick__number INTEGER,
cfl_team VARCHAR
) | SELECT MAX(pick__number) FROM table_16575609_4 WHERE cfl_team = "Edmonton Eskimos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3436,
4834,
4198,
834,
591,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
557... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2938,
3436,
4834,
4198,
834,
591,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
427,
26,
4662,
106,
262,
4009,
3972,
121,
1,
-100,
-100,
-100... |
In what district was the incumbent Cordell hull? | CREATE TABLE table_1342370_41 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1342370_41 WHERE incumbent = "Cordell Hull" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
2518,
834,
4853,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
3939,
47,
8,
28406,
18217,
3820,
3,
22699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2773,
2518,
834,
4853,
549,
17444,
427,
28406,
3274,
96,
13026,
221,
195,
3455,
195,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the authors of the episode first broadcast on August 10, 2012? | CREATE TABLE table_28081876_6 (
written_by VARCHAR,
original_air_date VARCHAR
) | SELECT written_by FROM table_28081876_6 WHERE original_air_date = "August 10, 2012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4018,
2606,
3959,
834,
948,
41,
1545,
834,
969,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2577,
4018,
2606,
3959,
834,
948,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
26579,
10372,
1673,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show me about the distribution of All_Games and ACC_Percent in a bar chart, and list from low to high by the total number please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Games, ACC_Percent FROM basketball_match ORDER BY ACC_Percent | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
23055,
7,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
3,
14775,
834,
12988,
3728,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the score for game 5? | CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_82 WHERE game = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
7,
9022,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
467,
305,
58,
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,
2604,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
467,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What driver had the highest grid position with a time of +0.283? | CREATE TABLE table_name_90 (
grid INTEGER,
time VARCHAR
) | SELECT MAX(grid) FROM table_name_90 WHERE time = "+0.283" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
8634,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
141,
8,
2030,
8634,
1102,
28,
3,
9,
97,
13,
1768,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
97,
3274,
96,
1220,
18189,
4591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the Opponents when Laura DuPont had Pam Shriver as Partner with a Score of 6-3, 6-3? | CREATE TABLE table_name_10 (
opponents VARCHAR,
partner VARCHAR,
score VARCHAR
) | SELECT opponents FROM table_name_10 WHERE partner = "pam shriver" AND score = "6-3, 6-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
16383,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4495,
9977,
7,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
16383,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2397,
3274,
96,
102,
265,
3,
31763,
624,
121,
3430,
2604,
3274,
96,
24262,
6,
3,
24262,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is every entry for assists if the player is Lynn Pride? | CREATE TABLE table_27582 (
"Player" text,
"Games Played" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) | SELECT "Assists" FROM table_27582 WHERE "Player" = 'Lynn Pride' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
4613,
41,
96,
15800,
49,
121,
1499,
6,
96,
23055,
7,
2911,
15,
26,
121,
490,
6,
96,
1649,
6115,
7,
121,
490,
6,
96,
188,
7,
7,
343,
7,
121,
490,
6,
96,
14337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
7,
7,
343,
7,
121,
21680,
953,
834,
25988,
4613,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
434,
63,
29,
29,
24252,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Goals conceded has Points of 6 and Draws larger than 0? | CREATE TABLE table_name_10 (
goals_conceded INTEGER,
points VARCHAR,
draws VARCHAR
) | SELECT MAX(goals_conceded) FROM table_name_10 WHERE points = 6 AND draws > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
1766,
834,
11620,
221,
26,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17916,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
834,
11620,
221,
26,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
979,
3274,
431,
3430,
14924,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Event number 38m was held on which date? | CREATE TABLE table_24729 (
"Date" text,
"Event #" text,
"Event" text,
"Winner" text,
"Prize" text,
"Entries" text,
"Prize Pool" text,
"Elapsed Time" text
) | SELECT "Date" FROM table_24729 WHERE "Event #" = '38M' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
3166,
41,
96,
308,
342,
121,
1499,
6,
96,
427,
2169,
1713,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
7855,
776,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
357,
4177,
3166,
549,
17444,
427,
96,
427,
2169,
1713,
121,
3274,
3,
31,
3747,
329,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which of the R. Epp, has Ed Zacharias from Rollen, Jerolt, Golt? | CREATE TABLE table_name_97 (r_epp VARCHAR, ed_zacharias VARCHAR) | SELECT r_epp FROM table_name_97 WHERE ed_zacharias = "rollen, jerolt, golt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
52,
834,
15,
1572,
584,
4280,
28027,
6,
3,
15,
26,
834,
172,
1836,
6286,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
391,
5,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
52,
834,
15,
1572,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
3,
15,
26,
834,
172,
1836,
6286,
7,
3274,
96,
4046,
35,
6,
528,
3491,
17,
6,
3,
7579,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the 2010 population of frankfort which has a rank smaller than 14? | CREATE TABLE table_77294 (
"Rank" real,
"City" text,
"2010 Pop" real,
"2000 Pop" real,
"\u0394 Current Pop" real
) | SELECT AVG("2010 Pop") FROM table_77294 WHERE "City" = 'frankfort' AND "Rank" < '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
357,
4240,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
14926,
5777,
121,
490,
6,
96,
13527,
5777,
121,
490,
6,
96,
2,
76,
4928,
4240,
12892,
5777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
14926,
5777,
8512,
21680,
953,
834,
4013,
357,
4240,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
89,
6254,
1161,
17,
31,
3430,
96,
22557,
121,
3,
2,
3,
31,
2534,
31,
1,
-100,
-100,
-100... |
What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games? | CREATE TABLE table_name_3 (
lost INTEGER,
points_difference VARCHAR,
games VARCHAR
) | SELECT MIN(lost) FROM table_name_3 WHERE points_difference = "40 - 17" AND games > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
1513,
3,
21342,
17966,
6,
979,
834,
26,
99,
11788,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
17,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
979,
834,
26,
99,
11788,
3274,
96,
2445,
3,
18,
1003,
121,
3430,
1031,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Count the number of documents. | CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE documents (
docum... | SELECT COUNT(*) FROM documents | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6643,
41,
2493,
834,
23,
26,
381,
6,
2493,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
516,
834,
23,
26,
381,
6,
516,
834,
221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2691,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
bmi 25 to 35 inclusive | CREATE TABLE table_train_234 (
"id" int,
"orthostatic_hypotension" bool,
"systolic_blood_pressure_sbp" int,
"estimated_glomerular_filtration_rate_egfr" int,
"postural_fall_of_dbp" int,
"diastolic_blood_pressure_dbp" int,
"postural_fall_of_sbp" int,
"allergy_to_sglt_2_inhibitors" bool,
... | SELECT * FROM table_train_234 WHERE body_mass_index_bmi >= 25 AND body_mass_index_bmi <= 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3710,
41,
96,
23,
26,
121,
16,
17,
6,
96,
127,
189,
32,
15165,
834,
13397,
32,
13177,
121,
3,
12840,
40,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
357,
3710,
549,
17444,
427,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
2490,
2423,
944,
3430,
643,
834,
2754,
7,
834,
18288,
834,
115,
51,
23,
3,
2,
2423,
3097,
1,
-100,
-... |
For the event with index f7, what is the status? | CREATE TABLE table_name_23 (status VARCHAR, index VARCHAR) | SELECT status FROM table_name_23 WHERE index = "f7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
8547,
302,
584,
4280,
28027,
6,
5538,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
605,
28,
5538,
3,
89,
940,
6,
125,
19,
8,
2637,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
5538,
3274,
96,
89,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which score has a competition of 1997 dunhill cup malaysia and february 23, 1997 as the date? | CREATE TABLE table_name_92 (
score VARCHAR,
competition VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_92 WHERE competition = "1997 dunhill cup malaysia" AND date = "february 23, 1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
2604,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2604,
65,
3,
9,
2259,
13,
6622... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
2259,
3274,
96,
2294,
4327,
146,
29,
6321,
4119,
954,
20244,
23,
9,
121,
3430,
833,
3274,
96,
89,
15,
9052,
1208,
12992,
6622,
121,
1,
-100,
-100,
-100,
-100,... |
What was the date for the game after week 16? | CREATE TABLE table_name_74 (date VARCHAR, week INTEGER) | SELECT date FROM table_name_74 WHERE week > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5522,
584,
4280,
28027,
6,
471,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
21,
8,
467,
227,
471,
898,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
471,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for how many storms occured in each region?, I want to rank the total number from low to high order. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE region (
Region_id int,
Region_code text,
R... | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
41,
16133,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7678,
7,
834,
6645,
1499,
6,
5370,
834,
9993,
16,
17,
6,
26135,
834,
17030,
7,
834,
23492,
490,
6,
7720,
834,
2962,
9,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6163,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1719,
6157,
332,
536,
3,
15355,
3162,
4161,
834,
18145,
6157,
332,
357,
9191,
332,
5411,
17748,
23,
106,
834,
23,
26,
3274,
332,
4416,
17748,
23,
106,
834,
23,
... |
Where did North Melbourne play as the home team? | CREATE TABLE table_name_25 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_25 WHERE home_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
15098,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
1117,
9396,
577,
38,
8,
234,
372,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
234,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which episode 4 has a Star of anna powierza? | CREATE TABLE table_77047 (
"Star" text,
"Episode 2" real,
"Episode 3" text,
"Episode 4" text,
"Episode 5" text,
"Episode 6" text,
"Episode 7" text,
"Episode 8" text
) | SELECT "Episode 4" FROM table_77047 WHERE "Star" = 'anna powierza' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
4177,
41,
96,
7681,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
204,
121,
490,
6,
96,
427,
102,
159,
32,
221,
220,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
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,
427,
102,
159,
32,
221,
3,
20364,
21680,
953,
834,
26920,
4177,
549,
17444,
427,
96,
7681,
121,
3274,
3,
31,
10878,
1977,
210,
972,
1629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total attendance when Stourbridge is the home team? | CREATE TABLE table_name_25 (attendance VARCHAR, home_team VARCHAR) | SELECT COUNT(attendance) FROM table_name_25 WHERE home_team = "stourbridge" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
15116,
663,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
11364,
116,
472,
1211,
9818,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
17,
1211,
9818,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the University of Southern California's highest Round? | CREATE TABLE table_name_92 (round INTEGER, school VARCHAR) | SELECT MAX(round) FROM table_name_92 WHERE school = "university of southern california" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
7775,
3,
21342,
17966,
6,
496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
636,
13,
5193,
1826,
31,
7,
2030,
9609,
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,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
496,
3274,
96,
7846,
485,
13,
7518,
3,
15534,
1161,
29,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the capital of Uasin Gishu county? | CREATE TABLE table_20664 (
"Code" real,
"County" text,
"Former Province" text,
"Area (km 2 )" text,
"Population Census 2009" real,
"Capital" text
) | SELECT "Capital" FROM table_20664 WHERE "County" = 'Uasin Gishu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
4389,
41,
96,
22737,
121,
490,
6,
96,
10628,
63,
121,
1499,
6,
96,
3809,
935,
19573,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
1499,
6,
96,
27773,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19566,
9538,
121,
21680,
953,
834,
24643,
4389,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
1265,
9,
7,
77,
3156,
14279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was appointed on October 24, 1997? | CREATE TABLE table_name_63 (name VARCHAR, appointment VARCHAR) | SELECT name FROM table_name_63 WHERE appointment = "october 24, 1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
4350,
584,
4280,
28027,
6,
4141,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
7817,
30,
1797,
14320,
6622,
58,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
4141,
3274,
96,
32,
75,
235,
1152,
14320,
6622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Year, when Name is 'Dong Shihou, 29 ( )'? | CREATE TABLE table_61094 (
"Name" text,
"Date" text,
"Year" real,
"Location" text,
"Killed" text,
"Injured" text
) | SELECT "Year" FROM table_61094 WHERE "Name" = 'dong shihou, 29 (董世侯)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
4240,
41,
96,
23954,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
439,
173,
1361,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
27097,
4240,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
26,
2444,
3,
5605,
9492,
6,
2838,
41,
2,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was Holly Scouler's total votes | CREATE TABLE table_79370 (
"Members" text,
"Teammate" text,
"Couples Team" text,
"Status" text,
"Total Votes" text
) | SELECT "Total Votes" FROM table_79370 WHERE "Members" = 'holly scouler' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
22520,
41,
96,
329,
18247,
7,
121,
1499,
6,
96,
18699,
5058,
121,
1499,
6,
96,
3881,
413,
965,
2271,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
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,
96,
3696,
1947,
3152,
1422,
121,
21680,
953,
834,
4440,
22520,
549,
17444,
427,
96,
329,
18247,
7,
121,
3274,
3,
31,
2831,
120,
3,
3523,
83,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where was the tournament that happened in 1987 on a clay surface? | CREATE TABLE table_name_18 (tournament VARCHAR, date VARCHAR, surface VARCHAR) | SELECT tournament FROM table_name_18 WHERE date = 1987 AND surface = "clay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
5892,
24,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
833,
3274,
12701,
3430,
1774,
3274,
96,
4651,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Win % in the Span of 2011 2013 with a Lost of less than 1? | CREATE TABLE table_name_91 (
win__percentage INTEGER,
span VARCHAR,
lost VARCHAR
) | SELECT AVG(win__percentage) FROM table_name_91 WHERE span = "2011–2013" AND lost < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
1369,
834,
834,
883,
3728,
545,
3,
21342,
17966,
6,
8438,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
3757,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
8438,
3274,
96,
13907,
104,
11138,
121,
3430,
1513,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which race has D. Beadman for the jockey and a 4th place result? | CREATE TABLE table_name_27 (race VARCHAR, jockey VARCHAR, result VARCHAR) | SELECT race FROM table_name_27 WHERE jockey = "d. beadman" AND result = "4th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
12614,
584,
4280,
28027,
6,
8624,
4397,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1964,
65,
309,
5,
493,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1964,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
8624,
4397,
3274,
96,
26,
5,
36,
9,
26,
348,
121,
3430,
741,
3274,
96,
591,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dick Simon Racing team? | CREATE TABLE table_32425 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text
) | SELECT "Chassis" FROM table_32425 WHERE "Engine" = 'cosworth' AND "Drivers" = 'scott pruett' AND "Team" = 'dick simon racing' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2266,
1828,
41,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
2060,
7,
121,
1499,
6,
96,
20982,
52,
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,
3541,
6500,
7,
121,
21680,
953,
834,
519,
2266,
1828,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
509,
7,
7048,
31,
3430,
96,
20982,
52,
7,
121,
3274,
3,
31,
7,
10405,
3,
12129,
15,
17,
17,
31,
3430,
96,... |
Name the least episode number for anne brooksbank and vicki madden | CREATE TABLE table_25764073_3 (
episode__number INTEGER,
writer_s_ VARCHAR
) | SELECT MIN(episode__number) FROM table_25764073_3 WHERE writer_s_ = "Anne Brooksbank and Vicki Madden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3959,
2445,
4552,
834,
519,
41,
5640,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
4346,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15,
102,
159,
32,
221,
834,
834,
5525,
1152,
61,
21680,
953,
834,
1828,
3959,
2445,
4552,
834,
519,
549,
17444,
427,
4346,
834,
7,
834,
3274,
96,
17608,
15,
9083,
7,
4739,
11,
12060,
2168,
5428,
537... |
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2? | CREATE TABLE table_68108 (
"Year" text,
"Team" text,
"TTkl" real,
"Solo" real,
"Sacks" real,
"Pass Def" real
) | SELECT AVG("Pass Def") FROM table_68108 WHERE "Team" = 'green bay packers' AND "Solo" = '62' AND "Sacks" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
16169,
41,
96,
476,
2741,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
9697,
157,
40,
121,
490,
6,
96,
5231,
40,
32,
121,
490,
6,
96,
134,
4365,
7,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
20192,
3,
16196,
8512,
21680,
953,
834,
3651,
16169,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
9423,
10210,
4153,
277,
31,
3430,
96,
5231,
40,
32,
121,
3274,
3,
31,
4056,
31,
3430,
96,
134... |
What is the IATA OF Akureyri? | CREATE TABLE table_name_30 (
iata VARCHAR,
city VARCHAR
) | SELECT iata FROM table_name_30 WHERE city = "akureyri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
3,
17221,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27,
19282,
3347,
4823,
1462,
63,
52,
23,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17221,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
690,
3274,
96,
16296,
60,
63,
52,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for the home team who plays their matches at the mcg venue? | CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_4 WHERE venue = "mcg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
234,
372,
113,
4805,
70,
6407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5669,
3274,
96,
51,
75,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is discharge location and discharge time of subject id 29961? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.discharge_location, demographic.dischtime FROM demographic WHERE demographic.subject_id = "29961" | [
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,
14798,
5,
26,
159,
7993,
834,
14836,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
357,
3264,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which company name has a 2008 rank of n/a? | CREATE TABLE table_26300 (
"Rank" real,
"Company Name" text,
"2008 Rank" text,
"2009 Revenue" text,
"North American Brands" text,
"World Headquarters" text,
"Country" text
) | SELECT COUNT("Company Name") FROM table_26300 WHERE "2008 Rank" = 'N/A' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
5426,
41,
96,
22557,
121,
490,
6,
96,
5890,
2837,
63,
5570,
121,
1499,
6,
96,
16128,
3,
22557,
121,
1499,
6,
96,
16660,
19764,
121,
1499,
6,
96,
22969,
797,
4688,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
5890,
2837,
63,
5570,
8512,
21680,
953,
834,
2688,
5426,
549,
17444,
427,
96,
16128,
3,
22557,
121,
3274,
3,
31,
567,
87,
188,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average rank of the city of el paso, which has a population greater than 672,538? | CREATE TABLE table_59523 (
"Rank" real,
"City" text,
"State" text,
"Population" real,
"Metro Population of 4 aspects" real
) | SELECT AVG("Rank") FROM table_59523 WHERE "City" = 'el paso' AND "Population" > '672,538' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3301,
2773,
41,
96,
22557,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
329,
15252,
29659,
13,
314,
3149,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
755,
3301,
2773,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
15,
40,
330,
32,
31,
3430,
96,
27773,
7830,
121,
2490,
3,
31,
3708,
4482,
755,
3747,
31,
1,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.