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 2010 WITH 2012 OF 2R AT MIAMI MASTERS? | CREATE TABLE table_61650 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2010" FROM table_61650 WHERE "2012" = '2r' AND "Tournament" = 'miami masters' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
15348,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
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,
14926,
121,
21680,
953,
834,
4241,
15348,
549,
17444,
427,
96,
12172,
121,
3274,
3,
31,
357,
52,
31,
3430,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
51,
23,
3690,
2325,
7,
31,
1,
-100,
-100,
-100,
-100,
-1... |
Name the casualities for nation of incident of hostile on 2006-06-26 | CREATE TABLE table_name_43 (
casualties VARCHAR,
nature_of_incident VARCHAR,
date VARCHAR
) | SELECT casualties FROM table_name_43 WHERE nature_of_incident = "hostile" AND date = "2006-06-26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
6995,
3010,
584,
4280,
28027,
6,
1405,
834,
858,
834,
77,
75,
4215,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6995,
3010,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1405,
834,
858,
834,
77,
75,
4215,
3274,
96,
12675,
699,
121,
3430,
833,
3274,
96,
21196,
18,
5176,
18,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
hba1c > 6 % | CREATE TABLE table_train_175 (
"id" int,
"lipid_lowering_therapy" bool,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"fasting_serum_triglycerides" int,
"gilbert_syndrome" bool,
"age" float,
"alanine_aminotransferase" bool,
"NOUSE" float
) | SELECT * FROM table_train_175 WHERE hemoglobin_a1c_hba1c > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
536,
3072,
41,
96,
23,
26,
121,
16,
17,
6,
96,
19437,
834,
23358,
834,
10896,
121,
3,
12840,
40,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
536,
3072,
549,
17444,
427,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose drug route is oral? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "ORAL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What's the Year average that's got Trim of LS/LT and Power of HP (KW)? | CREATE TABLE table_name_51 (
year INTEGER,
trim VARCHAR,
power VARCHAR
) | SELECT AVG(year) FROM table_name_51 WHERE trim = "ls/lt" AND power = "hp (kw)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
215,
3,
21342,
17966,
6,
6228,
584,
4280,
28027,
6,
579,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2929,
1348,
24,
31,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
6228,
3274,
96,
40,
7,
87,
40,
17,
121,
3430,
579,
3274,
96,
107,
102,
41,
157,
210,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sub-parish of the church located in Fortun? | CREATE TABLE table_178398_1 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR) | SELECT sub_parish__sogn_ FROM table_178398_1 WHERE location_of_the_church = "Fortun" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4591,
3916,
834,
536,
41,
7304,
834,
1893,
1273,
834,
834,
7,
32,
122,
29,
834,
584,
4280,
28027,
6,
1128,
834,
858,
834,
532,
834,
28854,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
769,
834,
1893,
1273,
834,
834,
7,
32,
122,
29,
834,
21680,
953,
834,
2517,
4591,
3916,
834,
536,
549,
17444,
427,
1128,
834,
858,
834,
532,
834,
28854,
3274,
96,
3809,
17,
202,
121,
1,
-100,
-100,
-100,
-100,
-10... |
What was the date of the victory when the Axis Unit was 5./jg 3? | CREATE TABLE table_13079 (
"Date (dd.mm.yyyy)" text,
"Soviet Unit" text,
"Aircraft flown" text,
"Enemy Aircraft" text,
"Axis Unit" text
) | SELECT "Date (dd.mm.yyyy)" FROM table_13079 WHERE "Axis Unit" = '5./jg 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
4440,
41,
96,
308,
342,
41,
26,
26,
5,
635,
5,
63,
63,
63,
63,
61,
121,
1499,
6,
96,
5231,
5914,
17,
5579,
121,
1499,
6,
96,
20162,
6696,
2537,
29,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
41,
26,
26,
5,
635,
5,
63,
63,
63,
63,
61,
121,
21680,
953,
834,
21448,
4440,
549,
17444,
427,
96,
188,
226,
159,
5579,
121,
3274,
3,
31,
9125,
87,
354,
122,
220,
31,
1,
-100,
-100,
-100,
-100,
... |
what game ended f-a with a round of round 1 replay | CREATE TABLE table_63968 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text
) | SELECT "Result F \u2013 A" FROM table_63968 WHERE "Round" = 'round 1 replay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3288,
3651,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
566,
3,
87,
71,
121,
1499,
6,
96,
20119,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3,
2,
76,
11138,
71,
121,
21680,
953,
834,
948,
3288,
3651,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
7775,
209,
27204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is procedure icd9 code and procedure short title of subject id 8440? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT procedures.icd9_code, procedures.short_title FROM procedures WHERE procedures.subject_id = "8440" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4293,
5,
447,
26,
1298,
834,
4978,
6,
4293,
5,
7,
14184,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4608,
2445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Name, when the Time is 8:10.1? | CREATE TABLE table_name_92 (
name VARCHAR,
time VARCHAR
) | SELECT name FROM table_name_92 WHERE time = "8:10.1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
564,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
6,
116,
8,
2900,
19,
505,
10,
22567,
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,
564,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
97,
3274,
96,
927,
10,
22567,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How large in US customary terms is the unit called butylka (vodochnaya)? | CREATE TABLE table_name_33 (
us_customary VARCHAR,
unit VARCHAR
) | SELECT us_customary FROM table_name_33 WHERE unit = "butylka (vodochnaya)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
178,
834,
25697,
1208,
584,
4280,
28027,
6,
1745,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
508,
16,
837,
1653,
1208,
1353,
19,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
178,
834,
25697,
1208,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1745,
3274,
96,
2780,
63,
40,
1258,
41,
1621,
3327,
29,
9,
63,
9,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Give me the comparison about School_ID over the All_Neutral by a bar chart, and sort in descending by the bars. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Neutral, School_ID FROM basketball_match ORDER BY All_Neutral DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
432,
834,
26288,
8792,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what title appears before the self preservation society ? | CREATE TABLE table_203_570 (
id number,
"#" number,
"title" text,
"tpb isbn" text,
"tpb release date" text,
"tpb page number" number,
"collected material" text
) | SELECT "title" FROM table_203_570 WHERE id = (SELECT id FROM table_203_570 WHERE "title" = 'the self-preservation society') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
28363,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
17,
102,
115,
19,
115,
29,
121,
1499,
6,
96,
17,
102,
115,
1576,
833,
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,
21869,
121,
21680,
953,
834,
23330,
834,
28363,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
28363,
549,
17444,
427,
96,
21869,
121,
3274,
3,
31,
532,
1044,
18,
2... |
what is the number of patients whose admission type is emergency and year of death is less than or equal to 2180? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dod_year <= "2180.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
26,
32,
26,
834... |
Show all student IDs with the number of sports and total number of games played | CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE plays... | SELECT stuid, COUNT(*), SUM(gamesplayed) FROM sportsinfo GROUP BY stuid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2100,
9583,
41,
21341,
23,
26,
381,
6,
2600,
4350,
1499,
6,
716,
883,
8041,
381,
6,
1031,
4895,
15,
26,
381,
6,
30,
860,
17401,
2009,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
21341,
23,
26,
6,
2847,
17161,
599,
1935,
201,
180,
6122,
599,
7261,
7,
4895,
15,
26,
61,
21680,
2100,
9583,
350,
4630,
6880,
272,
476,
21341,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the laid down date of the destroyer with a r29 pennant? | CREATE TABLE table_name_37 (laid_down VARCHAR, pennant VARCHAR) | SELECT laid_down FROM table_name_37 WHERE pennant = "r29" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
40,
6146,
834,
3035,
584,
4280,
28027,
6,
4550,
29,
288,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7245,
323,
833,
13,
8,
10123,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7245,
834,
3035,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
4550,
29,
288,
3274,
96,
52,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the lowest number of total passengers (millions) for an annual entry/exit of 36.609? | CREATE TABLE table_name_32 (
total_passengers__millions__2011_12 INTEGER,
annual_entry_exit__millions__2011_12 VARCHAR
) | SELECT MIN(total_passengers__millions__2011_12) FROM table_name_32 WHERE annual_entry_exit__millions__2011_12 = 36.609 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
792,
834,
3968,
4606,
277,
834,
834,
17030,
7,
834,
834,
13907,
834,
2122,
3,
21342,
17966,
6,
2041,
834,
295,
651,
834,
994,
155,
834,
834,
17030,
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,
3,
17684,
599,
235,
1947,
834,
3968,
4606,
277,
834,
834,
17030,
7,
834,
834,
13907,
834,
2122,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2041,
834,
295,
651,
834,
994,
155,
834,
834,
17030,
7,
834,
8... |
which author had all of his titles ' first edition lengths above 300 pp ? | CREATE TABLE table_203_394 (
id number,
"title" text,
"author" text,
"date" number,
"length\n(first edition)" text
) | SELECT "author" FROM table_203_394 GROUP BY "author" HAVING MIN("length\n(first edition)") > 300 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3288,
591,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
17415,
121,
1499,
6,
96,
5522,
121,
381,
6,
96,
19457,
2,
29,
599,
14672,
4182,
61,
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,
17415,
121,
21680,
953,
834,
23330,
834,
3288,
591,
350,
4630,
6880,
272,
476,
96,
17415,
121,
454,
6968,
2365,
3,
17684,
599,
121,
19457,
2,
29,
599,
14672,
4182,
61,
8512,
2490,
3147,
1,
-100,
-100,
-100,
-100... |
What is the Game number when the Rangers have a Record of 25-24-11? | CREATE TABLE table_name_18 (
game VARCHAR,
record VARCHAR
) | SELECT COUNT(game) FROM table_name_18 WHERE record = "25-24-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
467,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4435,
381,
116,
8,
12612,
277,
43,
3,
9,
11392,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1368,
3274,
96,
1828,
14962,
9169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me the comparison about Team_ID over the ACC_Road , and group by attribute All_Home, I want to order from high to low by the ACC_Road. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY ACC_Road DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
6,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
3... |
What is the score for Australia with a place of 4? | CREATE TABLE table_name_87 (
score VARCHAR,
country VARCHAR,
place VARCHAR
) | SELECT score FROM table_name_87 WHERE country = "australia" AND place = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
2604,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
2051,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
684,
3274,
96,
2064,
8792,
23,
9,
121,
3430,
286,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the email and phone number of the customers who have never filed a complaint before. | CREATE TABLE complaints (
complaint_id number,
product_id number,
customer_id number,
complaint_outcome_code text,
complaint_status_code text,
complaint_type_code text,
date_complaint_raised time,
date_complaint_closed time,
staff_id number
)
CREATE TABLE customers (
customer_id... | SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11244,
41,
10394,
834,
23,
26,
381,
6,
556,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
10394,
834,
670,
287,
15,
834,
4978,
1499,
6,
10394,
834,
8547,
302,
834,
4978,
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,
791,
834,
9,
26,
12039,
6,
951,
834,
5525,
1152,
21680,
722,
549,
17444,
427,
4486,
884,
834,
23,
26,
3388,
41,
23143,
14196,
884,
834,
23,
26,
21680,
11244,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the statistic of most assists? | CREATE TABLE table_name_93 (
name VARCHAR,
statistic VARCHAR
) | SELECT name FROM table_name_93 WHERE statistic = "most assists" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
564,
584,
4280,
28027,
6,
19720,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
19720,
13,
167,
13041,
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,
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,
564,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
19720,
3274,
96,
5463,
13041,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the position of the player with a height of 205 and shirt no 8? | CREATE TABLE table_name_14 (position VARCHAR, height VARCHAR, shirt_no VARCHAR) | SELECT position FROM table_name_14 WHERE height = 205 AND shirt_no = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
4718,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
8677,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3902,
3274,
3,
23201,
3430,
8677,
834,
29,
32,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Overall of the pick less than 20? | CREATE TABLE table_name_16 (overall VARCHAR, pick__number INTEGER) | SELECT overall FROM table_name_16 WHERE pick__number < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1890,
1748,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9126,
13,
8,
1432,
705,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1879,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
List the carriers of devices in ascending alphabetical order. | CREATE TABLE device (Carrier VARCHAR) | SELECT Carrier FROM device ORDER BY Carrier | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1407,
41,
6936,
6711,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
16642,
13,
1904,
16,
25200,
53,
20688,
1950,
455,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1184,
6711,
21680,
1407,
4674,
11300,
272,
476,
1184,
6711,
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,
... |
A bar chart for finding the number of the names of stadiums that some Australian swimmers have been to, could you list by the total number from high to low? | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimme... | SELECT T4.Name, COUNT(T4.Name) FROM swimmer AS t1 JOIN record AS t2 ON t1.ID = t2.Swimmer_ID JOIN event AS t3 ON t2.Event_ID = t3.ID JOIN stadium AS t4 ON t4.ID = t3.Stadium_ID WHERE t1.Nationality = 'Australia' GROUP BY T4.Name ORDER BY COUNT(T4.Name) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7984,
23954,
6,
2847,
17161,
599,
382,
7984,
23954,
61,
21680,
27424,
6157,
3,
17,
536,
3,
15355,
3162,
1368,
6157,
3,
17,
357,
9191,
3,
17,
5411,
4309,
3274,
3,
17,
4416,
134,
210,
12174,
834,
4309,
3,
15355... |
What is the To par value that goes with a Score of 70-69=139? | CREATE TABLE table_name_78 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_78 WHERE score = 70 - 69 = 139 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
701,
24,
1550,
28,
3,
9,
17763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
3,
3951,
3274,
3,
24090,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the background of the celebrity who had the result 13 the celebrity apprentice (2008-03-27)? | CREATE TABLE table_12286195_1 (
background VARCHAR,
result VARCHAR
) | SELECT background FROM table_12286195_1 WHERE result = "13 The celebrity Apprentice (2008-03-27)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
3840,
22464,
834,
536,
41,
2458,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2458,
13,
8,
17086,
113,
141,
8,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2458,
21680,
953,
834,
20889,
3840,
22464,
834,
536,
549,
17444,
427,
741,
3274,
96,
2368,
37,
17086,
31183,
41,
16128,
18,
4928,
18,
2555,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the winner for 26 january 2009 | CREATE TABLE table_23438 (
"Episode" text,
"First broadcast" text,
"Rufus guest" text,
"Marcus guest" text,
"Winner" text
) | SELECT "Winner" FROM table_23438 WHERE "First broadcast" = '26 January 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3710,
3747,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
17137,
89,
302,
3886,
121,
1499,
6,
96,
7286,
1071,
7,
3886,
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,
18455,
687,
121,
21680,
953,
834,
357,
3710,
3747,
549,
17444,
427,
96,
25171,
6878,
121,
3274,
3,
31,
2688,
1762,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the region is the Southern district of Texas, what is the citation? | CREATE TABLE table_22901612_2 (citation VARCHAR, region VARCHAR) | SELECT citation FROM table_22901612_2 WHERE region = "Southern District of Texas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
2938,
2122,
834,
357,
41,
13903,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1719,
19,
8,
5193,
3939,
13,
2514,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
13903,
21680,
953,
834,
2884,
2394,
2938,
2122,
834,
357,
549,
17444,
427,
1719,
3274,
96,
22081,
49,
29,
3570,
13,
2514,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the attendance of the game with a score of 5-4? | CREATE TABLE table_name_52 (attendance VARCHAR, score VARCHAR) | SELECT attendance FROM table_name_52 WHERE score = "5-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
15116,
663,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
11364,
13,
8,
467,
28,
3,
9,
2604,
13,
305... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
2604,
3274,
96,
755,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Venue of the Competition on 2001-05-05? | CREATE TABLE table_name_38 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_38 WHERE date = "2001-05-05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
15098,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
29940,
13,
8,
15571,
30,
4402,
18,
3076,
18,
3076,
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,
5669,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
833,
3274,
96,
3632,
18930,
29325,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How tall is the 52 story building? | CREATE TABLE table_name_82 (
height VARCHAR,
stories VARCHAR
) | SELECT height FROM table_name_82 WHERE stories = 52 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
3902,
584,
4280,
28027,
6,
1937,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
5065,
19,
8,
9065,
733,
740,
58,
1,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
1937,
3274,
9065,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What artist was released in 2005? | CREATE TABLE table_name_71 (artist VARCHAR, year VARCHAR) | SELECT artist FROM table_name_71 WHERE year = 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
1408,
343,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2377,
47,
1883,
16,
3105,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2377,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
215,
3274,
3105,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Engine with 3 as the start in the year of 2007? | CREATE TABLE table_6326 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text,
"Team" text
) | SELECT "Engine" FROM table_6326 WHERE "Start" = '3' AND "Year" = '2007' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
2688,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
371,
77,
1273,
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,
31477,
121,
21680,
953,
834,
3891,
2688,
549,
17444,
427,
96,
7681,
17,
121,
3274,
3,
31,
519,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
20615,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the long in 1994? | CREATE TABLE table_51793 (
"Year" text,
"Team" text,
"Comp" text,
"Long" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
) | SELECT "Long" FROM table_51793 WHERE "Year" = '1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
4271,
41,
96,
476,
2741,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5890,
102,
121,
1499,
6,
96,
434,
2444,
121,
1499,
6,
96,
448,
342,
121,
1499,
6,
96,
476... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
2444,
121,
21680,
953,
834,
755,
2517,
4271,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4240,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the average year for the accolade 100 greatest singles of all time? | CREATE TABLE table_name_57 (year INTEGER, accolade VARCHAR) | SELECT AVG(year) FROM table_name_57 WHERE accolade = "100 greatest singles of all time" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1201,
3,
21342,
17966,
6,
30022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1348,
215,
21,
8,
30022,
910,
4016,
712,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
30022,
3274,
96,
2915,
4016,
712,
7,
13,
66,
97,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the 1997 value when 2002 was A and 2003 was 1R? | CREATE TABLE table_name_61 (Id VARCHAR) | SELECT 1997 FROM table_name_61 WHERE 2002 = "a" AND 2003 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6622,
701,
116,
4407,
47,
71,
11,
3888,
47,
209,
448,
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,
6622,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
4407,
3274,
96,
9,
121,
3430,
3888,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the initial owners of Wasco in 1858? | CREATE TABLE table_name_57 (
initial_owners VARCHAR,
year_built VARCHAR,
name VARCHAR
) | SELECT initial_owners FROM table_name_57 WHERE year_built = 1858 AND name = "wasco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
2332,
834,
13238,
7,
584,
4280,
28027,
6,
215,
834,
16152,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2332,
834,
13238,
7,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
215,
834,
16152,
3274,
507,
3449,
3430,
564,
3274,
96,
9491,
509,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was the venue at VFL park? | CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_97 WHERE venue = "vfl park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
5669,
44,
584,
10765,
2447,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
5669,
3274,
96,
208,
89,
40,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Triad frew with a day power of 5,000? | CREATE TABLE table_32766 (
"Freq" real,
"Call" text,
"City" text,
"Owner" text,
"Day Power ( W )" real,
"Night Power" real,
"Format" text,
"Stereo" text
) | SELECT COUNT("Freq") FROM table_32766 WHERE "Day Power ( W )" = '5,000' AND "Owner" = 'triad' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
3539,
41,
96,
371,
60,
1824,
121,
490,
6,
96,
254,
1748,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
667,
210,
687,
121,
1499,
6,
96,
16803,
2621,
41,
549,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
60,
1824,
8512,
21680,
953,
834,
519,
2555,
3539,
549,
17444,
427,
96,
16803,
2621,
41,
549,
3,
61,
121,
3274,
3,
31,
5898,
31,
3430,
96,
667,
210,
687,
121,
3274,
3,
31,
17,
17000,
3... |
Which week 3 had a week 1 of Kristy Dwyer? | CREATE TABLE table_name_30 (
week_3 VARCHAR,
week_1 VARCHAR
) | SELECT week_3 FROM table_name_30 WHERE week_1 = "kristy dwyer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
471,
834,
519,
584,
4280,
28027,
6,
471,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
220,
141,
3,
9,
471,
209,
13,
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,
471,
834,
519,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
471,
834,
536,
3274,
96,
10648,
7,
17,
63,
3,
26,
210,
7975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, find name and the amount of name , and group by attribute name, and visualize them by a bar chart, and rank by the y-axis from low to high. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY COUNT(T2.Name) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
2847,
17161,
599,
382,
4416,
23954,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
... |
If the incoming head coach is Carlos Azenha, what is the date of vacancy? | CREATE TABLE table_27133147_3 (date_of_vacancy VARCHAR, incoming_head_coach VARCHAR) | SELECT date_of_vacancy FROM table_27133147_3 WHERE incoming_head_coach = "Carlos Azenha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
22974,
24719,
834,
519,
41,
5522,
834,
858,
834,
29685,
584,
4280,
28027,
6,
3,
19583,
834,
3313,
834,
509,
1836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
29685,
21680,
953,
834,
2555,
22974,
24719,
834,
519,
549,
17444,
427,
3,
19583,
834,
3313,
834,
509,
1836,
3274,
96,
6936,
2298,
71,
1847,
1024,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Against, when Date is '16/03/1996'? | CREATE TABLE table_62615 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT COUNT("Against") FROM table_62615 WHERE "Date" = '16/03/1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2688,
1808,
41,
96,
667,
102,
2748,
53,
16651,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20749,
8512,
21680,
953,
834,
948,
2688,
1808,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2938,
31064,
2294,
4314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many airlines are there? | CREATE TABLE airlines (
Id VARCHAR
) | SELECT COUNT(*) FROM airlines | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
19184,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
19184,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
19184,
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 record has Katsuomi Inagaki as an opponent? | CREATE TABLE table_name_51 (
record VARCHAR,
opponent VARCHAR
) | SELECT record FROM table_name_51 WHERE opponent = "katsuomi inagaki" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
1368,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1368,
65,
480,
23766,
32,
51,
23,
86,
4711,
2168,
38,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
15264,
3274,
96,
157,
23766,
32,
51,
23,
16,
4711,
2168,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the average of revenue , and group by attribute headquarter, and I want to rank y-axis in descending order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Headquarter, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Revenue) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
71,
17217,
599,
1649,
15098,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
36... |
provide me the number of black/haitian patients who were admitted before the year 2124. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.admityear < "2124" | [
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,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
5478,
3177,
21758,
121,
3430,
14798,
5,
20466,
17,
... |
what is the number of times deggendorfer sc ii is on the list ? | CREATE TABLE table_204_1 (
id number,
"season" text,
"north" text,
"south" text,
"east" text,
"west" text
) | SELECT COUNT(*) FROM table_204_1 WHERE "east" = 'deggendorfer sc ii' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
536,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
1499,
6,
96,
29,
127,
189,
121,
1499,
6,
96,
7,
670,
107,
121,
1499,
6,
96,
11535,
121,
1499,
6,
96,
12425,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
536,
549,
17444,
427,
96,
11535,
121,
3274,
3,
31,
221,
4102,
23033,
49,
3,
7,
75,
3,
23,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many states have never executed anyone ? | CREATE TABLE table_203_9 (
id number,
"state" text,
"last execution date" text,
"name" text,
"crime" text,
"method" text
) | SELECT COUNT("state") FROM table_203_9 WHERE "last execution date" = 'never used' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1298,
41,
3,
23,
26,
381,
6,
96,
5540,
121,
1499,
6,
96,
5064,
9328,
833,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
2685,
526,
121,
1499,
6,
96,
23152,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
5540,
8512,
21680,
953,
834,
23330,
834,
1298,
549,
17444,
427,
96,
5064,
9328,
833,
121,
3274,
3,
31,
29,
3258,
261,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected | CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR) | SELECT condition FROM table_name_41 WHERE bleeding_time = "prolonged" AND platelet_count = "decreased or unaffected" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
17558,
584,
4280,
28027,
6,
19021,
834,
715,
584,
4280,
28027,
6,
3829,
1655,
834,
13362,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
1706,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
19021,
834,
715,
3274,
96,
1409,
23629,
121,
3430,
3829,
1655,
834,
13362,
3274,
96,
221,
24706,
26,
42,
73,
9,
27488,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Name the chassis for engine of brm v12 | CREATE TABLE table_name_49 (
chassis VARCHAR,
engine VARCHAR
) | SELECT chassis FROM table_name_49 WHERE engine = "brm v12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
22836,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
22836,
21,
1948,
13,
6397,
51,
3,
208,
2122,
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,
22836,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
1948,
3274,
96,
115,
52,
51,
3,
208,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games did the team who scored 60 goals win? | CREATE TABLE table_17358515_1 (won INTEGER, goals_for VARCHAR) | SELECT MIN(won) FROM table_17358515_1 WHERE goals_for = 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
4433,
1808,
834,
536,
41,
210,
106,
3,
21342,
17966,
6,
1766,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
410,
8,
372,
113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
210,
106,
61,
21680,
953,
834,
2517,
2469,
4433,
1808,
834,
536,
549,
17444,
427,
1766,
834,
1161,
3274,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Was the University of Michigan Signed? | CREATE TABLE table_68515 (
"Round" real,
"Name" text,
"Position" text,
"School" text,
"Signed" text
) | SELECT "Signed" FROM table_68515 WHERE "School" = 'university of michigan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
755,
1808,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
134,
6962,
26,
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,
0,
0... | [
3,
23143,
14196,
96,
134,
6962,
26,
121,
21680,
953,
834,
3651,
755,
1808,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
7846,
485,
13,
2278,
12588,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the average round for john markham draft pick? | CREATE TABLE table_name_36 (
round INTEGER,
player VARCHAR
) | SELECT AVG(round) FROM table_name_36 WHERE player = "john markham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1751,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
1751,
21,
3,
27341,
3946,
1483,
6488,
1432,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1959,
3274,
96,
27341,
3946,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Name of the Center? | CREATE TABLE table_name_84 (name VARCHAR, position VARCHAR) | SELECT name FROM table_name_84 WHERE position = "center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
4350,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
8,
1166,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
1102,
3274,
96,
13866,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission type is newborn and drug route is both eyes? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "NEWBORN" AND prescriptions.route = "BOTH EYES" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what is the average cost in a hospital involving a laboratory test for gentamicin - random? | 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,
... | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'gentamicin - random')) GROUP BY cost.patienthealthsystemstayid) AS t... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
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,
71,
17217,
599,
17,
5411,
75,
6982,
21680,
41,
23143,
14196,
180,
6122,
599,
11290,
5,
11290,
61,
6157,
3,
75,
536,
21680,
583,
549,
17444,
427,
583,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
186... |
What was Bill Glasson's score to par after 2 rounds? | CREATE TABLE table_name_76 (
to_par VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_76 WHERE player = "bill glasson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
12,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
3259,
7642,
106,
31,
7,
2604,
12,
260,
227,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1959,
3274,
96,
3727,
40,
1905,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the N117/2400 IEC3 associated with an N100IEC3 of 25? | CREATE TABLE table_14977 (
"Parameter" text,
"N80 IEC1" text,
"N90 IEC1" text,
"N90 IEC2" text,
"N100 IEC 2" text,
"N100 IEC3" text,
"N117/2400 IEC3" text
) | SELECT "N117/2400 IEC3" FROM table_14977 WHERE "N100 IEC3" = '25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
4013,
41,
96,
13212,
9,
4401,
121,
1499,
6,
96,
567,
2079,
27,
3073,
536,
121,
1499,
6,
96,
567,
2394,
27,
3073,
536,
121,
1499,
6,
96,
567,
2394,
27,
3073,
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,
96,
567,
20275,
13311,
5548,
27,
3073,
519,
121,
21680,
953,
834,
24816,
4013,
549,
17444,
427,
96,
567,
2915,
27,
3073,
519,
121,
3274,
3,
31,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough? | CREATE TABLE table_name_45 (
tie_no INTEGER,
home_team VARCHAR,
date VARCHAR
) | SELECT MAX(tie_no) FROM table_name_45 WHERE home_team = "bolton wanderers" AND date = "middlesbrough" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
6177,
834,
29,
32,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
17,
23,
15,
834,
29,
32,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
234,
834,
11650,
3274,
96,
4243,
17,
106,
10735,
277,
121,
3430,
833,
3274,
96,
6983,
26,
965,
115,
13245,
121,
1,
-1... |
Where was the competition on August 15, 2012? | CREATE TABLE table_name_60 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_60 WHERE date = "august 15, 2012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
2259,
30,
1660,
10725,
1673,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
833,
3274,
96,
402,
17198,
10725,
1673,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How man executions in effigie took place at the Lamego tribunal? | CREATE TABLE table_51151 (
"Tribunal" text,
"Number of autos da f\u00e9 with known sentences" text,
"Executions in persona" text,
"Executions in effigie" text,
"Penanced" text,
"Total" text
) | SELECT "Executions in effigie" FROM table_51151 WHERE "Tribunal" = 'lamego' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
26578,
41,
96,
19310,
9617,
138,
121,
1499,
6,
96,
567,
5937,
49,
13,
1510,
7,
836,
3,
89,
2,
76,
1206,
15,
1298,
28,
801,
16513,
121,
1499,
6,
96,
5420,
15,
3044... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5420,
15,
3044,
2865,
16,
3,
23473,
4044,
121,
21680,
953,
834,
5553,
26578,
549,
17444,
427,
96,
19310,
9617,
138,
121,
3274,
3,
31,
40,
265,
6066,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission year is less than 2156 and procedure long title is laryngoscopy and other tracheoscopy? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2156" AND procedures.long_title = "Laryngoscopy and other tracheoscopy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many times was Plan B 4th place? | CREATE TABLE table_72846 (
"Poll Year" text,
"Winner" text,
"Second" text,
"Third" text,
"Fourth" text,
"Fifth" text,
"Sixth" text,
"Seventh" text,
"Eighth" text,
"Ninth" text,
"Tenth" text
) | SELECT COUNT("Winner") FROM table_72846 WHERE "Fourth" = 'Plan B' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2577,
4448,
41,
96,
8931,
40,
2929,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
15,
1018,
26,
121,
1499,
6,
96,
382,
9288,
26,
121,
1499,
6,
96,
371,
1211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18455,
687,
8512,
21680,
953,
834,
940,
2577,
4448,
549,
17444,
427,
96,
371,
1211,
189,
121,
3274,
3,
31,
17373,
272,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the new south wales with crop (kilotonnes) being canola | CREATE TABLE table_1057262_2 (new_south_wales VARCHAR, crop__kilotonnes_ VARCHAR) | SELECT new_south_wales FROM table_1057262_2 WHERE crop__kilotonnes_ = "Canola" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
5865,
4056,
834,
357,
41,
5534,
834,
7,
670,
107,
834,
210,
4529,
584,
4280,
28027,
6,
10550,
834,
834,
2168,
3171,
5993,
7,
834,
584,
4280,
28027,
61,
3,
32102,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
126,
834,
7,
670,
107,
834,
210,
4529,
21680,
953,
834,
12869,
5865,
4056,
834,
357,
549,
17444,
427,
10550,
834,
834,
2168,
3171,
5993,
7,
834,
3274,
96,
14050,
32,
521,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Variant has a Launch site that is white sands? | CREATE TABLE table_name_68 (variant VARCHAR, launch_site VARCHAR) | SELECT variant FROM table_name_68 WHERE launch_site = "white sands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
9504,
288,
584,
4280,
28027,
6,
3289,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
12928,
288,
65,
3,
9,
17113,
353,
24,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6826,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3289,
834,
3585,
3274,
96,
13698,
3,
7,
232,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position is Jessie Clark? | CREATE TABLE table_14655757_1 (position VARCHAR, player VARCHAR) | SELECT position FROM table_14655757_1 WHERE player = "Jessie Clark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4122,
3436,
3436,
834,
536,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
19,
1022,
7,
2452,
8265,
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,
1102,
21680,
953,
834,
2534,
4122,
3436,
3436,
834,
536,
549,
17444,
427,
1959,
3274,
96,
7851,
7,
2452,
8265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which venue has more than 9 against and a status of second test? | CREATE TABLE table_name_90 (
venue VARCHAR,
against VARCHAR,
status VARCHAR
) | SELECT venue FROM table_name_90 WHERE against > 9 AND status = "second test" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
5669,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
65,
72,
145,
668,
581,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
581,
2490,
668,
3430,
2637,
3274,
96,
12091,
794,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In which colleges is the NFL Team New York Giants and with the position defensive back? | CREATE TABLE table_2508633_11 (
college VARCHAR,
nfl_team VARCHAR,
position VARCHAR
) | SELECT college FROM table_2508633_11 WHERE nfl_team = "New York Giants" AND position = "Defensive back" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3840,
4201,
834,
2596,
41,
1900,
584,
4280,
28027,
6,
3,
29,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
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,
1900,
21680,
953,
834,
11434,
3840,
4201,
834,
2596,
549,
17444,
427,
3,
29,
89,
40,
834,
11650,
3274,
96,
6861,
1060,
3156,
2366,
121,
3430,
1102,
3274,
96,
2962,
23039,
15,
223,
121,
1,
-100,
-100,
-100,
-100,
-10... |
what is diagnoses short title and diagnoses long title of diagnoses icd9 code 42731? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "42731" | [
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,
18730,
7,
5,
7,
14184,
834,
21869,
6,
18730,
7,
5,
2961,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
447,
26,
1298,
834,
4978,
3274,
96,
591,
2555,
3341,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average React, when Mark is less than 7.93? | CREATE TABLE table_name_53 (react INTEGER, mark INTEGER) | SELECT AVG(react) FROM table_name_53 WHERE mark < 7.93 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
60,
2708,
3,
21342,
17966,
6,
3946,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
419,
2708,
6,
116,
2185,
19,
705,
145,
4306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
60,
2708,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3946,
3,
2,
4306,
4271,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there? | CREATE TABLE table_24620684_2 (
clean_electric_grid_california__san_francisco_ VARCHAR,
vehicle VARCHAR
) | SELECT COUNT(clean_electric_grid_california__san_francisco_) FROM table_24620684_2 WHERE vehicle = "BMW ActiveE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4056,
5176,
4608,
834,
357,
41,
1349,
834,
17470,
834,
3496,
26,
834,
15534,
1161,
29,
23,
9,
834,
834,
7,
152,
834,
6296,
75,
23,
3523,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
16480,
834,
17470,
834,
3496,
26,
834,
15534,
1161,
29,
23,
9,
834,
834,
7,
152,
834,
6296,
75,
23,
3523,
834,
61,
21680,
953,
834,
2266,
4056,
5176,
4608,
834,
357,
549,
17444,
427,
1689,
3274,
... |
What are the names of different tracks, and how many races has each had Plot them as bar chart, display by the bar from high to low please. | CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
) | SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY T2.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1463,
41,
8799,
834,
4309,
16,
17,
6,
5570,
1499,
6,
10450,
1499,
6,
15915,
53,
490,
6,
2929,
834,
22696,
15,
26,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
2847,
17161,
599,
1935,
61,
21680,
1964,
6157,
332,
536,
3,
15355,
3162,
1463,
6157,
332,
357,
9191,
332,
5411,
382,
16729,
834,
4309,
3274,
332,
4416,
382,
16729,
834,
4309,
350,
4630,
6880,
272,... |
List all channel names ordered by their rating in percent from big to small. | CREATE TABLE channel (
name VARCHAR,
rating_in_percent VARCHAR
) | SELECT name FROM channel ORDER BY rating_in_percent DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4245,
41,
564,
584,
4280,
28027,
6,
5773,
834,
77,
834,
883,
3728,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
4245,
3056,
5563,
57,
70,
5773,
16,
1093,
45,
600... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
4245,
4674,
11300,
272,
476,
5773,
834,
77,
834,
883,
3728,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many stamps have a face value of 37 and were printed in the banknote corporation of america? | CREATE TABLE table_15635768_1 (
no_stamps_in_sheet VARCHAR,
face_value VARCHAR,
printer VARCHAR
) | SELECT COUNT(no_stamps_in_sheet) FROM table_15635768_1 WHERE face_value = "37¢" AND printer = "Banknote Corporation of America" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3891,
3436,
3651,
834,
536,
41,
150,
834,
7,
17,
4624,
7,
834,
77,
834,
12230,
584,
4280,
28027,
6,
522,
834,
12097,
584,
4280,
28027,
6,
6454,
584,
4280,
28027,
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,
29,
32,
834,
7,
17,
4624,
7,
834,
77,
834,
12230,
61,
21680,
953,
834,
1808,
3891,
3436,
3651,
834,
536,
549,
17444,
427,
522,
834,
12097,
3274,
96,
4118,
2,
121,
3430,
6454,
3274,
96,
21347,
797... |
how many patients whose diagnoses long title is other second degree atrioventricular block and drug route is oral? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Other second degree atrioventricular block" AND prescriptions.route = "ORAL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the year that has a character named Wu Ji Wei (無極威)? | CREATE TABLE table_name_27 (year INTEGER, character VARCHAR) | SELECT AVG(year) FROM table_name_27 WHERE character = "wu ji wei (無極威)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
1201,
3,
21342,
17966,
6,
1848,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
24,
65,
3,
9,
1848,
2650,
17792,
7802,
101,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1848,
3274,
96,
210,
76,
3,
354,
23,
62,
23,
41,
2,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the Score on March 1? | CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_18 WHERE date = "march 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
17763,
30,
1332,
209,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
833,
3274,
96,
51,
7064,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name and budget of departments whose budgets are more than the average budget Visualize by bar chart, display from high to low by the Y. | CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester va... | SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY budget DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
740,
3,
4331,
4059,
599,
1808,
201,
1487,
206,
17552,
599,
2122,
6,
7318,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
20,
102,
17,
834,
4350,
6,
1487,
21680,
3066,
549,
17444,
427,
1487,
2490,
41,
23143,
14196,
71,
17217,
599,
11073,
2782,
61,
21680,
3066,
61,
4674,
11300,
272,
476,
1487,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
... |
Find the first and last name of all the students of age 18 who have vice president votes. | CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number,
secretary_vote number,
treasurer_vote number,
class_president_vote number,
class_senator_vote number
)
CREATE TABLE student (
stuid number,
... | SELECT DISTINCT T1.fname, T1.lname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.vice_president_vote WHERE T1.age = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10601,
834,
60,
7621,
41,
21341,
23,
26,
381,
6,
3816,
834,
5522,
1499,
6,
4356,
834,
10136,
1499,
6,
2753,
834,
1621,
17,
15,
381,
6,
6444,
834,
102,
15704,
834,
1621,
17,
15,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
89,
4350,
6,
332,
5411,
40,
4350,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
10601,
834,
60,
7621,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7287,
15,... |
what station is on top of the list ? | CREATE TABLE table_203_749 (
id number,
"call sign" text,
"frequency" text,
"city of license" text,
"licensee" text,
"format" text
) | SELECT "call sign" FROM table_203_749 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
3647,
41,
3,
23,
26,
381,
6,
96,
16482,
1320,
121,
1499,
6,
96,
30989,
121,
1499,
6,
96,
6726,
13,
3344,
121,
1499,
6,
96,
28062,
15,
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,
16482,
1320,
121,
21680,
953,
834,
23330,
834,
940,
3647,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the number of details for emlyn road | CREATE TABLE table_24186 (
"Station" text,
"Line" text,
"Planned" real,
"Cancelled" real,
"Proposal" text,
"Details" text
) | SELECT COUNT("Details") FROM table_24186 WHERE "Station" = 'Emlyn Road' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
25398,
41,
96,
134,
6821,
121,
1499,
6,
96,
21022,
121,
1499,
6,
96,
17373,
29,
15,
26,
121,
490,
6,
96,
254,
663,
40,
1361,
121,
490,
6,
96,
3174,
2748,
138,
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,
2847,
17161,
599,
121,
2962,
5756,
7,
8512,
21680,
953,
834,
2266,
25398,
549,
17444,
427,
96,
134,
6821,
121,
3274,
3,
31,
427,
51,
120,
29,
2409,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the census ranking for the Perth parish? | CREATE TABLE table_176524_2 (
census_ranking VARCHAR,
official_name VARCHAR
) | SELECT census_ranking FROM table_176524_2 WHERE official_name = "Perth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4122,
2266,
834,
357,
41,
23087,
834,
6254,
53,
584,
4280,
28027,
6,
2314,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
23087,
11592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23087,
834,
6254,
53,
21680,
953,
834,
2517,
4122,
2266,
834,
357,
549,
17444,
427,
2314,
834,
4350,
3274,
96,
12988,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the pinyin for explaining beasts? | CREATE TABLE table_17514 (
"Chapter" real,
"Chinese" text,
"Pinyin" text,
"Translation" text,
"Subject" text
) | SELECT "Pinyin" FROM table_17514 WHERE "Translation" = 'Explaining Beasts' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
3072,
2534,
41,
96,
3541,
6789,
49,
121,
490,
6,
96,
3541,
4477,
15,
121,
1499,
6,
96,
345,
77,
63,
77,
121,
1499,
6,
96,
18474,
6105,
121,
1499,
6,
96,
25252,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
77,
63,
77,
121,
21680,
953,
834,
536,
3072,
2534,
549,
17444,
427,
96,
18474,
6105,
121,
3274,
3,
31,
5420,
18689,
53,
26695,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the exponent field that has 255 exp and value of +∞? | CREATE TABLE table_name_93 (exponent_field VARCHAR, exp__biased_ VARCHAR, value VARCHAR) | SELECT exponent_field FROM table_name_93 WHERE exp__biased_ = "255" AND value = "+∞" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
994,
9977,
834,
1846,
584,
4280,
28027,
6,
8116,
834,
834,
15500,
3843,
834,
584,
4280,
28027,
6,
701,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1215,
9977,
834,
1846,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
8116,
834,
834,
15500,
3843,
834,
3274,
96,
25502,
121,
3430,
701,
3274,
96,
1220,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute headquarter, and rank X-axis from high to low order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
19973,
... |
What is the theme song for Magarikado no Kanojo? | CREATE TABLE table_73019 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Time Frame" text,
"Starring Actors" text,
"Theme Song(s)" text,
"Episodes" real,
"Average Ratings" text
) | SELECT "Theme Song(s)" FROM table_73019 WHERE "Romaji Title" = 'Magarikado no Kanojo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
1458,
2294,
41,
96,
683,
9750,
1496,
15,
11029,
121,
1499,
6,
96,
448,
32,
16547,
23,
11029,
121,
1499,
6,
96,
4562,
5939,
121,
1499,
6,
96,
13368,
16015,
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,
634,
526,
11263,
599,
7,
61,
121,
21680,
953,
834,
940,
1458,
2294,
549,
17444,
427,
96,
448,
32,
16547,
23,
11029,
121,
3274,
3,
31,
22909,
291,
5561,
26,
32,
150,
4540,
32,
1927,
31,
1,
-100,
-100,
-100,
-... |
Show me how many type by type in a histogram | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Type, COUNT(Type) FROM ship GROUP BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
868,
485,
1499,
6,
8475,
9761,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
2847,
17161,
599,
25160,
61,
21680,
4383,
350,
4630,
6880,
272,
476,
6632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won the gold when Jules van Dyk Belgium won bronze? | CREATE TABLE table_34771 (
"Event" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"4th place" text
) | SELECT "Gold" FROM table_34771 WHERE "Bronze" = 'jules van dyk belgium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
4013,
536,
41,
96,
427,
2169,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
1499,
6,
96,
591,
189,
286,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23576,
121,
21680,
953,
834,
3710,
4013,
536,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
2047,
965,
4049,
3,
26,
63,
157,
36,
40,
122,
2552,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country is ranked larger than 4? | CREATE TABLE table_79429 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Country" FROM table_79429 WHERE "Rank" > '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
591,
3166,
41,
96,
22557,
121,
490,
6,
96,
448,
2381,
277,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4440,
591,
3166,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is on at 9:30 on the same channel as Fin du Monde at 10:00? | CREATE TABLE table_37308 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
) | SELECT "9:30" FROM table_37308 WHERE "10:00" = 'fin du monde' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
1458,
927,
41,
96,
18735,
121,
1499,
6,
96,
18078,
121,
1499,
6,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21150,
121,
21680,
953,
834,
4118,
1458,
927,
549,
17444,
427,
96,
536,
25713,
121,
3274,
3,
31,
89,
77,
146,
2921,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the result for the world group, semifinals after the year 1997? | CREATE TABLE table_52583 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
) | SELECT "Result" FROM table_52583 WHERE "Year" > '1997' AND "Competition" = 'world group, semifinals' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
4591,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
134,
9022,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
755,
1828,
4591,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4327,
31,
3430,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
7276,
563,
6,
27504,
7,
31,
1,
-100,
-100,
-100,
... |
What are the results of Format single on March 21? | CREATE TABLE table_name_34 (result_s_ VARCHAR, format_s_ VARCHAR, date VARCHAR) | SELECT result_s_ FROM table_name_34 WHERE format_s_ = "single" AND date = "march 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
60,
7,
83,
17,
834,
7,
834,
584,
4280,
28027,
6,
1910,
834,
7,
834,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
834,
7,
834,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1910,
834,
7,
834,
3274,
96,
7,
53,
109,
121,
3430,
833,
3274,
96,
51,
7064,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of sunk by U-boats with less than 2 German submarines lost, 56328 sunk by aircrafts, and more than 8269 sunk by mines? | CREATE TABLE table_name_4 (sunk_by_u_boat VARCHAR, sunk_by_mines VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR) | SELECT COUNT(sunk_by_u_boat) FROM table_name_4 WHERE german_submarines_lost < 2 AND sunk_by_aircraft = 56328 AND sunk_by_mines > 8269 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
7,
6513,
834,
969,
834,
76,
834,
14131,
584,
4280,
28027,
6,
3,
7,
6513,
834,
969,
834,
8695,
7,
584,
4280,
28027,
6,
13692,
834,
7304,
12181,
15,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7,
6513,
834,
969,
834,
76,
834,
14131,
61,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
13692,
834,
7304,
12181,
15,
7,
834,
2298,
17,
3,
2,
204,
3430,
3,
7,
6513,
834,
969,
834,
2256,
66... |
When were the Avenging Angels founded? | CREATE TABLE table_255188_1 (founded INTEGER, nickname VARCHAR) | SELECT MAX(founded) FROM table_255188_1 WHERE nickname = "Avenging Angels" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
25794,
834,
536,
41,
23329,
3,
21342,
17966,
6,
24649,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
130,
8,
71,
1926,
3896,
5126,
7,
5710,
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,
4800,
4,
599,
23329,
61,
21680,
953,
834,
25502,
25794,
834,
536,
549,
17444,
427,
24649,
3274,
96,
188,
1926,
3896,
5126,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many students are in each department Plot them as bar chart, rank x-axis in desc order. | CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
... | SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8815,
41,
3,
7,
834,
4309,
3,
4331,
4059,
15757,
6,
3,
23,
834,
4309,
3,
4331,
4059,
15757,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
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,
20,
102,
17,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1236,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
how many lasted at least 6 minutes ? | CREATE TABLE table_203_277 (
id number,
"entered" number,
"wrestler" text,
"place" text,
"eliminated by" text,
"time" text
) | SELECT COUNT(*) FROM table_203_277 WHERE "time" >= 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
357,
4013,
41,
3,
23,
26,
381,
6,
96,
35,
11196,
121,
381,
6,
96,
210,
6216,
1171,
121,
1499,
6,
96,
4687,
121,
1499,
6,
96,
15,
4941,
77,
920,
57,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
357,
4013,
549,
17444,
427,
96,
715,
121,
2490,
2423,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.