NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What party is class 1 in wisconsin? | CREATE TABLE table_name_99 (
party VARCHAR,
class VARCHAR,
state VARCHAR
) | SELECT party FROM table_name_99 WHERE class = 1 AND state = "wisconsin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
1088,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1088,
19,
853,
209,
16,
11064,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1088,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
853,
3274,
209,
3430,
538,
3274,
96,
210,
159,
8056,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the final score for the date of December 30? | CREATE TABLE table_69276 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) | SELECT "Final Score" FROM table_69276 WHERE "Date" = 'december 30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
357,
3959,
41,
96,
308,
342,
121,
1499,
6,
96,
30338,
2271,
121,
1499,
6,
96,
371,
10270,
17763,
121,
1499,
6,
96,
566,
3481,
2271,
121,
1499,
6,
96,
134,
17,
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,
371,
10270,
17763,
121,
21680,
953,
834,
3951,
357,
3959,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What channels first aired on 31 December 1990 in the Southern Downs region? | CREATE TABLE table_name_91 (channels___analog___digital__ VARCHAR, first_air_date VARCHAR, region_served VARCHAR) | SELECT channels___analog___digital__ FROM table_name_91 WHERE first_air_date = "31 december 1990" AND region_served = "southern downs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
19778,
7,
834,
834,
834,
152,
9,
2152,
834,
834,
834,
9206,
138,
834,
834,
584,
4280,
28027,
6,
166,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
1719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6047,
834,
834,
834,
152,
9,
2152,
834,
834,
834,
9206,
138,
834,
834,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
166,
834,
2256,
834,
5522,
3274,
96,
3341,
20,
75,
18247,
5541,
121,
3430,
1719,
834,
3473,
... |
what is average age of patients whose marital status is married and gender is f? | 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 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
) | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.gender = "F" | [
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,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
122,
3868,
3274,
96,
371,
121,
1,
-100,
-100,
-100,
-10... |
On February 26, who was the leading scorer? | CREATE TABLE table_56464 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
) | SELECT "Leading scorer" FROM table_56464 WHERE "Date" = 'february 26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
591,
4389,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26,
53,
2604,
52,
121,
21680,
953,
834,
4834,
591,
4389,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
89,
15,
9052,
1208,
2208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
with a Time/Retired of +47.376 what is the lap sum? | CREATE TABLE table_name_67 (
laps INTEGER,
time_retired VARCHAR
) | SELECT SUM(laps) FROM table_name_67 WHERE time_retired = "+47.376" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
14941,
7,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
28,
3,
9,
2900,
87,
1649,
11809,
26,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
591,
27914,
3959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many were released after zenone , imperator d'oriente ? | CREATE TABLE table_204_104 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text,
"notes" text
) | SELECT COUNT(*) FROM table_204_104 WHERE "premiere date" > (SELECT "premiere date" FROM table_204_104 WHERE "title" = "zenone, imperator d'oriente") | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
15442,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
729,
60,
121,
1499,
6,
96,
7304,
2,
76,
1206,
13039,
23,
6610,
7,
121,
1499,
6,
96,
6856,
60,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15442,
549,
17444,
427,
96,
2026,
2720,
60,
833,
121,
2490,
41,
23143,
14196,
96,
2026,
2720,
60,
833,
121,
21680,
953,
834,
26363,
834,
15442,
549,
17444,
427,... |
Name the team which has high rebounds of smith (10) | CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR) | SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
11650,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
84,
65,
306,
3,
23768,
13,
3,
16331,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
306,
834,
23768,
3274,
96,
16331,
41,
16968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which branding has the callsign of DXGH? | CREATE TABLE table_30764 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Station Type" text,
"Location" text
) | SELECT "Branding" FROM table_30764 WHERE "Callsign" = 'DXGH' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3959,
591,
41,
96,
18304,
727,
53,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
23553,
41,
21729,
61,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18304,
727,
53,
121,
21680,
953,
834,
1458,
3959,
591,
549,
17444,
427,
96,
254,
1748,
6732,
121,
3274,
3,
31,
308,
4,
14100,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Player than won in 2003? | CREATE TABLE table_45397 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Player" FROM table_45397 WHERE "Year(s) won" = '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
519,
4327,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
2128,
519,
4327,
549,
17444,
427,
96,
476,
2741,
599,
7,
61,
751,
121,
3274,
3,
31,
23948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What place has a To par of +4 and a score of 74-70-74-74=292? | CREATE TABLE table_name_77 (
place VARCHAR,
to_par VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
286,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
65,
3,
9,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
20364,
3430,
2604,
3274,
3,
4581,
3,
18,
2861,
3,
18,
3,
4581,
3,
18,
3,
4581,
3274,
204,
4508,
1,
-100,
-100,
-100,
-100,
-... |
What team was the home team when the tie no was 27? | CREATE TABLE table_name_23 (
home_team VARCHAR,
tie_no VARCHAR
) | SELECT home_team FROM table_name_23 WHERE tie_no = "27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
234,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
234,
372,
116,
8,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the types of competition and number of competitions for that type Show bar chart, I want to display by the X-axis in descending. | CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
)
CREATE TABLE competition (
Competition_ID int,
Year real,
Competition_type text,
Country text
) | SELECT Competition_type, COUNT(*) FROM competition GROUP BY Competition_type ORDER BY Competition_type DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
12387,
834,
4309,
16,
17,
6,
564,
1499,
6,
14258,
1499,
6,
1949,
834,
4309,
16,
17,
6,
2276,
7,
490,
6,
332,
2593,
490,
6,
17916,
7,
1499,
6,
4564,
7,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15571,
834,
6137,
6,
2847,
17161,
599,
1935,
61,
21680,
2259,
350,
4630,
6880,
272,
476,
15571,
834,
6137,
4674,
11300,
272,
476,
15571,
834,
6137,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
left ventricular ejection fraction > 30 % | CREATE TABLE table_test_12 (
"id" int,
"serum_potassium" float,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"haemoglobin" float,
"consent" bool,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"renal_disease" bool,
"anaemia" bool,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"symptomatic_hypotension" bool,
"kidney_disease" bool,
"NOUSE" float
) | SELECT * FROM table_test_12 WHERE left_ventricular_ejection_fraction_lvef > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2122,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
49,
440,
834,
3013,
6500,
440,
121,
3,
12660,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4377,
834,
2122,
549,
17444,
427,
646,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162,
89,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was Petrova's partner where she scored 6 2, 3 6, 6 7 (7-9)? | CREATE TABLE table_27611593_5 (
partner VARCHAR,
score VARCHAR
) | SELECT partner FROM table_27611593_5 WHERE score = "6–2, 3–6, 6–7 (7-9)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4241,
1808,
4271,
834,
755,
41,
2397,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
17786,
900,
31,
7,
2397,
213,
255,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
2555,
4241,
1808,
4271,
834,
755,
549,
17444,
427,
2604,
3274,
96,
948,
104,
4482,
220,
104,
11071,
431,
104,
940,
41,
29568,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the loan club for the Westlake game? | CREATE TABLE table_12608427_8 (
loan_club VARCHAR,
name VARCHAR
) | SELECT loan_club FROM table_12608427_8 WHERE name = "Westlake" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3328,
4608,
2555,
834,
927,
41,
2289,
834,
13442,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2289,
1886,
21,
8,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2289,
834,
13442,
21680,
953,
834,
2122,
3328,
4608,
2555,
834,
927,
549,
17444,
427,
564,
3274,
96,
19069,
16948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average value for Rd 8 in a position less than 2 for Audi Sport Australia? | CREATE TABLE table_77246 (
"Position" real,
"Team" text,
"Rd 6" real,
"Rd 7" real,
"Rd 8" real,
"Total" real
) | SELECT AVG("Rd 8") FROM table_77246 WHERE "Team" = 'audi sport australia' AND "Position" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
357,
4448,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
448,
26,
431,
121,
490,
6,
96,
448,
26,
489,
121,
490,
6,
96,
448,
26,
505,
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,
71,
17217,
599,
121,
448,
26,
505,
8512,
21680,
953,
834,
4013,
357,
4448,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
9,
5291,
2600,
23407,
31,
3430,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
357,
31,
1,
-100... |
Which ring names are currently ranked f0 j ry 3 west? | CREATE TABLE table_20148 (
"Ring name" text,
"Current rank" text,
"Debut" text,
"Stable" text,
"Birthplace" text,
"Career and other notes" text
) | SELECT "Ring name" FROM table_20148 WHERE "Current rank" = 'f0 Jūryō 3 West' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10218,
927,
41,
96,
448,
53,
564,
121,
1499,
6,
96,
254,
450,
5320,
11003,
121,
1499,
6,
96,
2962,
2780,
121,
1499,
6,
96,
134,
3869,
121,
1499,
6,
96,
279,
23,
52,
189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
53,
564,
121,
21680,
953,
834,
10218,
927,
549,
17444,
427,
96,
254,
450,
5320,
11003,
121,
3274,
3,
31,
89,
632,
446,
2,
651,
2,
220,
1244,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the winning score before 1959, with runner-up Jackie Pung? | CREATE TABLE table_name_87 (
winning_score VARCHAR,
year VARCHAR,
runner_s__up VARCHAR
) | SELECT winning_score FROM table_name_87 WHERE year < 1959 AND runner_s__up = "jackie pung" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
215,
3,
2,
22471,
3430,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
9325,
23,
15,
3,
102,
425,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many tries for were there 48 points? | CREATE TABLE table_name_57 (
tries_for VARCHAR,
points VARCHAR
) | SELECT tries_for FROM table_name_57 WHERE points = "48" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
3,
9000,
834,
1161,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
9000,
21,
130,
132,
4678,
979,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
1161,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
979,
3274,
96,
3707,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the most points scored in a game where the score was 1-2? | CREATE TABLE table_27539272_7 (
points INTEGER,
score VARCHAR
) | SELECT MAX(points) FROM table_27539272_7 WHERE score = "1-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
3288,
2555,
357,
834,
940,
41,
979,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
167,
979,
5799,
16,
3,
9,
467,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
25988,
3288,
2555,
357,
834,
940,
549,
17444,
427,
2604,
3274,
96,
9596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Tallangatta DFL losses greater than 2 and an against greater than 1013 | CREATE TABLE table_57338 (
"Tallangatta DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT "Tallangatta DFL" FROM table_57338 WHERE "Against" > '1013' AND "Losses" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
519,
3747,
41,
96,
382,
138,
4612,
14748,
309,
10765,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
138,
4612,
14748,
309,
10765,
121,
21680,
953,
834,
3436,
519,
3747,
549,
17444,
427,
96,
20749,
121,
2490,
3,
31,
1714,
2368,
31,
3430,
96,
434,
13526,
7,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100,
... |
What is the date they played against fitzroy? | CREATE TABLE table_name_10 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_10 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
79,
1944,
581,
1400,
172,
8170,
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,
833,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the least join date | CREATE TABLE table_26466528_1 (join_date INTEGER) | SELECT MIN(join_date) FROM table_26466528_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4448,
4122,
2577,
834,
536,
41,
1927,
77,
834,
5522,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
1715,
833,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1927,
77,
834,
5522,
61,
21680,
953,
834,
2688,
4448,
4122,
2577,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
A bar chart for what are the number of the countries of mountains with height bigger than 5000?, could you show in descending by the 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(Country) FROM mountain WHERE Height > 5000 GROUP BY Country ORDER BY Country DESC | [
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,
10628,
651,
61,
21680,
4180,
549,
17444,
427,
24231,
2490,
3,
12814,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
6993,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against? | CREATE TABLE table_name_45 (
goals_for INTEGER,
goals_against VARCHAR,
drawn VARCHAR,
team VARCHAR
) | SELECT SUM(goals_for) FROM table_name_45 WHERE drawn > 12 AND team = "goole town" AND goals_against > 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1766,
834,
1161,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
6,
372,
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,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
6796,
2490,
586,
3430,
372,
3274,
96,
839,
32,
109,
1511,
121,
3430,
1766,
834,
9,
16720,
7,
17,
2490,
1640,
1,
-100,
-1... |
What is the Set 1 with a Set 2 that is 25-19? | CREATE TABLE table_name_12 (
set_1 VARCHAR,
set_2 VARCHAR
) | SELECT set_1 FROM table_name_12 WHERE set_2 = "25-19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
356,
834,
536,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2821,
209,
28,
3,
9,
2821,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
356,
834,
536,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
356,
834,
357,
3274,
96,
1828,
4481,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many lowest mark entries are there when % passed is 76? | CREATE TABLE table_29842201_1 (lowest_mark VARCHAR, _percentage_pass VARCHAR) | SELECT COUNT(lowest_mark) FROM table_29842201_1 WHERE _percentage_pass = 76 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4608,
357,
22772,
834,
536,
41,
3216,
222,
834,
3920,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
3968,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3216,
222,
834,
3920,
61,
21680,
953,
834,
3166,
4608,
357,
22772,
834,
536,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
3968,
3274,
3,
3959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Country, when Place is 'T9', and when Player is 'Michael Campbell'? | CREATE TABLE table_name_1 (
country VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_1 WHERE place = "t9" AND player = "michael campbell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
3399,
19,
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,
684,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
286,
3274,
96,
17,
1298,
121,
3430,
1959,
3274,
96,
51,
362,
9,
15,
40,
2856,
7708,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me a bar chart for how many gymnasts are from each hometown? | CREATE TABLE gymnast (
Gymnast_ID int,
Floor_Exercise_Points real,
Pommel_Horse_Points real,
Rings_Points real,
Vault_Points real,
Parallel_Bars_Points real,
Horizontal_Bar_Points real,
Total_Points real
)
CREATE TABLE people (
People_ID int,
Name text,
Age real,
Height real,
Hometown text
) | SELECT Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
31560,
17,
834,
4309,
16,
17,
6,
12324,
834,
5420,
15,
21645,
15,
834,
22512,
7,
490,
6,
276,
7649,
40,
834,
566,
127,
7,
15,
834,
22512,
7,
490,
6,
7888,
7,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1210,
3540,
6,
2847,
17161,
599,
1935,
61,
21680,
23379,
17,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
517,
63,
51,
29,
9,
7,
17,
834,
4309,
3274,
332,
4416,
24337,
834,
4309,
350,
4630... |
What is the amount of points for the team with 13 wins? | CREATE TABLE table_16034882_4 (
points VARCHAR,
wins VARCHAR
) | SELECT points FROM table_16034882_4 WHERE wins = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
3710,
4060,
357,
834,
591,
41,
979,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
866,
13,
979,
21,
8,
372,
28,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
19129,
3710,
4060,
357,
834,
591,
549,
17444,
427,
9204,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what number of patients having diagnosed with preterm nec 1250-1499g were born before the year 2103? | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2103" AND diagnoses.short_title = "Preterm NEC 1250-1499g" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which player had a position of OL from Ohio State? | CREATE TABLE table_name_65 (player VARCHAR, pos VARCHAR, college VARCHAR) | SELECT player FROM table_name_65 WHERE pos = "ol" AND college = "ohio state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
20846,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
141,
3,
9,
1102,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
3,
2748,
3274,
96,
32,
40,
121,
3430,
1900,
3274,
96,
32,
107,
23,
32,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of the game that 33,531 people went too? | CREATE TABLE table_name_19 (
score VARCHAR,
attendance VARCHAR
) | SELECT score FROM table_name_19 WHERE attendance = "33,531" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
467,
24,
5400,
6,
755,
3341,
151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
11364,
3274,
96,
4201,
6,
755,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many items are listed under caps when burnley is the club team? | CREATE TABLE table_28286776_12 (cap_s_ VARCHAR, club_s_ VARCHAR) | SELECT COUNT(cap_s_) FROM table_28286776_12 WHERE club_s_ = "Burnley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2577,
3708,
3959,
834,
2122,
41,
4010,
834,
7,
834,
584,
4280,
28027,
6,
1886,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1173,
33,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4010,
834,
7,
834,
61,
21680,
953,
834,
2577,
2577,
3708,
3959,
834,
2122,
549,
17444,
427,
1886,
834,
7,
834,
3274,
96,
279,
450,
29,
1306,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the theme during the week # of top 24 (12 men) | CREATE TABLE table_name_73 (
theme VARCHAR,
week__number VARCHAR
) | SELECT theme FROM table_name_73 WHERE week__number = "top 24 (12 men)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
3800,
584,
4280,
28027,
6,
471,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3800,
383,
8,
471,
1713,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3800,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
471,
834,
834,
5525,
1152,
3274,
96,
2916,
997,
16465,
1076,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In connecticut the school/club team/country had a set height in ft. what is true for them? | CREATE TABLE table_17146 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | SELECT "Height in Ft." FROM table_17146 WHERE "School/Club Team/Country" = 'Connecticut' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
24300,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
5,
599,
7,
61,
121,
1499,
6,
96,
3845,
2632,
16,
377,
17,
535,
1499,
6,
96,
345,
32,
7,
4749,
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,
3845,
2632,
16,
377,
17,
535,
21680,
953,
834,
2517,
24300,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
87,
10628,
651,
121,
3274,
3,
31,
25772,
23,
3044,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the attendance when the hawthorn score is 18.15.123? | CREATE TABLE table_74258 (
"Year" real,
"Round" real,
"Winner" text,
"Hawthorn score" text,
"St Kilda score" text,
"Attendance" real,
"Venue" text,
"Silk-Miller Medallist" text
) | SELECT "Attendance" FROM table_74258 WHERE "Hawthorn score" = '18.15.123' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
357,
3449,
41,
96,
476,
2741,
121,
490,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
566,
9,
210,
17,
6293,
2604,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4581,
357,
3449,
549,
17444,
427,
96,
566,
9,
210,
17,
6293,
2604,
121,
3274,
3,
31,
2606,
5,
1808,
5,
14574,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the Pick # which has a Position of lb, and a CFL Team of winnipeg? | CREATE TABLE table_48385 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT SUM("Pick #") FROM table_48385 WHERE "Position" = 'lb' AND "CFL Team" = 'winnipeg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
519,
4433,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
3707,
519,
4433,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
40,
115,
31,
3430,
96,
254,
10765,
2271,
121,
3274,
3,
31,
3757,
29,
23,
855... |
how many players had a free transfer fee ? | CREATE TABLE table_203_237 (
id number,
"n" number,
"p" text,
"nat." text,
"name" text,
"age" number,
"moving from" text,
"type" text,
"transfer\nwindow" text,
"ends" number,
"transfer\nfee" text
) | SELECT COUNT("name") FROM table_203_237 WHERE "n" = 'free' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
4118,
41,
3,
23,
26,
381,
6,
96,
29,
121,
381,
6,
96,
102,
121,
1499,
6,
96,
29,
144,
535,
1499,
6,
96,
4350,
121,
1499,
6,
96,
545,
121,
381,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4350,
8512,
21680,
953,
834,
23330,
834,
357,
4118,
549,
17444,
427,
96,
29,
121,
3274,
3,
31,
2113,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which call sign, broadcast at less than 103.5MHz, has an ERP W of 50? | CREATE TABLE table_7122 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT "Call sign" FROM table_7122 WHERE "ERP W" = '50' AND "Frequency MHz" < '103.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
2884,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
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,
254,
1748,
1320,
121,
21680,
953,
834,
4450,
2884,
549,
17444,
427,
96,
3316,
345,
549,
121,
3274,
3,
31,
1752,
31,
3430,
96,
371,
60,
835,
11298,
3,
20210,
121,
3,
2,
3,
31,
1714,
9285,
31,
1,
-100,
-100,
... |
What was the final score at Heinz Field? | CREATE TABLE table_name_25 (final_score VARCHAR, stadium VARCHAR) | SELECT final_score FROM table_name_25 WHERE stadium = "heinz field" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
12406,
834,
7,
9022,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
44,
216,
77,
172,
7257,
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,
804,
834,
7,
9022,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
14939,
3274,
96,
88,
77,
172,
1057,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
did oklahoma score more or less than 50 points against kansas state ? | CREATE TABLE table_204_617 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT (SELECT "result" FROM table_204_617 WHERE "opponent#" = 'kansas state') > 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
2517,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
4663,
121,
1499,
6,
96,
6254,
4663,
121,
1499,
6,
96,
3585,
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,
41,
23143,
14196,
96,
60,
7,
83,
17,
121,
21680,
953,
834,
26363,
834,
948,
2517,
549,
17444,
427,
96,
32,
102,
9977,
4663,
121,
3274,
3,
31,
3304,
7,
9,
7,
538,
31,
61,
2490,
943,
1,
-100,
-100,
-100,
-100,
-... |
have patient 015-21757 been given a procedure since 4 years ago? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-21757')) AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-4 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Was the sounddock series I v2 iphone certified? | CREATE TABLE table_24384861_1 (
iphone_certified VARCHAR,
version VARCHAR
) | SELECT iphone_certified FROM table_24384861_1 WHERE version = "SoundDock series I v2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3747,
3707,
4241,
834,
536,
41,
25179,
834,
27576,
584,
4280,
28027,
6,
988,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2751,
8,
1345,
26,
3961,
939,
27,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25179,
834,
27576,
21680,
953,
834,
2266,
3747,
3707,
4241,
834,
536,
549,
17444,
427,
988,
3274,
96,
5231,
1106,
308,
3961,
939,
27,
3,
208,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the accelerate of the car make amc hornet sportabout (sw)? | CREATE TABLE CARS_DATA (Accelerate VARCHAR, Id VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR) | SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
205,
25210,
834,
27807,
41,
19543,
400,
2206,
584,
4280,
28027,
6,
27,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
205,
4280,
834,
5999,
22759,
41,
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,
332,
5411,
19543,
400,
2206,
21680,
205,
25210,
834,
27807,
6157,
332,
536,
3,
15355,
3162,
205,
4280,
834,
5999,
22759,
6157,
332,
357,
9191,
332,
5411,
196,
26,
3274,
332,
4416,
22638,
196,
26,
549,
17444,
427,
332,... |
On what date did Aymo Maggi win the Rome Grand Prix ? | CREATE TABLE table_name_6 (
date VARCHAR,
winning_driver VARCHAR,
name VARCHAR
) | SELECT date FROM table_name_6 WHERE winning_driver = "aymo maggi" AND name = "rome grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
833,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
9,
63,
51,
32,
954,
15406,
121,
3430,
564,
3274,
96,
11956,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want to know the tie for drawn of 47 | CREATE TABLE table_name_46 (
tied VARCHAR,
drawn VARCHAR
) | SELECT tied FROM table_name_46 WHERE drawn = "47" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
10422,
584,
4280,
28027,
6,
6796,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
6177,
21,
6796,
13,
10635,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10422,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
6796,
3274,
96,
4177,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the position of digital channel 5 44 (+1)? | CREATE TABLE table_22215 (
"Position" real,
"Channel" text,
"Analogue terrestrial channel" text,
"Digital terrestrial channel" text,
"Internet" text
) | SELECT "Position" FROM table_22215 WHERE "Digital terrestrial channel" = '5 44 (+1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
1808,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
3541,
4515,
40,
121,
1499,
6,
96,
188,
29,
9,
10384,
31882,
4245,
121,
1499,
6,
96,
30225,
31882,
4245,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
26144,
1808,
549,
17444,
427,
96,
30225,
31882,
4245,
121,
3274,
3,
31,
755,
8537,
17134,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the ICAO when the IATA is ika? | CREATE TABLE table_name_19 (
icao VARCHAR,
iata VARCHAR
) | SELECT icao FROM table_name_19 WHERE iata = "ika" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
3,
2617,
32,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
15038,
667,
116,
8,
27,
19282,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2617,
32,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
3,
17221,
3274,
96,
5561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the chassis when there is 25 points? | CREATE TABLE table_57185 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
) | SELECT "Chassis" FROM table_57185 WHERE "Points" = '25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
21594,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3541,
6500,
7,
121,
21680,
953,
834,
3436,
21594,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Visualize a bar chart to show editors' names and their ages, could you show total number from low to high order? | CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
) | SELECT Name, Age FROM editor ORDER BY Age | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
3559,
834,
4309,
16,
17,
6,
7678,
1499,
6,
37,
526,
1499,
6,
7107,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
834,
287,
1538,
17,
15,
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,
5570,
6,
7526,
21680,
6005,
4674,
11300,
272,
476,
7526,
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,
-10... |
what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label? | CREATE TABLE table_name_2 (
date INTEGER,
label VARCHAR,
catalog VARCHAR,
format VARCHAR
) | SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
833,
3,
21342,
17966,
6,
3783,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
5522,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
10173,
3274,
96,
3420,
2128,
121,
3430,
1910,
3274,
96,
75,
26,
121,
3430,
3783,
3274,
96,
40,
76,
5667,
3005,
102,
121,
1,
-100,
-100,
-1... |
What 2011 has 2r as 2010, and a 2008 of A? | CREATE TABLE table_36722 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2011" FROM table_36722 WHERE "2010" = '2r' AND "2008" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3708,
2884,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13907,
121,
21680,
953,
834,
519,
3708,
2884,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
357,
52,
31,
3430,
96,
16128,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many lands with longitude of -100.895783 are? | CREATE TABLE table_18600760_19 (land___sqmi__ VARCHAR, longitude VARCHAR) | SELECT COUNT(land___sqmi__) FROM table_18600760_19 WHERE longitude = "-100.895783" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
2294,
41,
40,
232,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
584,
4280,
28027,
6,
307,
20341,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
40,
232,
834,
834,
834,
7,
1824,
51,
23,
834,
834,
61,
21680,
953,
834,
24700,
4560,
3328,
834,
2294,
549,
17444,
427,
307,
20341,
3274,
96,
18,
2915,
5,
3914,
3436,
4591,
121,
1,
-100,
-100,
-10... |
What is the 2nd Leg, when Team 2 is Marbella? | CREATE TABLE table_8222 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_8222 WHERE "Team 2" = 'marbella' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
2884,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
4553,
121,
21680,
953,
834,
4613,
2884,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
1635,
7708,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Score, when Edition is 2011, and when Surface is Hard (i)? | CREATE TABLE table_62016 (
"Outcome" text,
"Edition" real,
"Round" text,
"Opponent Team" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Score" FROM table_62016 WHERE "Edition" = '2011' AND "Surface" = 'hard (i)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
11505,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
427,
10569,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
2271,
121,
1499,
6,
96,
134,
450,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
948,
11505,
549,
17444,
427,
96,
427,
10569,
121,
3274,
3,
31,
13907,
31,
3430,
96,
134,
450,
4861,
121,
3274,
3,
31,
5651,
41,
23,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Name the championship for 1980 hard surface | CREATE TABLE table_22597626_6 (championship VARCHAR, year VARCHAR, surface VARCHAR) | SELECT championship FROM table_22597626_6 WHERE year = 1980 AND surface = "Hard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3390,
3959,
2688,
834,
948,
41,
17788,
12364,
2009,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
21680,
953,
834,
2884,
3390,
3959,
2688,
834,
948,
549,
17444,
427,
215,
3274,
6694,
3430,
1774,
3274,
96,
15537,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the coach of the Pandas when their overall record was 20-6-2? | CREATE TABLE table_27069503_2 (coach VARCHAR, overall VARCHAR) | SELECT coach FROM table_27069503_2 WHERE overall = "20-6-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
3951,
1752,
519,
834,
357,
41,
509,
1836,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3763,
13,
8,
28248,
7,
116,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3763,
21680,
953,
834,
17485,
3951,
1752,
519,
834,
357,
549,
17444,
427,
1879,
3274,
96,
1755,
18,
25369,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of the game when the Lightning had a record of 9 8 1? | CREATE TABLE table_53117 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_53117 WHERE "Record" = '9–8–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
20275,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
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,
308,
342,
121,
21680,
953,
834,
4867,
20275,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1298,
104,
927,
104,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What player scored 143 goals? | CREATE TABLE table_name_15 (
player VARCHAR,
goals VARCHAR
) | SELECT player FROM table_name_15 WHERE goals = "143" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1959,
584,
4280,
28027,
6,
1766,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
5799,
3,
25133,
1766,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1766,
3274,
96,
25133,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Scores by each individual judge has a Total score/week of 51/60, and a Co-contestant (Yaar vs. Pyaar) of tina sachdev? | CREATE TABLE table_name_76 (
scores_by_each_individual_judge VARCHAR,
total_score_week VARCHAR,
co_contestant__yaar_vs_pyaar_ VARCHAR
) | SELECT scores_by_each_individual_judge FROM table_name_76 WHERE total_score_week = "51/60" AND co_contestant__yaar_vs_pyaar_ = "tina sachdev" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
7586,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
13164,
584,
4280,
28027,
6,
792,
834,
7,
9022,
834,
8041,
584,
4280,
28027,
6,
576,
834,
1018... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7586,
834,
969,
834,
15,
1836,
834,
17027,
138,
834,
354,
13164,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
792,
834,
7,
9022,
834,
8041,
3274,
96,
5553,
87,
3328,
121,
3430,
576,
834,
1018,
4377,
288,
834,
... |
Draw a bar chart for what are the ids and details of events that have more than one participants?, and show in asc by the Y. | CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
) | SELECT T1.Event_Details, T1.Event_ID FROM Events AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_Details ORDER BY T1.Event_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19204,
834,
77,
834,
427,
2169,
7,
41,
8042,
834,
4309,
3,
21342,
17966,
6,
15077,
288,
834,
4309,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
19204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
427,
2169,
834,
2962,
5756,
7,
6,
332,
5411,
427,
2169,
834,
4309,
21680,
11137,
6157,
332,
536,
3,
15355,
3162,
19204,
834,
77,
834,
427,
2169,
7,
6157,
332,
357,
9191,
332,
5411,
427,
2169,
834,
4309,
... |
which pylon is the least tall ? | CREATE TABLE table_203_375 (
id number,
"name" text,
"year built" text,
"country" text,
"town" text,
"height" text,
"remarks" text
) | SELECT "name" FROM table_203_375 ORDER BY "height" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
22954,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
1201,
1192,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
3540,
121,
1499,
6,
96,
88,
2632,
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,
4350,
121,
21680,
953,
834,
23330,
834,
22954,
4674,
11300,
272,
476,
96,
88,
2632,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Round for the jiu-jitsu vs martial arts? | CREATE TABLE table_name_20 (
round VARCHAR,
event VARCHAR
) | SELECT round FROM table_name_20 WHERE event = "jiu-jitsu vs martial arts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1751,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9609,
21,
8,
3,
354,
23,
76,
18,
13272,
7,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
605,
3274,
96,
354,
23,
76,
18,
13272,
7,
76,
3,
208,
7,
22526,
5138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the total number of platforms of locations in each location in a bar chart, I want to show y axis in asc order please. | CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE train_station (
Train_ID int,
Station_ID int
) | SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location ORDER BY SUM(Number_of_Platforms) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
5939,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7389,
834,
295,
651,
834,
994,
155,
490,
6,
7389,
834,
3870,
13073,
7,
490,
6,
9273,
834,
20192,
4606,
277,
490,
6,
10450,
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,
10450,
6,
180,
6122,
599,
567,
5937,
49,
834,
858,
834,
10146,
2032,
7,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
180,
6122,
599,
567,
5937,
49,
834,
858,
834,
10146,
2032,
7,
61,
1... |
What is the part 4 when part 1 is "lesan"? | CREATE TABLE table_1745843_8 (part_4 VARCHAR, part_1 VARCHAR) | SELECT part_4 FROM table_1745843_8 WHERE part_1 = "lesan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
3449,
4906,
834,
927,
41,
2274,
834,
591,
584,
4280,
28027,
6,
294,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
294,
314,
116,
294,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
294,
834,
591,
21680,
953,
834,
27693,
3449,
4906,
834,
927,
549,
17444,
427,
294,
834,
536,
3274,
96,
965,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE RECORD FOR THE GAME SMALLER THAN 31? | CREATE TABLE table_name_36 (
record VARCHAR,
game INTEGER
) | SELECT record FROM table_name_36 WHERE game < 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1368,
584,
4280,
28027,
6,
467,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
20921,
18400,
5652,
1853,
350,
17683,
3,
421... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
467,
3,
2,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the Date which has a Score of 3-1 and Attendances of 32 590? | CREATE TABLE table_name_52 (
date VARCHAR,
score VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_52 WHERE score = "3-1" AND attendance = "32 590" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7678,
84,
65,
3,
9,
17763,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2604,
3274,
96,
519,
2292,
121,
3430,
11364,
3274,
96,
2668,
305,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Draw a bar chart of investor versus the total number, show total number in ascending order please. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
14230,
490,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16873,
6,
2847,
17161,
599,
1935,
61,
21680,
3,
12290,
350,
4630,
6880,
272,
476,
16873,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the star of the program on Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx? | CREATE TABLE table_18540104_1 (starring_actors VARCHAR, time_frame VARCHAR) | SELECT starring_actors FROM table_18540104_1 WHERE time_frame = "Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
2445,
15442,
834,
536,
41,
22236,
834,
9,
5317,
7,
584,
4280,
28027,
6,
97,
834,
11415,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2213,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
22236,
834,
9,
5317,
7,
21680,
953,
834,
21594,
2445,
15442,
834,
536,
549,
17444,
427,
97,
834,
11415,
3274,
96,
8991,
3589,
1135,
7,
204,
24112,
2,
2884,
10,
5062,
3105,
18083,
18,
19230,
12,
3105,
18,
5176,
... |
Which title has origianal sound entertainment as its label? | CREATE TABLE table_name_85 (
title VARCHAR,
label VARCHAR
) | SELECT title FROM table_name_85 WHERE label = "origianal sound entertainment" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
2233,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2233,
65,
5322,
22898,
138,
1345,
4527,
38,
165,
3783,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
3783,
3274,
96,
2057,
22898,
138,
1345,
4527,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When west indes was a holder at the end of the series for the 1991 season with an england greater than 1, what is the smallest west indies? | CREATE TABLE table_67153 (
"Series" text,
"Season" text,
"Host" text,
"Tests" real,
"England" real,
"West Indies" real,
"Draw" real,
"Series result" text,
"Holder at the end of the series" text
) | SELECT MIN("West Indies") FROM table_67153 WHERE "Holder at the end of the series" = 'west indies' AND "England" > '1' AND "Season" = '1991' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
27025,
41,
96,
12106,
7,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
382,
222,
7,
121,
490,
6,
96,
8532,
7002,
727,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
19069,
86,
7719,
8512,
21680,
953,
834,
3708,
27025,
549,
17444,
427,
96,
566,
1490,
49,
44,
8,
414,
13,
8,
939,
121,
3274,
3,
31,
12425,
16,
7719,
31,
3430,
96,
8532,
7002,
727,
121,
2490,
3... |
Where did Collingwood play as the home team? | CREATE TABLE table_4492 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_4492 WHERE "Home team" = 'collingwood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4508,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
3628,
4508,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
3297,
697,
2037,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the final score of the Paul Goldstein match? | CREATE TABLE table_56309 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Score" FROM table_56309 WHERE "Opponent in the final" = 'paul goldstein' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
1458,
1298,
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,
8,
804,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4834,
1458,
1298,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
102,
9,
83,
2045,
4008,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the sum for a top-10 U.S. open that had a top-25 bigger than 0? | CREATE TABLE table_6569 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT SUM("Top-10") FROM table_6569 WHERE "Tournament" = 'u.s. open' AND "Top-25" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3951,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22481,
4536,
8512,
21680,
953,
834,
4122,
3951,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
76,
5,
7,
5,
539,
31,
3430,
96,
22481,
14855,
121,
2490,
3,
31,
632,
31,
1,
-100,... |
what is the sum of the cup total and the europa league total ? | CREATE TABLE table_204_784 (
id number,
"player" text,
"league" number,
"cup" number,
"europa league" number,
"total" number
) | SELECT SUM("cup") + SUM("europa league") FROM table_204_784 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3940,
591,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
29512,
121,
381,
6,
96,
4658,
121,
381,
6,
96,
27949,
5533,
121,
381,
6,
96,
235,
1947,
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,
180,
6122,
599,
121,
4658,
8512,
1768,
180,
6122,
599,
121,
27949,
5533,
8512,
21680,
953,
834,
26363,
834,
3940,
591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What seasons does Kevin Jonas appear? | CREATE TABLE table_12441518_1 (main_cast_seasons VARCHAR, portrayed_by VARCHAR) | SELECT main_cast_seasons FROM table_12441518_1 WHERE portrayed_by = "Kevin Jonas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
3628,
1808,
2606,
834,
536,
41,
7484,
834,
5254,
834,
9476,
7,
584,
4280,
28027,
6,
3,
27486,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
9385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
834,
5254,
834,
9476,
7,
21680,
953,
834,
2122,
3628,
1808,
2606,
834,
536,
549,
17444,
427,
3,
27486,
834,
969,
3274,
96,
439,
15,
2494,
8178,
9,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the total number of votes for Tom Connally | CREATE TABLE table_1342393_42 (first_elected INTEGER, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_1342393_42 WHERE incumbent = "Tom Connally" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
4271,
834,
4165,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
381,
13,
11839,
21,
3059... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2773,
4271,
834,
4165,
549,
17444,
427,
28406,
3274,
96,
3696,
51,
1193,
29,
1427,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the 1996 when the 1994 is A, the 2003 is A, and the 2001 is 1R? | CREATE TABLE table_50780 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text
) | SELECT "1996" FROM table_50780 WHERE "1994" = 'a' AND "2003" = 'a' AND "2001" = '1r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
940,
2079,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
2394,
121,
1499,
6,
96,
2294,
4729,
121,
1499,
6,
96,
19479,
357,
121,
1499,
6,
96,
2294,
4271,
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,
2294,
4314,
121,
21680,
953,
834,
1752,
940,
2079,
549,
17444,
427,
96,
19479,
20364,
3274,
3,
31,
9,
31,
3430,
96,
23948,
121,
3274,
3,
31,
9,
31,
3430,
96,
23658,
121,
3274,
3,
31,
536,
52,
31,
1,
-100,
... |
What is the name of the artist who produced the shortest song? | CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (artist_name VARCHAR, f_id VARCHAR) | SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
89,
834,
23,
26,
584,
4280,
28027,
6,
8659,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
1408,
343,
834,
4350,
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,
5411,
1408,
343,
834,
4350,
21680,
2324,
6157,
332,
536,
3,
15355,
3162,
2073,
6157,
332,
357,
9191,
332,
5411,
89,
834,
23,
26,
3274,
332,
4416,
89,
834,
23,
26,
4674,
11300,
272,
476,
332,
4416,
1259,
2661,
... |
What was the score for the game on November 1? | CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_25 WHERE date = "november 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
467,
30,
1671,
209,
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,
2604,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is every score in the final for opponent in final John Mcenroe at US Open? | CREATE TABLE table_73495 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Score in the final" FROM table_73495 WHERE "Opponent in the final" = 'John McEnroe' AND "Championship" = 'US Open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
591,
3301,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
16,
8,
804,
121,
21680,
953,
834,
4552,
591,
3301,
549,
17444,
427,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
18300,
3038,
8532,
52,
32,
15,
31,
3430,
96,
254,
1483,
12364,
2009,
121,
3274... |
Who is the champion of the 1994 season? | CREATE TABLE table_2527617_1 (champion VARCHAR, season VARCHAR) | SELECT champion FROM table_2527617_1 WHERE season = 1994 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
357,
3959,
2517,
834,
536,
41,
17788,
12364,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
6336,
13,
8,
7520,
774,
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,
6336,
21680,
953,
834,
1828,
357,
3959,
2517,
834,
536,
549,
17444,
427,
774,
3274,
7520,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of customers who are living in Colorado? | CREATE TABLE addresses (
address_id number,
address_content text,
city text,
zip_postcode text,
state_province_county text,
country text,
other_address_details text
)
CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_status text,
order_date time,
order_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 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 order_items (
order_id number,
product_id number,
order_quantity text
)
CREATE TABLE products (
product_id number,
product_details text
) | SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = "Colorado" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7181,
41,
1115,
834,
23,
26,
381,
6,
1115,
834,
14819,
1499,
6,
690,
1499,
6,
10658,
834,
5950,
4978,
1499,
6,
538,
834,
1409,
2494,
565,
834,
13362,
63,
1499,
6,
684,
1499,
6,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
25697,
49,
834,
4350,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
9,
26,
12039,
15,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
... |
What is the total blocks when there are less than 210 digs and the total attempts are more than 1116? | CREATE TABLE table_name_78 (
total_blocks INTEGER,
digs VARCHAR,
total_attempts VARCHAR
) | SELECT AVG(total_blocks) FROM table_name_78 WHERE digs < 210 AND total_attempts > 1116 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
792,
834,
10734,
7,
3,
21342,
17966,
6,
9799,
7,
584,
4280,
28027,
6,
792,
834,
144,
17,
9045,
7,
584,
4280,
28027,
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,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
834,
10734,
7,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
9799,
7,
3,
2,
3,
15239,
3430,
792,
834,
144,
17,
9045,
7,
2490,
850,
2938,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Team Record, when the Result is l 0 24? | CREATE TABLE table_name_52 (
team_record VARCHAR,
result VARCHAR
) | SELECT team_record FROM table_name_52 WHERE result = "l 0–24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
372,
834,
60,
7621,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2271,
11392,
6,
116,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
60,
7621,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
741,
3274,
96,
40,
3,
632,
104,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the latitude for the berlin township with a geo id less than 3801706260 | CREATE TABLE table_name_62 (
latitude VARCHAR,
township VARCHAR,
geo_id VARCHAR
) | SELECT COUNT(latitude) FROM table_name_62 WHERE township = "berlin" AND geo_id < 3801706260 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
50,
6592,
584,
4280,
28027,
6,
1511,
2009,
584,
4280,
28027,
6,
9502,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
521,
6592,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1511,
2009,
3274,
96,
27995,
121,
3430,
9502,
834,
23,
26,
3,
2,
3,
22671,
2517,
5176,
18365,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Draw a bar chart about the distribution of All_Home and School_ID , and group by attribute ACC_Road, I want to list from low to high by the y-axis please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY School_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
6,
432,
834,
19040,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which player has 79.62 as the strike rate? | CREATE TABLE table_name_89 (
player VARCHAR,
strike_rate VARCHAR
) | SELECT player FROM table_name_89 WHERE strike_rate = "79.62" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1959,
584,
4280,
28027,
6,
6585,
834,
2206,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
65,
3,
4440,
5,
4056,
38,
8,
6585,
1080... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
6585,
834,
2206,
3274,
96,
4440,
5,
4056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many times was something listed under content when the television was R-light? | CREATE TABLE table_15887683_19 (
content VARCHAR,
television_service VARCHAR
) | SELECT COUNT(content) FROM table_15887683_19 WHERE television_service = "R-LIGHT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4060,
3959,
4591,
834,
2294,
41,
738,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
424,
2616,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
14819,
61,
21680,
953,
834,
1808,
4060,
3959,
4591,
834,
2294,
549,
17444,
427,
4390,
834,
5114,
3274,
96,
448,
18,
434,
19114,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance? | CREATE TABLE table_name_97 (week INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT SUM(week) FROM table_name_97 WHERE opponent = "houston oilers" AND attendance > 54 OFFSET 582 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
1274,
383,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
15264,
3274,
96,
9492,
4411,
1043,
277,
121,
3430,
11364,
2490,
10630,
3,
15316,
20788,
305,
4613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the player if the innings is 82? | CREATE TABLE table_25970 (
"Rank" real,
"Runs" real,
"Player" text,
"Matches" real,
"Innings" real,
"Not Out" real,
"Average" text
) | SELECT "Player" FROM table_25970 WHERE "Innings" = '82' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
2518,
41,
96,
22557,
121,
490,
6,
96,
448,
202,
7,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
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,
15800,
49,
121,
21680,
953,
834,
357,
3390,
2518,
549,
17444,
427,
96,
196,
9416,
7,
121,
3274,
3,
31,
4613,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what was the name of the specimen test that patient 031-4423 had first received on their last hospital encounter? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
) | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-4423' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) ORDER BY microlab.culturetakentime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2179,
9339,
5,
10547,
3585,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
How many times is the shot volume (cm3) less than 172.76? | CREATE TABLE table_name_37 (
shot_diameter__cm_ VARCHAR,
shot_volume__cm_3__ INTEGER
) | SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
2538,
834,
26,
23,
9,
4401,
834,
834,
75,
51,
834,
584,
4280,
28027,
6,
2538,
834,
23439,
834,
834,
75,
51,
834,
519,
834,
834,
3,
21342,
17966,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
11159,
834,
26,
23,
9,
4401,
834,
834,
75,
51,
834,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
2538,
834,
23439,
834,
834,
75,
51,
834,
519,
834,
834,
3,
2,
3,
27156,
5,
3959,
1,
... |
Which Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount karisimbi, and a Col (m) larger than 1195? | CREATE TABLE table_64450 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT MIN("Elevation (m)") FROM table_64450 WHERE "Prominence (m)" > '2,120' AND "Peak" = 'mount karisimbi' AND "Col (m)" > '1195' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
10593,
41,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
61,
121,
490,
6,
96,
3174,
1109,
1433,
41,
51,
61,
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,
3,
17684,
599,
121,
427,
10912,
257,
41,
51,
61,
8512,
21680,
953,
834,
4389,
10593,
549,
17444,
427,
96,
3174,
1109,
1433,
41,
51,
61,
121,
2490,
3,
31,
4482,
15518,
31,
3430,
96,
345,
15,
1639,
121,
3274,
3,
3... |
What is Builder, when Country is 'United Kingdom', and when Location is 'Chatham, Kent'? | CREATE TABLE table_name_35 (
builder VARCHAR,
country VARCHAR,
location VARCHAR
) | SELECT builder FROM table_name_35 WHERE country = "united kingdom" AND location = "chatham, kent" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
918,
49,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
16799,
6,
116,
6993,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
918,
49,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
14740,
121,
3430,
1128,
3274,
96,
16842,
1483,
6,
3,
2217,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
specify the type of drug code nalo4i | 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 prescriptions.drug_type FROM prescriptions WHERE prescriptions.formulary_drug_cd = "NALO4I" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
3274,
96,
5999,
5017,
591,
196,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients whose admission location is clinic referral/premature and primary disease is ventricular tachycardia? | 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 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.diagnosis = "VENTRICULAR TACHYCARDIA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
254,
20931,
4666,
4083,
20805,
21415,
87,
5554,
20211,
25380,
1... |
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the sum of salary bin hire_date by time in a bar chart, sort from high to low by the y axis. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
180,
6122,
599,
134,
4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.