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 division for the season earlier than 2004? | CREATE TABLE table_49032 (
"Season" real,
"Level" text,
"Division" text,
"Administration" text,
"Position" text
) | SELECT "Division" FROM table_49032 WHERE "Season" < '2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2394,
2668,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
25465,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
16313,
343,
2661,
121,
1499,
6,
96,
345,
32,
7,
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,
96,
308,
23,
6610,
121,
21680,
953,
834,
591,
2394,
2668,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3,
2,
3,
31,
21653,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many attendees were present at the february 11 match against huddersfield town ? | CREATE TABLE table_204_467 (
id number,
"date" text,
"opponents" text,
"h/a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
) | SELECT "attendance" FROM table_204_467 WHERE "date" = 2 AND "date" = 11 AND "opponents" = 'huddersfield town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
3708,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
7,
121,
1499,
6,
96,
107,
87,
9,
121,
1499,
6,
96,
60,
7,
83,
17,
2,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15116,
663,
121,
21680,
953,
834,
26363,
834,
591,
3708,
549,
17444,
427,
96,
5522,
121,
3274,
204,
3430,
96,
5522,
121,
3274,
850,
3430,
96,
32,
102,
9977,
7,
121,
3274,
3,
31,
107,
28002,
7,
1846,
1511,
31,
... |
WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969? | CREATE TABLE table_name_6 (finish VARCHAR, start VARCHAR, year VARCHAR) | SELECT COUNT(finish) FROM table_name_6 WHERE start < 20 AND year = 1969 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
25535,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
7896,
134,
1853,
3,
17630,
20619,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
25535,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
456,
3,
2,
460,
3430,
215,
3274,
17185,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients aged less than 45 years speak the language port? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "PORT" AND demographic.age < "45" | [
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,
549,
17444,
427,
14798,
5,
24925,
3274,
96,
14536,
121,
3430,
14798,
5,
545,
3,
2,
96,
2128,
121,
1,
-100,
-100,
-100,
-100... |
Which years did the Tampa Bay Storm win the Championships? | CREATE TABLE table_name_71 (championships__years_ VARCHAR, club VARCHAR) | SELECT championships__years_ FROM table_name_71 WHERE club = "tampa bay storm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
17788,
12364,
2009,
7,
834,
834,
1201,
7,
834,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
203,
410,
8,
18855,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10183,
7,
834,
834,
1201,
7,
834,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1886,
3274,
96,
17,
4624,
9,
10210,
5536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What city was the game held in when the opponent was Towson? | CREATE TABLE table_name_93 (city VARCHAR, opponent VARCHAR) | SELECT city FROM table_name_93 WHERE opponent = "towson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
6726,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
47,
8,
467,
1213,
16,
116,
8,
15264,
47,
304,
210,
739... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
15264,
3274,
96,
17,
2381,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Are the customers holding coupons with amount 500 bad or good? | CREATE TABLE discount_coupons (coupon_id VARCHAR, coupon_amount VARCHAR); CREATE TABLE customers (good_or_bad_customer VARCHAR, coupon_id VARCHAR) | SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3898,
834,
15976,
106,
7,
41,
15976,
106,
834,
23,
26,
584,
4280,
28027,
6,
8133,
834,
9,
11231,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
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,
1... | [
3,
23143,
14196,
332,
5411,
10452,
834,
127,
834,
5514,
834,
25697,
49,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
3898,
834,
15976,
106,
7,
6157,
332,
357,
9191,
332,
5411,
15976,
106,
834,
23,
26,
3274,
332,
4416,
15976,
106,
834... |
Name the minimum 11-12 enrollment for washington school | CREATE TABLE table_17641314_3 (school VARCHAR) | SELECT MIN(11 AS _12_enrollment) FROM table_17641314_3 WHERE school = "Washington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4389,
2368,
2534,
834,
519,
41,
6646,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2559,
850,
5947,
17938,
21,
6179,
6029,
496,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2596,
6157,
3,
834,
2122,
834,
35,
4046,
297,
61,
21680,
953,
834,
2517,
4389,
2368,
2534,
834,
519,
549,
17444,
427,
496,
3274,
96,
518,
3198,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the diameter of the 2006 equestrian Reverse? | CREATE TABLE table_67205 (
"Year" real,
"Denomination" text,
"Reverse" text,
"Weight" text,
"Diameter" text,
"Fineness" text,
"Series" text
) | SELECT "Diameter" FROM table_67205 WHERE "Year" = '2006' AND "Reverse" = 'equestrian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
23201,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
35,
32,
14484,
121,
1499,
6,
96,
1649,
7583,
121,
1499,
6,
96,
1326,
2632,
121,
1499,
6,
96,
23770,
4401,
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,
23770,
4401,
121,
21680,
953,
834,
3708,
23201,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
21196,
31,
3430,
96,
1649,
7583,
121,
3274,
3,
31,
15,
10952,
5288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which event won the most medals ? | CREATE TABLE table_204_884 (
id number,
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
) | SELECT "sport" FROM table_204_884 GROUP BY "sport" ORDER BY COUNT("medal") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4060,
591,
41,
3,
23,
26,
381,
6,
96,
2726,
138,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
6661,
121,
1499,
6,
96,
15,
2169,
121,
1499,
6,
96,
5522,
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,
0... | [
3,
23143,
14196,
96,
6661,
121,
21680,
953,
834,
26363,
834,
4060,
591,
350,
4630,
6880,
272,
476,
96,
6661,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
2726,
138,
8512,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
... |
What was the score of the game when team 2 was club valencia? | CREATE TABLE table_name_70 (score VARCHAR, team_2 VARCHAR) | SELECT score FROM table_name_70 WHERE team_2 = "club valencia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
7,
9022,
584,
4280,
28027,
6,
372,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
116,
372,
204,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
372,
834,
357,
3274,
96,
13442,
3,
2165,
35,
4915,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score of Player Tom Kite? | CREATE TABLE table_59168 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_59168 WHERE "Player" = 'tom kite' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
24274,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3390,
24274,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
235,
51,
3650,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Score that has an Attendance of 4 679? | CREATE TABLE table_name_52 (
score VARCHAR,
attendance VARCHAR
) | SELECT score FROM table_name_52 WHERE attendance = "4 679" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2604,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
24,
65,
46,
22497,
663,
13,
314,
431,
4440... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
11364,
3274,
96,
591,
431,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many points were scored against with a losing bonus of 1 for Blaenavon RFC? | CREATE TABLE table_name_67 (
points_against VARCHAR,
losing_bonus VARCHAR,
club VARCHAR
) | SELECT points_against FROM table_name_67 WHERE losing_bonus = "1" AND club = "blaenavon rfc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
5489,
834,
5407,
302,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
5489,
834,
5407,
302,
3274,
96,
536,
121,
3430,
1886,
3274,
96,
4605,
35,
9,
5951,
3,
52,
89,
75,
121,
1,
-100,
-100,
-100,
-100,
-10... |
Which driver had 3 Laps and grids less than 15? | CREATE TABLE table_name_83 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT driver FROM table_name_83 WHERE laps = 3 AND grid < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
13739,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2535,
141,
220,
325,
102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
14941,
7,
3274,
220,
3430,
8634,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose primary disease is abdominal abscess and year of death is less than or equal to 2132? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL ABSCESS" AND demographic.dod_year <= "2132.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
5359,
27415,
21116,
434,
20798,
254,
10087,
121,
3430,
14798,
5,
26,
3... |
What is Milcah Chemos' record? | CREATE TABLE table_name_80 (record VARCHAR, athlete VARCHAR) | SELECT record FROM table_name_80 WHERE athlete = "milcah chemos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
60,
7621,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8573,
658,
107,
2556,
3972,
31,
1368,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
17893,
3274,
96,
51,
173,
658,
107,
3,
1033,
3972,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the local mission that has kingstown as a local location? | CREATE TABLE table_name_18 (Local VARCHAR, local_location VARCHAR) | SELECT Local AS mission FROM table_name_18 WHERE local_location = "kingstown" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
434,
32,
1489,
584,
4280,
28027,
6,
415,
834,
14836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
415,
2253,
24,
65,
3,
1765,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4593,
6157,
2253,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
415,
834,
14836,
3274,
96,
1765,
7,
3540,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which event had a total of 28? | CREATE TABLE table_59887 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
) | SELECT "Event" FROM table_59887 WHERE "Total" = '28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3916,
4225,
41,
96,
10499,
32,
32,
449,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
22557,
979,
121,
1499,
6,
96,
134,
9022,
979,
121,
1499,
6,
96,
3696,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
755,
3916,
4225,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the score for the interview for the state of New York? | CREATE TABLE table_428 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
) | SELECT "Interview" FROM table_428 WHERE "State" = 'New York' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2577,
41,
96,
134,
4748,
121,
1499,
6,
96,
10572,
4941,
77,
5414,
121,
1499,
6,
96,
17555,
4576,
121,
1499,
6,
96,
134,
210,
603,
7628,
121,
1499,
6,
96,
427,
1926,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17555,
4576,
121,
21680,
953,
834,
591,
2577,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
6861,
1060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Player has a Hc Cska Moscow (Russia)? | CREATE TABLE table_name_81 (player VARCHAR, college_junior_club_team__league_ VARCHAR) | SELECT player FROM table_name_81 WHERE college_junior_club_team__league_ = "hc cska moscow (russia)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
20846,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
3274,
96,
107,
75,
3,
75,
10717,
2288,
3523,
210,
41,
26165,
61,
121,
1,
-100,
-100,
... |
count the number of patients whose admission type is urgent and diagnoses long title is poisoning by penicillins? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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.admission_type = "URGENT" AND diagnoses.long_title = "Poisoning by penicillins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the minimum vertical measurement if the aspect ratio is 16:9 and scanning is interlaced? | CREATE TABLE table_272313_1 (vertical INTEGER, aspect_ratio VARCHAR, scanning VARCHAR) | SELECT MIN(vertical) FROM table_272313_1 WHERE aspect_ratio = "16:9" AND scanning = "interlaced" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2773,
2368,
834,
536,
41,
3027,
1950,
3,
21342,
17966,
6,
2663,
834,
6850,
32,
584,
4280,
28027,
6,
18269,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
3027,
1950,
61,
21680,
953,
834,
2555,
2773,
2368,
834,
536,
549,
17444,
427,
2663,
834,
6850,
32,
3274,
96,
2938,
10,
1298,
121,
3430,
18269,
3274,
96,
3870,
11706,
26,
121,
1,
-100,
-100,
-100,
-100... |
What is the average number of deaths for earthquakes centered in Damghan? | CREATE TABLE table_name_84 (
fatalities INTEGER,
epicenter VARCHAR
) | SELECT AVG(fatalities) FROM table_name_84 WHERE epicenter = "damghan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
12699,
2197,
3,
21342,
17966,
6,
9241,
13866,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
14319,
21,
16145,
7,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6589,
138,
2197,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
9241,
13866,
3274,
96,
7812,
22637,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which opponent has a week smaller than 15, and a Result of l 23-17? | CREATE TABLE table_9071 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_9071 WHERE "Week" < '15' AND "Result" = 'l 23-17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2394,
4450,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
667,
102,
9977,
121,
21680,
953,
834,
2394,
4450,
549,
17444,
427,
96,
518,
10266,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
20119,
121,
3274,
3,
31,
40,
1902,
10794,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Number (map) is the lowest one that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158? | CREATE TABLE table_name_71 (number__map_ INTEGER, area_in_km² VARCHAR, population_canada_2011_census VARCHAR) | SELECT MIN(number__map_) FROM table_name_71 WHERE area_in_km² = 9.7 AND population_canada_2011_census > 66 OFFSET 158 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
5525,
1152,
834,
834,
11576,
834,
3,
21342,
17966,
6,
616,
834,
77,
834,
5848,
357,
584,
4280,
28027,
6,
2074,
834,
658,
18089,
834,
13907,
834,
75,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
5525,
1152,
834,
834,
11576,
834,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
616,
834,
77,
834,
5848,
357,
3274,
5835,
940,
3430,
2074,
834,
658,
18089,
834,
13907,
834,
75,
35,
7,
302,
... |
What is the Week number with a Result of W 30-28? | CREATE TABLE table_name_85 (week INTEGER, result VARCHAR) | SELECT AVG(week) FROM table_name_85 WHERE result = "w 30-28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
8041,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6551,
381,
28,
3,
9,
3,
20119,
13,
549,
12471,
2577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
741,
3274,
96,
210,
12471,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average gold that has a total of 2 and more than 1 bronze. | CREATE TABLE table_67898 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Gold") FROM table_67898 WHERE "Total" = '2' AND "Bronze" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3914,
927,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23576,
8512,
21680,
953,
834,
3708,
3914,
927,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
357,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316? | CREATE TABLE table_name_37 (
prominence__m_ INTEGER,
peak VARCHAR,
elevation__m_ VARCHAR
) | SELECT AVG(prominence__m_) FROM table_name_37 WHERE peak = "nakanai mountains high point" AND elevation__m_ < 2 OFFSET 316 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
31829,
834,
834,
51,
834,
3,
21342,
17966,
6,
6734,
584,
4280,
28027,
6,
16417,
834,
834,
51,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1409,
1109,
1433,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
6734,
3274,
96,
29,
9,
3304,
9,
23,
8022,
306,
500,
121,
3430,
16417,
834,
834,
51,
834,
3,
2,
204,
3,
... |
Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11? | CREATE TABLE table_name_71 (
top_25 INTEGER,
top_5 VARCHAR,
wins VARCHAR
) | SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
420,
834,
1828,
3,
21342,
17966,
6,
420,
834,
755,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2224,
14855,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
420,
834,
755,
2490,
668,
3430,
9204,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the home team score when st kilda is the away team? | CREATE TABLE table_name_64 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_64 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
234,
372,
2604,
116,
3,
7,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
550,
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,
... |
What is Home, when Ground is Humber College North, and when Time is 15:00? | CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR) | SELECT home FROM table_name_58 WHERE ground = "humber college north" AND time = "15:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
5515,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1210,
6,
116,
13908,
19,
12410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1591,
3274,
96,
4884,
1152,
1900,
3457,
121,
3430,
97,
3274,
96,
536,
19870,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Bar chart of mean salary from each dept name, could you list names from low to high order? | CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
) | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
11749,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
71,
17217,
599,
7,
138,
1208,
61,
21680,
10617,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the name for round of e | CREATE TABLE table_31902 (
"Round" text,
"Match" text,
"Name" text,
"Team 1" text,
"!!Team 2" text
) | SELECT "Name" FROM table_31902 WHERE "Round" = 'e' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
11776,
357,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
329,
14547,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
18699,
209,
121,
1499,
6,
96,
1603,
18699,
204,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
519,
11776,
357,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
A bar chart showing the number of male and female faculty, display in descending by the Sex. | CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
) | SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY Sex DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22536,
41,
1810,
23,
26,
3,
21342,
17966,
6,
1756,
834,
4350,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
15077,
6203,
834,
77,
41,
2134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the average bronze when gold is more than 0, the nation is greece and silver is less than 0? | CREATE TABLE table_name_75 (
bronze INTEGER,
silver VARCHAR,
gold VARCHAR,
nation VARCHAR
) | SELECT AVG(bronze) FROM table_name_75 WHERE gold > 0 AND nation = "greece" AND silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
13467,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2045,
2490,
3,
632,
3430,
2982,
3274,
96,
3584,
15,
565,
121,
3430,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the report with race argentine grand prix | CREATE TABLE table_1140080_2 (report VARCHAR, race VARCHAR) | SELECT report FROM table_1140080_2 WHERE race = "Argentine Grand Prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
5548,
2079,
834,
357,
41,
60,
1493,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
934,
28,
1964,
3,
9917,
630,
1907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
2596,
5548,
2079,
834,
357,
549,
17444,
427,
1964,
3274,
96,
22808,
15,
2698,
12942,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote the episode with 9.81 million US viewers? | CREATE TABLE table_74307 (
"#" real,
"Episode" text,
"Directed by" text,
"Written by" text,
"U.S. Viewers (in millions)" text,
"Original airdate" text
) | SELECT "Written by" FROM table_74307 WHERE "U.S. Viewers (in millions)" = '9.81' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
1458,
940,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
1265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
324,
57,
121,
21680,
953,
834,
4581,
1458,
940,
549,
17444,
427,
96,
1265,
5,
134,
5,
4197,
277,
41,
77,
4040,
61,
121,
3274,
3,
31,
8797,
4959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percent of the parliamentary election did the pensioners party receive | CREATE TABLE table_203802_2 (
english_party_name VARCHAR
) | SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = "Pensioners Party" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
22671,
357,
834,
357,
41,
22269,
834,
8071,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1093,
13,
8,
3,
28443,
4356,
410,
8,
8645,
277,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2038,
6157,
3,
834,
28443,
834,
15,
12252,
21680,
953,
834,
1755,
22671,
357,
834,
357,
549,
17444,
427,
22269,
834,
8071,
834,
4350,
3274,
96,
345,
35,
1938,
277,
3450,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What home team has a record of 4-3? | CREATE TABLE table_name_7 (
home VARCHAR,
record VARCHAR
) | SELECT home FROM table_name_7 WHERE record = "4-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
234,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
234,
372,
65,
3,
9,
1368,
13,
314,
3486,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1368,
3274,
96,
591,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For all artist names who are not from the United States, show the total number of each year with a bar chart. | CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) | SELECT Year_Join, COUNT(Year_Join) FROM artist WHERE Country <> 'United States' GROUP BY Year_Join | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4473,
834,
60,
7621,
41,
22371,
834,
4309,
16,
17,
6,
7678,
1499,
6,
22497,
663,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
9152,
834,
4309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2929,
834,
683,
32,
77,
6,
2847,
17161,
599,
476,
2741,
834,
683,
32,
77,
61,
21680,
2377,
549,
17444,
427,
6993,
3,
2,
3155,
3,
31,
5110,
23,
1054,
1323,
31,
350,
4630,
6880,
272,
476,
2929,
834,
683,
32,
77,
... |
Which scorer plays for Aldershot and has scored a total of 19 League goals? | CREATE TABLE table_name_17 (scorer VARCHAR, club VARCHAR, league_goals VARCHAR) | SELECT scorer FROM table_name_17 WHERE club = "aldershot" AND league_goals = "19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
7,
5715,
49,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
6,
5533,
834,
839,
5405,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
52,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1886,
3274,
96,
138,
588,
11159,
121,
3430,
5533,
834,
839,
5405,
3274,
96,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the score for denver | CREATE TABLE table_27722734_11 (
score VARCHAR,
team VARCHAR
) | SELECT score FROM table_27722734_11 WHERE team = "Denver" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5865,
2555,
3710,
834,
2596,
41,
2604,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
177,
624,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2555,
5865,
2555,
3710,
834,
2596,
549,
17444,
427,
372,
3274,
96,
308,
35,
624,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the 1995 value with A in 1986 and 2r in 1992? | CREATE TABLE table_46449 (
"Tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text
) | SELECT "1995" FROM table_46449 WHERE "1986" = 'a' AND "1992" = '2r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4389,
3647,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
24151,
20364,
1499,
6,
96,
24151,
17395,
1499,
6,
96,
2294,
3840,
121,
1499,
6,
96,
2294,
4225,
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,
19479,
17395,
21680,
953,
834,
591,
4389,
3647,
549,
17444,
427,
96,
2294,
3840,
121,
3274,
3,
31,
9,
31,
3430,
96,
19479,
357,
121,
3274,
3,
31,
357,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the score of the event with a competition type of friendly and a result of 4-5? | CREATE TABLE table_68489 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_68489 WHERE "Competition" = 'friendly' AND "Result" = '4-5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
591,
3914,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3651,
591,
3914,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
4905,
31,
3430,
96,
20119,
121,
3274,
3,
31,
18822,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average hexadecimal with a decimal greater than 57? | CREATE TABLE table_name_2 (hexadecimal INTEGER, decimal INTEGER) | SELECT AVG(hexadecimal) FROM table_name_2 WHERE decimal > 57 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
88,
226,
9,
24223,
1982,
3,
21342,
17966,
6,
7908,
1982,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
3,
88,
226,
9,
24223,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
88,
226,
9,
24223,
1982,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
7908,
1982,
2490,
3,
3436,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Gdp (bn) for the region that has ioannina as its Capital? | CREATE TABLE table_55114 (
"Region" text,
"Capital" text,
"Area (km\u00b2)" text,
"Area (sq. mi.)" text,
"Population" text,
"GDP ( bn )" text
) | SELECT "GDP ( bn )" FROM table_55114 WHERE "Capital" = 'ioannina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
18959,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
19566,
9538,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
1499,
6,
96,
188,
864,
41,
7,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
7410,
41,
3,
115,
29,
3,
61,
121,
21680,
953,
834,
3769,
18959,
549,
17444,
427,
96,
19566,
9538,
121,
3274,
3,
31,
23,
32,
14431,
29,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, give me the comparison about code over the name , and group by attribute name by a bar chart. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1? | CREATE TABLE table_name_2 (attendance VARCHAR, opponent VARCHAR, result VARCHAR) | SELECT COUNT(attendance) FROM table_name_2 WHERE opponent = "middlesbrough" AND result = "3-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
15116,
663,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
11364,
2620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
15264,
3274,
96,
6983,
26,
965,
115,
13245,
121,
3430,
741,
3274,
96,
519,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What lane is David Carry in heat 1? | CREATE TABLE table_name_80 (
lane VARCHAR,
heat VARCHAR,
name VARCHAR
) | SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = "david carry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3,
8102,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
8102,
19,
1955,
11274,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8102,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1678,
3274,
209,
3430,
564,
3274,
96,
26,
9,
6961,
2331,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which is the method under the event Jungle Fight 2? | CREATE TABLE table_name_24 (method VARCHAR, event VARCHAR) | SELECT method FROM table_name_24 WHERE event = "jungle fight 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
23152,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19,
8,
1573,
365,
8,
605,
9383,
109,
377,
2632,
204,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
605,
3274,
96,
22498,
109,
2870,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was the opponent on 09/20/1975? | CREATE TABLE table_name_62 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_62 WHERE date = "09/20/1975" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
8,
15264,
30,
14146,
20173,
13523,
3072,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
833,
3274,
96,
4198,
20173,
13523,
3072,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest draw against 2161? | CREATE TABLE table_name_98 (
draws INTEGER,
against INTEGER
) | SELECT MAX(draws) FROM table_name_98 WHERE against > 2161 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
14924,
3,
21342,
17966,
6,
581,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
3314,
581,
1401,
4241,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
581,
2490,
1401,
4241,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What event has a 122.5 snatch rate? | CREATE TABLE table_name_2 (
event VARCHAR,
snatch VARCHAR
) | SELECT event FROM table_name_2 WHERE snatch = 122.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
605,
584,
4280,
28027,
6,
3,
7,
29,
14547,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
605,
65,
3,
9,
586,
15967,
3,
7,
29,
14547,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
3,
7,
29,
14547,
3274,
586,
15967,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the title of the episode directed by Jesse Warn? | CREATE TABLE table_24938621_3 (
production_code VARCHAR,
directed_by VARCHAR
) | SELECT production_code FROM table_24938621_3 WHERE directed_by = "Jesse Warn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4271,
3840,
2658,
834,
519,
41,
999,
834,
4978,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2233,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
999,
834,
4978,
21680,
953,
834,
2266,
4271,
3840,
2658,
834,
519,
549,
17444,
427,
6640,
834,
969,
3274,
96,
683,
6119,
1602,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result in the game broadcast on the SEC Network? | CREATE TABLE table_29049 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_29049 WHERE "Broadcast" = 'SEC Network' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
3647,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
30338,
372,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
279,
8635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20119,
121,
21680,
953,
834,
23838,
3647,
549,
17444,
427,
96,
279,
8635,
5254,
121,
3274,
3,
31,
134,
3073,
3426,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the distance is 55.7, what is the name of the constellation? | CREATE TABLE table_1820752_1 (
constellation VARCHAR,
distance___ly__ VARCHAR
) | SELECT constellation FROM table_1820752_1 WHERE distance___ly__ = "55.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
26426,
5373,
834,
536,
41,
30872,
584,
4280,
28027,
6,
2357,
834,
834,
834,
120,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
2357,
19,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
30872,
21680,
953,
834,
2606,
26426,
5373,
834,
536,
549,
17444,
427,
2357,
834,
834,
834,
120,
834,
834,
3274,
96,
755,
27220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For the Year 2013 what building(s) had more than 15 Floors? | CREATE TABLE table_name_81 (
building VARCHAR,
floors VARCHAR,
year VARCHAR
) | SELECT building FROM table_name_81 WHERE floors > 15 AND year = "2013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
740,
584,
4280,
28027,
6,
8242,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
2929,
2038,
125,
740,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
740,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
8242,
2490,
627,
3430,
215,
3274,
96,
11138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which lane ranked less than 4 for the Netherlands? | CREATE TABLE table_name_4 (lane VARCHAR, rank VARCHAR, nationality VARCHAR) | SELECT lane FROM table_name_4 WHERE rank < 4 AND nationality = "netherlands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
8102,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
8102,
3,
8232,
705,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8102,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
11003,
3,
2,
314,
3430,
1157,
485,
3274,
96,
29,
16764,
6347,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the smallest amount of WSOP bracelets anyone had? | CREATE TABLE table_26276 (
"Name" text,
"Starting chip count" real,
"WSOP bracelets" real,
"WSOP cashes" real,
"WSOP earnings" text,
"Final place" text,
"Prize" text
) | SELECT MIN("WSOP bracelets") FROM table_26276 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
357,
3959,
41,
96,
23954,
121,
1499,
6,
96,
7681,
1222,
6591,
3476,
121,
490,
6,
96,
8439,
4652,
15073,
7,
121,
490,
6,
96,
8439,
4652,
1723,
15,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
8439,
4652,
15073,
7,
8512,
21680,
953,
834,
2688,
357,
3959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the number of icu visits patient 029-8212 has. | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) | SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-8212') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1868,
5,
10061,
15129,
21545,
23,
26,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
... |
What is the value for 2007 when 2008 is Q1? | CREATE TABLE table_name_68 (
Id VARCHAR
) | SELECT 2007 FROM table_name_68 WHERE 2008 = "q1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
21,
4101,
116,
2628,
19,
1593,
536,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4101,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
2628,
3274,
96,
1824,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What season was Freiburger FC the RL S d (2nd) team? | CREATE TABLE table_73192 (
"Season" text,
"RL S\u00fcd (1st)" text,
"RL S\u00fcd (2nd)" text,
"RL S\u00fcdwest (1st)" text,
"RL S\u00fcdwest (2nd)" text
) | SELECT "Season" FROM table_73192 WHERE "RL S\u00fcd (2nd)" = 'Freiburger FC' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
19978,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12831,
180,
2,
76,
1206,
89,
75,
26,
4077,
7,
17,
61,
121,
1499,
6,
96,
12831,
180,
2,
76,
1206,
89,
75,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
4552,
19978,
549,
17444,
427,
96,
12831,
180,
2,
76,
1206,
89,
75,
26,
4743,
727,
61,
121,
3274,
3,
31,
371,
60,
23,
9079,
7914,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
List names of all teams in the basketball competition, ordered by all home scores in descending order. | CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
)
CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text,
acc_percent text,
acc_home text,
acc_road text,
all_games text,
all_games_percent number,
all_home text,
all_road text,
all_neutral text
) | SELECT team_name FROM basketball_match ORDER BY all_home DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
496,
834,
23,
26,
381,
6,
496,
1499,
6,
1128,
1499,
6,
5710,
381,
6,
24405,
1499,
6,
17938,
381,
6,
24649,
1499,
6,
2329,
834,
28496,
1499,
3,
61,
3,
32102,
32103,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
372,
834,
4350,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
66,
834,
5515,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG? | CREATE TABLE table_45976 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Date of appointment" FROM table_45976 WHERE "Position in table" = 'pre-season' AND "Replaced by" = 'thomas thomasberg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3390,
3959,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
4141,
121,
21680,
953,
834,
591,
3390,
3959,
549,
17444,
427,
96,
345,
32,
7,
4749,
16,
953,
121,
3274,
3,
31,
2026,
18,
9476,
31,
3430,
96,
1649,
4687,
26,
57,
121,
3274,
3,
31,
189,
32,
275... |
Which Region has an area of 14,037km²? | CREATE TABLE table_name_70 (region VARCHAR, area__km²_ VARCHAR) | SELECT region FROM table_name_70 WHERE area__km²_ = "14,037" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
18145,
584,
4280,
28027,
6,
616,
834,
834,
5848,
357,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6163,
65,
46,
616,
13,
11363,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1719,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
616,
834,
834,
5848,
357,
834,
3274,
96,
2534,
6,
632,
4118,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On July 8, what was the score? | CREATE TABLE table_17104539_10 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_17104539_10 WHERE date = "July 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1714,
2128,
3288,
834,
1714,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
1718,
9478,
125,
47,
8,
2604,
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,
2604,
21680,
953,
834,
2517,
1714,
2128,
3288,
834,
1714,
549,
17444,
427,
833,
3274,
96,
683,
83,
63,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Points is the lowest one that has a Position larger than 5? | CREATE TABLE table_name_36 (
points INTEGER,
position INTEGER
) | SELECT MIN(points) FROM table_name_36 WHERE position > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
979,
3,
21342,
17966,
6,
1102,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4564,
7,
19,
8,
7402,
80,
24,
65,
3,
9,
14258,
2186,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1102,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the sum of silver for liechtenstein and bronze more than 4 | CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
7,
173,
624,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
4505,
13,
4294,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2982,
3274,
96,
1896,
7049,
4008,
121,
3430,
13467,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record for game 59? | CREATE TABLE table_name_61 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_61 WHERE game = 59 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
60,
7621,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
21,
467,
3,
3390,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
467,
3274,
3,
3390,
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 were the roles in 1961? | CREATE TABLE table_name_70 (role VARCHAR, year VARCHAR) | SELECT role FROM table_name_70 WHERE year = 1961 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
3491,
15,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
6270,
16,
21018,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1075,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
215,
3274,
21018,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze? | CREATE TABLE table_name_3 (rank INTEGER, bronze VARCHAR, total VARCHAR) | SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
6254,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
11003,
21,
6436,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
13467,
3274,
220,
3430,
792,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total Launches to date with a Version of 541, and CCBs smaller than 1? | CREATE TABLE table_name_8 (
launches_to_date VARCHAR,
version VARCHAR,
ccbs VARCHAR
) | SELECT COUNT(launches_to_date) FROM table_name_8 WHERE version = "541" AND ccbs < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
22506,
834,
235,
834,
5522,
584,
4280,
28027,
6,
988,
584,
4280,
28027,
6,
3,
75,
75,
115,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
27493,
15,
7,
834,
235,
834,
5522,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
988,
3274,
96,
5062,
536,
121,
3430,
3,
75,
75,
115,
7,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25? | CREATE TABLE table_34377 (
"Place" real,
"Nation" text,
"6 Ropes" real,
"4 Hoops, 2 Clubs" real,
"Total" real
) | SELECT MAX("4 Hoops, 2 Clubs") FROM table_34377 WHERE "Nation" = 'belarus' AND "Total" < '38.25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
519,
4013,
41,
96,
345,
11706,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
948,
2158,
855,
7,
121,
490,
6,
96,
591,
1546,
9280,
6,
204,
1949,
7,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
591,
1546,
9280,
6,
204,
1949,
7,
8512,
21680,
953,
834,
3710,
519,
4013,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
2370,
9,
4502,
31,
3430,
96,
3696,
1947,
121,
3,
2,
3,
31,
3747,
5,... |
Which Country has a Winter Olympics of 1948? | CREATE TABLE table_name_28 (
country VARCHAR,
winter_olympics VARCHAR
) | SELECT country FROM table_name_28 WHERE winter_olympics = "1948" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
684,
584,
4280,
28027,
6,
2265,
834,
32,
120,
51,
6174,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6993,
65,
3,
9,
4272,
17793,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2265,
834,
32,
120,
51,
6174,
7,
3274,
96,
2294,
3707,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Length of feet 9inches (m), and a Builder of portland terminal company? | CREATE TABLE table_8432 (
"Number" text,
"Builder" text,
"Type" text,
"Date" real,
"Length" text,
"Capacity" text
) | SELECT AVG("Date") FROM table_8432 WHERE "Length" = 'feet 9inches (m)' AND "Builder" = 'portland terminal company' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4608,
2668,
41,
96,
567,
5937,
49,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
434,
4606,
189,
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,
71,
17217,
599,
121,
308,
342,
8512,
21680,
953,
834,
4608,
2668,
549,
17444,
427,
96,
434,
4606,
189,
121,
3274,
3,
31,
89,
15,
15,
17,
668,
77,
2951,
41,
51,
61,
31,
3430,
96,
24752,
49,
121,
3274,
3,
31,
14... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter, and list by the names from high to low. | 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(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | [
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,
7296,
76,
8717,
450,
49,
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,
... |
What is the date of the final that has a score of 3 6, 6 3, 6 4 and penny barg paula smith was the opponent? | CREATE TABLE table_11599 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | SELECT "Date" FROM table_11599 WHERE "Score in the final" = '3–6, 6–3, 6–4' AND "Opponents in the final" = 'penny barg paula smith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
3264,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
15660,
3264,
549,
17444,
427,
96,
134,
9022,
16,
8,
804,
121,
3274,
3,
31,
519,
104,
11071,
431,
104,
6355,
431,
104,
591,
31,
3430,
96,
667,
102,
9977,
7,
16,
8,
804,
121,
... |
When did the team play an away game against the Toronto Eagles? | CREATE TABLE table_name_39 (date VARCHAR, away VARCHAR) | SELECT date FROM table_name_39 WHERE away = "toronto eagles" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
5522,
584,
4280,
28027,
6,
550,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
8,
372,
577,
46,
550,
467,
581,
8,
7030,
10341,
7,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
550,
3274,
96,
235,
4438,
32,
3,
15,
9,
3537,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart about the distribution of ACC_Road and the average of Team_ID , and group by attribute ACC_Road, and I want to sort in desc by the Y-axis. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT ACC_Road, AVG(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(Team_ID) DESC | [
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,
3,
14775,
834,
448,
32,
9,
26,
6,
71,
17217,
599,
18699,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
71,
17217,
599,
18699,
834,
4309,
... |
How many different items were reviewed by some users? | CREATE TABLE review (
a_id number,
u_id number,
i_id number,
rating number,
rank number
)
CREATE TABLE item (
i_id number,
title text
)
CREATE TABLE useracct (
u_id number,
name text
)
CREATE TABLE trust (
source_u_id number,
target_u_id number,
trust number
) | SELECT COUNT(DISTINCT i_id) FROM review | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1132,
41,
3,
9,
834,
23,
26,
381,
6,
3,
76,
834,
23,
26,
381,
6,
3,
23,
834,
23,
26,
381,
6,
5773,
381,
6,
11003,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
3,
23,
834,
23,
26,
61,
21680,
1132,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients whose days of hospital stay is greater than 11 and procedure long title is ureteral catheterization? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "11" AND procedures.long_title = "Ureteral catheterization" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
which product as rdf for input or output | CREATE TABLE table_204_870 (
id number,
"product" text,
"main functionality" text,
"input format" text,
"output format" text,
"platform" text,
"license and cost" text,
"notes" text
) | SELECT "product" FROM table_204_870 WHERE "input format" = 'rdf' OR "output format" = 'rdf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
2518,
41,
3,
23,
26,
381,
6,
96,
15892,
121,
1499,
6,
96,
7484,
6730,
121,
1499,
6,
96,
77,
2562,
1910,
121,
1499,
6,
96,
670,
2562,
1910,
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,
15892,
121,
21680,
953,
834,
26363,
834,
927,
2518,
549,
17444,
427,
96,
77,
2562,
1910,
121,
3274,
3,
31,
52,
26,
89,
31,
4674,
96,
670,
2562,
1910,
121,
3274,
3,
31,
52,
26,
89,
31,
1,
-100,
-100,
-100,
... |
What is Second Vice President, when Third Vice President is 'Gen. Juan Alonso', and when Inaugurated is '15 March 1940'? | CREATE TABLE table_46127 (
"First Vice President" text,
"Second Vice President" text,
"Third Vice president" text,
"Inaugurated" text,
"Left Office" text
) | SELECT "Second Vice President" FROM table_46127 WHERE "Third Vice president" = 'gen. juan alonso' AND "Inaugurated" = '15 march 1940' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
22367,
41,
96,
25171,
8236,
1661,
121,
1499,
6,
96,
134,
15,
1018,
26,
8236,
1661,
121,
1499,
6,
96,
382,
9288,
26,
8236,
2753,
121,
1499,
6,
96,
1570,
402,
1744,
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,
96,
134,
15,
1018,
26,
8236,
1661,
121,
21680,
953,
834,
4448,
22367,
549,
17444,
427,
96,
382,
9288,
26,
8236,
2753,
121,
3274,
3,
31,
729,
5,
3,
2047,
152,
3,
9,
14061,
32,
31,
3430,
96,
1570,
402,
1744,
4094,... |
Which Champion has a Runner-up of florian mayer, and a Score of 7 6(6), 4 6, 7 5? | CREATE TABLE table_name_96 (
champion VARCHAR,
runner_up VARCHAR,
score VARCHAR
) | SELECT champion FROM table_name_96 WHERE runner_up = "florian mayer" AND score = "7–6(6), 4–6, 7–5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
6336,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
16127,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6336,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
89,
322,
23,
152,
164,
49,
121,
3430,
2604,
3274,
96,
940,
104,
948,
18669,
6,
314,
104,
11071,
489,
104,
17395,
1,
-100,
-100... |
How many patients with item id 50804 had an abnormal delta lab test status? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50804" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the amount of trees, that require replacement when district is leninsky? | CREATE TABLE table_10342194_3 (amount_of_trees VARCHAR, _that_require_replacement VARCHAR, district VARCHAR) | SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "Leninsky" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3710,
2658,
4240,
834,
519,
41,
9,
11231,
834,
858,
834,
929,
15,
7,
584,
4280,
28027,
6,
3,
834,
6279,
834,
60,
1169,
60,
834,
60,
4687,
297,
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,
866,
834,
858,
834,
929,
15,
7,
6,
3,
834,
6279,
834,
60,
1169,
60,
834,
60,
4687,
297,
21680,
953,
834,
1714,
3710,
2658,
4240,
834,
519,
549,
17444,
427,
3939,
3274,
96,
434,
35,
77,
5352,
121,
1,
-100,
-100,
... |
What was the title of the race at Oran Park Raceway? | CREATE TABLE table_name_72 (race_title VARCHAR, circuit VARCHAR) | SELECT race_title FROM table_name_72 WHERE circuit = "oran park raceway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
12614,
834,
21869,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2233,
13,
8,
1964,
44,
955,
152,
1061,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
834,
21869,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
4558,
3274,
96,
127,
152,
2447,
1964,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart for finding the number of the category descriptions of the products whose descriptions include letter 't', and could you rank x axis from low to high order? | CREATE TABLE Ref_Colors (
color_code VARCHAR(15),
color_description VARCHAR(80)
)
CREATE TABLE Ref_Characteristic_Types (
characteristic_type_code VARCHAR(15),
characteristic_type_description VARCHAR(80)
)
CREATE TABLE Product_Characteristics (
product_id INTEGER,
characteristic_id INTEGER,
product_characteristic_value VARCHAR(50)
)
CREATE TABLE Characteristics (
characteristic_id INTEGER,
characteristic_type_code VARCHAR(15),
characteristic_data_type VARCHAR(10),
characteristic_name VARCHAR(80),
other_characteristic_details VARCHAR(255)
)
CREATE TABLE Products (
product_id INTEGER,
color_code VARCHAR(15),
product_category_code VARCHAR(15),
product_name VARCHAR(80),
typical_buying_price VARCHAR(20),
typical_selling_price VARCHAR(20),
product_description VARCHAR(255),
other_product_details VARCHAR(255)
)
CREATE TABLE Ref_Product_Categories (
product_category_code VARCHAR(15),
product_category_description VARCHAR(80),
unit_of_measure VARCHAR(20)
) | SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY product_category_description | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
3881,
322,
7,
41,
945,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
945,
834,
221,
11830,
584,
4280,
28027,
599,
2079,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
604... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
556,
834,
8367,
839,
651,
834,
221,
11830,
6,
2847,
17161,
599,
15892,
834,
8367,
839,
651,
834,
221,
11830,
61,
21680,
419,
89,
834,
3174,
7472,
834,
18610,
6066,
2593,
6157,
332,
536,
3,
15355,
3162,
7554,
6157,
3... |
what is primary disease and admission time of subject id 9258? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.subject_id = "9258" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4508,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Pilot, when Place is 'Goose Green', and when Date is '27 May 1982'? | CREATE TABLE table_name_8 (
pilot VARCHAR,
place VARCHAR,
date VARCHAR
) | SELECT pilot FROM table_name_8 WHERE place = "goose green" AND date = "27 may 1982" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
4487,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
17777,
6,
116,
3399,
19,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
4487,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
286,
3274,
96,
839,
32,
7,
15,
1442,
121,
3430,
833,
3274,
96,
2555,
164,
14505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what are the total number of non friendly competitions ? | CREATE TABLE table_203_138 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | SELECT COUNT(DISTINCT "date") FROM table_203_138 WHERE "competition" <> 'friendly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
22744,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
7,
9022,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
96,
5522,
8512,
21680,
953,
834,
23330,
834,
22744,
549,
17444,
427,
96,
287,
4995,
4749,
121,
3,
2,
3155,
3,
31,
4905,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Decision has a Date of april 25? | CREATE TABLE table_38139 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
) | SELECT "Decision" FROM table_38139 WHERE "Date" = 'april 25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
24090,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2962,
18901,
121,
21680,
953,
834,
3747,
24090,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
944,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which round has pain and glory 2006 as the event? | CREATE TABLE table_name_94 (
round VARCHAR,
event VARCHAR
) | SELECT round FROM table_name_94 WHERE event = "pain and glory 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1751,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1751,
65,
1406,
11,
12582,
3581,
38,
8,
605,
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,
1751,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
605,
3274,
96,
13585,
29,
11,
12582,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where did Footscray play as the home team? | CREATE TABLE table_name_41 (
venue VARCHAR,
home_team VARCHAR
) | SELECT venue FROM table_name_41 WHERE home_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
5669,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
15213,
7,
2935,
63,
577,
38,
8,
234,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
234,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many mexican swimmers ranked in the top 10 ? | CREATE TABLE table_204_886 (
id number,
"rank" number,
"swimmer" text,
"country" text,
"time" text,
"note" text
) | SELECT COUNT("swimmer") FROM table_204_886 WHERE "country" = 'mexico' AND "rank" <= 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3840,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
7,
210,
12174,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7,
210,
12174,
8512,
21680,
953,
834,
26363,
834,
927,
3840,
549,
17444,
427,
96,
17529,
121,
3274,
3,
31,
51,
994,
5807,
31,
3430,
96,
6254,
121,
3,
2,
2423,
335,
1,
-100,
-100,
-100,
-100,... |
What was the result of the game on January 5, 1926? | CREATE TABLE table_name_79 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_79 WHERE date = "january 5, 1926" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
30,
1762,
7836,
957,
2688,
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,
741,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
7836,
957,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Yearly Cost For Paid Account, when Montly Cost For Paid Account is 5 USD, and when Userpics Paid is 50? | CREATE TABLE table_name_94 (yearly_cost_for_paid_account VARCHAR, monthly_cost_for_paid_account VARCHAR, userpics_paid VARCHAR) | SELECT yearly_cost_for_paid_account FROM table_name_94 WHERE monthly_cost_for_paid_account = "5 usd" AND userpics_paid = "50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
22286,
834,
11290,
834,
1161,
834,
12760,
834,
9,
75,
13362,
584,
4280,
28027,
6,
3718,
834,
11290,
834,
1161,
834,
12760,
834,
9,
75,
13362,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22286,
834,
11290,
834,
1161,
834,
12760,
834,
9,
75,
13362,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
3718,
834,
11290,
834,
1161,
834,
12760,
834,
9,
75,
13362,
3274,
96,
755,
178,
26,
121,
3430,
1139,... |
What the win - loss recored for January 7? | CREATE TABLE table_29725 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_29725 WHERE "Date" = 'January 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4327,
1828,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
357,
4327,
1828,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
If the opponent was @ Boston Bruins, what was the Location/Attendance? | CREATE TABLE table_3782 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Location/Attendance" FROM table_3782 WHERE "Opponent" = '@ Boston Bruins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
4613,
41,
96,
23055,
121,
490,
6,
96,
30404,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
96,
434,
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,
434,
32,
75,
257,
87,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
4118,
4613,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1741,
5053,
272,
23162,
31,
1,
-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.