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 value of other religions associated with atheism at 1.86%? | CREATE TABLE table_45948 (
"Ethnicity" text,
"Islam" text,
"Christianity" text,
"Judaism" text,
"Buddhism" text,
"Other" text,
"Atheism" text
) | SELECT "Other" FROM table_45948 WHERE "Atheism" = '1.86%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3390,
3707,
41,
96,
427,
189,
2532,
485,
121,
1499,
6,
96,
30791,
121,
1499,
6,
96,
28412,
485,
121,
1499,
6,
96,
683,
76,
26,
9,
159,
51,
121,
1499,
6,
96,
7793,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
189,
49,
121,
21680,
953,
834,
591,
3390,
3707,
549,
17444,
427,
96,
188,
532,
159,
51,
121,
3274,
3,
31,
16253,
6370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which patients have buccal route of drug administration? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "BUCCAL" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Tell me the 2008 for 2012 of 4r and 2009 of a | CREATE TABLE table_name_38 (
Id VARCHAR
) | SELECT 2008 FROM table_name_38 WHERE 2012 = "4r" AND 2009 = "a" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
2628,
21,
1673,
13,
314,
52,
11,
2464,
13,
3,
9,
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,
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,
2628,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
1673,
3274,
96,
591,
52,
121,
3430,
2464,
3274,
96,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of appointment for the date of vacancy of 22 august 2010? | CREATE TABLE table_26976615_3 (
date_of_appointment VARCHAR,
date_of_vacancy VARCHAR
) | SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = "22 August 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4327,
3539,
1808,
834,
519,
41,
833,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
833,
834,
858,
834,
29685,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
9,
102,
2700,
297,
21680,
953,
834,
2688,
4327,
3539,
1808,
834,
519,
549,
17444,
427,
833,
834,
858,
834,
29685,
3274,
96,
2884,
1660,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Date has a record of 3-5? | CREATE TABLE table_name_76 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_76 WHERE record = "3-5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
1368,
13,
3,
18366,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1368,
3274,
96,
18366,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Plot the number of home city by grouped by home city as a bar graph, and show from high to low by the Y-axis. | CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
) | SELECT Home_city, COUNT(Home_city) FROM driver GROUP BY Home_city ORDER BY COUNT(Home_city) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
41,
1121,
834,
4309,
16,
17,
6,
13027,
1499,
6,
1121,
1499,
6,
10450,
1499,
6,
6632,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
496,
834,
3465,
41,
1121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1210,
834,
6726,
6,
2847,
17161,
599,
19040,
834,
6726,
61,
21680,
2535,
350,
4630,
6880,
272,
476,
1210,
834,
6726,
4674,
11300,
272,
476,
2847,
17161,
599,
19040,
834,
6726,
61,
309,
25067,
1,
-100,
-100,
-100,
-100... |
What is Status, when Opposing Teams is 'Italy'? | CREATE TABLE table_name_16 (
status VARCHAR,
opposing_teams VARCHAR
) | SELECT status FROM table_name_16 WHERE opposing_teams = "italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2637,
584,
4280,
28027,
6,
10720,
53,
834,
11650,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
19318,
6,
116,
4495,
2748,
53,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
10720,
53,
834,
11650,
7,
3274,
96,
9538,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What player is on the Montreal Alouettes CFl team? | CREATE TABLE table_10812938_5 (player VARCHAR, cfl_team VARCHAR) | SELECT player FROM table_10812938_5 WHERE cfl_team = "Montreal Alouettes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
22174,
3747,
834,
755,
41,
20846,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
19,
30,
8,
17219,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
16169,
22174,
3747,
834,
755,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
9168,
17,
6644,
901,
24043,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois? | CREATE TABLE table_name_9 (name VARCHAR, state VARCHAR, opened__closing_date_if_defunct_ VARCHAR, length VARCHAR) | SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = "1995" AND length = "miles (m)" AND state = "illinois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4350,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
6,
2946,
834,
834,
3903,
7,
53,
834,
5522,
834,
99,
834,
221,
25322,
17,
834,
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,
564,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
2946,
834,
834,
3903,
7,
53,
834,
5522,
834,
99,
834,
221,
25322,
17,
834,
3274,
96,
19479,
17395,
3430,
2475,
3274,
96,
8770,
7,
41,
51,
61,
121,
3430,
538,... |
What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion? | CREATE TABLE table_65393 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" real,
"Avg. Finish" real,
"Winnings" text,
"Position" text
) | SELECT MIN("Poles") FROM table_65393 WHERE "Wins" = '0' AND "Top 5" = '0' AND "Position" = '66th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
3288,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
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,
3,
17684,
599,
121,
8931,
15,
7,
8512,
21680,
953,
834,
4122,
3288,
519,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
22481,
3,
17395,
3274,
3,
31,
632,
31,
3430,
96,
345,
32,
7,
4749,
1... |
what records have a score of l 109–116 2 ot | CREATE TABLE table_11964047_7 (record VARCHAR, score VARCHAR) | SELECT record FROM table_11964047_7 WHERE score = "L 109–116 2 OT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
23714,
4177,
834,
940,
41,
60,
7621,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
3187,
43,
3,
9,
2604,
13,
3,
40,
3,
17304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
19993,
23714,
4177,
834,
940,
549,
17444,
427,
2604,
3274,
96,
434,
3,
17304,
104,
20159,
204,
3,
6951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What shows for Wins when there was a Conference of , western division, in the 1967 68 season? | CREATE TABLE table_40426 (
"Season" text,
"Conference" text,
"Division" text,
"Finish" text,
"Wins" text,
"Losses" text
) | SELECT "Wins" FROM table_40426 WHERE "Conference" = '—' AND "Division" = 'western' AND "Season" = '1967–68' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25285,
2688,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
4302,
11788,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,
18455,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
7,
121,
21680,
953,
834,
25285,
2688,
549,
17444,
427,
96,
4302,
11788,
121,
3274,
3,
31,
318,
31,
3430,
96,
308,
23,
6610,
121,
3274,
3,
31,
24411,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
... |
which township has his population as 834 ? | CREATE TABLE table_203_459 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
) | SELECT "township" FROM table_203_459 WHERE "population" = 834 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
3390,
41,
3,
23,
26,
381,
6,
96,
3540,
2009,
121,
1499,
6,
96,
89,
15432,
121,
381,
6,
96,
9791,
7830,
2,
29,
13866,
121,
1499,
6,
96,
9791,
7830,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3540,
2009,
121,
21680,
953,
834,
23330,
834,
591,
3390,
549,
17444,
427,
96,
9791,
7830,
121,
3274,
505,
3710,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which player had a to par score of +2? | CREATE TABLE table_name_66 (
player VARCHAR,
to_par VARCHAR
) | SELECT player FROM table_name_66 WHERE to_par = "+2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1959,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
141,
3,
9,
12,
260,
2604,
13,
1768,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
12,
834,
1893,
3274,
96,
1220,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show all video games and their types in the order of their names. | CREATE TABLE Video_games (
gname VARCHAR,
gtype VARCHAR
) | SELECT gname, gtype FROM Video_games ORDER BY gname | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3953,
834,
7261,
7,
41,
3,
122,
4350,
584,
4280,
28027,
6,
3,
122,
6137,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
671,
1031,
11,
70,
1308,
16,
8,
455,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
122,
4350,
6,
3,
122,
6137,
21680,
3953,
834,
7261,
7,
4674,
11300,
272,
476,
3,
122,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Result, when Year is 1948, and when Date is November 7? | CREATE TABLE table_name_31 (
result VARCHAR,
year VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_31 WHERE year = 1948 AND date = "november 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
20119,
6,
116,
2929,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
215,
3274,
21474,
3430,
833,
3274,
96,
5326,
18247,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What season has 195 runs as a margin? | CREATE TABLE table_35610 (
"Rank" text,
"Margin" text,
"Opponent" text,
"Venue" text,
"Season" text
) | SELECT "Season" FROM table_35610 WHERE "Margin" = '195 runs' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
27097,
41,
96,
22557,
121,
1499,
6,
96,
7286,
122,
77,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
15,
9,
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,
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,
2469,
27097,
549,
17444,
427,
96,
7286,
122,
77,
121,
3274,
3,
31,
22464,
3154,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of dates for alouettes | CREATE TABLE table_24126518_2 (date VARCHAR, opponent VARCHAR) | SELECT COUNT(date) FROM table_24126518_2 WHERE opponent = "Alouettes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2122,
4122,
2606,
834,
357,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
5128,
21,
491,
24043,
7,
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,
2847,
17161,
599,
5522,
61,
21680,
953,
834,
2266,
2122,
4122,
2606,
834,
357,
549,
17444,
427,
15264,
3274,
96,
188,
40,
24043,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When was the score l 111 122 (ot)? | CREATE TABLE table_46835 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_46835 WHERE "Score" = 'l 111–122 (ot)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
2469,
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,
308,
342,
121,
21680,
953,
834,
591,
3651,
2469,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
40,
3,
15866,
104,
20889,
41,
32,
17,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Laps has a Points of lead changes: 13 between 8 drivers? | CREATE TABLE table_44246 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) | SELECT "Laps" FROM table_44246 WHERE "Points" = 'lead changes: 13 between 8 drivers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
357,
4448,
41,
96,
371,
77,
5,
13995,
121,
1499,
6,
96,
6936,
465,
535,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
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,
3612,
102,
7,
121,
21680,
953,
834,
3628,
357,
4448,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
109,
9,
26,
1112,
10,
1179,
344,
505,
3863,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What horse won with a trainer of 'no race'? | CREATE TABLE table_75687 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Distance (Miles)" text,
"Time" text
) | SELECT "Winner" FROM table_75687 WHERE "Trainer" = 'no race' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
3651,
940,
41,
96,
476,
2741,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
667,
210,
687,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
3072,
3651,
940,
549,
17444,
427,
96,
9402,
4899,
121,
3274,
3,
31,
29,
32,
1964,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin. | CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR) | SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
60,
15098,
3,
21342,
17966,
6,
819,
19973,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
792,
3751,
13,
688,
3,
2544,
3751,
19,
2186,
145,
8,
3751,
13,
128,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
60,
15098,
61,
21680,
5360,
549,
17444,
427,
3751,
2490,
41,
23143,
14196,
3,
17684,
599,
60,
15098,
61,
21680,
5360,
549,
17444,
427,
819,
19973,
3274,
3,
31,
14934,
17,
77,
31,
61,
1,
-100,
-100,
... |
What is the Weight of the Player with a Date of Birth of 1979-09-26? | CREATE TABLE table_name_54 (weight VARCHAR, date_of_birth VARCHAR) | SELECT weight FROM table_name_54 WHERE date_of_birth = "1979-09-26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
9378,
584,
4280,
28027,
6,
833,
834,
858,
834,
20663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
14230,
13,
8,
12387,
28,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1293,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
833,
834,
858,
834,
20663,
3274,
96,
2294,
4440,
18,
4198,
18,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which race was on the Las Vegas Motor Speedway for 2 hours? | CREATE TABLE table_12029 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
) | SELECT "Race" FROM table_12029 WHERE "Circuit" = 'las vegas motor speedway' AND "Length" = '2 hours' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3166,
41,
96,
448,
3302,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
21486,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
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,
448,
3302,
121,
21680,
953,
834,
15518,
3166,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
521,
7,
3,
162,
5556,
2340,
1634,
1343,
31,
3430,
96,
434,
4606,
189,
121,
3274,
3,
31,
357,
716,
31,
... |
Bar chart x axis policy type code y axis the total number, and order in ascending by the X-axis. | CREATE TABLE Staff (
Staff_ID INTEGER,
Staff_Details VARCHAR(255)
)
CREATE TABLE Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATETIME,
End_Date DATETIME
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Claim_Headers (
Claim_Header_ID INTEGER,
Claim_Status_Code CHAR(15),
Claim_Type_Code CHAR(15),
Policy_ID INTEGER,
Date_of_Claim DATETIME,
Date_of_Settlement DATETIME,
Amount_Claimed DECIMAL(20,4),
Amount_Piad DECIMAL(20,4)
)
CREATE TABLE Claims_Processing (
Claim_Processing_ID INTEGER,
Claim_ID INTEGER,
Claim_Outcome_Code CHAR(15),
Claim_Stage_ID INTEGER,
Staff_ID INTEGER
)
CREATE TABLE Claims_Documents (
Claim_ID INTEGER,
Document_Type_Code CHAR(15),
Created_by_Staff_ID INTEGER,
Created_Date INTEGER
)
CREATE TABLE Claims_Processing_Stages (
Claim_Stage_ID INTEGER,
Next_Claim_Stage_ID INTEGER,
Claim_Status_Name VARCHAR(255),
Claim_Status_Description VARCHAR(255)
) | SELECT Policy_Type_Code, COUNT(*) FROM Policies GROUP BY Policy_Type_Code ORDER BY Policy_Type_Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10071,
41,
10071,
834,
4309,
3,
21342,
17966,
6,
10071,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
30959,
41,
758... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7587,
834,
25160,
834,
22737,
6,
2847,
17161,
599,
1935,
61,
21680,
30959,
350,
4630,
6880,
272,
476,
7587,
834,
25160,
834,
22737,
4674,
11300,
272,
476,
7587,
834,
25160,
834,
22737,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the game when the team reached a record of 6-9? | CREATE TABLE table_10595672_1 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_10595672_1 WHERE record = "6-9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
3301,
3708,
357,
834,
536,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
116,
8,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
12869,
3301,
3708,
357,
834,
536,
549,
17444,
427,
1368,
3274,
96,
948,
7141,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Score of Tournament of portugal f1, faro , portugal? | CREATE TABLE table_name_4 (
score VARCHAR,
tournament VARCHAR
) | SELECT score FROM table_name_4 WHERE tournament = "portugal f1, faro , portugal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
2604,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
17763,
13,
20502,
13,
2147,
12204,
40,
3,
89,
4347,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5892,
3274,
96,
1493,
12204,
40,
3,
89,
4347,
623,
32,
3,
6,
2147,
12204,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What format is the link for the polling data for February 10–28, 2011? | CREATE TABLE table_24778847_2 (link VARCHAR, date_of_polling VARCHAR) | SELECT link FROM table_24778847_2 WHERE date_of_polling = "February 10–28, 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4013,
4060,
4177,
834,
357,
41,
4907,
584,
4280,
28027,
6,
833,
834,
858,
834,
3233,
697,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1910,
19,
8,
1309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1309,
21680,
953,
834,
2266,
4013,
4060,
4177,
834,
357,
549,
17444,
427,
833,
834,
858,
834,
3233,
697,
3274,
96,
31122,
335,
104,
2577,
6,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What week was the Original artist, the police ? | CREATE TABLE table_name_5 (week VARCHAR, original_artist VARCHAR) | SELECT week FROM table_name_5 WHERE original_artist = "the police" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
8041,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
47,
8,
8465,
2377,
6,
8,
2095,
3,
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,
471,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
532,
2095,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many cowboy coins were minted? | CREATE TABLE table_name_1 (mintage VARCHAR, theme VARCHAR) | SELECT mintage FROM table_name_1 WHERE theme = "cowboy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
1109,
6505,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9321,
7531,
10579,
130,
3,
8215,
26,
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,
13983,
545,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
3800,
3274,
96,
509,
210,
7531,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Constellation has a Object type of globular cluster and a NGC number of 5986? | CREATE TABLE table_name_17 (
constellation VARCHAR,
object_type VARCHAR,
ngc_number VARCHAR
) | SELECT constellation FROM table_name_17 WHERE object_type = "globular cluster" AND ngc_number = 5986 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
30872,
584,
4280,
28027,
6,
3735,
834,
6137,
584,
4280,
28027,
6,
3,
1725,
75,
834,
5525,
1152,
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,
30872,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3735,
834,
6137,
3274,
96,
14063,
4885,
9068,
121,
3430,
3,
1725,
75,
834,
5525,
1152,
3274,
3,
3390,
3840,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2011 value that has ATP Masters Series in 2007? | CREATE TABLE table_11458 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2011" FROM table_11458 WHERE "2007" = 'atp masters series' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
3449,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13907,
121,
21680,
953,
834,
18959,
3449,
549,
17444,
427,
96,
20615,
121,
3274,
3,
31,
144,
102,
2325,
7,
939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In what city is the United Spirit Arena located? | CREATE TABLE table_name_20 (
city VARCHAR,
venue VARCHAR
) | SELECT city FROM table_name_20 WHERE venue = "united spirit arena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
690,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
690,
19,
8,
907,
5876,
14904,
1069,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
5669,
3274,
96,
15129,
15,
26,
3564,
15134,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many countries sampled with year of publication being 2007 and ranking l.a. (2) being 7th | CREATE TABLE table_12000368_1 (countries_sampled VARCHAR, year_of_publication VARCHAR, ranking_la__2_ VARCHAR) | SELECT COUNT(countries_sampled) FROM table_12000368_1 WHERE year_of_publication = "2007" AND ranking_la__2_ = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2313,
519,
3651,
834,
536,
41,
13362,
2593,
834,
7,
4624,
1361,
584,
4280,
28027,
6,
215,
834,
858,
834,
15727,
257,
584,
4280,
28027,
6,
11592,
834,
521,
834,
834,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
13362,
2593,
834,
7,
4624,
1361,
61,
21680,
953,
834,
2122,
2313,
519,
3651,
834,
536,
549,
17444,
427,
215,
834,
858,
834,
15727,
257,
3274,
96,
20615,
121,
3430,
11592,
834,
521,
834,
834,
357,
8... |
tell me the price of a gentamicin - trough? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime 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 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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'lab' AND cost.eventid IN (SELECT lab.labid FROM lab WHERE lab.labname = 'gentamicin - trough') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
9339,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
7690,
5,
521,
9824,
21680,
7690,
549,
17444... |
What are the total goals against the winner with less than 5 wins, and less than 5 plays? | CREATE TABLE table_name_89 (goals_against VARCHAR, wins VARCHAR, played VARCHAR) | SELECT COUNT(goals_against) FROM table_name_89 WHERE wins < 5 AND played < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
839,
5405,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
9204,
3,
2,
305,
3430,
1944,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHAT IS THE AWAY TEAM WITH A HOME TEAM OF CHELSEA? | CREATE TABLE table_10057 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Away team" FROM table_10057 WHERE "Home team" = 'chelsea' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2915,
3436,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
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,
188,
1343,
372,
121,
21680,
953,
834,
2915,
3436,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
8738,
7,
15,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the to par for Dave hill? | CREATE TABLE table_name_52 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_52 WHERE player = "dave hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
235,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
12,
260,
21,
8545,
9956,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1959,
3274,
96,
26,
9,
162,
9956,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player from United States is in place of t6? | CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR) | SELECT player FROM table_name_51 WHERE country = "united states" AND place = "t6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
20846,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
45,
907,
1323,
19,
16,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
286,
3274,
96,
17,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what company is the only one with a revenue greater than 75,000,000 thou . pln ? | CREATE TABLE table_203_320 (
id number,
"rank in\n2011" number,
"name of\nconcern" text,
"location of\nheadquarters" text,
"revenue\n(thou.\npln)" number,
"profit\n(thou.\npln)" number,
"employees" number
) | SELECT "name of\nconcern" FROM table_203_320 WHERE "revenue\n(thou.\npln)" > 75000000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
15003,
41,
3,
23,
26,
381,
6,
96,
6254,
16,
2,
29,
13907,
121,
381,
6,
96,
4350,
13,
2,
29,
11620,
52,
29,
121,
1499,
6,
96,
14836,
13,
2,
29,
3313,
19973... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
13,
2,
29,
11620,
52,
29,
121,
21680,
953,
834,
23330,
834,
15003,
549,
17444,
427,
96,
60,
15098,
2,
29,
599,
17,
9492,
5,
2,
29,
102,
40,
29,
61,
121,
2490,
489,
12814,
2313,
1,
-100,
-100,
-100,
-... |
What is the average Lost when the difference is - 3, and a Played is less than 10? | CREATE TABLE table_name_21 (
lost INTEGER,
difference VARCHAR,
played VARCHAR
) | SELECT AVG(lost) FROM table_name_21 WHERE difference = "- 3" AND played < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
1513,
3,
21342,
17966,
6,
1750,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
19576,
116,
8,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
2298,
17,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1750,
3274,
96,
18,
220,
121,
3430,
1944,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the highest silver when the total is 4 and bronze is less than 1? | CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, bronze VARCHAR) | SELECT MAX(silver) FROM table_name_54 WHERE total = "4" AND bronze < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7,
173,
624,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
4294,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
792,
3274,
96,
20364,
3430,
13467,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the opponent with attendance of 31,777 | CREATE TABLE table_name_6 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_6 WHERE attendance = "31,777" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
15264,
28,
11364,
13,
12074,
26225,
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,
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,
15264,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
11364,
3274,
96,
3341,
6,
26225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the name of the shop that have the largest quantity of devices in stock. | CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
) | SELECT T2.shop_name FROM stock AS T1 JOIN shop AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.shop_id ORDER BY SUM(T1.quantity) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1519,
41,
1814,
834,
23,
26,
381,
6,
1407,
834,
23,
26,
381,
6,
8708,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1407,
41,
1407,
834,
23,
26,
381,
6,
1407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4416,
6921,
834,
4350,
21680,
1519,
6157,
332,
536,
3,
15355,
3162,
1814,
6157,
332,
357,
9191,
332,
5411,
6921,
834,
23,
26,
3274,
332,
4416,
6921,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
6921,
834,... |
What is Time, when Year is greater than 2011, and when Event is '800 Freestyle Relay'? | CREATE TABLE table_name_98 (
time VARCHAR,
year VARCHAR,
event VARCHAR
) | SELECT time FROM table_name_98 WHERE year > 2011 AND event = "800 freestyle relay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
97,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2900,
6,
116,
2929,
19,
2123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
215,
2490,
2722,
3430,
605,
3274,
96,
6192,
339,
4084,
16010,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients whose primary disease is complete heart block? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COMPLETE HEART BLOCK" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
6657,
27872,
3463,
3,
6021,
8241,
272,
5017,
10459,
121,
1,
-100,
-100... |
What is the average number played of the team with 1 drawn and 24 against? | CREATE TABLE table_41533 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Played") FROM table_41533 WHERE "Drawn" = '1' AND "Against" = '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1808,
4201,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
15800,
15,
26,
8512,
21680,
953,
834,
591,
1808,
4201,
549,
17444,
427,
96,
308,
10936,
29,
121,
3274,
3,
31,
536,
31,
3430,
96,
20749,
121,
3274,
3,
31,
2266,
31,
1,
-100,
-100,
-100,
-100,
... |
Show me a bar chart for what is the average rating of songs for each language? | CREATE TABLE files (
f_id number(10),
artist_name varchar2(50),
file_size varchar2(20),
duration varchar2(20),
formats varchar2(20)
)
CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating number(10),
languages varchar2(20),
releasedate Date,
resolution number(10)
)
CREATE TABLE artist (
artist_name varchar2(50),
country varchar2(20),
gender varchar2(20),
preferred_genre varchar2(50)
)
CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(10),
most_popular_in varchar2(50)
) | SELECT languages, AVG(rating) FROM song GROUP BY languages | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
3,
89,
834,
23,
26,
381,
599,
16968,
6,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
1042,
834,
7991,
3,
4331,
4059,
357,
599,
1755,
201,
8659,
3,
4331,
4059,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8024,
6,
71,
17217,
599,
52,
1014,
61,
21680,
2324,
350,
4630,
6880,
272,
476,
8024,
1,
-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 name on the Democratic ticket when the Workers ticket is james p. cannon? | CREATE TABLE table_name_32 (democratic_ticket VARCHAR, workers_ticket VARCHAR) | SELECT democratic_ticket FROM table_name_32 WHERE workers_ticket = "james p. cannon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
23319,
447,
834,
26639,
584,
4280,
28027,
6,
2765,
834,
26639,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
30,
8,
10021,
4142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15053,
834,
26639,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2765,
834,
26639,
3274,
96,
1191,
2687,
3,
102,
5,
54,
29,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the final score of the game on October 4, 1970? | CREATE TABLE table_14966537_1 (result VARCHAR, date VARCHAR) | SELECT result FROM table_14966537_1 WHERE date = "October 4, 1970" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4314,
4122,
4118,
834,
536,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
13,
8,
467,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
2534,
4314,
4122,
4118,
834,
536,
549,
17444,
427,
833,
3274,
96,
28680,
6464,
7434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much did the away team St Kilda score? | CREATE TABLE table_name_51 (
away_team VARCHAR
) | SELECT away_team AS score FROM table_name_51 WHERE away_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
410,
8,
550,
372,
472,
12672,
26,
9,
2604,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5553,
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,
... |
For which country does Keith Fergus play? | CREATE TABLE table_1515346_2 (country VARCHAR, player VARCHAR) | SELECT country FROM table_1515346_2 WHERE player = "Keith Fergus" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
27025,
4448,
834,
357,
41,
17529,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
84,
684,
405,
17017,
7566,
1744,
7,
577,
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,
684,
21680,
953,
834,
1808,
27025,
4448,
834,
357,
549,
17444,
427,
1959,
3274,
96,
439,
15,
23,
189,
7566,
1744,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which District is Constituency number 22? | CREATE TABLE table_name_43 (district VARCHAR, constituency_number VARCHAR) | SELECT district FROM table_name_43 WHERE constituency_number = "22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
26,
23,
20066,
584,
4280,
28027,
6,
6439,
4392,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3570,
19,
22636,
4392,
381,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
6439,
4392,
834,
5525,
1152,
3274,
96,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Jersey Number(s) from Norfolk State? | CREATE TABLE table_43677 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
) | SELECT "Jersey Number(s)" FROM table_43677 WHERE "From" = 'norfolk state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3420,
4013,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
21680,
953,
834,
591,
3420,
4013,
549,
17444,
427,
96,
22674,
121,
3274,
3,
31,
29,
127,
89,
32,
40,
157,
538,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record at 3:00? | CREATE TABLE table_name_71 (
record VARCHAR,
time VARCHAR
) | SELECT record FROM table_name_71 WHERE time = "3:00" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1368,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
44,
220,
10,
1206,
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,
4450,
549,
17444,
427,
97,
3274,
96,
519,
10,
1206,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what date was Edward Jeffreys the writer? | CREATE TABLE table_70906 (
"Director(s)" text,
"Writer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
) | SELECT "Date" FROM table_70906 WHERE "Writer(s)" = 'edward jeffreys' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2394,
948,
41,
96,
23620,
127,
599,
7,
61,
121,
1499,
6,
96,
24965,
49,
599,
7,
61,
121,
1499,
6,
96,
1649,
3389,
4741,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
2518,
2394,
948,
549,
17444,
427,
96,
24965,
49,
599,
7,
61,
121,
3274,
3,
31,
15,
26,
2239,
528,
89,
89,
60,
63,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which method has a record of 11-10? | CREATE TABLE table_54358 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text
) | SELECT "Method" FROM table_54358 WHERE "Record" = '11-10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
519,
3449,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
448,
32,
1106,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23351,
107,
32,
26,
121,
21680,
953,
834,
5062,
519,
3449,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2596,
4536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the phone_number by a bar chart, list from low to high by the names. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT PHONE_NUMBER, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
8023,
7894,
834,
567,
6122,
12920,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,... |
Name the years when decile was less than 7 for waitoa school | CREATE TABLE table_71702 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | SELECT "Years" FROM table_71702 WHERE "Decile" < '7' AND "Name" = 'waitoa school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
2518,
357,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
517,
3868,
121,
1499,
6,
96,
188,
864,
121,
1499,
6,
96,
23602,
127,
485,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
7,
121,
21680,
953,
834,
4450,
2518,
357,
549,
17444,
427,
96,
2962,
75,
699,
121,
3,
2,
3,
31,
940,
31,
3430,
96,
23954,
121,
3274,
3,
31,
26745,
32,
9,
496,
31,
1,
-100,
-100,
-100,
-100,
-100... |
how many patients are admitted under emergency room before the year 2155? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.admityear < "2155" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
427,
13098,
18464,
17063,
3,
30270,
8502,
12604,
121,
3430,
147... |
Find the state of the college which player Charles is attending. | CREATE TABLE tryout (cName VARCHAR, pID VARCHAR); CREATE TABLE player (pID VARCHAR, pName VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) | SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
653,
670,
41,
75,
23954,
584,
4280,
28027,
6,
3,
102,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
102,
4309,
584,
4280,
28027,
6,
3,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
5540,
21680,
1900,
6157,
332,
536,
3,
15355,
3162,
653,
670,
6157,
332,
357,
9191,
332,
5411,
75,
23954,
3274,
332,
4416,
75,
23954,
3,
15355,
3162,
1959,
6157,
332,
519,
9191,
332,
4416,
102,
4309,
3274,
... |
Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong | CREATE TABLE table_15511178_3 (
report VARCHAR,
pole_position VARCHAR,
winning_team VARCHAR
) | SELECT report FROM table_15511178_3 WHERE pole_position = "Carl Skerlong" AND winning_team = "Newman Wachs Racing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
15866,
3940,
834,
519,
41,
934,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
934,
21680,
953,
834,
20896,
15866,
3940,
834,
519,
549,
17444,
427,
11148,
834,
4718,
3274,
96,
6936,
40,
6458,
49,
2961,
121,
3430,
3447,
834,
11650,
3274,
96,
6861,
348,
27228,
7,
16046,
121,
1,
-100,
-100,
-100,
... |
What district did Joe Waggonner belong to? | CREATE TABLE table_1341738_19 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_1341738_19 WHERE incumbent = "Joe Waggonner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
3747,
834,
2294,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
410,
4967,
3129,
4102,
106,
687,
13000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2517,
3747,
834,
2294,
549,
17444,
427,
28406,
3274,
96,
683,
32,
15,
3129,
4102,
106,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many locations have been used for ballparks named Memorial Stadium? | CREATE TABLE table_1987995_5 (
location VARCHAR,
ballpark VARCHAR
) | SELECT COUNT(location) FROM table_1987995_5 WHERE ballpark = "Memorial Stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4440,
3301,
834,
755,
41,
1128,
584,
4280,
28027,
6,
1996,
6334,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3248,
43,
118,
261,
21,
1996,
6334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14836,
61,
21680,
953,
834,
24151,
4440,
3301,
834,
755,
549,
17444,
427,
1996,
6334,
3274,
96,
329,
15,
51,
11929,
12750,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the max fs where the status is status and the method is method? | CREATE TABLE table_21394 (
"Name" text,
"Model" text,
"Max FS" text,
"Tested FS" text,
"Short description" text,
"Publication" text,
"Method" text,
"Output" text,
"Status" text
) | SELECT "Max FS" FROM table_21394 WHERE "Status" = 'Status' AND "Method" = 'Method' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
4240,
41,
96,
23954,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
21298,
3,
7674,
121,
1499,
6,
96,
382,
15,
6265,
3,
7674,
121,
1499,
6,
96,
134,
14184,
4210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21298,
3,
7674,
121,
21680,
953,
834,
357,
2368,
4240,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
134,
17,
144,
302,
31,
3430,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
23351,
107,
32,
26,
3... |
You can use a scatter chart to simply show ids and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT EMPLOYEE_ID, SALARY FROM employees WHERE SALARY > (SELECT AVG(SALARY) FROM employees) AND DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%J%') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
2490,
41,
23143,
14196,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
61,
3430,
3396,
19846,
11810,
834,
... |
Find the emails of customers who has filed a complaints of the product with the most complaints. | CREATE TABLE customers (
email_address VARCHAR,
customer_id VARCHAR
)
CREATE TABLE complaints (
customer_id VARCHAR
) | SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
791,
834,
9,
26,
12039,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11244,
41,
884,
834,
23,
26,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
15,
1963,
834,
9,
26,
12039,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
11244,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
4416,
25697,
49,
834,
23,
26,
350,
4630,... |
what was the fastest time in the competition ? | CREATE TABLE table_204_556 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" text,
"notes" text
) | SELECT MIN("time") FROM table_204_556 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3769,
948,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
715,
8512,
21680,
953,
834,
26363,
834,
3769,
948,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the sum of department_id over the hire_date bin hire_date by time by a bar chart, and I want to order by the y-axis from low to high. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(DEPARTMENT_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,... |
Bar chart x axis publication date y axis how many publication date | CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
) | SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
2575,
257,
834,
4309,
16,
17,
6,
3086,
834,
4309,
16,
17,
6,
19816,
1499,
6,
2575,
257,
834,
308,
342,
1499,
6,
5312,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2575,
257,
834,
308,
342,
6,
2847,
17161,
599,
30931,
257,
834,
308,
342,
61,
21680,
5707,
350,
4630,
6880,
272,
476,
2575,
257,
834,
308,
342,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the height for number 7 | CREATE TABLE table_23670057_1 (height__m_ VARCHAR, no VARCHAR) | SELECT height__m_ FROM table_23670057_1 WHERE no = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
9295,
3436,
834,
536,
41,
88,
2632,
834,
834,
51,
834,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3902,
21,
381,
489... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3902,
834,
834,
51,
834,
21680,
953,
834,
357,
3420,
9295,
3436,
834,
536,
549,
17444,
427,
150,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the wins for tournaments played being 14 | CREATE TABLE table_1697190_1 (wins VARCHAR, tournaments_played VARCHAR) | SELECT wins FROM table_1697190_1 WHERE tournaments_played = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4327,
11776,
834,
536,
41,
3757,
7,
584,
4280,
28027,
6,
5892,
7,
834,
4895,
15,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
9204,
21,
5892,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
2938,
4327,
11776,
834,
536,
549,
17444,
427,
5892,
7,
834,
4895,
15,
26,
3274,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many accounts do we have? | CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
)
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
) | SELECT COUNT(*) FROM accounts | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6643,
41,
2493,
834,
23,
26,
381,
6,
2493,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6273,
834,
11073,
2782,
834,
4978,
7,
41,
1487,
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,
2847,
17161,
599,
1935,
61,
21680,
3744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006 2009? | CREATE TABLE table_40091 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_40091 WHERE "Player" = 'keith bogans' AND "Years in Orlando" = '2006–2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5548,
4729,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
16,
14374,
121,
1499,
6,
96,
29364,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24732,
485,
121,
21680,
953,
834,
5548,
4729,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
5754,
107,
3,
12247,
3247,
31,
3430,
96,
476,
2741,
7,
16,
14374,
121,
3274,
3,
31,
21196,
104,
16660,
31,
1,
-... |
What is the final score at Melbourne Cricket Ground? | CREATE TABLE table_name_79 (
result VARCHAR,
venue VARCHAR
) | SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
741,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
804,
2604,
44,
9396,
24661,
13908,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
5669,
3274,
96,
2341,
26255,
18096,
1591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the school for eagles | CREATE TABLE table_68070 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
) | SELECT "School" FROM table_68070 WHERE "Team" = 'eagles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2079,
2518,
41,
96,
29364,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
308,
23,
6610,
11392,
121,
1499,
6,
96,
23847,
1748,
11392,
121,
1499,
6,
96,
134,
15,
9,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
948,
2079,
2518,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
15,
9,
3537,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Position has a Lost of 8, and a Played larger than 14? | CREATE TABLE table_66630 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT SUM("Position") FROM table_66630 WHERE "Lost" = '8' AND "Played" > '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
26106,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
3539,
26106,
549,
17444,
427,
96,
434,
3481,
121,
3274,
3,
31,
927,
31,
3430,
96,
15800,
15,
26,
121,
2490,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-10... |
Where is Dynamo-2 located? | CREATE TABLE table_57031 (
"Team" text,
"Location" text,
"Venue" text,
"League and position in 1991" text,
"Coach" text
) | SELECT "Location" FROM table_57031 WHERE "Team" = 'dynamo-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
3341,
41,
96,
18699,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
2796,
9,
5398,
11,
1102,
16,
9957,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
28363,
3341,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
24805,
51,
32,
4949,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which state includes the city of Storrs? | CREATE TABLE table_name_25 (state VARCHAR, city VARCHAR) | SELECT state FROM table_name_25 WHERE city = "storrs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
5540,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
538,
963,
8,
690,
13,
472,
127,
52,
7,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
690,
3274,
96,
7279,
52,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What high points did San Francisco have in a game later than 69? | CREATE TABLE table_43734 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_43734 WHERE "Game" > '69' AND "Team" = 'san francisco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4118,
3710,
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,
434,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
979,
121,
21680,
953,
834,
591,
4118,
3710,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
3951,
31,
3430,
96,
18699,
121,
3274,
3,
31,
7,
152,
2515,
11389,
3523,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the average year Charles N. Felton was re-elected? | CREATE TABLE table_name_92 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR) | SELECT AVG(first_elected) FROM table_name_92 WHERE result = "re-elected" AND incumbent = "charles n. felton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1348,
215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
14672,
834,
19971,
61,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
741,
3274,
96,
60,
18,
19971,
121,
3430,
28406,
3274,
96,
4059,
965,
3,
29,
5,
1800,
106,
121,
1,
-100,
-100,
-100,
-100,
-... |
What is the Hanja for the sakju province? | CREATE TABLE table_name_78 (hanja VARCHAR, province VARCHAR) | SELECT hanja FROM table_name_78 WHERE province = "sakju" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
2618,
1191,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6627,
1191,
21,
8,
3,
7,
1639,
2047,
7985,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2618,
1191,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
7985,
3274,
96,
7,
1639,
2047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who won Mixed doubles the year that Pablo Abian won Men's singles? | CREATE TABLE table_70107 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Mixed doubles" FROM table_70107 WHERE "Men's singles" = 'pablo abian' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
18057,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
2407,
15,
26,
1486,
7,
121,
21680,
953,
834,
2518,
18057,
549,
17444,
427,
96,
329,
35,
31,
7,
712,
7,
121,
3274,
3,
31,
102,
9,
4672,
3,
9,
12032,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In what venue did FK Crvena Stijena play at home? | CREATE TABLE table_name_24 (venue VARCHAR, home VARCHAR) | SELECT venue FROM table_name_24 WHERE home = "fk crvena stijena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
15098,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
5669,
410,
377,
439,
8427,
1926,
9,
472,
23,
354,
35,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
234,
3274,
96,
89,
157,
5764,
1926,
9,
3,
2248,
354,
35,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total score when the score for floor exercise was 9.287? | CREATE TABLE table_72188 (
"Rank" real,
"Gymnast" text,
"Floor Exercise" text,
"Pommel Horse" text,
"Rings" text,
"Vault" text,
"Parallel Bars" text,
"Horizontal Bar" text,
"Total" text
) | SELECT "Total" FROM table_72188 WHERE "Floor Exercise" = '9.287' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
25794,
41,
96,
22557,
121,
490,
6,
96,
517,
63,
51,
29,
9,
7,
17,
121,
1499,
6,
96,
11251,
127,
21414,
121,
1499,
6,
96,
345,
7649,
40,
13538,
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,
3696,
1947,
121,
21680,
953,
834,
5865,
25794,
549,
17444,
427,
96,
11251,
127,
21414,
121,
3274,
3,
31,
8797,
357,
4225,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the number of the wines that have prices lower than 50 and have appelations in Monterey county?, and display by the x-axis in desc. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
) | SELECT Name, COUNT(Name) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.Price < 50 GROUP BY Name ORDER BY Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
23954,
61,
21680,
8319,
6105,
7,
6157,
332,
536,
3,
15355,
3162,
2013,
6157,
332,
357,
9191,
332,
5411,
27794,
257,
3274,
332,
4416,
27794,
257,
549,
17444,
427,
332,
5411,
10628,
63,
3274,
... |
What lowest Bodyweight has a Snatch smaller than 55? | CREATE TABLE table_11418 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" text
) | SELECT MIN("Bodyweight") FROM table_11418 WHERE "Snatch" < '55' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
2606,
41,
96,
23954,
121,
1499,
6,
96,
279,
9666,
9378,
121,
490,
6,
96,
134,
29,
14547,
121,
490,
6,
96,
254,
109,
152,
3,
184,
3,
12488,
157,
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,
3,
17684,
599,
121,
279,
9666,
9378,
8512,
21680,
953,
834,
18959,
2606,
549,
17444,
427,
96,
134,
29,
14547,
121,
3,
2,
3,
31,
3769,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the original title of the king's speech? | CREATE TABLE table_name_99 (
original_title VARCHAR,
winner_and_nominees VARCHAR
) | SELECT original_title FROM table_name_99 WHERE winner_and_nominees = "the king's speech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
926,
834,
21869,
584,
4280,
28027,
6,
4668,
834,
232,
834,
3114,
630,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
926,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
21869,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
4668,
834,
232,
834,
3114,
630,
15,
7,
3274,
96,
532,
3,
1765,
31,
7,
5023,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the unformatted capacity per side if the size is 8in? | CREATE TABLE table_name_42 (unformatted_capacity_per_side VARCHAR, size VARCHAR) | SELECT unformatted_capacity_per_side FROM table_name_42 WHERE size = "8in" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
202,
8995,
1054,
834,
4010,
9,
6726,
834,
883,
834,
1583,
584,
4280,
28027,
6,
812,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
73,
8995,
1054,
834,
4010,
9,
6726,
834,
883,
834,
1583,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
812,
3274,
96,
927,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of the rounds of the match with brett chism as the opponent? | CREATE TABLE table_name_73 (round INTEGER, opponent VARCHAR) | SELECT SUM(round) FROM table_name_73 WHERE opponent = "brett chism" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
7775,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
14419,
13,
8,
1588,
28,
3,
1999,
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,
0... | [
3,
23143,
14196,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
15264,
3274,
96,
1999,
17,
17,
3,
1436,
7,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683 | CREATE TABLE table_23390604_1 (
mir_hossein_mousavi INTEGER,
spoiled_ballots VARCHAR
) | SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
2394,
3328,
591,
834,
536,
41,
1870,
834,
11982,
7,
2455,
834,
51,
1162,
2960,
3,
21342,
17966,
6,
3,
29793,
834,
3849,
3171,
7,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
5884,
834,
11982,
7,
2455,
834,
51,
1162,
2960,
61,
21680,
953,
834,
20879,
2394,
3328,
591,
834,
536,
549,
17444,
427,
3,
29793,
834,
3849,
3171,
7,
3274,
11526,
4591,
1,
-100,
-100,
-100,
-100,
-100,... |
What day were the Denver Broncos the opponent? | CREATE TABLE table_14655917_1 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_14655917_1 WHERE opponent = "Denver Broncos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4122,
3390,
2517,
834,
536,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
130,
8,
12154,
4027,
29,
509,
7,
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,
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,
2534,
4122,
3390,
2517,
834,
536,
549,
17444,
427,
15264,
3274,
96,
308,
35,
624,
4027,
29,
509,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Fate of the San Pablo ship? | CREATE TABLE table_44103 (
"Date" text,
"Name" text,
"Nationality" text,
"Tonnage (GRT)" real,
"Fate" text
) | SELECT "Fate" FROM table_44103 WHERE "Name" = 'san pablo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
17864,
41,
96,
308,
342,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
382,
106,
9761,
41,
517,
5934,
61,
121,
490,
6,
96,
371,
342,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
342,
121,
21680,
953,
834,
3628,
17864,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7,
152,
2576,
4672,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date of the German Grand Prix? | CREATE TABLE table_17524 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"125cc winner" text,
"250cc winner" text,
"MotoGP winner" text,
"Report" text
) | SELECT "Date" FROM table_17524 WHERE "Grand Prix" = 'German Grand Prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3072,
2266,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
10124,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
536,
3072,
2266,
549,
17444,
427,
96,
4744,
727,
12942,
121,
3274,
3,
31,
24518,
2698,
12942,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country was the game played when it was played from April 11-April 21? | CREATE TABLE table_name_73 (country VARCHAR, date VARCHAR) | SELECT country FROM table_name_73 WHERE date = "april 11-april 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
17529,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
47,
8,
467,
1944,
116,
34,
47,
1944,
45,
1186,
850,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
850,
18,
9,
2246,
40,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the attendance on october 19, 2003? | CREATE TABLE table_name_36 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_36 WHERE date = "october 19, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
11364,
30,
3,
32,
75,
235,
1152,
12370,
3888,
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,
11364,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
12370,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many rebounds per game did he have at the 2006 fiba world championship? | CREATE TABLE table_2761641_1 (
rebounds_per_game VARCHAR,
tournament VARCHAR
) | SELECT rebounds_per_game FROM table_2761641_1 WHERE tournament = "2006 FIBA World Championship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3959,
2938,
4853,
834,
536,
41,
3,
23768,
834,
883,
834,
7261,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
23768,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23768,
834,
883,
834,
7261,
21680,
953,
834,
357,
3959,
2938,
4853,
834,
536,
549,
17444,
427,
5892,
3274,
96,
21196,
3,
4936,
4882,
1150,
7666,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Record of 0–8 had what lowest week? | CREATE TABLE table_name_25 (week INTEGER, record VARCHAR) | SELECT MIN(week) FROM table_name_25 WHERE record = "0–8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
8041,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
11392,
13,
3,
632,
104,
927,
141,
125,
7402,
471,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8041,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
1368,
3274,
96,
632,
104,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Venue of melbourne , australia, and a Extra of 200 m has what results? | CREATE TABLE table_66726 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Result" FROM table_66726 WHERE "Venue" = 'melbourne , australia' AND "Extra" = '200 m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
940,
2688,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5420,
1313,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3539,
940,
2688,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
2341,
26255,
3,
6,
23407,
31,
3430,
96,
5420,
1313,
121,
3274,
3,
31,
3632,
3,
51,
31,
1,
-100,
-100,
-... |
Where is the ballpark of the Twins? | CREATE TABLE table_1987995_5 (
location VARCHAR,
team VARCHAR
) | SELECT location FROM table_1987995_5 WHERE team = "Twins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4440,
3301,
834,
755,
41,
1128,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
1996,
6334,
13,
8,
13058,
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,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
24151,
4440,
3301,
834,
755,
549,
17444,
427,
372,
3274,
96,
382,
3757,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.