dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergy) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergy",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergy",
")",
"from",
"allergy_type"
],
"question": "アレルギーはいくつありますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
1,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergy) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergy",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergy",
")",
"from",
"allergy_type"
],
"question": "アレルギーのエントリはいくつありますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
1,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergytype) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergytype",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergytype",
")",
"from",
"allergy_type"
],
"question": "アレルギーの種類はいくつありますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
2,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT allergytype) FROM Allergy_type",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"allergytype",
")",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"allergytype",
")",
"from",
"allergy_type"
],
"question": "アレルギーはいくつありますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
2,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"DISTINCT",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"distinct",
"allergytype",
"from",
"allergy_type"
],
"question": "すべてのアレルギータイプを表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"DISTINCT",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"distinct",
"allergytype",
"from",
"allergy_type"
],
"question": "さまざまなアレルギーの種類は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergy , allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"allergy",
",",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"allergytype",
"from",
"allergy_type"
],
"question": "すべてのアレルギーとその種類を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergy , allergytype FROM Allergy_type",
"query_toks": [
"SELECT",
"allergy",
",",
"allergytype",
"FROM",
"Allergy_type"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"allergytype",
"from",
"allergy_type"
],
"question": "アレルギーとその種類は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"",
"query_toks": [
"SELECT",
"DISTINCT",
"allergy",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"allergy",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "タイプは「food」のすべてのアレルギーを表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"",
"query_toks": [
"SELECT",
"DISTINCT",
"allergy",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"allergy",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "すべての「food」アレルギーは何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"WHERE",
"allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"where",
"allergy",
"=",
"value"
],
"question": "アレルギー源は「Cat」の種類は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"WHERE",
"allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"where",
"allergy",
"=",
"value"
],
"question": "「Cat」からのアレルギーの種類は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"animal",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "「animal」タイプのアレルギーはいくつありますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"WHERE",
"allergytype",
"=",
"``",
"animal",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"where",
"allergytype",
"=",
"value"
],
"question": "「animal」タイプアレルギーはいくつありますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype",
"query_toks": [
"SELECT",
"allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype"
],
"query_toks_no_value": [
"select",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"group",
"by",
"allergytype"
],
"question": "すべてのアレルギータイプと各タイプのアレルギーの数を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"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": "allergy_1",
"query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype",
"query_toks": [
"SELECT",
"allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype"
],
"query_toks_no_value": [
"select",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"allergy_type",
"group",
"by",
"allergytype"
],
"question": "アレルギーの種類は何ですか?それぞれに対応するアレルギーの数は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"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": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "アレルギーの数が最も多いのはどのアレルギータイプですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "どのアレルギータイプが最も多いですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "アレルギーの数が最も少ないアレルギータイプはどれですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"allergytype",
"FROM",
"Allergy_type",
"GROUP",
"BY",
"allergytype",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergytype",
"from",
"allergy_type",
"group",
"by",
"allergytype",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "どのアレルギータイプが最も多いですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
2,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student"
],
"question": "どのぐらい多くの生徒がここにいますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student"
],
"question": "学生の総数はいくつですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname FROM Student",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student"
],
"question": "すべての生徒の名前と苗字を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname FROM Student",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student"
],
"question": "すべての学生のフルネームは何ですか",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT advisor) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"advisor",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"advisor",
")",
"from",
"student"
],
"question": "何人の異なるアドバイザーがリストされていますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
11,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(DISTINCT advisor) FROM Student",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"advisor",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"advisor",
")",
"from",
"student"
],
"question": "アドバイザーは何人いますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
11,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT Major FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"Major",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"major",
"from",
"student"
],
"question": "すべての専攻を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT Major FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"Major",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"major",
"from",
"student"
],
"question": "異なる専攻は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT city_code FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"city_code",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"city_code",
"from",
"student"
],
"question": "学生が住んでいるすべての都市を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT city_code FROM Student",
"query_toks": [
"SELECT",
"DISTINCT",
"city_code",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"distinct",
"city_code",
"from",
"student"
],
"question": "学生はどの都市に住んでいますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
",",
"Age",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'F",
"'"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
",",
"age",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "すべての女子学生の名前、名前、年齢を表示します。彼らの性別は「F」です。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'",
"query_toks": [
"SELECT",
"Fname",
",",
"Lname",
",",
"Age",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'F",
"'"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
",",
"age",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "性別が「F」の女子学生全員の氏名と年齢は?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE Sex = 'M'",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'M",
"'"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "すべての男子学生の学生IDを表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE Sex = 'M'",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"Sex",
"=",
"'M",
"'"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"sex",
"=",
"value"
],
"question": "すべての男子学生の学生IDは何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age = 18",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
"=",
"18"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
"=",
"value"
],
"question": "18歳の学生は何人ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age = 18",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
"=",
"18"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
"=",
"value"
],
"question": "18歳の学生は何人ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age > 20",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
">",
"20"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
">",
"value"
],
"question": "20歳以上のすべての学生IDを表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
20.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age > 20",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
">",
"20"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
">",
"value"
],
"question": "20歳以上の学生の学生IDは何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
20.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code FROM Student WHERE LName = \"Kim\"",
"query_toks": [
"SELECT",
"city_code",
"FROM",
"Student",
"WHERE",
"LName",
"=",
"``",
"Kim",
"''"
],
"query_toks_no_value": [
"select",
"city_code",
"from",
"student",
"where",
"lname",
"=",
"value"
],
"question": "苗字が「Kim」の学生はどの都市に住んでいますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
"\"Kim\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code FROM Student WHERE LName = \"Kim\"",
"query_toks": [
"SELECT",
"city_code",
"FROM",
"Student",
"WHERE",
"LName",
"=",
"``",
"Kim",
"''"
],
"query_toks_no_value": [
"select",
"city_code",
"from",
"student",
"where",
"lname",
"=",
"value"
],
"question": "苗字が「Kim」の学生が住んでいる都市を教えてください。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
"\"Kim\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Advisor FROM Student WHERE StuID = 1004",
"query_toks": [
"SELECT",
"Advisor",
"FROM",
"Student",
"WHERE",
"StuID",
"=",
"1004"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"where",
"stuid",
"=",
"value"
],
"question": "ID 1004の学生の指導教官は誰ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
1004.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Advisor FROM Student WHERE StuID = 1004",
"query_toks": [
"SELECT",
"Advisor",
"FROM",
"Student",
"WHERE",
"StuID",
"=",
"1004"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"where",
"stuid",
"=",
"value"
],
"question": "ID 1004の学生の指導教官は誰ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
1004.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"city_code",
"=",
"``",
"HKG",
"''",
"OR",
"city_code",
"=",
"``",
"CHI",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"city_code",
"=",
"value",
"or",
"city_code",
"=",
"value"
],
"question": "「HKG」また​​は「CHI」には何人の学生が住んでいますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"HKG\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"CHI\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"city_code",
"=",
"``",
"HKG",
"''",
"OR",
"city_code",
"=",
"``",
"CHI",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"city_code",
"=",
"value",
"or",
"city_code",
"=",
"value"
],
"question": "「HKG」また​​は「CHI」のいずれかに住んでいる学生の数を示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"HKG\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"CHI\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT min(age) , avg(age) , max(age) FROM Student",
"query_toks": [
"SELECT",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"from",
"student"
],
"question": "すべての生徒の最低年齢、平均年齢、最高年齢を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
false
],
null
]
],
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
1,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT min(age) , avg(age) , max(age) FROM Student",
"query_toks": [
"SELECT",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"FROM",
"Student"
],
"query_toks_no_value": [
"select",
"min",
"(",
"age",
")",
",",
"avg",
"(",
"age",
")",
",",
"max",
"(",
"age",
")",
"from",
"student"
],
"question": "すべての学生の最低年齢、平均年齢、最高年齢は何歳ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
false
],
null
]
],
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
1,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)",
"query_toks": [
"SELECT",
"LName",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"min",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"lname",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"min",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "最年少の学生の名前は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
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": "allergy_1",
"query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)",
"query_toks": [
"SELECT",
"LName",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"min",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"lname",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"min",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "最年少の学生の名前を入力します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
2,
[
0,
[
0,
8,
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": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"max",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"max",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "最年長の学生の学生IDを表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
8,
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": "allergy_1",
"query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"WHERE",
"age",
"=",
"(",
"SELECT",
"max",
"(",
"age",
")",
"FROM",
"Student",
")"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"where",
"age",
"=",
"(",
"select",
"max",
"(",
"age",
")",
"from",
"student",
")"
],
"question": "どの学生IDが最年長に対応しますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
8,
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": "allergy_1",
"query": "SELECT major , count(*) FROM Student GROUP BY major",
"query_toks": [
"SELECT",
"major",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"major"
],
"query_toks_no_value": [
"select",
"major",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"major"
],
"question": "すべての専攻とそれに対応する学生数を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT major , count(*) FROM Student GROUP BY major",
"query_toks": [
"SELECT",
"major",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"major"
],
"query_toks_no_value": [
"select",
"major",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"major"
],
"question": "各専攻には何人の学生がいますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"major",
"FROM",
"Student",
"GROUP",
"BY",
"major",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"major",
"from",
"student",
"group",
"by",
"major",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "学生数が最も多い専攻はどれですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"major",
"FROM",
"Student",
"GROUP",
"BY",
"major",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"major",
"from",
"student",
"group",
"by",
"major",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "学生数が最も多い専攻は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
10,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT age , count(*) FROM Student GROUP BY age",
"query_toks": [
"SELECT",
"age",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"age"
],
"query_toks_no_value": [
"select",
"age",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"age"
],
"question": "すべての年齢と対応する生徒数を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
8,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT age , count(*) FROM Student GROUP BY age",
"query_toks": [
"SELECT",
"age",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"age"
],
"query_toks_no_value": [
"select",
"age",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"age"
],
"question": "各学生は何歳で、各年齢は何人ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
8,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT avg(age) , sex FROM Student GROUP BY sex",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
",",
"sex",
"FROM",
"Student",
"GROUP",
"BY",
"sex"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
",",
"sex",
"from",
"student",
"group",
"by",
"sex"
],
"question": "男性と女性の学生の平均年齢を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
9,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT avg(age) , sex FROM Student GROUP BY sex",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
",",
"sex",
"FROM",
"Student",
"GROUP",
"BY",
"sex"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
",",
"sex",
"from",
"student",
"group",
"by",
"sex"
],
"question": "男性と女性の学生の平均年齢は何歳ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
9,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code , count(*) FROM Student GROUP BY city_code",
"query_toks": [
"SELECT",
"city_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"city_code"
],
"query_toks_no_value": [
"select",
"city_code",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"city_code"
],
"question": "すべての都市と対応する学生数を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
12,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT city_code , count(*) FROM Student GROUP BY city_code",
"query_toks": [
"SELECT",
"city_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"city_code"
],
"query_toks_no_value": [
"select",
"city_code",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"city_code"
],
"question": "各都市には何人の学生が住んでいますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
12,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor , count(*) FROM Student GROUP BY advisor",
"query_toks": [
"SELECT",
"advisor",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"advisor"
],
"query_toks_no_value": [
"select",
"advisor",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"advisor"
],
"question": "すべてのアドバイザーとそれに対応する学生数を表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor , count(*) FROM Student GROUP BY advisor",
"query_toks": [
"SELECT",
"advisor",
",",
"count",
"(",
"*",
")",
"FROM",
"Student",
"GROUP",
"BY",
"advisor"
],
"query_toks_no_value": [
"select",
"advisor",
",",
"count",
"(",
"*",
")",
"from",
"student",
"group",
"by",
"advisor"
],
"question": "各アドバイザーには何人の学生がいますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"advisor",
"FROM",
"Student",
"GROUP",
"BY",
"advisor",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"group",
"by",
"advisor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "学生数が最も多いアドバイザーはどれですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"advisor",
"FROM",
"Student",
"GROUP",
"BY",
"advisor",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"advisor",
"from",
"student",
"group",
"by",
"advisor",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "最も多くの学生をアドバイザーに提供します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
11,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value"
],
"question": "「cat」アレルギーの生徒は何人いますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value"
],
"question": "「cat」アレルギーの影響を受けている生徒は何人いますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"StuID",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"has_allergy",
"group",
"by",
"stuid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "少なくとも2つのアレルギーを持つすべての学生IDを表示します。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"StuID",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"has_allergy",
"group",
"by",
"stuid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "複数のアレルギーを持つ学生の学生IDは何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"has_allergy"
],
"question": "アレルギーのない学生の学生IDは何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "allergy_1",
"query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy",
"query_toks": [
"SELECT",
"StuID",
"FROM",
"Student",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy"
],
"query_toks_no_value": [
"select",
"stuid",
"from",
"student",
"except",
"select",
"stuid",
"from",
"has_allergy"
],
"question": "どの学生がアレルギーの影響を受けていませんか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"has_allergy",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.sex",
"=",
"``",
"F",
"''",
"AND",
"T1.allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T1.allergy",
"=",
"``",
"Eggs",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"sex",
"=",
"value",
"and",
"t1",
".",
"allergy",
"=",
"value",
"or",
"t1",
".",
"allergy",
"=",
"value"
],
"question": "何人の女子学生が「milk」または「egg」アレルギーを持っていますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
5,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
],
"and",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Eggs\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"has_allergy",
"AS",
"T1",
"JOIN",
"Student",
"AS",
"T2",
"ON",
"T1.StuID",
"=",
"T2.StuID",
"WHERE",
"T2.sex",
"=",
"``",
"F",
"''",
"AND",
"T1.allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T1.allergy",
"=",
"``",
"Eggs",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"student",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"sex",
"=",
"value",
"and",
"t1",
".",
"allergy",
"=",
"value",
"or",
"t1",
".",
"allergy",
"=",
"value"
],
"question": "女性の生徒の何人が「milk」または「egg」にアレルギーがありますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
5,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"F\"",
null
],
"and",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Eggs\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value"
],
"question": "「food」アレルギーのある生徒は何人いますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value"
],
"question": "何人の学生が「food」のアレルギーの影響を受けていますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"Allergy",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergy",
"from",
"has_allergy",
"group",
"by",
"allergy",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "最も多くの学生が影響を受けたアレルギーはどれですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"Allergy",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"allergy",
"from",
"has_allergy",
"group",
"by",
"allergy",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "どのアレルギーが最も多いですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy",
"query_toks": [
"SELECT",
"Allergy",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"group",
"by",
"allergy"
],
"question": "アレルギーの影響を受けた学生の数。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy",
"query_toks": [
"SELECT",
"Allergy",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"GROUP",
"BY",
"Allergy"
],
"query_toks_no_value": [
"select",
"allergy",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"group",
"by",
"allergy"
],
"question": "何人の学生がそれぞれ異なるアレルギーを持っていますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
4,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype",
"query_toks": [
"SELECT",
"T2.allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"GROUP",
"BY",
"T2.allergytype"
],
"query_toks_no_value": [
"select",
"t2",
".",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"group",
"by",
"t2",
".",
"allergytype"
],
"question": "アレルギーの影響を受けた学生の数とそのアレルギータイプ",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
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": "allergy_1",
"query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype",
"query_toks": [
"SELECT",
"T2.allergytype",
",",
"count",
"(",
"*",
")",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_type",
"AS",
"T2",
"ON",
"T1.allergy",
"=",
"T2.allergy",
"GROUP",
"BY",
"T2.allergytype"
],
"query_toks_no_value": [
"select",
"t2",
".",
"allergytype",
",",
"count",
"(",
"*",
")",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"group",
"by",
"t2",
".",
"allergytype"
],
"question": "各アレルギータイプの影響を受ける学生は何人ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
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": "allergy_1",
"query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"lname",
",",
"age",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"lname",
",",
"age",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "「milk」と「cat」の両方にアレルギーがある生徒の名前と年齢を調べます。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"lname",
",",
"age",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"INTERSECT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"lname",
",",
"age",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"intersect",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "「milk」と「cat」にアレルギーのある生徒の名前と年齢は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy",
"query_toks": [
"SELECT",
"T1.Allergy",
",",
"T1.AllergyType",
"FROM",
"Allergy_type",
"AS",
"T1",
"JOIN",
"Has_allergy",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"JOIN",
"Student",
"AS",
"T3",
"ON",
"T3.StuID",
"=",
"T2.StuID",
"WHERE",
"T3.Fname",
"=",
"``",
"Lisa",
"''",
"ORDER",
"BY",
"T1.Allergy"
],
"query_toks_no_value": [
"select",
"t1",
".",
"allergy",
",",
"t1",
".",
"allergytype",
"from",
"allergy_type",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"join",
"student",
"as",
"t3",
"on",
"t3",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t3",
".",
"fname",
"=",
"value",
"order",
"by",
"t1",
".",
"allergy"
],
"question": "「Lisa」という名の学生が持っているアレルギーとその種類は何ですか?そして、アレルギーの名前で結果を並べ替えます。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
4,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Lisa\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
1,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy",
"query_toks": [
"SELECT",
"T1.Allergy",
",",
"T1.AllergyType",
"FROM",
"Allergy_type",
"AS",
"T1",
"JOIN",
"Has_allergy",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"JOIN",
"Student",
"AS",
"T3",
"ON",
"T3.StuID",
"=",
"T2.StuID",
"WHERE",
"T3.Fname",
"=",
"``",
"Lisa",
"''",
"ORDER",
"BY",
"T1.Allergy"
],
"query_toks_no_value": [
"select",
"t1",
".",
"allergy",
",",
"t1",
".",
"allergytype",
"from",
"allergy_type",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"join",
"student",
"as",
"t3",
"on",
"t3",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t3",
".",
"fname",
"=",
"value",
"order",
"by",
"t1",
".",
"allergy"
],
"question": "「Lisa」という名前の女の子が持っているアレルギーは何ですか?そして、それらの種類は何ですか?アレルギー名で結果を並べ替えます。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
4,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Lisa\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
1,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"fname",
",",
"sex",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"sex",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"except",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "「milk」にアレルギーがあるが「cat」にはアレルギーがない生徒の名前と性別を見つけます。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"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": "allergy_1",
"query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"query_toks": [
"SELECT",
"fname",
",",
"sex",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Milk",
"''",
"EXCEPT",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Cat",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"sex",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
"except",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "「milk」アレルギーはあるけれど「cat」にアレルギーしない生徒の名前と性別は?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
9,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"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": "allergy_1",
"query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"INTERSECT",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"intersect",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "「food」や「animal」の種類にアレルギーがある学生の平均年齢を見つけます。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"avg",
"(",
"age",
")",
"FROM",
"Student",
"WHERE",
"StuID",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"INTERSECT",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"age",
")",
"from",
"student",
"where",
"stuid",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"intersect",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "「food」や「animal」の種類にアレルギーのある生徒は平均して何歳ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"fname",
",",
"lname",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "「food」アレルギーのない生徒の名前と苗字を記入してください。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"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": "allergy_1",
"query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"fname",
",",
"lname",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"T1.StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"lname",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"t1",
".",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "どんな種類の「food」にもアレルギーがない各学生のフルネームは何ですか。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"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": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"``",
"M",
"''",
"AND",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"sex",
"=",
"value",
"and",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "「food」タイプのアレルギーを持っている男性(性別は「M」)の学生の数を見つけます。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
],
"and",
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"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": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"sex",
"=",
"``",
"M",
"''",
"AND",
"StuID",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"sex",
"=",
"value",
"and",
"stuid",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "どんな種類の「food」にもアレルギーのある男子生徒(性別は「M」)は何人いますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"M\"",
null
],
"and",
[
false,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
]
],
"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": "allergy_1",
"query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.fname",
",",
"T1.city_code",
"FROM",
"Student",
"AS",
"T1",
"JOIN",
"Has_Allergy",
"AS",
"T2",
"ON",
"T1.stuid",
"=",
"T2.stuid",
"WHERE",
"T2.Allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T2.Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"city_code",
"from",
"student",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"allergy",
"=",
"value",
"or",
"t2",
".",
"allergy",
"=",
"value"
],
"question": "「milk」や「cat」にアレルギーのある生徒のさまざまな名前と都市。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.fname",
",",
"T1.city_code",
"FROM",
"Student",
"AS",
"T1",
"JOIN",
"Has_Allergy",
"AS",
"T2",
"ON",
"T1.stuid",
"=",
"T2.stuid",
"WHERE",
"T2.Allergy",
"=",
"``",
"Milk",
"''",
"OR",
"T2.Allergy",
"=",
"``",
"Cat",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"fname",
",",
"t1",
".",
"city_code",
"from",
"student",
"as",
"t1",
"join",
"has_allergy",
"as",
"t2",
"on",
"t1",
".",
"stuid",
"=",
"t2",
".",
"stuid",
"where",
"t2",
".",
"allergy",
"=",
"value",
"or",
"t2",
".",
"allergy",
"=",
"value"
],
"question": "「milk」または「cat」のいずれかにアレルギーがある学生の名と都市は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Milk\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Cat\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
">",
"18",
"AND",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"OR",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
">",
"value",
"and",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"or",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "18歳以上で、「food」にも「animal」にもアレルギーがない生徒の数を調べます。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
],
"and",
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"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": "allergy_1",
"query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Student",
"WHERE",
"age",
">",
"18",
"AND",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"AS",
"T1",
"JOIN",
"Allergy_Type",
"AS",
"T2",
"ON",
"T1.Allergy",
"=",
"T2.Allergy",
"WHERE",
"T2.allergytype",
"=",
"``",
"food",
"''",
"OR",
"T2.allergytype",
"=",
"``",
"animal",
"''",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"student",
"where",
"age",
">",
"value",
"and",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"as",
"t1",
"join",
"allergy_type",
"as",
"t2",
"on",
"t1",
".",
"allergy",
"=",
"t2",
".",
"allergy",
"where",
"t2",
".",
"allergytype",
"=",
"value",
"or",
"t2",
".",
"allergytype",
"=",
"value",
")"
],
"question": "18歳以上で「food」アレルギーや「animal」アレルギーのない生徒は何人いますか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
8,
false
],
null
],
18.0,
null
],
"and",
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"food\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"animal\"",
null
]
],
"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": "allergy_1",
"query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")",
"query_toks": [
"SELECT",
"fname",
",",
"major",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Soy",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"major",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "「soy」に不満を持っていない学生の名と専攻を見つけてください。",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Soy\"",
null
]
],
"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": "allergy_1",
"query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")",
"query_toks": [
"SELECT",
"fname",
",",
"major",
"FROM",
"Student",
"WHERE",
"StuID",
"NOT",
"IN",
"(",
"SELECT",
"StuID",
"FROM",
"Has_allergy",
"WHERE",
"Allergy",
"=",
"``",
"Soy",
"''",
")"
],
"query_toks_no_value": [
"select",
"fname",
",",
"major",
"from",
"student",
"where",
"stuid",
"not",
"in",
"(",
"select",
"stuid",
"from",
"has_allergy",
"where",
"allergy",
"=",
"value",
")"
],
"question": "「soy」を摂取できる学生の名と専攻は何ですか?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
5,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
4,
false
],
null
],
"\"Soy\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
]