NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who is the opponent in the final of the match on 26 March 2006? | CREATE TABLE table_36978 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Opponent in the final" FROM table_36978 WHERE "Date" = '26 march 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
21441,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
16,
8,
804,
121,
21680,
953,
834,
3420,
21441,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2688,
10556,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record at the game on November 13, 1932? | CREATE TABLE table_name_38 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_38 WHERE date = "november 13, 1932" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
44,
8,
467,
30,
1671,
10670,
957,
2668,
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,
1368,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
10670,
957,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What current conference is Post University a member of? | CREATE TABLE table_584 (
"Institution" text,
"Location" text,
"Nickname" text,
"Current Conference" text,
"Classification" text
) | SELECT "Current Conference" FROM table_584 WHERE "Institution" = 'Post University' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
591,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
254,
450,
5320,
4379,
121,
1499,
6,
96,
21486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
450,
5320,
4379,
121,
21680,
953,
834,
3449,
591,
549,
17444,
427,
96,
1570,
17448,
121,
3274,
3,
31,
22507,
636,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many times does the call sign XEZV appear? | CREATE TABLE table_14670060_1 (transmitting_from VARCHAR, call_sign VARCHAR) | SELECT COUNT(transmitting_from) FROM table_14670060_1 WHERE call_sign = "XEZV" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
9295,
3328,
834,
536,
41,
7031,
1538,
1222,
834,
7152,
584,
4280,
28027,
6,
580,
834,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
405,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7031,
1538,
1222,
834,
7152,
61,
21680,
953,
834,
24300,
9295,
3328,
834,
536,
549,
17444,
427,
580,
834,
6732,
3274,
96,
4,
16613,
553,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many male patients use the drug named protamine sulfate? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.drug = "Protamine Sulfate" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What name is associated with League 142? | CREATE TABLE table_19731 (
"Name" text,
"Years" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Europe" real,
"Other a" real,
"Total" text
) | SELECT "Name" FROM table_19731 WHERE "League" = '142' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3341,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
2796,
9,
5398,
3802,
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,
23954,
121,
21680,
953,
834,
27181,
3341,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3274,
3,
31,
24978,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the overall record for the Pandas in the 2003-04 season? | CREATE TABLE table_29287 (
"Season" text,
"Coach" text,
"Conf. Record" text,
"Overall" text,
"Standings" text,
"Postseason" text
) | SELECT "Overall" FROM table_29287 WHERE "Season" = '2003-04' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
357,
4225,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
3881,
1836,
121,
1499,
6,
96,
4302,
89,
5,
11392,
121,
1499,
6,
96,
23847,
1748,
121,
1499,
6,
96,
134,
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,
96,
23847,
1748,
121,
21680,
953,
834,
3166,
357,
4225,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
23948,
18083,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which team has the high points of Raymond Felton (26)? | CREATE TABLE table_57669 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_57669 WHERE "High points" = 'raymond felton (26)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3959,
3951,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
755,
3959,
3951,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
2866,
6764,
1800,
106,
4743,
10938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the least number of field goals scored by a player? | CREATE TABLE table_25711913_14 (field_goals__4_points_ INTEGER) | SELECT MIN(field_goals__4_points_) FROM table_25711913_14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4450,
2294,
2368,
834,
2534,
41,
1846,
834,
839,
5405,
834,
834,
591,
834,
2700,
7,
834,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
381,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1846,
834,
839,
5405,
834,
834,
591,
834,
2700,
7,
834,
61,
21680,
953,
834,
1828,
4450,
2294,
2368,
834,
2534,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the county with an elevation of 1262? | CREATE TABLE table_12280396_1 (
county VARCHAR,
elevation__m_ VARCHAR
) | SELECT county FROM table_12280396_1 WHERE elevation__m_ = 1262 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
17518,
519,
4314,
834,
536,
41,
5435,
584,
4280,
28027,
6,
16417,
834,
834,
51,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5435,
28,
46,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
2122,
17518,
519,
4314,
834,
536,
549,
17444,
427,
16417,
834,
834,
51,
834,
3274,
586,
4056,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the number of companies in each headquarter with a bar chart, and list by the Headquarters from high to low. | CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
) | SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters ORDER BY Headquarters DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
1958,
834,
4309,
16,
17,
6,
3,
22557,
16,
17,
6,
1958,
1499,
6,
31282,
1499,
6,
5140,
834,
1570,
8655,
8224,
1499,
6,
7107,
834,
115,
14916,
490,
6,
14717,
7,
834,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
31282,
6,
2847,
17161,
599,
3845,
9,
26,
19973,
7,
61,
21680,
349,
350,
4630,
6880,
272,
476,
31282,
4674,
11300,
272,
476,
31282,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What pick was J.D. Hill? | CREATE TABLE table_name_52 (pick INTEGER, player VARCHAR) | SELECT MIN(pick) FROM table_name_52 WHERE player = "j.d. hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
17967,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1432,
47,
446,
5,
308,
5,
3588,
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,
3,
17684,
599,
17967,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1959,
3274,
96,
354,
5,
26,
5,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the smallest crowd to see the away team score 10.7 (67)? | CREATE TABLE table_74718 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_74718 WHERE "Away team score" = '10.7 (67)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4177,
2606,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
3623,
26,
8512,
21680,
953,
834,
940,
4177,
2606,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
10415,
940,
41,
3708,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose drug name is fluoxetine hcl? | 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 text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Fluoxetine HCl" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what is the tournament when the performance in 2012 is 3r and 2011 is qf? | CREATE TABLE table_name_77 (
tournament VARCHAR
) | SELECT tournament FROM table_name_77 WHERE 2012 = "3r" AND 2011 = "qf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
5892,
116,
8,
821,
16,
1673,
19,
220,
52,
11,
2722,
19,
3,
1824,
89,
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,
5892,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1673,
3274,
96,
519,
52,
121,
3430,
2722,
3274,
96,
1824,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the label for digital format with nebula remixes | CREATE TABLE table_10497 (
"Title" text,
"Format" text,
"Label" text,
"Catalog number" text,
"Formats" text,
"Year" real
) | SELECT "Label" FROM table_10497 WHERE "Formats" = 'digital' AND "Title" = 'nebula remixes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
4327,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
18610,
9,
2152,
381,
121,
1499,
6,
96,
3809,
3357,
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,
434,
10333,
121,
21680,
953,
834,
15442,
4327,
549,
17444,
427,
96,
3809,
3357,
7,
121,
3274,
3,
31,
9206,
138,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
29,
15,
6724,
9,
26063,
15,
7,
31,
1,
-100,
-1... |
which country has the most silver medals ? | CREATE TABLE table_203_612 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_612 ORDER BY "silver" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4241,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
121,
21680,
953,
834,
23330,
834,
4241,
357,
4674,
11300,
272,
476,
96,
7,
173,
624,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the notes for the vehicle built in 1917? | CREATE TABLE table_name_98 (
notes VARCHAR,
built VARCHAR
) | SELECT notes FROM table_name_98 WHERE built = "1917" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
3358,
584,
4280,
28027,
6,
1192,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3358,
21,
8,
1689,
1192,
16,
25439,
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,
3358,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1192,
3274,
96,
2294,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the crowd total for glenferrie oval? | CREATE TABLE table_10944 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT COUNT("Crowd") FROM table_10944 WHERE "Venue" = 'glenferrie oval' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
3628,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
17304,
3628,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
3537,
29,
1010,
1753,
17986,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What sound has cantonese as the language, N/A as the classification, and spectrum dvd as the publisher? | CREATE TABLE table_name_77 (
sound VARCHAR,
publisher VARCHAR,
language VARCHAR,
classifaction VARCHAR
) | SELECT sound FROM table_name_77 WHERE language = "cantonese" AND classifaction = "n/a" AND publisher = "spectrum dvd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
1345,
584,
4280,
28027,
6,
14859,
584,
4280,
28027,
6,
1612,
584,
4280,
28027,
6,
853,
99,
4787,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1345,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1612,
3274,
96,
1608,
6948,
7,
15,
121,
3430,
853,
99,
4787,
3274,
96,
29,
87,
9,
121,
3430,
14859,
3274,
96,
5628,
2781,
30114,
121,
1,
-100,
-100,
-100,
-... |
What region is the Gold Vinyl format from? | CREATE TABLE table_name_30 (
region VARCHAR,
format VARCHAR
) | SELECT region FROM table_name_30 WHERE format = "gold vinyl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
1719,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1719,
19,
8,
2540,
22283,
1910,
45,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1910,
3274,
96,
14910,
9335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the length of the version from 2003? | CREATE TABLE table_35614 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
) | SELECT "Length" FROM table_35614 WHERE "Year" = '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
948,
2534,
41,
96,
5000,
1938,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
1649,
13682,
15,
26,
57,
121,
1499,
6,
96,
476,
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,
434,
4606,
189,
121,
21680,
953,
834,
2469,
948,
2534,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Crowd has a Home team of richmond? | CREATE TABLE table_name_14 (crowd INTEGER, home_team VARCHAR) | SELECT SUM(crowd) FROM table_name_14 WHERE home_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15343,
26,
65,
3,
9,
1210,
372,
13,
2354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Display a pie chart for how many climbers are from each country? | CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
) | SELECT Country, COUNT(*) FROM climber GROUP BY Country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8147,
49,
41,
205,
9577,
49,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
2900,
1499,
6,
4564,
7,
490,
6,
5617,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
8147,
49,
350,
4630,
6880,
272,
476,
6993,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which home teams had crowds larger than 4,000? | CREATE TABLE table_56144 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_56144 WHERE "Crowd" > '4,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
20885,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
4834,
20885,
549,
17444,
427,
96,
254,
3623,
26,
121,
2490,
3,
31,
13161,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE GROSS WITH A DIRECTOR OF RICHARD TUGGLE? | CREATE TABLE table_name_73 (
gross VARCHAR,
director VARCHAR
) | SELECT gross FROM table_name_73 WHERE director = "richard tuggle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
8690,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
8727,
19406,
11951,
71,
3,
25392,
2990,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8690,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
2090,
3274,
96,
3723,
986,
30274,
3537,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many party events do we have? | CREATE TABLE party_events (
Id VARCHAR
) | SELECT COUNT(*) FROM party_events | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
15,
2169,
7,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1088,
984,
103,
62,
43,
58,
1,
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,
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... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1088,
834,
15,
2169,
7,
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,
... |
What is the production code for Episode 153 in the series? | CREATE TABLE table_23097214_1 (
production_code INTEGER,
series__number VARCHAR
) | SELECT MIN(production_code) FROM table_23097214_1 WHERE series__number = 153 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
4327,
27357,
834,
536,
41,
999,
834,
4978,
3,
21342,
17966,
6,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
999,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
20762,
834,
4978,
61,
21680,
953,
834,
13427,
4327,
27357,
834,
536,
549,
17444,
427,
939,
834,
834,
5525,
1152,
3274,
3,
27025,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What s the most common type of crime? | CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
) | SELECT type FROM greatermanchestercrime GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2123,
348,
13263,
2685,
526,
41,
5447,
23,
26,
1499,
6,
5447,
17,
7,
97,
6,
1128,
1499,
6,
3,
40,
7,
32,
9,
1499,
6,
686,
1499,
6,
6138,
1499,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
2123,
348,
13263,
2685,
526,
350,
4630,
6880,
272,
476,
686,
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,
... |
the subject has signs or symptoms of another neurodegenerative disease including parkinson's disease, diffuse lewy body dementia, or history of significant cerebrovascular disease | CREATE TABLE table_train_121 (
"id" int,
"depression" bool,
"suicidality" bool,
"neurodegenerative_disease" bool,
"unstable_asthmatic_condition" bool,
"vitamin_k_deficiency" bool,
"renal_disease" bool,
"cerebrovascular_disease" bool,
"hepatic_disease" bool,
"liver_disease" bool,
"cardiac_disease" bool,
"acute_severe" bool,
"chronic_obstructive_pulmonary_disease_copd" bool,
"alcohol_abuse" bool,
"parkinson_disease" bool,
"drug_abuse" bool,
"lewy_body_dementia" bool,
"coagulopathy" bool,
"NOUSE" float
) | SELECT * FROM table_train_121 WHERE neurodegenerative_disease = 1 OR parkinson_disease = 1 OR lewy_body_dementia = 1 OR cerebrovascular_disease = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
22011,
41,
96,
23,
26,
121,
16,
17,
6,
96,
221,
8243,
121,
3,
12840,
40,
6,
96,
7,
76,
1294,
26,
10355,
121,
3,
12840,
40,
6,
96,
8992,
9488,
15,
25181,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22011,
549,
17444,
427,
6567,
221,
25181,
834,
26,
159,
14608,
3274,
209,
4674,
2447,
77,
739,
834,
26,
159,
14608,
3274,
209,
4674,
90,
210,
63,
834,
6965,
834,
26,
1194,
23,
9,
... |
What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open? | CREATE TABLE table_69365 (
"Outcome" text,
"Year" real,
"Tournament" text,
"Opponent" text,
"Score" text
) | SELECT "Outcome" FROM table_69365 WHERE "Opponent" = 'nguyen tien minh' AND "Tournament" = 'bulgaria open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
10402,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15767,
287,
15,
121,
21680,
953,
834,
3951,
10402,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
29,
1744,
63,
35,
3,
15945,
3519,
107,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
6724,
12... |
What is the Place of the Player with a Score of 67-76-74-67=284? | CREATE TABLE table_name_37 (
place VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_37 WHERE score = 67 - 76 - 74 - 67 = 284 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3399,
13,
8,
12387,
28,
3,
9,
17763,
13,
3,
3708,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
2604,
3274,
3,
3708,
3,
18,
3,
3959,
3,
18,
3,
4581,
3,
18,
3,
3708,
3274,
204,
4608,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is robin's stat when jason was 2.5 | CREATE TABLE table_2136 (
"Order" real,
"Couple" text,
"Karen" text,
"Nicky" text,
"Jason" text,
"Ruthie" text,
"Robin" text,
"Total" text,
"Skating song" text,
"Scoreboard" text,
"Public vote" text
) | SELECT "Robin" FROM table_2136 WHERE "Jason" = '2.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3420,
41,
96,
7395,
588,
121,
490,
6,
96,
3881,
413,
109,
121,
1499,
6,
96,
439,
9,
1536,
121,
1499,
6,
96,
567,
3142,
63,
121,
1499,
6,
96,
683,
9,
739,
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,
24372,
77,
121,
21680,
953,
834,
2658,
3420,
549,
17444,
427,
96,
683,
9,
739,
121,
3274,
3,
31,
15967,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the name of airline which runs the most number of routes. | CREATE TABLE airlines (
name VARCHAR,
alid VARCHAR
)
CREATE TABLE routes (
alid VARCHAR
) | SELECT T1.name FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19184,
41,
564,
584,
4280,
28027,
6,
3,
9,
8130,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
9729,
41,
3,
9,
8130,
584,
4280,
28027,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
332,
5411,
4350,
21680,
19184,
6157,
332,
536,
3,
15355,
3162,
9729,
6157,
332,
357,
9191,
332,
5411,
9,
8130,
3274,
332,
4416,
9,
8130,
350,
4630,
6880,
272,
476,
332,
5411,
4350,
4674,
11300,
272,
476,
2847,
17161,
... |
Find the name of services that have been used for more than 2 times in first notification of loss. | CREATE TABLE first_notification_of_loss (
fnol_id number,
customer_id number,
policy_id number,
service_id number
)
CREATE TABLE customers_policies (
customer_id number,
policy_id number,
date_opened time,
date_closed time
)
CREATE TABLE services (
service_id number,
service_name text
)
CREATE TABLE available_policies (
policy_id number,
policy_type_code text,
customer_phone text
)
CREATE TABLE claims (
claim_id number,
fnol_id number,
effective_date time
)
CREATE TABLE settlements (
settlement_id number,
claim_id number,
effective_date time,
settlement_amount number
)
CREATE TABLE customers (
customer_id number,
customer_name text
) | SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING COUNT(*) > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
166,
834,
2264,
2420,
834,
858,
834,
2298,
7,
41,
3,
89,
29,
32,
40,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
1291,
834,
23,
26,
381,
6,
313,
834,
23,
26,
381,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
4416,
5114,
834,
4350,
21680,
166,
834,
2264,
2420,
834,
858,
834,
2298,
7,
6157,
3,
17,
536,
3,
15355,
3162,
364,
6157,
3,
17,
357,
9191,
3,
17,
5411,
5114,
834,
23,
26,
3274,
3,
17,
4416,
5114,
834,
2... |
What was the location attendance on January 19? | CREATE TABLE table_name_47 (
location_attendance VARCHAR,
date VARCHAR
) | SELECT location_attendance FROM table_name_47 WHERE date = "january 19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1128,
11364,
30,
1762,
957,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
957,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
If skeletal system is the subject when was it first aired? | CREATE TABLE table_191105_3 (first_aired VARCHAR, subject VARCHAR) | SELECT first_aired FROM table_191105_3 WHERE subject = "Skeletal system" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
536,
12869,
834,
519,
41,
14672,
834,
2378,
26,
584,
4280,
28027,
6,
1426,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
3,
31538,
358,
19,
8,
1426,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
2378,
26,
21680,
953,
834,
2294,
536,
12869,
834,
519,
549,
17444,
427,
1426,
3274,
96,
134,
5768,
15,
1947,
358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What 1997, has qf as a 1994, and 1r as a 1999? | CREATE TABLE table_name_6 (Id VARCHAR) | SELECT 1997 FROM table_name_6 WHERE 1994 = "qf" AND 1999 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6622,
6,
65,
3,
1824,
89,
38,
3,
9,
7520,
6,
11,
209,
52,
38,
3,
9,
5247,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6622,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
7520,
3274,
96,
1824,
89,
121,
3430,
5247,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all artist names with an average exhibition attendance over 200. | CREATE TABLE artist (
name VARCHAR,
artist_id VARCHAR
)
CREATE TABLE exhibition (
exhibition_id VARCHAR,
artist_id VARCHAR
)
CREATE TABLE exhibition_record (
exhibition_id VARCHAR,
attendance INTEGER
) | SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
564,
584,
4280,
28027,
6,
2377,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
41,
4473,
834,
23,
26,
584,
4280,
28027,
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,
332,
5787,
4350,
21680,
4473,
834,
60,
7621,
6157,
332,
536,
3,
15355,
3162,
4473,
6157,
332,
357,
9191,
332,
5411,
994,
13506,
1575,
834,
23,
26,
3274,
332,
4416,
994,
13506,
1575,
834,
23,
26,
3,
15355,
3162,
2377... |
Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver? | CREATE TABLE table_name_7 (
season INTEGER,
percentage VARCHAR,
driver VARCHAR
) | SELECT MAX(season) FROM table_name_7 WHERE percentage = "67%" AND driver = "alberto ascari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
774,
3,
21342,
17966,
6,
5294,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19,
8,
2030,
7960,
28,
3,
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,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9476,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
5294,
3274,
96,
3708,
1454,
121,
3430,
2535,
3274,
96,
138,
7041,
32,
38,
1720,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was home team Essendon's opponents score? | CREATE TABLE table_33591 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_33591 WHERE "Home team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
4729,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
519,
2469,
4729,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are all values for male population in 2001 when sex ratio in 1991 is 896? | CREATE TABLE table_23095 (
"Districts of Bihar" text,
"Total Population 2001" real,
"Male Population 2001" real,
"Female Population 2001" real,
"Growth Rate 1981-91" text,
"Growth Rate 1991-01" text,
"Sex Ratio \u2021 1991" real,
"Sex Ratio \u2021 2001" real,
"Population density \u2020 1991" real,
"Population density \u2020 2001" real
) | SELECT "Male Population 2001" FROM table_23095 WHERE "Sex Ratio \u2021 1991" = '896' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
3301,
41,
96,
308,
23,
20066,
7,
13,
2106,
3272,
121,
1499,
6,
96,
3696,
1947,
29659,
4402,
121,
490,
6,
96,
329,
9,
109,
29659,
4402,
121,
490,
6,
96,
371,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
9,
109,
29659,
4402,
121,
21680,
953,
834,
13427,
3301,
549,
17444,
427,
96,
134,
994,
6455,
23,
32,
3,
2,
76,
1755,
2658,
9957,
121,
3274,
3,
31,
3914,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What district did Dave Treen serve? | CREATE TABLE table_1341663_19 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1341663_19 WHERE incumbent = "Dave Treen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2938,
3891,
834,
2294,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
410,
8545,
4691,
35,
1716,
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,
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,
3939,
21680,
953,
834,
23747,
2938,
3891,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
308,
9,
162,
4691,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who wrote 'Monica's bad day'? | CREATE TABLE table_29106 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original air date" text
) | SELECT "Writer" FROM table_29106 WHERE "Title" = 'Monica''s Bad Day' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
16431,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
49,
121,
21680,
953,
834,
3166,
16431,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
9168,
2617,
31,
31,
7,
3862,
1430,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who wrote the episode with the production code of BN103? | CREATE TABLE table_21304155_1 (
written_by VARCHAR,
production_code VARCHAR
) | SELECT written_by FROM table_21304155_1 WHERE production_code = "BN103" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
23702,
20896,
834,
536,
41,
1545,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
2832,
8,
5640,
28,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1545,
834,
969,
21680,
953,
834,
2658,
23702,
20896,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
19174,
17864,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the average age of patients whose death status is 0 and primary disease is newborn. | 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 text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT AVG(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "NEWBORN" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
4171,
518,
8471,
14151,
121,
1,
-100,
... |
Please compare the credit score of the customers who have some loans by a bar chart, and list from low to high by the x-axis. | CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
) | SELECT cust_name, credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_ID = T2.cust_ID ORDER BY cust_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2289,
41,
2289,
834,
4309,
3,
4331,
4059,
17867,
6,
2289,
834,
6137,
3,
4331,
4059,
599,
1808,
201,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
6421,
834,
4309,
3,
4331,
4059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
123,
7,
17,
834,
4350,
6,
998,
834,
7,
9022,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1071,
7,
17,
834,
4309,
3274,
332,
4416,
1071,
7,
17,
834,
4309,
4674,
11300,
272,
... |
What home team plays at victoria park? | CREATE TABLE table_name_4 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_4 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
372,
4805,
44,
3,
7287,
3600,
9,
2447,
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,
234,
834,
11650,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose primary disease is brain mass;intracranial hemorrhage and procedure icd9 code is 8856? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND procedures.icd9_code = "8856" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the names of customers who never placed an order. | CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_status text,
order_date time,
order_details text
)
CREATE TABLE order_items (
order_id number,
product_id number,
order_quantity text
)
CREATE TABLE customer_addresses (
customer_id number,
address_id number,
date_address_from time,
address_type text,
date_address_to time
)
CREATE TABLE customers (
customer_id number,
payment_method text,
customer_name text,
date_became_customer time,
other_customer_details text
)
CREATE TABLE customer_contact_channels (
customer_id number,
channel_code text,
active_from_date time,
active_to_date time,
contact_number text
)
CREATE TABLE addresses (
address_id number,
address_content text,
city text,
zip_postcode text,
state_province_county text,
country text,
other_address_details text
)
CREATE TABLE products (
product_id number,
product_details text
) | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
9397,
7,
41,
455,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
455,
834,
8547,
302,
1499,
6,
455,
834,
5522,
97,
6,
455,
834,
221,
5756,
7,
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,
884,
834,
4350,
21680,
722,
262,
4,
30416,
3,
23143,
14196,
3,
17,
5411,
25697,
49,
834,
4350,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
9397,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834... |
what is age and date of birth of subject id 29767? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT demographic.age, demographic.dob FROM demographic WHERE demographic.subject_id = "29767" | [
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,
545,
6,
14798,
5,
26,
32,
115,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
357,
4327,
3708,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total number of lakes in the province of van in turkey ? | CREATE TABLE table_204_341 (
id number,
"name in english" text,
"name in turkish" text,
"area (km2)" text,
"depth" text,
"location (districts and/or provinces)" text
) | SELECT COUNT(*) FROM table_204_341 WHERE "location (districts and/or provinces)" = 'van' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3710,
536,
41,
3,
23,
26,
381,
6,
96,
4350,
16,
22269,
121,
1499,
6,
96,
4350,
16,
3,
2905,
157,
1273,
121,
1499,
6,
96,
498,
41,
5848,
7318,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
3710,
536,
549,
17444,
427,
96,
14836,
41,
26,
23,
20066,
7,
11,
87,
127,
7985,
7,
61,
121,
3274,
3,
31,
2132,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show id from each meter 300, order by the bars in descending. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
) | SELECT meter_300, ID FROM swimmer ORDER BY meter_300 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
5426,
6,
4699,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
5426,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the first series number that Adele Lim wrote? | CREATE TABLE table_11694832_1 (no_in_series INTEGER, written_by VARCHAR) | SELECT MIN(no_in_series) FROM table_11694832_1 WHERE written_by = "Adele Lim" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3951,
3707,
2668,
834,
536,
41,
29,
32,
834,
77,
834,
10833,
7,
3,
21342,
17966,
6,
1545,
834,
969,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
2596,
3951,
3707,
2668,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
188,
26,
400,
10908,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the team name for the racer who had a first qualification time of 1:22.655? | CREATE TABLE table_name_17 (
team VARCHAR,
qual_1 VARCHAR
) | SELECT team FROM table_name_17 WHERE qual_1 = "1:22.655" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
372,
584,
4280,
28027,
6,
3,
11433,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
564,
21,
8,
1964,
52,
113,
141... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3,
11433,
834,
536,
3274,
96,
536,
10,
2884,
5,
4122,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Date, when the Winner is Aaron Gustavson? | CREATE TABLE table_15407 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
) | SELECT "Date" FROM table_15407 WHERE "Winner" = 'aaron gustavson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
4560,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
7855,
776,
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,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
27308,
4560,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
9,
291,
106,
8829,
9,
208,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the sum of the ranks for bulgaria? | CREATE TABLE table_name_10 (
rank INTEGER,
country VARCHAR
) | SELECT SUM(rank) FROM table_name_10 WHERE country = "bulgaria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
11003,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
13799,
21,
25876,
6286,
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,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
684,
3274,
96,
6724,
122,
6286,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Location has a Method of decision (unanimous), and Res of win x? | CREATE TABLE table_58819 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Location" FROM table_58819 WHERE "Method" = 'decision (unanimous)' AND "Res." = 'win x' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4060,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
755,
4060,
2294,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
221,
18901,
41,
202,
13607,
1162,
61,
31,
3430,
96,
1649,
7,
535,
3274,
3,
31,
3757,
3,
2... |
Which Music has a Dance of Modern? | CREATE TABLE table_43109 (
"Team" text,
"Dance" text,
"Music" text,
"Points jury" text,
"Place" text
) | SELECT "Music" FROM table_43109 WHERE "Dance" = 'modern' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
17304,
41,
96,
18699,
121,
1499,
6,
96,
308,
663,
121,
1499,
6,
96,
29035,
121,
1499,
6,
96,
22512,
7,
12730,
121,
1499,
6,
96,
345,
11706,
121,
1499,
3,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
29035,
121,
21680,
953,
834,
4906,
17304,
549,
17444,
427,
96,
308,
663,
121,
3274,
3,
31,
18306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose age is less than 81 and diagnoses long title is unspecified septicemia? | 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 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 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 WHERE demographic.age < "81" AND diagnoses.long_title = "Unspecified septicemia" | [
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,
5... |
which city has the least density ? | CREATE TABLE table_203_413 (
id number,
"rank" text,
"city" text,
"population" number,
"area\n(km2)" number,
"density\n(inhabitants/km2)" number,
"altitude\n(mslm)" number
) | SELECT "city" FROM table_203_413 ORDER BY "density\n(inhabitants/km2)" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
2368,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
9791,
7830,
121,
381,
6,
96,
498,
2,
29,
599,
5848,
7318,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6726,
121,
21680,
953,
834,
23330,
834,
591,
2368,
4674,
11300,
272,
476,
96,
537,
7,
485,
2,
29,
599,
77,
29884,
7,
87,
5848,
7318,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of mclaren ford constructors ? | CREATE TABLE table_203_804 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number
) | SELECT COUNT("constructor") FROM table_203_804 WHERE "constructor" = 'mclaren-ford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2079,
591,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
13739,
52,
121,
1499,
6,
96,
15982,
5317,
121,
1499,
6,
96,
8478,
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,
15982,
5317,
8512,
21680,
953,
834,
23330,
834,
2079,
591,
549,
17444,
427,
96,
15982,
5317,
121,
3274,
3,
31,
51,
23982,
35,
18,
2590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What position for doug gibson with 2 wins? | CREATE TABLE table_name_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR) | SELECT position FROM table_name_32 WHERE win__number = 2 AND winner = "doug gibson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
4718,
584,
4280,
28027,
6,
1369,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
21,
103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1369,
834,
834,
5525,
1152,
3274,
204,
3430,
4668,
3274,
96,
26,
1063,
122,
31257,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is shintaro ishiwatari's time? | CREATE TABLE table_name_6 (
time VARCHAR,
opponent VARCHAR
) | SELECT time FROM table_name_6 WHERE opponent = "shintaro ishiwatari" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
97,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
7,
2907,
2046,
32,
3,
1273,
23,
210,
9,
5310,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
15264,
3274,
96,
7,
2907,
2046,
32,
3,
1273,
23,
210,
9,
5310,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the opponent in the final of the tournament on May 22, 2006? | CREATE TABLE table_7766 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in final" text,
"Score in final" text
) | SELECT "Opponent in final" FROM table_7766 WHERE "Date" = 'may 22, 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3539,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
804,
121,
1499,
6,
96,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
16,
804,
121,
21680,
953,
834,
4013,
3539,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
12889,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the league goals when the league cup goals is less than 0 and 16 (1) league apps? | CREATE TABLE table_name_95 (
league_goals INTEGER,
league_apps VARCHAR,
league_cup_goals VARCHAR
) | SELECT AVG(league_goals) FROM table_name_95 WHERE league_apps = "16 (1)" AND league_cup_goals < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
5533,
834,
839,
5405,
3,
21342,
17966,
6,
5533,
834,
3096,
7,
584,
4280,
28027,
6,
5533,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
29512,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
5533,
834,
3096,
7,
3274,
96,
2938,
5637,
121,
3430,
5533,
834,
4658,
834,
839,
5405,
3,
2,
3,
632,
1,
-100,
-100,
-100... |
which two nations made the same score for 5 hoops and 3 balls , 2 ribbons ? | CREATE TABLE table_204_979 (
id number,
"place" number,
"nation" text,
"5 hoops" text,
"3 balls,\n2 ribbons" text,
"total" number
) | SELECT "nation" FROM table_204_979 WHERE "5 hoops" = "3 balls,\n2 ribbons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4327,
1298,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
755,
3534,
9280,
121,
1499,
6,
96,
519,
11607,
6,
2,
29,
357,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
257,
121,
21680,
953,
834,
26363,
834,
4327,
1298,
549,
17444,
427,
96,
755,
3534,
9280,
121,
3274,
96,
519,
11607,
6,
2,
29,
357,
13356,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the minimum number of 50s scored? | CREATE TABLE table_27922491_24 (
Id VARCHAR
) | SELECT MIN(50 AS s) FROM table_27922491_24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4508,
2266,
4729,
834,
2266,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
381,
13,
943,
7,
5799,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1752,
6157,
3,
7,
61,
21680,
953,
834,
2555,
4508,
2266,
4729,
834,
2266,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what datasets did oren etzioni use ? | CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
) | SELECT DISTINCT paperdataset.datasetid FROM author, paper, paperdataset, writes WHERE author.authorname = 'oren etzioni' AND paper.paperid = paperdataset.paperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
17,
6,
3,
11675,
19587,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
1846,
41,
1057,
23,
26,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
6757,
2244,
5,
6757,
2244,
23,
26,
21680,
2291,
6,
1040,
6,
1040,
6757,
2244,
6,
11858,
549,
17444,
427,
2291,
5,
17415,
4350,
3274,
3,
31,
127,
35,
3,
6706,
23,
106,
23,
31,
3430,
1... |
What season was the finale that aired on May 23, 2004? | CREATE TABLE table_31388 (
"Season" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" text
) | SELECT "TV season" FROM table_31388 WHERE "Season finale" = 'May 23, 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2368,
4060,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
134,
15,
9,
739,
13539,
121,
1499,
6,
96,
134,
15,
9,
739,
13604,
121,
1499,
6,
96,
4562,
774,
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,
4562,
774,
121,
21680,
953,
834,
519,
2368,
4060,
549,
17444,
427,
96,
134,
15,
9,
739,
13604,
121,
3274,
3,
31,
15881,
12992,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
on which team was the cyclist who withdrew after injuring his shoulder in a crash during stage 6 ? | CREATE TABLE table_204_530 (
id number,
"type" text,
"stage" number,
"cyclist" text,
"team" text,
"reason" text
) | SELECT "team" FROM table_204_530 WHERE "reason" = 'shoulder injury sustained from crash' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
26918,
41,
3,
23,
26,
381,
6,
96,
6137,
121,
1499,
6,
96,
10705,
121,
381,
6,
96,
7132,
343,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
864,
739,
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,
11650,
121,
21680,
953,
834,
26363,
834,
26918,
549,
17444,
427,
96,
864,
739,
121,
3274,
3,
31,
25351,
49,
2871,
14399,
45,
8420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In which area was there a score of 68? | CREATE TABLE table_name_42 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_42 WHERE score = 68 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
4687,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
616,
47,
132,
3,
9,
2604,
13,
3,
3651,
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,
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,
286,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
2604,
3274,
3,
3651,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which team conceded the least goals ? | CREATE TABLE table_203_67 (
id number,
"place" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals\nscored" number,
"goals\nconceded" number,
"+/-" number,
"points" number
) | SELECT "team" FROM table_203_67 ORDER BY "goals\nconceded" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3708,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
4895,
15,
26,
121,
381,
6,
96,
210,
106,
121,
381,
6,
96,
19489,
121,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
23330,
834,
3708,
4674,
11300,
272,
476,
96,
839,
5405,
2,
29,
11620,
221,
26,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
does alexandria county have a higher or lower population than delaware county ? | CREATE TABLE table_204_616 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
) | SELECT (SELECT "population" FROM table_204_616 WHERE "township" = 'alexandria') > (SELECT "population" FROM table_204_616 WHERE "township" = 'delaware') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2938,
41,
3,
23,
26,
381,
6,
96,
3540,
2009,
121,
1499,
6,
96,
89,
15432,
121,
381,
6,
96,
9791,
7830,
2,
29,
13866,
121,
1499,
6,
96,
9791,
7830,
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,
41,
23143,
14196,
96,
9791,
7830,
121,
21680,
953,
834,
26363,
834,
948,
2938,
549,
17444,
427,
96,
3540,
2009,
121,
3274,
3,
31,
138,
994,
232,
52,
23,
9,
31,
61,
2490,
41,
23143,
14196,
96,
9791,
7830,
121,
2168... |
Do the Sky Calcio 5 channels have PPV? | CREATE TABLE table_15887683_4 (ppv VARCHAR, television_service VARCHAR) | SELECT ppv FROM table_15887683_4 WHERE television_service = "Sky Calcio 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4060,
3959,
4591,
834,
591,
41,
1572,
208,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
531,
8,
5643,
3104,
75,
23,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1572,
208,
21680,
953,
834,
1808,
4060,
3959,
4591,
834,
591,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
134,
3781,
3104,
75,
23,
32,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the lowest Rank of carmelita jeter with a Time smaller than 11.08? | CREATE TABLE table_name_97 (
rank INTEGER,
name VARCHAR,
time VARCHAR
) | SELECT MIN(rank) FROM table_name_97 WHERE name = "carmelita jeter" AND time < 11.08 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
11003,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7402,
3,
22557,
13,
443,
2341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
564,
3274,
96,
1720,
2341,
155,
9,
528,
449,
121,
3430,
97,
3,
2,
7806,
4018,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the saturday time with wednesday being 10:00-5:00 | CREATE TABLE table_16425 (
"Location" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
) | SELECT "Saturday" FROM table_16425 WHERE "Wednesday" = '10:00-5:00' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
1828,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
9168,
1135,
121,
1499,
6,
96,
382,
76,
15,
7,
1135,
121,
1499,
6,
96,
1326,
26,
1496,
1135,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
6010,
1135,
121,
21680,
953,
834,
26987,
1828,
549,
17444,
427,
96,
1326,
26,
1496,
1135,
121,
3274,
3,
31,
536,
25713,
18,
19870,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give the number of patients whose insurance is medicaid and diagnosis short title is drug induced neutropenia. | 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
)
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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.short_title = "Drug induced neutropenia" | [
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,
5... |
Find the name of different colleges involved in the tryout in alphabetical order. | CREATE TABLE tryout (
cName VARCHAR
) | SELECT DISTINCT cName FROM tryout ORDER BY cName | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
3,
75,
23954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
13,
315,
12936,
1381,
16,
8,
653,
670,
16,
20688,
1950,
455,
5,
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,
3,
15438,
25424,
6227,
3,
75,
23954,
21680,
653,
670,
4674,
11300,
272,
476,
3,
75,
23954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the season number of the episode watched by 0.57 million US viewers? | CREATE TABLE table_13336122_7 (
no_in_season INTEGER,
us_viewers__million_ VARCHAR
) | SELECT MAX(no_in_season) FROM table_13336122_7 WHERE us_viewers__million_ = "0.57" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
3420,
20889,
834,
940,
41,
150,
834,
77,
834,
9476,
3,
21342,
17966,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
22974,
3420,
20889,
834,
940,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
12100,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Game, when Date is March 21? | CREATE TABLE table_name_66 (game INTEGER, date VARCHAR) | SELECT MIN(game) FROM table_name_66 WHERE date = "march 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
7261,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
4435,
6,
116,
7678,
19,
1332,
1401,
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,
3,
17684,
599,
7261,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
833,
3274,
96,
51,
7064,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals? | CREATE TABLE table_name_4 (
gold INTEGER,
bronze VARCHAR,
total VARCHAR,
rank VARCHAR
) | SELECT MIN(gold) FROM table_name_4 WHERE total = 37 AND rank = "1" AND bronze > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
2045,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
792,
3274,
6862,
3430,
11003,
3274,
96,
536,
121,
3430,
13467,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the heir when the monarch was Wareru? | CREATE TABLE table_26460435_5 (
heir VARCHAR,
monarch VARCHAR
) | SELECT heir FROM table_26460435_5 WHERE monarch = "Wareru" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
25991,
591,
2469,
834,
755,
41,
3,
17265,
584,
4280,
28027,
6,
28397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3,
17265,
116,
8,
28397,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17265,
21680,
953,
834,
2688,
25991,
591,
2469,
834,
755,
549,
17444,
427,
28397,
3274,
96,
21032,
49,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the least amount of matches? | CREATE TABLE table_30113 (
"Player" text,
"Matches" real,
"Innings" real,
"Wickets" real,
"Average" text,
"BBI" text,
"BBM" text,
"5wi" real
) | SELECT MIN("Matches") FROM table_30113 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
20522,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
545,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
144,
2951,
8512,
21680,
953,
834,
1458,
20522,
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 is the lowest overall score prior to 1992 with a downhill score of 1? | CREATE TABLE table_name_57 (
overall INTEGER,
downhill VARCHAR,
season VARCHAR
) | SELECT MIN(overall) FROM table_name_57 WHERE downhill = "1" AND season < 1992 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1879,
3,
21342,
17966,
6,
323,
6321,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1879,
2604,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
323,
6321,
3274,
96,
536,
121,
3430,
774,
3,
2,
9047,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For what league was the player in G position drafted? | CREATE TABLE table_61666 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"Team from" text,
"League from" text
) | SELECT "League from" FROM table_61666 WHERE "Position" = 'g' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2938,
3539,
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,
18699,
45,
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,
2796,
9,
5398,
45,
121,
21680,
953,
834,
948,
2938,
3539,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names of parties that have no members? | CREATE TABLE region (
region_id number,
region_name text,
date text,
label text,
format text,
catalogue text
)
CREATE TABLE member (
member_id number,
member_name text,
party_id text,
in_office text
)
CREATE TABLE party_events (
event_id number,
event_name text,
party_id number,
member_in_charge_id number
)
CREATE TABLE party (
party_id number,
minister text,
took_office text,
left_office text,
region_id number,
party_name text
) | SELECT party_name FROM party WHERE NOT party_id IN (SELECT party_id FROM member) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
1719,
834,
23,
26,
381,
6,
1719,
834,
4350,
1499,
6,
833,
1499,
6,
3783,
1499,
6,
1910,
1499,
6,
14978,
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,
1088,
834,
4350,
21680,
1088,
549,
17444,
427,
4486,
1088,
834,
23,
26,
3388,
41,
23143,
14196,
1088,
834,
23,
26,
21680,
1144,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose lab test fluid is blood. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.fluid = "Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
With a dail of 24th and more than 57 seats, what is the election? | CREATE TABLE table_51790 (
"Election" text,
"D\u00e1il" text,
"Share of votes" text,
"Seats" real,
"Total seats" real
) | SELECT "Election" FROM table_51790 WHERE "Seats" > '57' AND "D\u00e1il" = '24th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
2394,
41,
96,
427,
12252,
121,
1499,
6,
96,
308,
2,
76,
1206,
15,
536,
173,
121,
1499,
6,
96,
24501,
13,
11839,
121,
1499,
6,
96,
134,
1544,
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,
427,
12252,
121,
21680,
953,
834,
755,
2517,
2394,
549,
17444,
427,
96,
134,
1544,
7,
121,
2490,
3,
31,
3436,
31,
3430,
96,
308,
2,
76,
1206,
15,
536,
173,
121,
3274,
3,
31,
2266,
189,
31,
1,
-100,
-100,
-... |
among patients who had icd9 code 3533, how many of them were aged below 56? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "56" AND procedures.icd9_code = "3533" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the area of cimahi city? | CREATE TABLE table_73335 (
"Administrative division" text,
"Area (km\u00b2) 2005" text,
"Population 2010 Census" real,
"Population 2011 SIAK Database" text,
"Population density (/km\u00b2 2010)" real
) | SELECT "Area (km\u00b2) 2005" FROM table_73335 WHERE "Administrative division" = 'Cimahi City' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
519,
2469,
41,
96,
16313,
343,
52,
1528,
4889,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
3105,
121,
1499,
6,
96,
27773,
7830,
2735,
23086,
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,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
3105,
121,
21680,
953,
834,
4552,
519,
2469,
549,
17444,
427,
96,
16313,
343,
52,
1528,
4889,
121,
3274,
3,
31,
254,
603,
9,
107,
23,
896,
31,
1,
-100,
-100,
-100,... |
What was the sample size for the poll from Nov 9-11, 2007 with a margin of error less than 4.3? | CREATE TABLE table_9479 (
"Poll Source" text,
"Sample Size" real,
"Margin of Error" real,
"Date" text,
"Democrat" text,
"Republican" text
) | SELECT MAX("Sample Size") FROM table_9479 WHERE "Date" = 'nov 9-11, 2007' AND "Margin of Error" < '4.3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4240,
4440,
41,
96,
8931,
40,
9149,
121,
1499,
6,
96,
134,
9,
9208,
8941,
121,
490,
6,
96,
7286,
122,
77,
13,
848,
52,
127,
121,
490,
6,
96,
308,
342,
121,
1499,
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,
4800,
4,
599,
121,
134,
9,
9208,
8941,
8512,
21680,
953,
834,
4240,
4440,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
668,
9169,
6,
4101,
31,
3430,
96,
7286,
122,
77,
13,
848,
52,
127,
121,
3,
2,
3,... |
Please compare the credit score of the customers who have some loans by a bar chart, and could you sort x axis in descending order please? | CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
) | SELECT cust_name, credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_ID = T2.cust_ID ORDER BY cust_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
123,
7,
17,
834,
4309,
3,
4331,
4059,
17867,
6,
123,
7,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
3,
6004,
834,
6137,
3,
4059,
14296,
6,
3,
6004,
834,
3849,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
123,
7,
17,
834,
4350,
6,
998,
834,
7,
9022,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1071,
7,
17,
834,
4309,
3274,
332,
4416,
1071,
7,
17,
834,
4309,
4674,
11300,
272,
... |
Name the number of men doubles for 2007 | CREATE TABLE table_14903355_2 (
men_doubles VARCHAR,
year VARCHAR
) | SELECT COUNT(men_doubles) FROM table_14903355_2 WHERE year = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2394,
4201,
3769,
834,
357,
41,
1076,
834,
25761,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
1076,
1486,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
904,
834,
25761,
7,
61,
21680,
953,
834,
2534,
2394,
4201,
3769,
834,
357,
549,
17444,
427,
215,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Start has a Duration of 6 months 2 days? | CREATE TABLE table_name_55 (start VARCHAR, duration VARCHAR) | SELECT start FROM table_name_55 WHERE duration = "6 months 2 days" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
10208,
584,
4280,
28027,
6,
8659,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3273,
65,
3,
9,
20610,
13,
431,
767,
204,
477,
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,
456,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
8659,
3274,
96,
948,
767,
204,
477,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of agriculatural panels of the composition with more than 3 National Universities of Ireland? | CREATE TABLE table_name_59 (
agricultural_panel VARCHAR,
national_university_of_ireland INTEGER
) | SELECT COUNT(agricultural_panel) FROM table_name_59 WHERE national_university_of_ireland > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
10687,
834,
28726,
584,
4280,
28027,
6,
1157,
834,
7846,
485,
834,
858,
834,
2060,
40,
232,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
9,
3496,
14700,
834,
28726,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1157,
834,
7846,
485,
834,
858,
834,
2060,
40,
232,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On which date did a home team score 6.17 (53)? | CREATE TABLE table_58579 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_58579 WHERE "Home team score" = '6.17 (53)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
755,
4440,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3449,
755,
4440,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
23769,
940,
9209,
5268,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the rank associated with 141.48 points? | CREATE TABLE table_36252 (
"Rank" real,
"Name" text,
"Club" text,
"Nation" text,
"Points" real
) | SELECT "Rank" FROM table_36252 WHERE "Points" = '141.48' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
1828,
357,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
22512,
7,
121,
490,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
3420,
1828,
357,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
26059,
5,
3707,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the winning score for runnerup Greg Norman | CREATE TABLE table_name_5 (
winning_score VARCHAR,
runner_s__up VARCHAR
) | SELECT winning_score FROM table_name_5 WHERE runner_s__up = "greg norman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3447,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
18301,
7982,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
allan fraser was elected how many years before frank crean ? | CREATE TABLE table_203_484 (
id number,
"member" text,
"party" text,
"electorate" text,
"state" text,
"first elected" text
) | SELECT ABS((SELECT "first elected" FROM table_203_484 WHERE "member" = 'allan fraser') - (SELECT "first elected" FROM table_203_484 WHERE "member" = 'frank crean')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3707,
591,
41,
3,
23,
26,
381,
6,
96,
12066,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
400,
5317,
342,
121,
1499,
6,
96,
5540,
121,
1499,
6,
96,
14672,
8160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20798,
599,
599,
23143,
14196,
96,
14672,
8160,
121,
21680,
953,
834,
23330,
834,
3707,
591,
549,
17444,
427,
96,
12066,
121,
3274,
3,
31,
138,
1618,
8072,
7,
49,
31,
61,
3,
18,
41,
23143,
14196,
96,
14672,
8160,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.