NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the total number of Points 1, when Lost is less than 20, and when Goals For is greater than 92? | CREATE TABLE table_name_10 (points_1 VARCHAR, lost VARCHAR, goals_for VARCHAR) | SELECT COUNT(points_1) FROM table_name_10 WHERE lost < 20 AND goals_for > 92 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2700,
7,
834,
536,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2700,
7,
834,
6982,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1513,
3,
2,
460,
3430,
1766,
834,
1161,
2490,
3,
4508,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give the number of patients with diagnoses icd9 code e8120 and drug routeis td. | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "E8120" AND prescriptions.route = "TD" | [
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,
3... |
What is the Position when the person's birthplace was toledo, ohio? | CREATE TABLE table_name_32 (
position VARCHAR,
birthplace VARCHAR
) | SELECT position FROM table_name_32 WHERE birthplace = "toledo, ohio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1102,
584,
4280,
28027,
6,
3879,
4687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14258,
116,
8,
568,
31,
7,
3879,
4687,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3879,
4687,
3274,
96,
235,
1361,
32,
6,
3,
32,
107,
23,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which steal/intercept ball has no for both the sliding tackle and dump tackle? | CREATE TABLE table_name_37 (steal_intercept_ball VARCHAR, sliding_tackle VARCHAR, dump_tackle VARCHAR) | SELECT steal_intercept_ball FROM table_name_37 WHERE sliding_tackle = "no" AND dump_tackle = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
849,
138,
834,
3870,
6873,
834,
3184,
584,
4280,
28027,
6,
13441,
834,
17,
9,
19376,
584,
4280,
28027,
6,
11986,
834,
17,
9,
19376,
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,
11332,
834,
3870,
6873,
834,
3184,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
13441,
834,
17,
9,
19376,
3274,
96,
29,
32,
121,
3430,
11986,
834,
17,
9,
19376,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-1... |
If the games played are smaller than 18, what are the lowest goals conceded? | CREATE TABLE table_name_72 (goals_conceded INTEGER, played INTEGER) | SELECT MIN(goals_conceded) FROM table_name_72 WHERE played < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
839,
5405,
834,
11620,
221,
26,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1031,
1944,
33,
2755,
145,
14985,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
839,
5405,
834,
11620,
221,
26,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1944,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average goals against for teams with more than 56 goals for and exactly 50 points? | CREATE TABLE table_9513 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
) | SELECT AVG("Goals Against") FROM table_9513 WHERE "Points 1" = '50' AND "Goals For" > '56' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3301,
2368,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
6221,
5405,
3,
20749,
8512,
21680,
953,
834,
3301,
2368,
549,
17444,
427,
96,
22512,
7,
209,
121,
3274,
3,
31,
1752,
31,
3430,
96,
6221,
5405,
242,
121,
2490,
3,
31,
4834,
31,
1,
-100,
-100,
... |
What is the average year for releases on Friday and weeks larger than 2 days? | CREATE TABLE table_name_28 (
year INTEGER,
day_in_release VARCHAR,
day_of_week VARCHAR
) | SELECT AVG(year) FROM table_name_28 WHERE day_in_release = "friday" AND day_of_week > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
215,
3,
21342,
17966,
6,
239,
834,
77,
834,
21019,
584,
4280,
28027,
6,
239,
834,
858,
834,
8041,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
239,
834,
77,
834,
21019,
3274,
96,
89,
52,
23,
1135,
121,
3430,
239,
834,
858,
834,
8041,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-... |
How low is the Attendance that has an Opponent of devil rays and a Date of may 13? | CREATE TABLE table_name_15 (
attendance INTEGER,
opponent VARCHAR,
date VARCHAR
) | SELECT MIN(attendance) FROM table_name_15 WHERE opponent = "devil rays" AND date = "may 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
11364,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
731,
19,
8,
22497,
663,
24,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
15264,
3274,
96,
221,
6372,
3,
2866,
7,
121,
3430,
833,
3274,
96,
13726,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What score has hard (i) as the surface, and Columbus, Ohio as the tournament? | CREATE TABLE table_name_26 (
score VARCHAR,
surface VARCHAR,
tournament VARCHAR
) | SELECT score FROM table_name_26 WHERE surface = "hard (i)" AND tournament = "columbus, ohio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
2604,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
65,
614,
41,
23,
61,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1774,
3274,
96,
5651,
41,
23,
61,
121,
3430,
5892,
3274,
96,
3297,
440,
3465,
6,
3,
32,
107,
23,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the mean number of laps when time/retired was spun off and the driver was Nick Heidfeld? | CREATE TABLE table_name_60 (
laps INTEGER,
time_retired VARCHAR,
driver VARCHAR
) | SELECT AVG(laps) FROM table_name_60 WHERE time_retired = "spun off" AND driver = "nick heidfeld" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
14941,
7,
3,
21342,
17966,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
7,
6225,
326,
121,
3430,
2535,
3274,
96,
11191,
3,
88,
23,
26,
5003,
121,
1,
-100,
-100,
-100,
-100,
... |
What is Name, when Team is 'Herdez Competition', and when Best is 1:27.432? | CREATE TABLE table_8336 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Name" FROM table_8336 WHERE "Team" = 'herdez competition' AND "Best" = '1:27.432' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4591,
3420,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5991,
138,
209,
121,
1499,
6,
96,
5991,
138,
204,
121,
1499,
6,
96,
17278,
121,
1499,
3,
61,
3,
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,
96,
23954,
121,
21680,
953,
834,
4591,
3420,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
760,
26,
457,
2259,
31,
3430,
96,
17278,
121,
3274,
3,
31,
536,
10,
2555,
5,
591,
2668,
31,
1,
-100,
-100,
-100,
-100,
-... |
What is the average losses for the team(s) that played more than 8 games? | CREATE TABLE table_name_37 (
losses INTEGER,
games_played INTEGER
) | SELECT AVG(losses) FROM table_name_37 WHERE games_played > 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
8467,
3,
21342,
17966,
6,
1031,
834,
4895,
15,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
8467,
21,
8,
372,
599,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1031,
834,
4895,
15,
26,
2490,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return the lot details, group the lot details, and compute the number of each lot details, and could you show x-axis in descending order? | CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_det... | SELECT lot_details, COUNT(lot_details) FROM Lots GROUP BY lot_details ORDER BY lot_details DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
834,
434,
32,
17,
7,
41,
5878,
834,
23,
26,
3,
21342,
17966,
6,
418,
834,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21469,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
418,
834,
221,
5756,
7,
6,
2847,
17161,
599,
3171,
834,
221,
5756,
7,
61,
21680,
14868,
350,
4630,
6880,
272,
476,
418,
834,
221,
5756,
7,
4674,
11300,
272,
476,
418,
834,
221,
5756,
7,
309,
25067,
1,
-100,
-100,
... |
What venue featured the home side of st kilda? | CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_67 WHERE home_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
15098,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5669,
4510,
8,
234,
596,
13,
3,
7,
17,
3,
157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the date of completion where deadline for completion is september 30, 2007 | CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, deadline_for_completion VARCHAR) | SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = "September 30, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4560,
3840,
2688,
834,
536,
41,
5522,
834,
858,
834,
7699,
109,
1575,
584,
4280,
28027,
6,
7183,
834,
1161,
834,
7699,
109,
1575,
584,
4280,
28027,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
7699,
109,
1575,
21680,
953,
834,
2122,
4560,
3840,
2688,
834,
536,
549,
17444,
427,
7183,
834,
1161,
834,
7699,
109,
1575,
3274,
96,
27652,
11558,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What country did Day & Age rank number 1 in Q prior to 2011? | CREATE TABLE table_name_52 (
country VARCHAR,
publication VARCHAR,
year VARCHAR,
rank VARCHAR
) | SELECT country FROM table_name_52 WHERE year < 2011 AND rank > 1 AND publication = "q" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
684,
584,
4280,
28027,
6,
5707,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
215,
3,
2,
2722,
3430,
11003,
2490,
209,
3430,
5707,
3274,
96,
1824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the correlation between School_ID and All_Games_Percent , and group by attribute All_Games in a scatter chart. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY All_Games | [
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,
1121,
834,
4309,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
23055,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total number of teams that no longer operate ? | CREATE TABLE table_203_168 (
id number,
"team name" text,
"leagues" text,
"base" text,
"year started" text,
"year ended" text,
"notable riders" text
) | SELECT COUNT("team name") FROM table_203_168 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24274,
41,
3,
23,
26,
381,
6,
96,
11650,
564,
121,
1499,
6,
96,
29512,
7,
121,
1499,
6,
96,
10925,
121,
1499,
6,
96,
1201,
708,
121,
1499,
6,
96,
1201,
3492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11650,
564,
8512,
21680,
953,
834,
23330,
834,
24274,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sales when the artist is kelly clarkson? | CREATE TABLE table_14044 (
"Rank" real,
"Artist" text,
"Album" text,
"Peak position" text,
"Sales" real,
"Certification" text
) | SELECT COUNT("Sales") FROM table_14044 WHERE "Artist" = 'kelly clarkson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3628,
41,
96,
22557,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
345,
15,
1639,
1102,
121,
1499,
6,
96,
134,
4529,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
4529,
8512,
21680,
953,
834,
22012,
3628,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
5768,
120,
6860,
157,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many asian patients had the diagnosis short title suicidal ideation? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.short_title = "Suicidal ideation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Visualize a bar chart about the distribution of All_Road and All_Games_Percent , and display bar in asc order please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Road, All_Games_Percent FROM basketball_match ORDER BY All_Road | [
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,
448,
32,
9,
26,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score when the away team was West Ham United? | CREATE TABLE table_name_4 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_4 WHERE away_team = "west ham united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
2604,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
8,
550,
372,
47,
1244,
5845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
550,
834,
11650,
3274,
96,
12425,
3,
1483,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer? | CREATE TABLE table_34321 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
) | SELECT SUM("Episode") FROM table_34321 WHERE "Performer 4" = 'chip esten' AND "Performer 2" = 'christopher smith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
519,
2658,
41,
96,
308,
342,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
12988,
2032,
49,
209,
121,
1499,
6,
96,
12988,
2032,
49,
204,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
427,
102,
159,
32,
221,
8512,
21680,
953,
834,
3710,
519,
2658,
549,
17444,
427,
96,
12988,
2032,
49,
3,
20364,
3274,
3,
31,
17362,
249,
29,
31,
3430,
96,
12988,
2032,
49,
204,
121,
3274,
3,
... |
What is the unit price of the tune 'Fast As a Shark'? | CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE albums (
... | SELECT unit_price FROM tracks WHERE name = "Fast As a Shark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
3,
23,
26,
381,
6,
336,
834,
4350,
1499,
6,
166,
834,
4350,
1499,
6,
2233,
1499,
6,
2279,
834,
235,
381,
6,
3879,
834,
5522,
97,
6,
3804,
834,
5522,
97,
6,
1115,
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,
1745,
834,
102,
4920,
21680,
6542,
549,
17444,
427,
564,
3274,
96,
371,
9,
7,
17,
282,
3,
9,
23442,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, find headquarter and the sum of price , and group by attribute headquarter, and visualize them by a bar chart, and show by the y-axis in ascending please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Price) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
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,
3642,
19973,
6,
180,
6122,
599,
345,
4920,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642... |
what is the number of female patients who have diagnoses icd9 code 4271? | 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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.icd9_code = "4271" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
who is the actor when the character is dinny byrne? | CREATE TABLE table_name_8 (actor VARCHAR, character VARCHAR) | SELECT actor FROM table_name_8 WHERE character = "dinny byrne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
9,
5317,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
7556,
116,
8,
1848,
19,
176,
29,
63,
57,
52,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7556,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
1848,
3274,
96,
2644,
29,
63,
57,
52,
29,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Plot the total number by grouped by country as a bar graph, and order by the y axis from low to high please. | CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
) | SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
8541,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
1888,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1751,
41,
9609,
834,
4309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
1144,
350,
4630,
6880,
272,
476,
6993,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What are the student ids for all male students? | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
) | SELECT stuid FROM student WHERE sex = 'M' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
21341,
23,
26,
21680,
1236,
549,
17444,
427,
3,
7,
994,
3274,
3,
31,
329,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
I want the trailers for motors of 145 | CREATE TABLE table_52220 (
"Year" text,
"Builder" text,
"Motors" text,
"Trailers" text,
"Control Trailers" text
) | SELECT "Trailers" FROM table_52220 WHERE "Motors" = '145' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
357,
1755,
41,
96,
476,
2741,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
329,
32,
5535,
121,
1499,
6,
96,
9402,
173,
277,
121,
1499,
6,
96,
25716,
24534,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9402,
173,
277,
121,
21680,
953,
834,
5373,
357,
1755,
549,
17444,
427,
96,
329,
32,
5535,
121,
3274,
3,
31,
20987,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the week with a school that is ball state? | CREATE TABLE table_34400 (
"Week" text,
"Division" text,
"Position" text,
"Player" text,
"School" text
) | SELECT "Week" FROM table_34400 WHERE "School" = 'ball state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
5548,
41,
96,
518,
10266,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
29364,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
121,
21680,
953,
834,
3710,
5548,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
3184,
538,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What language did the word that means mahjong first come from? | CREATE TABLE table_45720 (
"Japanese" text,
"R\u014dmaji" text,
"Meaning" text,
"Chinese" text,
"Romanization" text,
"Source language" text
) | SELECT "Source language" FROM table_45720 WHERE "Meaning" = 'mahjong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
18517,
41,
96,
683,
9750,
1496,
15,
121,
1499,
6,
96,
448,
2,
76,
632,
2534,
26,
16547,
23,
121,
1499,
6,
96,
329,
15,
152,
53,
121,
1499,
6,
96,
3541,
4477,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23799,
1612,
121,
21680,
953,
834,
2128,
18517,
549,
17444,
427,
96,
329,
15,
152,
53,
121,
3274,
3,
31,
51,
9,
107,
354,
2444,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients use the drug code rosi8 and tested with urine in lab? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "ROSI8" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
How many viewers in the UK did episode 50 have? | CREATE TABLE table_30139175_3 (
uk_total_viewers VARCHAR,
episode_no VARCHAR
) | SELECT uk_total_viewers FROM table_30139175_3 WHERE episode_no = 50 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
2368,
4729,
3072,
834,
519,
41,
3,
1598,
834,
235,
1947,
834,
4576,
277,
584,
4280,
28027,
6,
5640,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1598,
834,
235,
1947,
834,
4576,
277,
21680,
953,
834,
1458,
2368,
4729,
3072,
834,
519,
549,
17444,
427,
5640,
834,
29,
32,
3274,
943,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the result for director Said Elmarouk before 2008? | CREATE TABLE table_name_2 (result VARCHAR, director VARCHAR, year VARCHAR) | SELECT result FROM table_name_2 WHERE director = "said elmarouk" AND year < 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
21,
2090,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
2090,
3274,
96,
7,
6146,
3,
15,
40,
1635,
32,
1598,
121,
3430,
215,
3,
2,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Opponent has a Score of 3 6, 5 7? | CREATE TABLE table_name_52 (
opponent VARCHAR,
score VARCHAR
) | SELECT opponent FROM table_name_52 WHERE score = "3–6, 5–7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,
3,
9,
17763,
13,
220,
8580,
305,
489,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2604,
3274,
96,
519,
104,
11071,
305,
104,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the date won for wwe intercontinental championship | CREATE TABLE table_15276 (
"Championship" text,
"Current champion(s)" text,
"Reign" text,
"Date won" text,
"Days held" real,
"Location" text
) | SELECT "Date won" FROM table_15276 WHERE "Championship" = 'wwe intercontinental championship' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
3959,
41,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
254,
450,
5320,
6336,
599,
7,
61,
121,
1499,
6,
96,
1649,
3191,
121,
1499,
6,
96,
308,
342,
751,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
751,
121,
21680,
953,
834,
26320,
3959,
549,
17444,
427,
96,
254,
1483,
12364,
2009,
121,
3274,
3,
31,
210,
1123,
1413,
27339,
138,
10183,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert? | CREATE TABLE table_name_58 (
ice_level_reporters VARCHAR,
year VARCHAR,
color_commentator_s_ VARCHAR,
play_by_play VARCHAR
) | SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = "john davidson" AND play_by_play = "marv albert" AND year > 1992 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
3,
867,
834,
4563,
834,
60,
1493,
277,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
945,
834,
287,
297,
1016,
834,
7,
834,
584,
4280,
28027,
6,
577... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
867,
834,
4563,
834,
60,
1493,
277,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
945,
834,
287,
297,
1016,
834,
7,
834,
3274,
96,
27341,
836,
6961,
739,
121,
3430,
577,
834,
969,
834,
4895,
3274,
96,
1635... |
How many ends lost when shot % is 88 and ends won are 31? | CREATE TABLE table_name_72 (ends_lost VARCHAR, shot_pct VARCHAR, ends_won VARCHAR) | SELECT COUNT(ends_lost) FROM table_name_72 WHERE shot_pct = 88 AND ends_won = 31 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
989,
7,
834,
2298,
17,
584,
4280,
28027,
6,
2538,
834,
102,
75,
17,
584,
4280,
28027,
6,
5542,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
989,
7,
834,
2298,
17,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
2538,
834,
102,
75,
17,
3274,
3,
4060,
3430,
5542,
834,
210,
106,
3274,
2664,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is maximum age of patients whose ethnicity is white - russian and days of hospital stay is 29? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.days_stay = "29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
3,
18,
3,
8503,
4256,
21758,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
3166,
12... |
How many patients born before the year 1837 were admitted to trsf within this facility? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "1837" | [
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,
11421,
7016,
11951,
3162,
12689,
377,
5173,
3502,
15296,
121,
3... |
How many were in attendance during the game on January 9, 1988? | CREATE TABLE table_20558 (
"#" real,
"Date" text,
"at/vs." text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
) | SELECT "Attendance" FROM table_20558 WHERE "Date" = 'January 9, 1988' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
3449,
41,
96,
4663,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
144,
87,
208,
7,
535,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
23201,
3449,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
9902,
10414,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is his highest number of top 25s when eh played over 2 events and under 0 wins? | CREATE TABLE table_name_28 (top_25 INTEGER, events VARCHAR, wins VARCHAR) | SELECT MAX(top_25) FROM table_name_28 WHERE events > 2 AND wins < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2916,
834,
1828,
3,
21342,
17966,
6,
984,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
112,
2030,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
984,
2490,
204,
3430,
9204,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the mean game played on January 9? | CREATE TABLE table_44290 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT AVG("Game") FROM table_44290 WHERE "Date" = 'january 9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
23838,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
23055,
8512,
21680,
953,
834,
3628,
23838,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
7066,
76,
1208,
668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the longitude of Carmenta Farra in 1994? | CREATE TABLE table_43787 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real
) | SELECT "Longitude" FROM table_43787 WHERE "Year named" = '1994' AND "Name" = 'carmenta farra' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4118,
4225,
41,
96,
23954,
121,
1499,
6,
96,
3612,
6592,
121,
1499,
6,
96,
434,
2444,
20341,
121,
1499,
6,
96,
23770,
4401,
41,
5848,
61,
121,
490,
6,
96,
476,
2741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
2444,
20341,
121,
21680,
953,
834,
591,
4118,
4225,
549,
17444,
427,
96,
476,
2741,
2650,
121,
3274,
3,
31,
2294,
4240,
31,
3430,
96,
23954,
121,
3274,
3,
31,
1720,
297,
9,
623,
52,
9,
31,
1,
-100,
-100... |
With a Primary military speciality of astral assault tactics, what is the Secondary military speciality? | CREATE TABLE table_name_58 (secondary_military_speciality VARCHAR, primary_military_speciality VARCHAR) | SELECT secondary_military_speciality FROM table_name_58 WHERE primary_military_speciality = "astral assault tactics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
12091,
1208,
834,
5952,
17,
1208,
834,
17434,
485,
584,
4280,
28027,
6,
2329,
834,
5952,
17,
1208,
834,
17434,
485,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6980,
834,
5952,
17,
1208,
834,
17434,
485,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
2329,
834,
5952,
17,
1208,
834,
17434,
485,
3274,
96,
12163,
138,
12710,
15541,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes? | CREATE TABLE table_name_22 (
format VARCHAR,
open_standard VARCHAR,
image_support VARCHAR,
interactivity_support VARCHAR,
word_wrap_support VARCHAR
) | SELECT format FROM table_name_22 WHERE interactivity_support = "no" AND word_wrap_support = "yes" AND image_support = "yes" AND open_standard = "yes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
1910,
584,
4280,
28027,
6,
539,
834,
16020,
584,
4280,
28027,
6,
1023,
834,
20390,
584,
4280,
28027,
6,
1413,
21661,
834,
20390,
584,
4280,
28027,
6,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1413,
21661,
834,
20390,
3274,
96,
29,
32,
121,
3430,
1448,
834,
210,
5846,
834,
20390,
3274,
96,
10070,
121,
3430,
1023,
834,
20390,
3274,
96,
10070,
121,
3430... |
What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki? | CREATE TABLE table_23465864_6 (
wed_26_aug VARCHAR,
rider VARCHAR
) | SELECT wed_26_aug FROM table_23465864_6 WHERE rider = "Andrew Farrell 400cc Kawasaki" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4448,
3449,
4389,
834,
948,
41,
62,
26,
834,
2688,
834,
402,
122,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
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,
62,
26,
834,
2688,
834,
402,
122,
21680,
953,
834,
2773,
4448,
3449,
4389,
834,
948,
549,
17444,
427,
2564,
52,
3274,
96,
7175,
60,
210,
1699,
21290,
4837,
75,
75,
2209,
9491,
11259,
121,
1,
-100,
-100,
-100,
-100,
... |
Name the ends lost for 67 pa | CREATE TABLE table_15333005_1 (
Ends VARCHAR,
pa VARCHAR
) | SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
17225,
3076,
834,
536,
41,
3720,
7,
584,
4280,
28027,
6,
2576,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5542,
1513,
21,
3,
3708,
2576,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3720,
7,
6157,
1513,
21680,
953,
834,
27025,
17225,
3076,
834,
536,
549,
17444,
427,
2576,
3274,
3,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the ids of all male students who do not play football? | CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
... | SELECT stuid FROM student WHERE sex = 'M' EXCEPT SELECT stuid FROM sportsinfo WHERE sportname = "Football" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4805,
834,
7261,
7,
41,
21341,
23,
26,
381,
6,
467,
23,
26,
381,
6,
716,
834,
4895,
15,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
21341,
23,
26,
21680,
1236,
549,
17444,
427,
3,
7,
994,
3274,
3,
31,
329,
31,
262,
4,
30416,
3,
23143,
14196,
21341,
23,
26,
21680,
2100,
9583,
549,
17444,
427,
2600,
4350,
3274,
96,
371,
32,
32,
17,
3184,
121,
... |
calculate the minimum age of married patients aged 36 years or more. | 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
)
C... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.age >= "36" | [
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,
3,
17684,
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,
545,
2490,
2423,
96,
3420,
121,
1,
-100,
-100,
-100,
-10... |
How many points in 87/88 for racing de c rdoba? | CREATE TABLE table_19354 (
"Team" text,
"Average" text,
"Points" real,
"Played" real,
"1987-88" text,
"1988-89" text,
"1989-90" real
) | SELECT "1987-88" FROM table_19354 WHERE "Team" = 'Racing de Córdoba' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2469,
591,
41,
96,
18699,
121,
1499,
6,
96,
188,
624,
545,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
24151,
25580,
927,
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,
24151,
25580,
927,
121,
21680,
953,
834,
2294,
2469,
591,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
448,
9,
75,
53,
20,
205,
4922,
52,
26,
32,
115,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose death status is 0 and diagnoses long title is other emphysema? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.long_title = "Other emphysema" | [
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 order #1 has a result of bottom 2 | CREATE TABLE table_21501518_1 (
order__number VARCHAR,
result VARCHAR
) | SELECT order__number FROM table_21501518_1 WHERE result = "Bottom 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
12278,
1808,
2606,
834,
536,
41,
455,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
455,
7172,
65,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
455,
834,
834,
5525,
1152,
21680,
953,
834,
357,
12278,
1808,
2606,
834,
536,
549,
17444,
427,
741,
3274,
96,
26465,
235,
51,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the race class and number of races in each class with a bar chart, and list x axis in asc order please. | CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
) | SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY Class | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
41,
8799,
834,
4309,
16,
17,
6,
5570,
1499,
6,
10450,
1499,
6,
15915,
53,
490,
6,
2929,
834,
22696,
15,
26,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4501,
6,
2847,
17161,
599,
1935,
61,
21680,
1964,
350,
4630,
6880,
272,
476,
4501,
4674,
11300,
272,
476,
4501,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the average byes of Bonnie Doon having more than 16 wins? | CREATE TABLE table_name_54 (byes INTEGER, benalla_dfl VARCHAR, wins VARCHAR) | SELECT AVG(byes) FROM table_name_54 WHERE benalla_dfl = "bonnie doon" AND wins > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
969,
15,
7,
3,
21342,
17966,
6,
36,
29,
1748,
9,
834,
26,
89,
40,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
969,
15,
7,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
36,
29,
1748,
9,
834,
26,
89,
40,
3274,
96,
115,
32,
11113,
103,
106,
121,
3430,
9204,
2490,
898,
1,
-100,
-100,
-100,
-100,
-10... |
What is the number for match when the draws in more than 0, the team is Polonia Bydgoszcz, and there are less than 17 points? | CREATE TABLE table_10036 (
"Team" text,
"Match" real,
"Points" real,
"Draw" real,
"Lost" real
) | SELECT SUM("Match") FROM table_10036 WHERE "Draw" > '0' AND "Team" = 'polonia bydgoszcz' AND "Points" < '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
3420,
41,
96,
18699,
121,
1499,
6,
96,
329,
14547,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
308,
10936,
121,
490,
6,
96,
434,
3481,
121,
490,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
329,
14547,
8512,
21680,
953,
834,
2915,
3420,
549,
17444,
427,
96,
308,
10936,
121,
2490,
3,
31,
632,
31,
3430,
96,
18699,
121,
3274,
3,
31,
3233,
8008,
57,
26,
839,
7,
172,
75,
172,
31,
34... |
Can you tell me what is FCC info for harmony township, new jersey? | CREATE TABLE table_name_39 (
fcc_info VARCHAR,
city_of_license VARCHAR
) | SELECT fcc_info FROM table_name_39 WHERE city_of_license = "harmony township, new jersey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
3,
89,
75,
75,
834,
9583,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
89,
75,
75,
834,
9583,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
3272,
21208,
1511,
2009,
6,
126,
13426,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the incumbent for virginia 18 | CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3651,
519,
4225,
834,
2606,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
28406,
21,
24556,
23,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
28406,
21680,
953,
834,
2688,
3651,
519,
4225,
834,
2606,
549,
17444,
427,
3939,
3274,
96,
21031,
122,
77,
23,
9,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama? | CREATE TABLE table_name_64 (puchat_ligi INTEGER, uefa_cup VARCHAR, player VARCHAR) | SELECT MIN(puchat_ligi) FROM table_name_64 WHERE uefa_cup < 2 AND player = "takesure chinyama" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
4987,
16842,
834,
2825,
23,
3,
21342,
17966,
6,
3,
76,
15,
89,
9,
834,
4658,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
4987,
16842,
834,
2825,
23,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
3,
76,
15,
89,
9,
834,
4658,
3,
2,
204,
3430,
1959,
3274,
96,
4914,
4334,
3,
5675,
22990,
121,
1,
-100,
-100,
-10... |
What is the host city that has Alicia Keys listed as a host? | CREATE TABLE table_name_43 (host_city VARCHAR, hosts VARCHAR) | SELECT host_city FROM table_name_43 WHERE hosts = "alicia keys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
12675,
834,
6726,
584,
4280,
28027,
6,
9855,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2290,
690,
24,
65,
3,
31105,
4420,
7,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2290,
834,
6726,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
9855,
3274,
96,
138,
1294,
9,
9060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the to par for the player with winnings of 49,500? | CREATE TABLE table_name_74 (
to_par VARCHAR,
money___£__ VARCHAR
) | SELECT to_par FROM table_name_74 WHERE money___£__ = "49,500" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
12,
834,
1893,
584,
4280,
28027,
6,
540,
834,
834,
834,
19853,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
540,
834,
834,
834,
19853,
834,
834,
3274,
96,
3647,
6,
2560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the EU status of ESP? | CREATE TABLE table_13770460_3 (eu VARCHAR, country VARCHAR) | SELECT eu FROM table_13770460_3 WHERE country = "ESp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
2518,
25991,
834,
519,
41,
15,
76,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3371,
2637,
13,
3,
26130,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
15,
76,
21680,
953,
834,
24636,
2518,
25991,
834,
519,
549,
17444,
427,
684,
3274,
96,
3205,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What name has gen et sp nov as the novelty? | CREATE TABLE table_name_56 (name VARCHAR, novelty VARCHAR) | SELECT name FROM table_name_56 WHERE novelty = "gen et sp nov" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
4350,
584,
4280,
28027,
6,
30372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
564,
65,
3,
729,
3,
15,
17,
3,
7,
102,
3,
5326,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
30372,
3274,
96,
729,
3,
15,
17,
3,
7,
102,
3,
5326,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the colors for the nickname engineers? | CREATE TABLE table_261927_1 (
colors VARCHAR,
nickname VARCHAR
) | SELECT colors FROM table_261927_1 WHERE nickname = "Engineers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
2555,
834,
536,
41,
2602,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2602,
21,
8,
24649,
8702,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2602,
21680,
953,
834,
2688,
2294,
2555,
834,
536,
549,
17444,
427,
24649,
3274,
96,
31477,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the score that has tie number 27 | CREATE TABLE table_name_60 (
score VARCHAR,
tie_no VARCHAR
) | SELECT score FROM table_name_60 WHERE tie_no = "27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2604,
24,
65,
6177,
381,
2307,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3328,
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,
-100,
-10... |
What is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000? | CREATE TABLE table_58122 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | SELECT COUNT("1st Prize( $ )") FROM table_58122 WHERE "Score" = '207 (-9)' AND "Purse( $ )" > '800,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
20889,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
599,
1514,
3,
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,
2847,
17161,
599,
121,
536,
7,
17,
11329,
599,
1514,
3,
61,
8512,
21680,
953,
834,
3449,
20889,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
26426,
41,
18,
11728,
31,
3430,
96,
345,
3589,
15,
599,
1514,
3,
... |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of hire_date and the sum of salary bin hire_date by time, and display y axis from low to high order. | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALA... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Which region had a life expectancy at birth of 77.9 from 2001-2002? | CREATE TABLE table_25042332_33 (region VARCHAR, life_expectancy_at_birth__2001_2002_ VARCHAR) | SELECT region FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "77.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
591,
2773,
2668,
834,
4201,
41,
18145,
584,
4280,
28027,
6,
280,
834,
994,
855,
75,
17,
6833,
834,
144,
834,
20663,
834,
834,
23658,
834,
24898,
834,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1719,
21680,
953,
834,
11434,
591,
2773,
2668,
834,
4201,
549,
17444,
427,
280,
834,
994,
855,
75,
17,
6833,
834,
144,
834,
20663,
834,
834,
23658,
834,
24898,
834,
3274,
96,
4013,
5,
1298,
121,
1,
-100,
-100,
-100,... |
If there were 14 in 1990 and 6 survived how many were destroyed? | CREATE TABLE table_1817852_1 (destroyed VARCHAR, survived VARCHAR) | SELECT destroyed FROM table_1817852_1 WHERE 1990 = 14 AND survived = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
27640,
5373,
834,
536,
41,
221,
6626,
10093,
584,
4280,
28027,
6,
13928,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
132,
130,
968,
16,
5541,
11,
431,
139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10932,
21680,
953,
834,
2606,
27640,
5373,
834,
536,
549,
17444,
427,
5541,
3274,
968,
3430,
13928,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Show the correlation between the problem id and log id which are assigned to the staff named Rylan Homenick with a scatter chart. | CREATE TABLE Product (
product_id INTEGER,
product_name VARCHAR(80),
product_details VARCHAR(255)
)
CREATE TABLE Problem_Log (
problem_log_id INTEGER,
assigned_to_staff_id INTEGER,
problem_id INTEGER,
problem_category_code VARCHAR(20),
problem_status_code VARCHAR(20),
log_entry_date... | SELECT problem_id, problem_log_id FROM Staff AS T1 JOIN Problem_Log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6246,
41,
556,
834,
23,
26,
3,
21342,
17966,
6,
556,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
556,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
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,
682,
834,
23,
26,
6,
682,
834,
2152,
834,
23,
26,
21680,
10071,
6157,
332,
536,
3,
15355,
3162,
5289,
834,
22084,
6157,
332,
357,
9191,
332,
5411,
26416,
834,
23,
26,
3274,
332,
4416,
9,
7,
15532,
834,
235,
834,
... |
How many people attended the game on 8 March 2008? | CREATE TABLE table_name_9 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_9 WHERE date = "8 march 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
467,
30,
505,
1332,
2628,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
833,
3274,
96,
927,
10556,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many female patients are diagnosed with disrup-external op wound? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Disrup-external op wound" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
how many times was the margin of victory 3 strokes or more ? | CREATE TABLE table_203_473 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
) | SELECT COUNT(*) FROM table_203_473 WHERE "margin\nof victory" >= 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4177,
519,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
8163,
2604,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
4177,
519,
549,
17444,
427,
96,
1635,
122,
77,
2,
29,
858,
6224,
121,
2490,
2423,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the home team score at Glenferrie Oval? | CREATE TABLE table_name_10 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_10 WHERE venue = "glenferrie oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
234,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
2604,
44,
8300,
1010,
1753,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
5669,
3274,
96,
3537,
29,
1010,
1753,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which company has a market value of 147.4? | CREATE TABLE table_1682026_2 (
company VARCHAR,
market_value__billion_$_ VARCHAR
) | SELECT company FROM table_1682026_2 WHERE market_value__billion_$_ = "147.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
1755,
2688,
834,
357,
41,
349,
584,
4280,
28027,
6,
512,
834,
12097,
834,
834,
115,
14916,
834,
3229,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
349,
21680,
953,
834,
24274,
1755,
2688,
834,
357,
549,
17444,
427,
512,
834,
12097,
834,
834,
115,
14916,
834,
3229,
834,
3274,
96,
24719,
5,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Retrieve all the last names of authors in alphabetical order. | CREATE TABLE authors (
lname VARCHAR
) | SELECT lname FROM authors ORDER BY lname | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
3,
40,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8298,
66,
8,
336,
3056,
13,
5921,
16,
20688,
1950,
455,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
4350,
21680,
5921,
4674,
11300,
272,
476,
3,
40,
4350,
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,
-1... |
When richmond played away, what was the largest number of people who watched? | CREATE TABLE table_32567 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MAX("Crowd") FROM table_32567 WHERE "Away team" = 'richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1828,
3708,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
519,
1828,
3708,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
3723,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earnings per share when the net profit is 16.2 million dollars? | CREATE TABLE table_18077713_1 (earnings_per_share__¢_ VARCHAR, net_profit__us_$m_ VARCHAR) | SELECT earnings_per_share__¢_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "16.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
26225,
2368,
834,
536,
41,
2741,
29,
53,
7,
834,
883,
834,
12484,
834,
834,
2,
834,
584,
4280,
28027,
6,
3134,
834,
6046,
834,
834,
302,
834,
3229,
51,
834,
584,
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,
8783,
834,
883,
834,
12484,
834,
834,
2,
834,
21680,
953,
834,
20829,
26225,
2368,
834,
536,
549,
17444,
427,
3134,
834,
6046,
834,
834,
302,
834,
3229,
51,
834,
3274,
96,
536,
23913,
121,
1,
-100,
-100,
-100,
-100,... |
What is the low silver total associated with under 1 total? | CREATE TABLE table_name_99 (silver INTEGER, total INTEGER) | SELECT MIN(silver) FROM table_name_99 WHERE total < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
7,
173,
624,
3,
21342,
17966,
6,
792,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
731,
4294,
792,
1968,
28,
365,
209,
792,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
792,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How much Population density (per km ) has a Name of total northern villages, and a Population (2006) larger than 11414? | CREATE TABLE table_62791 (
"Name" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" real,
"Land area (km\u00b2)" real,
"Population density (per km\u00b2)" real
) | SELECT COUNT("Population density (per km\u00b2)") FROM table_62791 WHERE "Name" = 'total northern villages' AND "Population (2006)" > '11414' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4440,
536,
41,
96,
23954,
121,
1499,
6,
96,
27773,
7830,
25163,
121,
490,
6,
96,
27773,
7830,
28272,
121,
490,
6,
96,
3541,
3280,
41,
6210,
121,
490,
6,
96,
434,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27773,
7830,
11048,
41,
883,
2280,
2,
76,
1206,
115,
7318,
8512,
21680,
953,
834,
4056,
4440,
536,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
235,
1947,
8390,
12293,
31,
3430,
96,
27773,
78... |
WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387? | CREATE TABLE table_name_14 (votes INTEGER, constituency VARCHAR, spoilt VARCHAR) | SELECT AVG(votes) FROM table_name_14 WHERE constituency = "dublin south" AND spoilt < 3 OFFSET 387 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1621,
1422,
3,
21342,
17966,
6,
6439,
4392,
584,
4280,
28027,
6,
15783,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1621,
1422,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
6439,
4392,
3274,
96,
1259,
21746,
3414,
121,
3430,
15783,
17,
3,
2,
220,
3,
15316,
20788,
220,
4225,
1,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose insurance is medicaid and diagnoses long title is encounter for therapeutic drug monitoring? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Encounter for therapeutic drug monitoring" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports? | CREATE TABLE table_name_79 (republican VARCHAR, lead_margin VARCHAR, poll_source VARCHAR) | SELECT republican AS :_jeff_beatty FROM table_name_79 WHERE lead_margin = 25 AND poll_source = "rasmussen reports" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
60,
15727,
152,
584,
4280,
28027,
6,
991,
834,
1635,
122,
77,
584,
4280,
28027,
6,
5492,
834,
7928,
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,
1,
1,
1... | [
3,
23143,
14196,
20237,
152,
6157,
3,
10,
834,
1924,
89,
89,
834,
346,
22648,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
991,
834,
1635,
122,
77,
3274,
944,
3430,
5492,
834,
7928,
3274,
96,
52,
9,
7,
3252,
7,
35,
2279,
1... |
What is the NBA Draft status of the person who went to college at LSU? | CREATE TABLE table_name_38 (nba_draft VARCHAR, college VARCHAR) | SELECT nba_draft FROM table_name_38 WHERE college = "lsu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
29,
115,
9,
834,
26,
10913,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14512,
21409,
2637,
13,
8,
568,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
115,
9,
834,
26,
10913,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1900,
3274,
96,
40,
7,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the streak for game 2? | CREATE TABLE table_name_6 (
streak VARCHAR,
game VARCHAR
) | SELECT streak FROM table_name_6 WHERE game = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
18631,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
18631,
21,
467,
204,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
18631,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
467,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the earliest season where podium was 9? | CREATE TABLE table_26998693_1 (
season INTEGER,
podiums VARCHAR
) | SELECT MIN(season) FROM table_26998693_1 WHERE podiums = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3264,
3840,
4271,
834,
536,
41,
774,
3,
21342,
17966,
6,
22828,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
16454,
774,
213,
22828,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9476,
61,
21680,
953,
834,
2688,
3264,
3840,
4271,
834,
536,
549,
17444,
427,
22828,
7,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the result with a record of 58 11? | CREATE TABLE table_name_49 (
result VARCHAR,
record VARCHAR
) | SELECT result FROM table_name_49 WHERE record = "58–11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
741,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
28,
3,
9,
1368,
13,
3,
3449,
850,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1368,
3274,
96,
3449,
104,
2596,
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 sum of Top-5 values with events values less than 2? | CREATE TABLE table_32126 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT SUM("Top-5") FROM table_32126 WHERE "Events" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
21976,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
14855,
121,
490,
6,
96,
427,
2169,
7,
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,
22481,
4525,
8512,
21680,
953,
834,
2668,
21976,
549,
17444,
427,
96,
427,
2169,
7,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many rounds did Nil Montserrat drive in? | CREATE TABLE table_name_94 (rounds VARCHAR, driver VARCHAR) | SELECT rounds FROM table_name_94 WHERE driver = "nil montserrat" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
7775,
7,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
410,
445,
173,
5788,
7,
49,
1795,
1262,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14419,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
2535,
3274,
96,
29,
173,
6278,
7,
49,
1795,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When Jeb Barlow was picked in round smaller than 7, how many player in totals were picked? | CREATE TABLE table_name_67 (pick VARCHAR, player VARCHAR, round VARCHAR) | SELECT COUNT(pick) FROM table_name_67 WHERE player = "jeb barlow" AND round < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
17967,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
1022,
115,
1386,
3216,
47,
4758,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
17967,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1959,
3274,
96,
1924,
115,
1207,
3216,
121,
3430,
1751,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose death status is 0 and drug name is hydroxyzine hcl? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "0" AND prescriptions.drug = "Hydroxyzine HCl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Who is the Author/Editor/Source for more than 100 countries sampled and has a 35 world ranking? | CREATE TABLE table_65341 (
"Author / Editor / Source" text,
"Year of publication" text,
"Countries sampled" real,
"World Ranking (1)" text,
"Ranking in Latin America (2)" real
) | SELECT "Author / Editor / Source" FROM table_65341 WHERE "World Ranking (1)" = '35' AND "Countries sampled" > '100' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3710,
536,
41,
96,
23602,
127,
3,
87,
11953,
3,
87,
9149,
121,
1499,
6,
96,
476,
2741,
13,
5707,
121,
1499,
6,
96,
10628,
2593,
3106,
26,
121,
490,
6,
96,
17954,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23602,
127,
3,
87,
11953,
3,
87,
9149,
121,
21680,
953,
834,
4122,
3710,
536,
549,
17444,
427,
96,
17954,
29153,
5637,
121,
3274,
3,
31,
2469,
31,
3430,
96,
10628,
2593,
3106,
26,
121,
2490,
3,
31,
2915,
31,
... |
What is the whole of Drawn that has a Lost of 4? | CREATE TABLE table_8227 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT SUM("Drawn") FROM table_8227 WHERE "Lost" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
2555,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
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,
308,
10936,
29,
8512,
21680,
953,
834,
4613,
2555,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which College/Junior/Club Team has a Pick larger than 70, and a Round smaller than 7? | CREATE TABLE table_name_7 (
college_junior_club_team VARCHAR,
pick VARCHAR,
round VARCHAR
) | SELECT college_junior_club_team FROM table_name_7 WHERE pick > 70 AND round < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1432,
2490,
2861,
3430,
1751,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who did home team sunderland play on 23 january 1982? | CREATE TABLE table_59578 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Away team" FROM table_59578 WHERE "Date" = '23 january 1982' AND "Home team" = 'sunderland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3301,
3940,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
755,
3301,
3940,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2773,
3,
7066,
76,
1208,
14505,
31,
3430,
96,
19040,
372,
121,
3274,
3,
31,
7,
7248,
40,
232,
31,
1,
... |
WHAT IS THE LOSING BONUS WITH 190 POINTS? | CREATE TABLE table_name_31 (
losing_bonus VARCHAR,
points_for VARCHAR
) | SELECT losing_bonus FROM table_name_31 WHERE points_for = "190" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5489,
834,
5407,
302,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3,
26342,
2365,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5489,
834,
5407,
302,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
979,
834,
1161,
3274,
96,
11776,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the different nationalities and the number of journalists of each nationality in a bar chart. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type ... | SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9994,
41,
9994,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
6,
13825,
834,
9238,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
9994,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List the open date of open year of the shop named 'Apple'. | CREATE TABLE shop (
Open_Date VARCHAR,
Open_Year VARCHAR,
Shop_Name VARCHAR
) | SELECT Open_Date, Open_Year FROM shop WHERE Shop_Name = "Apple" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1814,
41,
2384,
834,
308,
342,
584,
4280,
28027,
6,
2384,
834,
476,
2741,
584,
4280,
28027,
6,
3687,
834,
23954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2384,
834,
308,
342,
6,
2384,
834,
476,
2741,
21680,
1814,
549,
17444,
427,
3687,
834,
23954,
3274,
96,
9648,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the years, book titles, and publishers for all books, in descending order by year. | CREATE TABLE book_club (YEAR VARCHAR, book_title VARCHAR, publisher VARCHAR) | SELECT YEAR, book_title, publisher FROM book_club ORDER BY YEAR DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
484,
834,
13442,
41,
476,
19356,
584,
4280,
28027,
6,
484,
834,
21869,
584,
4280,
28027,
6,
14859,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
203,
6,
484,
8342,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30431,
6,
484,
834,
21869,
6,
14859,
21680,
484,
834,
13442,
4674,
11300,
272,
476,
30431,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.