dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CONTINENTS;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"continents"
],
"question": "いくつの大陸がありますか?",
"question_toks": [
"How",
"many",
"continents",
"are",
"there",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CONTINENTS;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"continents"
],
"question": "大陸の数は?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"continents",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;",
"query_toks": [
"SELECT",
"T1.ContId",
",",
"T1.Continent",
",",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.ContId",
"=",
"T2.Continent",
"GROUP",
"BY",
"T1.ContId",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"contid",
",",
"t1",
".",
"continent",
",",
"count",
"(",
"*",
")",
"from",
"continents",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"contid",
"=",
"t2",
".",
"continent",
"group",
"by",
"t1",
".",
"contid"
],
"question": "各大陸にはいくつの国があるの?大陸ID、大陸の名前、国の数を示してください。",
"question_toks": [
"How",
"many",
"countries",
"does",
"each",
"continent",
"have",
"?",
"List",
"the",
"continent",
"id",
",",
"continent",
"name",
"and",
"the",
"number",
"of",
"countries",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
5,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
1,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;",
"query_toks": [
"SELECT",
"T1.ContId",
",",
"T1.Continent",
",",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.ContId",
"=",
"T2.Continent",
"GROUP",
"BY",
"T1.ContId",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"contid",
",",
"t1",
".",
"continent",
",",
"count",
"(",
"*",
")",
"from",
"continents",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"contid",
"=",
"t2",
".",
"continent",
"group",
"by",
"t1",
".",
"contid"
],
"question": "各大陸にはいくつの国があるの?大陸ID、大陸の名前、国の数はそれぞれ何ですか?",
"question_toks": [
"For",
"each",
"continent",
",",
"list",
"its",
"id",
",",
"name",
",",
"and",
"how",
"many",
"countries",
"it",
"has",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
5,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
1,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM COUNTRIES;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"COUNTRIES",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"countries"
],
"question": "表の中にいくつの国がある?",
"question_toks": [
"How",
"many",
"countries",
"are",
"listed",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM COUNTRIES;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"COUNTRIES",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"countries"
],
"question": "国はいくつあるのか?",
"question_toks": [
"How",
"many",
"countries",
"exist",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;",
"query_toks": [
"SELECT",
"T1.FullName",
",",
"T1.Id",
",",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"fullname",
",",
"t1",
".",
"id",
",",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id"
],
"question": "各自動車メーカーが生産している車種はいくつあるのか?メーカーのフルネーム、IDとナンバーを示してください。",
"question_toks": [
"How",
"many",
"models",
"does",
"each",
"car",
"maker",
"produce",
"?",
"List",
"maker",
"full",
"name",
",",
"id",
"and",
"the",
"number",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;",
"query_toks": [
"SELECT",
"T1.FullName",
",",
"T1.Id",
",",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"fullname",
",",
"t1",
".",
"id",
",",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id"
],
"question": "各自動車メーカーのフルネーム、メーカーIDそして生産している車種は何ですか。",
"question_toks": [
"What",
"is",
"the",
"full",
"name",
"of",
"each",
"car",
"maker",
",",
"along",
"with",
"its",
"id",
"and",
"how",
"many",
"models",
"it",
"produces",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"ORDER",
"BY",
"T2.horsepower",
"ASC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"order",
"by",
"t2",
".",
"horsepower",
"asc",
"limit",
"value"
],
"question": "どの車種の馬力が一番弱いですか?",
"question_toks": [
"Which",
"model",
"of",
"the",
"car",
"has",
"the",
"minimum",
"horsepower",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"ORDER",
"BY",
"T2.horsepower",
"ASC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"order",
"by",
"t2",
".",
"horsepower",
"asc",
"limit",
"value"
],
"question": "馬力が一番弱い車種は?",
"question_toks": [
"What",
"is",
"the",
"model",
"of",
"the",
"car",
"with",
"the",
"smallest",
"amount",
"of",
"horsepower",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)",
"query_toks": [
"SELECT",
"T1.model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.Weight",
"<",
"(",
"SELECT",
"avg",
"(",
"Weight",
")",
"FROM",
"CARS_DATA",
")"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"weight",
"<",
"(",
"select",
"avg",
"(",
"weight",
")",
"from",
"cars_data",
")"
],
"question": "平均重量以下の車のモデルを探し出す。",
"question_toks": [
"Find",
"the",
"model",
"of",
"the",
"car",
"whose",
"weight",
"is",
"below",
"the",
"average",
"weight",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [
[
false,
4,
[
0,
[
0,
21,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
21,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)",
"query_toks": [
"SELECT",
"T1.model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.Weight",
"<",
"(",
"SELECT",
"avg",
"(",
"Weight",
")",
"FROM",
"CARS_DATA",
")"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"weight",
"<",
"(",
"select",
"avg",
"(",
"weight",
")",
"from",
"cars_data",
")"
],
"question": "平均重量以下の車のモデルは?",
"question_toks": [
"What",
"is",
"the",
"model",
"for",
"the",
"car",
"with",
"a",
"weight",
"smaller",
"than",
"the",
"average",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [
[
false,
4,
[
0,
[
0,
21,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
21,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.Maker",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"JOIN",
"CAR_NAMES",
"AS",
"T3",
"ON",
"T2.model",
"=",
"T3.model",
"JOIN",
"CARS_DATA",
"AS",
"T4",
"ON",
"T3.MakeId",
"=",
"T4.id",
"WHERE",
"T4.year",
"=",
"'1970",
"'",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"join",
"car_names",
"as",
"t3",
"on",
"t2",
".",
"model",
"=",
"t3",
".",
"model",
"join",
"cars_data",
"as",
"t4",
"on",
"t3",
".",
"makeid",
"=",
"t4",
".",
"id",
"where",
"t4",
".",
"year",
"=",
"value"
],
"question": "「1970」年に生産された車のメーカー名を探し出す。",
"question_toks": [
"Find",
"the",
"name",
"of",
"the",
"makers",
"that",
"produced",
"some",
"cars",
"in",
"the",
"year",
"of",
"1970",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
],
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
"\"1970\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.Maker",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"JOIN",
"CAR_NAMES",
"AS",
"T3",
"ON",
"T2.model",
"=",
"T3.model",
"JOIN",
"CARS_DATA",
"AS",
"T4",
"ON",
"T3.MakeId",
"=",
"T4.id",
"WHERE",
"T4.year",
"=",
"'1970",
"'",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"join",
"car_names",
"as",
"t3",
"on",
"t2",
".",
"model",
"=",
"t3",
".",
"model",
"join",
"cars_data",
"as",
"t4",
"on",
"t3",
".",
"makeid",
"=",
"t4",
".",
"id",
"where",
"t4",
".",
"year",
"=",
"value"
],
"question": "「1970」年に車を生産したメーカーそれぞれの名前を探し出す。",
"question_toks": [
"What",
"is",
"the",
"name",
"of",
"the",
"different",
"car",
"makers",
"who",
"produced",
"a",
"car",
"in",
"1970",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
],
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
"\"1970\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);",
"query_toks": [
"SELECT",
"T2.Make",
",",
"T1.Year",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T1.Year",
"=",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"CARS_DATA",
")",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"make",
",",
"t1",
".",
"year",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"year",
"=",
"(",
"select",
"min",
"(",
"year",
")",
"from",
"cars_data",
")"
],
"question": "一番最初に生産された車のメーカーやその製造年を調べてください。",
"question_toks": [
"Find",
"the",
"make",
"and",
"production",
"time",
"of",
"the",
"cars",
"that",
"were",
"produced",
"in",
"the",
"earliest",
"year",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
15,
false
],
null
]
],
[
0,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);",
"query_toks": [
"SELECT",
"T2.Make",
",",
"T1.Year",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T1.Year",
"=",
"(",
"SELECT",
"min",
"(",
"YEAR",
")",
"FROM",
"CARS_DATA",
")",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"make",
",",
"t1",
".",
"year",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"year",
"=",
"(",
"select",
"min",
"(",
"year",
")",
"from",
"cars_data",
")"
],
"question": "一番最初に生産された車のメーカーやその製造年は?",
"question_toks": [
"What",
"is",
"the",
"maker",
"of",
"the",
"carr",
"produced",
"in",
"the",
"earliest",
"year",
"and",
"what",
"year",
"was",
"it",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
15,
false
],
null
]
],
[
0,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.model",
"=",
"T2.model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.id",
"WHERE",
"T3.year",
">",
"1980",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"where",
"t3",
".",
"year",
">",
"value"
],
"question": "「1980」年以降に生産された車のモデルは何ですか?",
"question_toks": [
"Which",
"distinct",
"car",
"models",
"are",
"the",
"produced",
"after",
"1980",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.model",
"=",
"T2.model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.id",
"WHERE",
"T3.year",
">",
"1980",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"where",
"t3",
".",
"year",
">",
"value"
],
"question": "「1980」年以降は、どのようなモデルが生産されたか?",
"question_toks": [
"What",
"are",
"the",
"different",
"models",
"for",
"the",
"cards",
"produced",
"after",
"1980",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;",
"query_toks": [
"SELECT",
"T1.Continent",
",",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.ContId",
"=",
"T2.continent",
"JOIN",
"car_makers",
"AS",
"T3",
"ON",
"T2.CountryId",
"=",
"T3.Country",
"GROUP",
"BY",
"T1.Continent",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"continent",
",",
"count",
"(",
"*",
")",
"from",
"continents",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"contid",
"=",
"t2",
".",
"continent",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"countryid",
"=",
"t3",
".",
"country",
"group",
"by",
"t1",
".",
"continent"
],
"question": "各大陸の自動車メーカーの数は?その大陸の名前と数を示す。",
"question_toks": [
"How",
"many",
"car",
"makers",
"are",
"there",
"in",
"each",
"continents",
"?",
"List",
"the",
"continent",
"name",
"and",
"the",
"count",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
5,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;",
"query_toks": [
"SELECT",
"T1.Continent",
",",
"count",
"(",
"*",
")",
"FROM",
"CONTINENTS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.ContId",
"=",
"T2.continent",
"JOIN",
"car_makers",
"AS",
"T3",
"ON",
"T2.CountryId",
"=",
"T3.Country",
"GROUP",
"BY",
"T1.Continent",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"continent",
",",
"count",
"(",
"*",
")",
"from",
"continents",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"contid",
"=",
"t2",
".",
"continent",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"countryid",
"=",
"t3",
".",
"country",
"group",
"by",
"t1",
".",
"continent"
],
"question": "各大陸の自動車メーカーの数とその大陸の名前はどのくらいですか?",
"question_toks": [
"What",
"is",
"the",
"name",
"of",
"each",
"continent",
"and",
"how",
"many",
"car",
"makers",
"are",
"there",
"in",
"each",
"one",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
5,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T2.CountryName",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"GROUP",
"BY",
"T1.Country",
"ORDER",
"BY",
"Count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"countryname",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"group",
"by",
"t1",
".",
"country",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "どの国の車メーカーが一番多い?その国名を示す。",
"question_toks": [
"Which",
"of",
"the",
"countries",
"has",
"the",
"most",
"car",
"makers",
"?",
"List",
"the",
"country",
"name",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
9,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T2.CountryName",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"GROUP",
"BY",
"T1.Country",
"ORDER",
"BY",
"Count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"countryname",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"group",
"by",
"t1",
".",
"country",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "自動車メーカーが一番多い国は?",
"question_toks": [
"What",
"is",
"the",
"name",
"of",
"the",
"country",
"with",
"the",
"most",
"car",
"makers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
9,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;",
"query_toks": [
"select",
"count",
"(",
"*",
")",
",",
"t2.fullname",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.maker",
"=",
"t2.id",
"group",
"by",
"t2.id",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"fullname",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"group",
"by",
"t2",
".",
"id"
],
"question": "各メーカーのモデル生産数は?その数量とメーカーのフルネームだけを示す。",
"question_toks": [
"How",
"many",
"car",
"models",
"are",
"produced",
"by",
"each",
"maker",
"?",
"Only",
"list",
"the",
"count",
"and",
"the",
"maker",
"full",
"name",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;",
"query_toks": [
"SELECT",
"Count",
"(",
"*",
")",
",",
"T2.FullName",
",",
"T2.id",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.Maker",
"=",
"T2.Id",
"GROUP",
"BY",
"T2.id",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
",",
"t2",
".",
"fullname",
",",
"t2",
".",
"id",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"group",
"by",
"t2",
".",
"id"
],
"question": "各メーカーのモデル生産数とそのメーカーのIDやフルネームは何ですか。",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"car",
"models",
"that",
"are",
"produced",
"by",
"each",
"maker",
"and",
"what",
"is",
"the",
"id",
"and",
"full",
"name",
"of",
"each",
"maker",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';",
"query_toks": [
"SELECT",
"T1.Accelerate",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Make",
"=",
"'amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"'",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"accelerate",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"make",
"=",
"value"
],
"question": "AMCホーネットスポーツアバウト(sw)の車の加速度はどれぐらいですか?",
"question_toks": [
"What",
"is",
"the",
"accelerate",
"of",
"the",
"car",
"make",
"amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"amc hornet sportabout (sw)\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';",
"query_toks": [
"SELECT",
"T1.Accelerate",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Make",
"=",
"'amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"'",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"accelerate",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"make",
"=",
"value"
],
"question": "「amc hornet sportabout (sw)」の加速度はどれくらいですか?",
"question_toks": [
"How",
"much",
"does",
"the",
"car",
"accelerate",
"that",
"makes",
"amc",
"hornet",
"sportabout",
"(",
"sw",
")",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"amc hornet sportabout (sw)\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"WHERE",
"T2.CountryName",
"=",
"'france",
"'",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"where",
"t2",
".",
"countryname",
"=",
"value"
],
"question": "「France」のメーカーの数は?",
"question_toks": [
"How",
"many",
"car",
"makers",
"are",
"there",
"in",
"france",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"france\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"COUNTRIES",
"AS",
"T2",
"ON",
"T1.Country",
"=",
"T2.CountryId",
"WHERE",
"T2.CountryName",
"=",
"'france",
"'",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"countries",
"as",
"t2",
"on",
"t1",
".",
"country",
"=",
"t2",
".",
"countryid",
"where",
"t2",
".",
"countryname",
"=",
"value"
],
"question": "「France」の自動車メーカーの数は?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"makers",
"of",
"care",
"in",
"France",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"france\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.Maker",
"=",
"T2.Id",
"JOIN",
"COUNTRIES",
"AS",
"T3",
"ON",
"T2.Country",
"=",
"T3.CountryId",
"WHERE",
"T3.CountryName",
"=",
"'usa",
"'",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"join",
"countries",
"as",
"t3",
"on",
"t2",
".",
"country",
"=",
"t3",
".",
"countryid",
"where",
"t3",
".",
"countryname",
"=",
"value"
],
"question": "「USA」で生産された車のモデルはどれぐらいありますか?",
"question_toks": [
"How",
"many",
"car",
"models",
"are",
"produced",
"in",
"the",
"usa",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"usa\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.Maker",
"=",
"T2.Id",
"JOIN",
"COUNTRIES",
"AS",
"T3",
"ON",
"T2.Country",
"=",
"T3.CountryId",
"WHERE",
"T3.CountryName",
"=",
"'usa",
"'",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"model_list",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"maker",
"=",
"t2",
".",
"id",
"join",
"countries",
"as",
"t3",
"on",
"t2",
".",
"country",
"=",
"t3",
".",
"countryid",
"where",
"t3",
".",
"countryname",
"=",
"value"
],
"question": "「USA」で生産された車のモデルはどれぐらいありますか?",
"question_toks": [
"What",
"is",
"the",
"count",
"of",
"the",
"car",
"models",
"produced",
"in",
"the",
"United",
"States",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"usa\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;",
"query_toks": [
"SELECT",
"avg",
"(",
"mpg",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
"=",
"4",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value"
],
"question": "4気筒の自動車が1ガロンあたりの平均走行距離は何マイルですか?",
"question_toks": [
"What",
"is",
"the",
"average",
"miles",
"per",
"gallon",
"(",
"mpg",
")",
"of",
"the",
"cars",
"with",
"4",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
17,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
4,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;",
"query_toks": [
"SELECT",
"avg",
"(",
"mpg",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
"=",
"4",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value"
],
"question": "すべての4気筒の自動車の1ガロンあたりの平均走行距離(MPG)はどれぐらいですか?",
"question_toks": [
"What",
"is",
"the",
"average",
"miles",
"per",
"gallon",
"of",
"all",
"the",
"cards",
"with",
"4",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
17,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
4,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select min(weight) from cars_data where cylinders = 8 and year = 1974",
"query_toks": [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"and",
"year",
"=",
"1974"
],
"query_toks_no_value": [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"and",
"year",
"=",
"value"
],
"question": "「1974」年に生産された8気筒の自動車の最低重量は?",
"question_toks": [
"What",
"is",
"the",
"smallest",
"weight",
"of",
"the",
"car",
"produced",
"with",
"8",
"cylinders",
"on",
"1974",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
21,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
8,
null
],
"and",
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
1974,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select min(weight) from cars_data where cylinders = 8 and year = 1974",
"query_toks": [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"and",
"year",
"=",
"1974"
],
"query_toks_no_value": [
"select",
"min",
"(",
"weight",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"and",
"year",
"=",
"value"
],
"question": "「1974」年に生産された一番軽い8気筒の自動車の重量がどれぐらいですか?",
"question_toks": [
"What",
"is",
"the",
"minimum",
"weight",
"of",
"the",
"car",
"with",
"8",
"cylinders",
"produced",
"in",
"1974",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
21,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
8,
null
],
"and",
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
1974,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT Maker , Model FROM MODEL_LIST;",
"query_toks": [
"SELECT",
"Maker",
",",
"Model",
"FROM",
"MODEL_LIST",
";"
],
"query_toks_no_value": [
"select",
"maker",
",",
"model",
"from",
"model_list"
],
"question": "全てのメーカーとモデルは?",
"question_toks": [
"What",
"are",
"all",
"the",
"makers",
"and",
"models",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT Maker , Model FROM MODEL_LIST;",
"query_toks": [
"SELECT",
"Maker",
",",
"Model",
"FROM",
"MODEL_LIST",
";"
],
"query_toks_no_value": [
"select",
"maker",
",",
"model",
"from",
"model_list"
],
"question": "全てのメーカーとモデルは?",
"question_toks": [
"What",
"are",
"the",
"makers",
"and",
"models",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;",
"query_toks": [
"SELECT",
"T1.CountryName",
",",
"T1.CountryId",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.CountryId",
"=",
"T2.Country",
"GROUP",
"BY",
"T1.CountryId",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"countryname",
",",
"t1",
".",
"countryid",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "自動車メーカーが1社以上ある国はどの国ですか? 名前とIDを示す。",
"question_toks": [
"What",
"are",
"the",
"countries",
"having",
"at",
"least",
"one",
"car",
"maker",
"?",
"List",
"name",
"and",
"id",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
1,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;",
"query_toks": [
"SELECT",
"T1.CountryName",
",",
"T1.CountryId",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.CountryId",
"=",
"T2.Country",
"GROUP",
"BY",
"T1.CountryId",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"countryname",
",",
"t1",
".",
"countryid",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "自動車メーカーが1社以上ある国の名前とIDは?",
"question_toks": [
"What",
"are",
"the",
"names",
"and",
"ids",
"of",
"all",
"countries",
"with",
"at",
"least",
"one",
"car",
"maker",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
1,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"horsepower",
">",
"150",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"horsepower",
">",
"value"
],
"question": "馬力が150以上の車の台数はどれぐらいですか?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"the",
"cars",
"with",
"horsepower",
"more",
"than",
"150",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
20,
false
],
null
],
150,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"horsepower",
">",
"150",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"horsepower",
">",
"value"
],
"question": "馬力が150以上の車の台数は?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"cars",
"with",
"a",
"horsepower",
"greater",
"than",
"150",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
20,
false
],
null
],
150,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;",
"query_toks": [
"SELECT",
"avg",
"(",
"Weight",
")",
",",
"YEAR",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"YEAR",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"weight",
")",
",",
"year",
"from",
"cars_data",
"group",
"by",
"year"
],
"question": "毎年車の平均車両重量は?",
"question_toks": [
"What",
"is",
"the",
"average",
"weight",
"of",
"cars",
"each",
"year",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
21,
false
],
null
]
],
[
0,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
23,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;",
"query_toks": [
"SELECT",
"avg",
"(",
"Weight",
")",
",",
"YEAR",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"YEAR",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"weight",
")",
",",
"year",
"from",
"cars_data",
"group",
"by",
"year"
],
"question": "各年の平均重量は?",
"question_toks": [
"What",
"is",
"the",
"average",
"weight",
"and",
"year",
"for",
"each",
"year",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
21,
false
],
null
]
],
[
0,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
23,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;",
"query_toks": [
"SELECT",
"T1.CountryName",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CONTINENTS",
"AS",
"T2",
"ON",
"T1.Continent",
"=",
"T2.ContId",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T1.CountryId",
"=",
"T3.Country",
"WHERE",
"T2.Continent",
"=",
"'europe",
"'",
"GROUP",
"BY",
"T1.CountryName",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"3",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"continents",
"as",
"t2",
"on",
"t1",
".",
"continent",
"=",
"t2",
".",
"contid",
"join",
"car_makers",
"as",
"t3",
"on",
"t1",
".",
"countryid",
"=",
"t3",
".",
"country",
"where",
"t2",
".",
"continent",
"=",
"value",
"group",
"by",
"t1",
".",
"countryname",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "「Europe」には三社また三社以上の自動車メーカ―がある国はどの国ですか?",
"question_toks": [
"Which",
"countries",
"in",
"europe",
"have",
"at",
"least",
"3",
"car",
"manufacturers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"europe\"",
null
]
],
"groupBy": [
[
0,
4,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;",
"query_toks": [
"SELECT",
"T1.CountryName",
"FROM",
"COUNTRIES",
"AS",
"T1",
"JOIN",
"CONTINENTS",
"AS",
"T2",
"ON",
"T1.Continent",
"=",
"T2.ContId",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T1.CountryId",
"=",
"T3.Country",
"WHERE",
"T2.Continent",
"=",
"'europe",
"'",
"GROUP",
"BY",
"T1.CountryName",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"3",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"continents",
"as",
"t2",
"on",
"t1",
".",
"continent",
"=",
"t2",
".",
"contid",
"join",
"car_makers",
"as",
"t3",
"on",
"t1",
".",
"countryid",
"=",
"t3",
".",
"country",
"where",
"t2",
".",
"continent",
"=",
"value",
"group",
"by",
"t1",
".",
"countryname",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "「Europe」に三社また三社以上の自動車メーカ―がある国の名前は?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"all",
"European",
"countries",
"with",
"at",
"least",
"3",
"manufacturers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"europe\"",
null
]
],
"groupBy": [
[
0,
4,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T2.horsepower",
",",
"T1.Make",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.cylinders",
"=",
"3",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"horsepower",
",",
"t1",
".",
"make",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"horsepower",
"desc",
"limit",
"value"
],
"question": "3気筒エンジン車種の最高馬力とそのメーカー会社を教えてください。",
"question_toks": [
"What",
"is",
"the",
"maximum",
"horsepower",
"and",
"the",
"make",
"of",
"the",
"car",
"models",
"with",
"3",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
15,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
3,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T2.horsepower",
",",
"T1.Make",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.cylinders",
"=",
"3",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"horsepower",
",",
"t1",
".",
"make",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"horsepower",
"desc",
"limit",
"value"
],
"question": "3気筒エンジン車種の最高馬力とそのメーカーは?",
"question_toks": [
"What",
"is",
"the",
"largest",
"amount",
"of",
"horsepower",
"for",
"the",
"models",
"with",
"3",
"cylinders",
"and",
"what",
"make",
"is",
"it",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
15,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
3,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"ORDER",
"BY",
"T2.mpg",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"order",
"by",
"t2",
".",
"mpg",
"desc",
"limit",
"value"
],
"question": "最も燃費が良いのはどのモデルですか?すなわち、mgpが一番高い車種は何ですか?",
"question_toks": [
"Which",
"model",
"saves",
"the",
"most",
"gasoline",
"?",
"That",
"is",
"to",
"say",
",",
"have",
"the",
"maximum",
"miles",
"per",
"gallon",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
17,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1;",
"query_toks": [
"select",
"t1.model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1.makeid",
"=",
"t2.id",
"order",
"by",
"t2.mpg",
"desc",
"limit",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"order",
"by",
"t2",
".",
"mpg",
"desc",
"limit",
"value"
],
"question": "mgpが一番高い車種は?",
"question_toks": [
"What",
"is",
"the",
"car",
"model",
"with",
"the",
"highest",
"mpg",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
17,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;",
"query_toks": [
"SELECT",
"avg",
"(",
"horsepower",
")",
"FROM",
"CARS_DATA",
"WHERE",
"YEAR",
"<",
"1980",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"horsepower",
")",
"from",
"cars_data",
"where",
"year",
"<",
"value"
],
"question": "1980年以前の車の平均馬力は?",
"question_toks": [
"What",
"is",
"the",
"average",
"horsepower",
"of",
"the",
"cars",
"before",
"1980",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
4,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select avg(horsepower) from cars_data where year < 1980;",
"query_toks": [
"select",
"avg",
"(",
"horsepower",
")",
"from",
"cars_data",
"where",
"year",
"<",
"1980",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"horsepower",
")",
"from",
"cars_data",
"where",
"year",
"<",
"value"
],
"question": "1980年以前の車の平均馬力は?",
"question_toks": [
"What",
"is",
"the",
"average",
"horsepower",
"for",
"all",
"cars",
"produced",
"before",
"1980",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
4,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';",
"query_toks": [
"SELECT",
"avg",
"(",
"T2.edispl",
")",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T1.Model",
"=",
"'volvo",
"'",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"t2",
".",
"edispl",
")",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t1",
".",
"model",
"=",
"value"
],
"question": "「volvo」車種の平均edisplは?",
"question_toks": [
"What",
"is",
"the",
"average",
"edispl",
"of",
"the",
"cars",
"of",
"model",
"volvo",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"volvo\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';",
"query_toks": [
"SELECT",
"avg",
"(",
"T2.edispl",
")",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T1.Model",
"=",
"'volvo",
"'",
";"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"t2",
".",
"edispl",
")",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t1",
".",
"model",
"=",
"value"
],
"question": "すべての「volvo」の平均edisplは?",
"question_toks": [
"What",
"is",
"the",
"average",
"edispl",
"for",
"all",
"volvos",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"volvo\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;",
"query_toks": [
"SELECT",
"max",
"(",
"Accelerate",
")",
",",
"Cylinders",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"Cylinders",
";"
],
"query_toks_no_value": [
"select",
"max",
"(",
"accelerate",
")",
",",
"cylinders",
"from",
"cars_data",
"group",
"by",
"cylinders"
],
"question": "気筒数が異なる車の最大加速度は?",
"question_toks": [
"What",
"is",
"the",
"maximum",
"accelerate",
"for",
"different",
"number",
"of",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
22,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
18,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;",
"query_toks": [
"SELECT",
"max",
"(",
"Accelerate",
")",
",",
"Cylinders",
"FROM",
"CARS_DATA",
"GROUP",
"BY",
"Cylinders",
";"
],
"query_toks_no_value": [
"select",
"max",
"(",
"accelerate",
")",
",",
"cylinders",
"from",
"cars_data",
"group",
"by",
"cylinders"
],
"question": "気筒数が異なる車の最大加速度は?",
"question_toks": [
"What",
"is",
"the",
"maximum",
"accelerate",
"for",
"all",
"the",
"different",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
22,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
18,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;",
"query_toks": [
"SELECT",
"Model",
"FROM",
"CAR_NAMES",
"GROUP",
"BY",
"Model",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"model",
"from",
"car_names",
"group",
"by",
"model",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "どの車種のバージョンが一番多い?",
"question_toks": [
"Which",
"model",
"has",
"the",
"most",
"version",
"(",
"make",
")",
"of",
"cars",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
14,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;",
"query_toks": [
"SELECT",
"Model",
"FROM",
"CAR_NAMES",
"GROUP",
"BY",
"Model",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"model",
"from",
"car_names",
"group",
"by",
"model",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "どの車種のバージョンが一番多い?",
"question_toks": [
"What",
"model",
"has",
"the",
"most",
"different",
"versions",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
14,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"4",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
],
"question": "気筒数が四つ以上の車は?",
"question_toks": [
"How",
"many",
"cars",
"have",
"more",
"than",
"4",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
18,
false
],
null
],
4,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"4",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
],
"question": "気筒数が四つ以上の車は?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"cars",
"with",
"more",
"than",
"4",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
18,
false
],
null
],
4,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"YEAR",
"=",
"1980",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"year",
"=",
"value"
],
"question": "「1980」年に生産された車の数は?",
"question_toks": [
"how",
"many",
"cars",
"were",
"produced",
"in",
"1980",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"YEAR",
"=",
"1980",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"year",
"=",
"value"
],
"question": "「1980」年に生産された車の数は?",
"question_toks": [
"In",
"1980",
",",
"how",
"many",
"cars",
"were",
"made",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"WHERE",
"T1.FullName",
"=",
"'American",
"Motor",
"Company",
"'",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"where",
"t1",
".",
"fullname",
"=",
"value"
],
"question": "「American Motor Company」に生産された車の数は?",
"question_toks": [
"How",
"many",
"car",
"models",
"were",
"produced",
"by",
"the",
"maker",
"with",
"full",
"name",
"American",
"Motor",
"Company",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
"\"American Motor Company\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"WHERE",
"T1.FullName",
"=",
"'American",
"Motor",
"Company",
"'",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"where",
"t1",
".",
"fullname",
"=",
"value"
],
"question": "「American Motor Company」に生産された車の数は?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"car",
"models",
"created",
"by",
"the",
"car",
"maker",
"American",
"Motor",
"Company",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
"\"American Motor Company\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;",
"query_toks": [
"SELECT",
"T1.FullName",
",",
"T1.Id",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
"HAVING",
"count",
"(",
"*",
")",
">",
"3",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"fullname",
",",
"t1",
".",
"id",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"value"
],
"question": "どのメーカーは三つ以上の車モデルを作ったか?そのフルネームとIDを示してください。",
"question_toks": [
"Which",
"makers",
"designed",
"more",
"than",
"3",
"car",
"models",
"?",
"List",
"full",
"name",
"and",
"the",
"id",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;",
"query_toks": [
"SELECT",
"T1.FullName",
",",
"T1.Id",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
"HAVING",
"count",
"(",
"*",
")",
">",
"3",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"fullname",
",",
"t1",
".",
"id",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"value"
],
"question": "3つ以上の車モデルを作ったメーカーのフルネームとIDは何ですか?",
"question_toks": [
"What",
"are",
"the",
"names",
"and",
"ids",
"of",
"all",
"makers",
"with",
"more",
"than",
"3",
"models",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;",
"query_toks": [
"SELECT",
"DISTINCT",
"T2.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T2.Maker",
"=",
"T3.Id",
"JOIN",
"CARS_DATA",
"AS",
"T4",
"ON",
"T1.MakeId",
"=",
"T4.Id",
"WHERE",
"T3.FullName",
"=",
"'General",
"Motors",
"'",
"OR",
"T4.weight",
">",
"3500",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t2",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"maker",
"=",
"t3",
".",
"id",
"join",
"cars_data",
"as",
"t4",
"on",
"t1",
".",
"makeid",
"=",
"t4",
".",
"id",
"where",
"t3",
".",
"fullname",
"=",
"value",
"or",
"t4",
".",
"weight",
">",
"value"
],
"question": "「General Motors」に生産されたあるいは重量は3500以上の車種は何ですか?",
"question_toks": [
"Which",
"distinctive",
"models",
"are",
"produced",
"by",
"maker",
"with",
"the",
"full",
"name",
"General",
"Motors",
"or",
"weighing",
"more",
"than",
"3500",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
3
],
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
[
0,
12,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
"\"General Motors\"",
null
],
"or",
[
false,
3,
[
0,
[
0,
21,
false
],
null
],
3500,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;",
"query_toks": [
"SELECT",
"DISTINCT",
"T2.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CAR_MAKERS",
"AS",
"T3",
"ON",
"T2.Maker",
"=",
"T3.Id",
"JOIN",
"CARS_DATA",
"AS",
"T4",
"ON",
"T1.MakeId",
"=",
"T4.Id",
"WHERE",
"T3.FullName",
"=",
"'General",
"Motors",
"'",
"OR",
"T4.weight",
">",
"3500",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t2",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"car_makers",
"as",
"t3",
"on",
"t2",
".",
"maker",
"=",
"t3",
".",
"id",
"join",
"cars_data",
"as",
"t4",
"on",
"t1",
".",
"makeid",
"=",
"t4",
".",
"id",
"where",
"t3",
".",
"fullname",
"=",
"value",
"or",
"t4",
".",
"weight",
">",
"value"
],
"question": "「General Motors」に生産されたあるいは重量は3500以上の車種は何ですか?",
"question_toks": [
"What",
"are",
"the",
"different",
"models",
"created",
"by",
"either",
"the",
"car",
"maker",
"General",
"Motors",
"or",
"weighed",
"more",
"than",
"3500",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
3
],
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
[
0,
12,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
"\"General Motors\"",
null
],
"or",
[
false,
3,
[
0,
[
0,
21,
false
],
null
],
3500,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select distinct year from cars_data where weight between 3000 and 4000;",
"query_toks": [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"3000",
"and",
"4000",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"value",
"and",
"value"
],
"question": "重量が3000以上4000以下の車が何年に生産されたのか?",
"question_toks": [
"In",
"which",
"years",
"cars",
"were",
"produced",
"weighing",
"no",
"less",
"than",
"3000",
"and",
"no",
"more",
"than",
"4000",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [
[
false,
1,
[
0,
[
0,
21,
false
],
null
],
3000,
4000
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select distinct year from cars_data where weight between 3000 and 4000;",
"query_toks": [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"3000",
"and",
"4000",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"year",
"from",
"cars_data",
"where",
"weight",
"between",
"value",
"and",
"value"
],
"question": "重量が3000以上4000以下の車がの製造年は何年ですか?",
"question_toks": [
"What",
"are",
"the",
"different",
"years",
"in",
"which",
"there",
"were",
"cars",
"produced",
"that",
"weighed",
"less",
"than",
"4000",
"and",
"also",
"cars",
"that",
"weighted",
"more",
"than",
"3000",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
23,
false
],
null
]
]
]
],
"where": [
[
false,
1,
[
0,
[
0,
21,
false
],
null
],
3000,
4000
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.horsepower",
"FROM",
"CARS_DATA",
"AS",
"T1",
"ORDER",
"BY",
"T1.accelerate",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"horsepower",
"from",
"cars_data",
"as",
"t1",
"order",
"by",
"t1",
".",
"accelerate",
"desc",
"limit",
"value"
],
"question": "加速度が一番高い車の馬力は?",
"question_toks": [
"What",
"is",
"the",
"horsepower",
"of",
"the",
"car",
"with",
"the",
"largest",
"accelerate",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
22,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.horsepower",
"FROM",
"CARS_DATA",
"AS",
"T1",
"ORDER",
"BY",
"T1.accelerate",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"horsepower",
"from",
"cars_data",
"as",
"t1",
"order",
"by",
"t1",
".",
"accelerate",
"desc",
"limit",
"value"
],
"question": "加速度が一番高い車の馬力は?",
"question_toks": [
"What",
"is",
"the",
"horsepower",
"of",
"the",
"car",
"with",
"the",
"greatest",
"accelerate",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
22,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.cylinders",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Model",
"=",
"'volvo",
"'",
"ORDER",
"BY",
"T1.accelerate",
"ASC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"cylinders",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"model",
"=",
"value",
"order",
"by",
"t1",
".",
"accelerate",
"asc",
"limit",
"value"
],
"question": "「volvo」車種に対して、加速度が一番低い車はいくつの気筒がある?",
"question_toks": [
"For",
"model",
"volvo",
",",
"how",
"many",
"cylinders",
"does",
"the",
"car",
"with",
"the",
"least",
"accelerate",
"have",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"volvo\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
22,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.cylinders",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T2.Model",
"=",
"'volvo",
"'",
"ORDER",
"BY",
"T1.accelerate",
"ASC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"cylinders",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t2",
".",
"model",
"=",
"value",
"order",
"by",
"t1",
".",
"accelerate",
"asc",
"limit",
"value"
],
"question": "「volvo」車種に対して、加速度が一番低い車はいくつの気筒がある?",
"question_toks": [
"For",
"a",
"volvo",
"model",
",",
"how",
"many",
"cylinders",
"does",
"the",
"version",
"with",
"least",
"accelerate",
"have",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"volvo\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
22,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Accelerate",
">",
"(",
"SELECT",
"Accelerate",
"FROM",
"CARS_DATA",
"ORDER",
"BY",
"Horsepower",
"DESC",
"LIMIT",
"1",
")",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"accelerate",
">",
"(",
"select",
"accelerate",
"from",
"cars_data",
"order",
"by",
"horsepower",
"desc",
"limit",
"value",
")"
],
"question": "最高馬力を持つ車より加速が大きい車は何台ありますか?",
"question_toks": [
"How",
"many",
"cars",
"have",
"a",
"larger",
"accelerate",
"than",
"the",
"car",
"with",
"the",
"largest",
"horsepower",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
22,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Accelerate",
">",
"(",
"SELECT",
"Accelerate",
"FROM",
"CARS_DATA",
"ORDER",
"BY",
"Horsepower",
"DESC",
"LIMIT",
"1",
")",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"accelerate",
">",
"(",
"select",
"accelerate",
"from",
"cars_data",
"order",
"by",
"horsepower",
"desc",
"limit",
"value",
")"
],
"question": "最高馬力を持つ車より加速が大きい車は何台ありますか?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"cars",
"with",
"a",
"greater",
"accelerate",
"than",
"the",
"one",
"with",
"the",
"most",
"horsepower",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
22,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2",
"query_toks": [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.countryid",
"=",
"t2.country",
"group",
"by",
"t1.countryid",
"having",
"count",
"(",
"*",
")",
">",
"2"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"value"
],
"question": "2つ以上のメーカーがある国の数は?",
"question_toks": [
"How",
"many",
"countries",
"has",
"more",
"than",
"2",
"car",
"makers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2",
"query_toks": [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.countryid",
"=",
"t2.country",
"group",
"by",
"t1.countryid",
"having",
"count",
"(",
"*",
")",
">",
"2"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"value"
],
"question": "2社以上の自動車メーカーがある国はいくつですか?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"countries",
"with",
"more",
"than",
"2",
"car",
"makers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"6",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
],
"question": "気筒数は6個以上の車の数は?",
"question_toks": [
"How",
"many",
"cars",
"has",
"over",
"6",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
18,
false
],
null
],
6,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CARS_DATA",
"WHERE",
"Cylinders",
">",
"6",
";"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"cars_data",
"where",
"cylinders",
">",
"value"
],
"question": "気筒数は6個以上の車の数は?",
"question_toks": [
"What",
"is",
"the",
"number",
"of",
"carsw",
"ith",
"over",
"6",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
18,
false
],
null
],
6,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.Cylinders",
"=",
"4",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"horsepower",
"desc",
"limit",
"value"
],
"question": "最大馬力の4シリンダーの車モデルは?",
"question_toks": [
"For",
"the",
"cars",
"with",
"4",
"cylinders",
",",
"which",
"model",
"has",
"the",
"largest",
"horsepower",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
4,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;",
"query_toks": [
"SELECT",
"T1.Model",
"FROM",
"CAR_NAMES",
"AS",
"T1",
"JOIN",
"CARS_DATA",
"AS",
"T2",
"ON",
"T1.MakeId",
"=",
"T2.Id",
"WHERE",
"T2.Cylinders",
"=",
"4",
"ORDER",
"BY",
"T2.horsepower",
"DESC",
"LIMIT",
"1",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"model",
"from",
"car_names",
"as",
"t1",
"join",
"cars_data",
"as",
"t2",
"on",
"t1",
".",
"makeid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"cylinders",
"=",
"value",
"order",
"by",
"t2",
".",
"horsepower",
"desc",
"limit",
"value"
],
"question": "最大馬力の4シリンダーの車モデルは?",
"question_toks": [
"For",
"all",
"of",
"the",
"4",
"cylinder",
"cars",
",",
"which",
"model",
"has",
"the",
"most",
"horsepower",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
14,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
4,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
20,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;",
"query_toks": [
"SELECT",
"T2.MakeId",
",",
"T2.Make",
"FROM",
"CARS_DATA",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.MakeId",
"WHERE",
"T1.Horsepower",
">",
"(",
"SELECT",
"min",
"(",
"Horsepower",
")",
"FROM",
"CARS_DATA",
")",
"AND",
"T1.Cylinders",
"<",
"=",
"3",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"makeid",
",",
"t2",
".",
"make",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"horsepower",
">",
"(",
"select",
"min",
"(",
"horsepower",
")",
"from",
"cars_data",
")",
"and",
"t1",
".",
"cylinders",
"<",
"=",
"value"
],
"question": "最低馬力以上の車の中で、気筒数が3個以内の車は?そのメーカーIDとメーカー名を示してください。",
"question_toks": [
"Among",
"the",
"cars",
"with",
"more",
"than",
"lowest",
"horsepower",
",",
"which",
"ones",
"do",
"not",
"have",
"more",
"than",
"3",
"cylinders",
"?",
"List",
"the",
"car",
"makeid",
"and",
"make",
"name",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
13,
false
],
null
]
],
[
0,
[
0,
[
0,
15,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
20,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
],
"and",
[
false,
6,
[
0,
[
0,
18,
false
],
null
],
3,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4;",
"query_toks": [
"select",
"t2.makeid",
",",
"t2.make",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1.id",
"=",
"t2.makeid",
"where",
"t1.horsepower",
">",
"(",
"select",
"min",
"(",
"horsepower",
")",
"from",
"cars_data",
")",
"and",
"t1.cylinders",
"<",
"4",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"makeid",
",",
"t2",
".",
"make",
"from",
"cars_data",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"makeid",
"where",
"t1",
".",
"horsepower",
">",
"(",
"select",
"min",
"(",
"horsepower",
")",
"from",
"cars_data",
")",
"and",
"t1",
".",
"cylinders",
"<",
"value"
],
"question": "最低馬力以上の車の中で、気筒数が4個以内の車は?そのメーカーIDとメーカー名を示してください。",
"question_toks": [
"Among",
"the",
"cars",
"that",
"do",
"not",
"have",
"the",
"minimum",
"horsepower",
",",
"what",
"are",
"the",
"make",
"ids",
"and",
"names",
"of",
"all",
"those",
"with",
"less",
"than",
"4",
"cylinders",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
16,
false
],
null
],
[
0,
13,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
13,
false
],
null
]
],
[
0,
[
0,
[
0,
15,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
20,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
],
"and",
[
false,
4,
[
0,
[
0,
18,
false
],
null
],
4,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980",
"query_toks": [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"or",
"year",
"<",
"1980"
],
"query_toks_no_value": [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"or",
"year",
"<",
"value"
],
"question": "「8」気筒持ちあるいは「1980」年前に生産された車の最高mpgは?",
"question_toks": [
"What",
"is",
"the",
"maximum",
"miles",
"per",
"gallon",
"of",
"the",
"car",
"with",
"8",
"cylinders",
"or",
"produced",
"before",
"1980",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
17,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
8,
null
],
"or",
[
false,
4,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980",
"query_toks": [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"8",
"or",
"year",
"<",
"1980"
],
"query_toks_no_value": [
"select",
"max",
"(",
"mpg",
")",
"from",
"cars_data",
"where",
"cylinders",
"=",
"value",
"or",
"year",
"<",
"value"
],
"question": "「8」気筒持ちあるいは「1980」年前に生産された車の最高mpgは?",
"question_toks": [
"What",
"is",
"the",
"maximum",
"mpg",
"of",
"the",
"cars",
"that",
"had",
"8",
"cylinders",
"or",
"that",
"were",
"produced",
"before",
"1980",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
17,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
8,
null
],
"or",
[
false,
4,
[
0,
[
0,
23,
false
],
null
],
1980,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.Id",
"JOIN",
"CAR_MAKERS",
"AS",
"T4",
"ON",
"T1.Maker",
"=",
"T4.Id",
"WHERE",
"T3.weight",
"<",
"3500",
"AND",
"T4.FullName",
"!",
"=",
"'Ford",
"Motor",
"Company",
"'",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"join",
"car_makers",
"as",
"t4",
"on",
"t1",
".",
"maker",
"=",
"t4",
".",
"id",
"where",
"t3",
".",
"weight",
"<",
"value",
"and",
"t4",
".",
"fullname",
"!",
"=",
"value"
],
"question": "車両重量は3500以下の車の中で「Ford Motor Company」製ではなかった車種は?",
"question_toks": [
"Which",
"models",
"are",
"lighter",
"than",
"3500",
"but",
"not",
"built",
"by",
"the",
"'Ford",
"Motor",
"Company",
"'",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
4
],
[
"table_unit",
5
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
4,
[
0,
[
0,
21,
false
],
null
],
3500,
null
],
"and",
[
false,
7,
[
0,
[
0,
8,
false
],
null
],
"\"Ford Motor Company\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.model",
"FROM",
"MODEL_LIST",
"AS",
"T1",
"JOIN",
"CAR_NAMES",
"AS",
"T2",
"ON",
"T1.Model",
"=",
"T2.Model",
"JOIN",
"CARS_DATA",
"AS",
"T3",
"ON",
"T2.MakeId",
"=",
"T3.Id",
"JOIN",
"CAR_MAKERS",
"AS",
"T4",
"ON",
"T1.Maker",
"=",
"T4.Id",
"WHERE",
"T3.weight",
"<",
"3500",
"AND",
"T4.FullName",
"!",
"=",
"'Ford",
"Motor",
"Company",
"'",
";"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"model",
"from",
"model_list",
"as",
"t1",
"join",
"car_names",
"as",
"t2",
"on",
"t1",
".",
"model",
"=",
"t2",
".",
"model",
"join",
"cars_data",
"as",
"t3",
"on",
"t2",
".",
"makeid",
"=",
"t3",
".",
"id",
"join",
"car_makers",
"as",
"t4",
"on",
"t1",
".",
"maker",
"=",
"t4",
".",
"id",
"where",
"t3",
".",
"weight",
"<",
"value",
"and",
"t4",
".",
"fullname",
"!",
"=",
"value"
],
"question": "「Ford Motor Company」製ではない車の中で車両重量は3500以下の車種とは?",
"question_toks": [
"What",
"are",
"the",
"different",
"models",
"wthat",
"are",
"lighter",
"than",
"3500",
"but",
"were",
"not",
"built",
"by",
"the",
"Ford",
"Motor",
"Company",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
4
],
[
"table_unit",
5
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
16,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
11,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
4,
[
0,
[
0,
21,
false
],
null
],
3500,
null
],
"and",
[
false,
7,
[
0,
[
0,
8,
false
],
null
],
"\"Ford Motor Company\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;",
"query_toks": [
"SELECT",
"CountryName",
"FROM",
"countries",
"EXCEPT",
"SELECT",
"T1.CountryName",
"FROM",
"countries",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.countryId",
"=",
"T2.Country",
";"
],
"query_toks_no_value": [
"select",
"countryname",
"from",
"countries",
"except",
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country"
],
"question": "自動車メーカーが一社もない国の名前は?",
"question_toks": [
"What",
"are",
"the",
"name",
"of",
"the",
"countries",
"where",
"there",
"is",
"not",
"a",
"single",
"car",
"maker",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "car_1",
"query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;",
"query_toks": [
"SELECT",
"CountryName",
"FROM",
"countries",
"EXCEPT",
"SELECT",
"T1.CountryName",
"FROM",
"countries",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.countryId",
"=",
"T2.Country",
";"
],
"query_toks_no_value": [
"select",
"countryname",
"from",
"countries",
"except",
"select",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country"
],
"question": "自動車メーカーがない国の名前は?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"countries",
"with",
"no",
"car",
"makers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "car_1",
"query": "select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;",
"query_toks": [
"select",
"t1.id",
",",
"t1.maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1.id",
"=",
"t2.maker",
"group",
"by",
"t1.id",
"having",
"count",
"(",
"*",
")",
">=",
"2",
"intersect",
"select",
"t1.id",
",",
"t1.maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1.id",
"=",
"t2.maker",
"join",
"car_names",
"as",
"t3",
"on",
"t2.model",
"=",
"t3.model",
"group",
"by",
"t1.id",
"having",
"count",
"(",
"*",
")",
">",
"3",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value",
"intersect",
"select",
"t1",
".",
"id",
",",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"join",
"car_names",
"as",
"t3",
"on",
"t2",
".",
"model",
"=",
"t3",
".",
"model",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"value"
],
"question": "車種が2台以上、ブランドが三種以上を持っている自動車メーカーはどれですか?そのメーカーとIDを示してください。",
"question_toks": [
"Which",
"are",
"the",
"car",
"makers",
"which",
"produce",
"at",
"least",
"2",
"models",
"and",
"more",
"than",
"3",
"car",
"makers",
"?",
"List",
"the",
"id",
"and",
"the",
"maker",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;",
"query_toks": [
"SELECT",
"T1.Id",
",",
"T1.Maker",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"GROUP",
"BY",
"T1.Id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2",
"INTERSECT",
"SELECT",
"T1.Id",
",",
"T1.Maker",
"FROM",
"CAR_MAKERS",
"AS",
"T1",
"JOIN",
"MODEL_LIST",
"AS",
"T2",
"ON",
"T1.Id",
"=",
"T2.Maker",
"JOIN",
"CAR_NAMES",
"AS",
"T3",
"ON",
"T2.model",
"=",
"T3.model",
"GROUP",
"BY",
"T1.Id",
"HAVING",
"count",
"(",
"*",
")",
">",
"3",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value",
"intersect",
"select",
"t1",
".",
"id",
",",
"t1",
".",
"maker",
"from",
"car_makers",
"as",
"t1",
"join",
"model_list",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"maker",
"join",
"car_names",
"as",
"t3",
"on",
"t2",
".",
"model",
"=",
"t3",
".",
"model",
"group",
"by",
"t1",
".",
"id",
"having",
"count",
"(",
"*",
")",
">",
"value"
],
"question": "車種が2台以上、ブランドが三種超えの自動車メーカーはどれですか?そのメーカーとIDを示してください。",
"question_toks": [
"What",
"are",
"the",
"ids",
"and",
"makers",
"of",
"all",
"car",
"makers",
"that",
"produce",
"at",
"least",
"2",
"models",
"and",
"make",
"more",
"than",
"3",
"cars",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
14,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
6,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
}
},
{
"db_id": "car_1",
"query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';",
"query_toks": [
"SELECT",
"T1.countryId",
",",
"T1.CountryName",
"FROM",
"Countries",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.CountryId",
"=",
"T2.Country",
"GROUP",
"BY",
"T1.countryId",
"HAVING",
"count",
"(",
"*",
")",
">",
"3",
"UNION",
"SELECT",
"T1.countryId",
",",
"T1.CountryName",
"FROM",
"Countries",
"AS",
"T1",
"JOIN",
"CAR_MAKERS",
"AS",
"T2",
"ON",
"T1.CountryId",
"=",
"T2.Country",
"JOIN",
"MODEL_LIST",
"AS",
"T3",
"ON",
"T2.Id",
"=",
"T3.Maker",
"WHERE",
"T3.Model",
"=",
"'fiat",
"'",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"countryid",
",",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"value",
"union",
"select",
"t1",
".",
"countryid",
",",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"join",
"model_list",
"as",
"t3",
"on",
"t2",
".",
"id",
"=",
"t3",
".",
"maker",
"where",
"t3",
".",
"model",
"=",
"value"
],
"question": "自動車メーカーが3社以上あり、また「fiat」を生産している国のIDや名前は?",
"question_toks": [
"What",
"are",
"the",
"id",
"and",
"names",
"of",
"the",
"countries",
"which",
"have",
"more",
"than",
"3",
"car",
"makers",
"or",
"produce",
"the",
"'fiat",
"'",
"model",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
],
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
],
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"fiat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"except": null
}
},
{
"db_id": "car_1",
"query": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';",
"query_toks": [
"select",
"t1.countryid",
",",
"t1.countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.countryid",
"=",
"t2.country",
"group",
"by",
"t1.countryid",
"having",
"count",
"(",
"*",
")",
">",
"3",
"union",
"select",
"t1.countryid",
",",
"t1.countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1.countryid",
"=",
"t2.country",
"join",
"model_list",
"as",
"t3",
"on",
"t2.id",
"=",
"t3.maker",
"where",
"t3.model",
"=",
"\"fiat\"",
";"
],
"query_toks_no_value": [
"select",
"t1",
".",
"countryid",
",",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"group",
"by",
"t1",
".",
"countryid",
"having",
"count",
"(",
"*",
")",
">",
"value",
"union",
"select",
"t1",
".",
"countryid",
",",
"t1",
".",
"countryname",
"from",
"countries",
"as",
"t1",
"join",
"car_makers",
"as",
"t2",
"on",
"t1",
".",
"countryid",
"=",
"t2",
".",
"country",
"join",
"model_list",
"as",
"t3",
"on",
"t2",
".",
"id",
"=",
"t3",
".",
"maker",
"where",
"t3",
".",
"model",
"=",
"value"
],
"question": "自動車メーカーが3社以上あり、また「fiat」を生産している国のIDや名前は?",
"question_toks": [
"What",
"are",
"the",
"ids",
"and",
"names",
"of",
"all",
"countries",
"that",
"either",
"have",
"more",
"than",
"3",
"car",
"makers",
"or",
"produce",
"fiat",
"model",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
],
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
3,
[
0,
[
3,
0,
false
],
null
],
3,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
9,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
11,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
],
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"fiat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"except": null
}
}
]