dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "course_teach",
"query": "SELECT count(*) FROM teacher",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"teacher"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"teacher"
],
"question": "先生は何人いますか?",
"question_toks": [
"How",
"many",
"teachers",
"are",
"there",
"?"
],
"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": "course_teach",
"query": "SELECT count(*) FROM teacher",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"teacher"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"teacher"
],
"question": "先生の総人数は?",
"question_toks": [
"What",
"is",
"the",
"total",
"count",
"of",
"teachers",
"?"
],
"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": "course_teach",
"query": "SELECT Name FROM teacher ORDER BY Age ASC",
"query_toks": [
"SELECT",
"Name",
"FROM",
"teacher",
"ORDER",
"BY",
"Age",
"ASC"
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"order",
"by",
"age",
"asc"
],
"question": "年齢の高い順に先生の名前を並べる。",
"question_toks": [
"List",
"the",
"names",
"of",
"teachers",
"in",
"ascending",
"order",
"of",
"age",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
6,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Name FROM teacher ORDER BY Age ASC",
"query_toks": [
"SELECT",
"Name",
"FROM",
"teacher",
"ORDER",
"BY",
"Age",
"ASC"
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"order",
"by",
"age",
"asc"
],
"question": "年齢の高い順に先生の名前を並べる。",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"teachers",
"ordered",
"by",
"ascending",
"age",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
6,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Age , Hometown FROM teacher",
"query_toks": [
"SELECT",
"Age",
",",
"Hometown",
"FROM",
"teacher"
],
"query_toks_no_value": [
"select",
"age",
",",
"hometown",
"from",
"teacher"
],
"question": "先生の年齢と出身地は?",
"question_toks": [
"What",
"are",
"the",
"age",
"and",
"hometown",
"of",
"teachers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Age , Hometown FROM teacher",
"query_toks": [
"SELECT",
"Age",
",",
"Hometown",
"FROM",
"teacher"
],
"query_toks_no_value": [
"select",
"age",
",",
"hometown",
"from",
"teacher"
],
"question": "各先生の年齢と出身地は?",
"question_toks": [
"What",
"is",
"the",
"age",
"and",
"hometown",
"of",
"every",
"teacher",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
],
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "select name from teacher where hometown != \"little lever urban district\"",
"query_toks": [
"select",
"name",
"from",
"teacher",
"where",
"hometown",
"!=",
"\"little lever urban district\""
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"where",
"hometown",
"!",
"=",
"value"
],
"question": "出身地は「Little Lever Urban District」ではない先生の名前を示す。",
"question_toks": [
"List",
"the",
"name",
"of",
"teachers",
"whose",
"hometown",
"is",
"not",
"``",
"Little",
"Lever",
"Urban",
"District",
"''",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
7,
[
0,
[
0,
7,
false
],
null
],
"\"little lever urban district\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "select name from teacher where hometown != \"little lever urban district\"",
"query_toks": [
"select",
"name",
"from",
"teacher",
"where",
"hometown",
"!=",
"\"little lever urban district\""
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"where",
"hometown",
"!",
"=",
"value"
],
"question": "出身地は「Little Lever Urban District」ではない先生の名前は?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"teachers",
"whose",
"hometown",
"is",
"not",
"``",
"Little",
"Lever",
"Urban",
"District",
"''",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
7,
[
0,
[
0,
7,
false
],
null
],
"\"little lever urban district\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33",
"query_toks": [
"SELECT",
"Name",
"FROM",
"teacher",
"WHERE",
"Age",
"=",
"32",
"OR",
"Age",
"=",
"33"
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"where",
"age",
"=",
"value",
"or",
"age",
"=",
"value"
],
"question": "年齢が32歳あるいは33歳の先生の名前を並べる。",
"question_toks": [
"Show",
"the",
"name",
"of",
"teachers",
"aged",
"either",
"32",
"or",
"33",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
32,
null
],
"or",
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
33,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33",
"query_toks": [
"SELECT",
"Name",
"FROM",
"teacher",
"WHERE",
"Age",
"=",
"32",
"OR",
"Age",
"=",
"33"
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"where",
"age",
"=",
"value",
"or",
"age",
"=",
"value"
],
"question": "年齢が32歳あるいは33歳の先生の名前は?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"teachers",
"who",
"are",
"aged",
"either",
"32",
"or",
"33",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
32,
null
],
"or",
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
33,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1",
"query_toks": [
"SELECT",
"Hometown",
"FROM",
"teacher",
"ORDER",
"BY",
"Age",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"hometown",
"from",
"teacher",
"order",
"by",
"age",
"asc",
"limit",
"value"
],
"question": "一番若い先生の出身地はどこですか?",
"question_toks": [
"What",
"is",
"the",
"hometown",
"of",
"the",
"youngest",
"teacher",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
6,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1",
"query_toks": [
"SELECT",
"Hometown",
"FROM",
"teacher",
"ORDER",
"BY",
"Age",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"hometown",
"from",
"teacher",
"order",
"by",
"age",
"asc",
"limit",
"value"
],
"question": "一番若い先生の出身地はどこですか?",
"question_toks": [
"Where",
"is",
"the",
"youngest",
"teacher",
"from",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
6,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown",
"query_toks": [
"SELECT",
"Hometown",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"teacher",
"GROUP",
"BY",
"Hometown"
],
"query_toks_no_value": [
"select",
"hometown",
",",
"count",
"(",
"*",
")",
"from",
"teacher",
"group",
"by",
"hometown"
],
"question": "先生たちの出身地と各地での教師の人数を示す。",
"question_toks": [
"Show",
"different",
"hometown",
"of",
"teachers",
"and",
"the",
"number",
"of",
"teachers",
"from",
"each",
"hometown",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
7,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown",
"query_toks": [
"SELECT",
"Hometown",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"teacher",
"GROUP",
"BY",
"Hometown"
],
"query_toks_no_value": [
"select",
"hometown",
",",
"count",
"(",
"*",
")",
"from",
"teacher",
"group",
"by",
"hometown"
],
"question": "先生たちの出身地での教師の人数を示す。",
"question_toks": [
"For",
"each",
"hometown",
",",
"how",
"many",
"teachers",
"are",
"there",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
7,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"Hometown",
"FROM",
"teacher",
"GROUP",
"BY",
"Hometown",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"hometown",
"from",
"teacher",
"group",
"by",
"hometown",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "教師の出身地として最も多いものを挙げてください。",
"question_toks": [
"List",
"the",
"most",
"common",
"hometown",
"of",
"teachers",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
7,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"Hometown",
"FROM",
"teacher",
"GROUP",
"BY",
"Hometown",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"hometown",
"from",
"teacher",
"group",
"by",
"hometown",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "教師の出身地として最も多いところはどこですか?",
"question_toks": [
"What",
"is",
"the",
"most",
"commmon",
"hometowns",
"for",
"teachers",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
7,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2",
"query_toks": [
"SELECT",
"Hometown",
"FROM",
"teacher",
"GROUP",
"BY",
"Hometown",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"hometown",
"from",
"teacher",
"group",
"by",
"hometown",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "2人以上の教師を送り出す地方を示す。",
"question_toks": [
"Show",
"the",
"hometowns",
"shared",
"by",
"at",
"least",
"two",
"teachers",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
7,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2",
"query_toks": [
"SELECT",
"Hometown",
"FROM",
"teacher",
"GROUP",
"BY",
"Hometown",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"hometown",
"from",
"teacher",
"group",
"by",
"hometown",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "どの地域には2人以上の教師が送り出したのか?",
"question_toks": [
"What",
"are",
"the",
"towns",
"from",
"which",
"at",
"least",
"two",
"teachers",
"come",
"from",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
7,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID",
"query_toks": [
"SELECT",
"T3.Name",
",",
"T2.Course",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"course",
"AS",
"T2",
"ON",
"T1.Course_ID",
"=",
"T2.Course_ID",
"JOIN",
"teacher",
"AS",
"T3",
"ON",
"T1.Teacher_ID",
"=",
"T3.Teacher_ID"
],
"query_toks_no_value": [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"course",
"from",
"course_arrange",
"as",
"t1",
"join",
"course",
"as",
"t2",
"on",
"t1",
".",
"course_id",
"=",
"t2",
".",
"course_id",
"join",
"teacher",
"as",
"t3",
"on",
"t1",
".",
"teacher_id",
"=",
"t3",
".",
"teacher_id"
],
"question": "先生の名前と担当するコース名を示す。",
"question_toks": [
"Show",
"names",
"of",
"teachers",
"and",
"the",
"courses",
"they",
"are",
"arranged",
"to",
"teach",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID",
"query_toks": [
"SELECT",
"T3.Name",
",",
"T2.Course",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"course",
"AS",
"T2",
"ON",
"T1.Course_ID",
"=",
"T2.Course_ID",
"JOIN",
"teacher",
"AS",
"T3",
"ON",
"T1.Teacher_ID",
"=",
"T3.Teacher_ID"
],
"query_toks_no_value": [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"course",
"from",
"course_arrange",
"as",
"t1",
"join",
"course",
"as",
"t2",
"on",
"t1",
".",
"course_id",
"=",
"t2",
".",
"course_id",
"join",
"teacher",
"as",
"t3",
"on",
"t1",
".",
"teacher_id",
"=",
"t3",
".",
"teacher_id"
],
"question": "各先生の名前とそれぞれ担当するコース名は何ですか?",
"question_toks": [
"What",
"is",
"the",
"name",
"of",
"each",
"teacher",
"and",
"what",
"course",
"they",
"teach",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name",
"query_toks": [
"SELECT",
"T3.Name",
",",
"T2.Course",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"course",
"AS",
"T2",
"ON",
"T1.Course_ID",
"=",
"T2.Course_ID",
"JOIN",
"teacher",
"AS",
"T3",
"ON",
"T1.Teacher_ID",
"=",
"T3.Teacher_ID",
"ORDER",
"BY",
"T3.Name"
],
"query_toks_no_value": [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"course",
"from",
"course_arrange",
"as",
"t1",
"join",
"course",
"as",
"t2",
"on",
"t1",
".",
"course_id",
"=",
"t2",
".",
"course_id",
"join",
"teacher",
"as",
"t3",
"on",
"t1",
".",
"teacher_id",
"=",
"t3",
".",
"teacher_id",
"order",
"by",
"t3",
".",
"name"
],
"question": "アルファベット順で先生の名前とそれぞれ担当するコース名を並べる。",
"question_toks": [
"Show",
"names",
"of",
"teachers",
"and",
"the",
"courses",
"they",
"are",
"arranged",
"to",
"teach",
"in",
"ascending",
"alphabetical",
"order",
"of",
"the",
"teacher",
"'s",
"name",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
5,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name",
"query_toks": [
"SELECT",
"T3.Name",
",",
"T2.Course",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"course",
"AS",
"T2",
"ON",
"T1.Course_ID",
"=",
"T2.Course_ID",
"JOIN",
"teacher",
"AS",
"T3",
"ON",
"T1.Teacher_ID",
"=",
"T3.Teacher_ID",
"ORDER",
"BY",
"T3.Name"
],
"query_toks_no_value": [
"select",
"t3",
".",
"name",
",",
"t2",
".",
"course",
"from",
"course_arrange",
"as",
"t1",
"join",
"course",
"as",
"t2",
"on",
"t1",
".",
"course_id",
"=",
"t2",
".",
"course_id",
"join",
"teacher",
"as",
"t3",
"on",
"t1",
".",
"teacher_id",
"=",
"t3",
".",
"teacher_id",
"order",
"by",
"t3",
".",
"name"
],
"question": "アルファベット順で先生の名前とそれぞれ担当するコース名を並べる。",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"teachers",
"and",
"the",
"courses",
"they",
"teach",
"in",
"ascending",
"alphabetical",
"order",
"by",
"the",
"name",
"of",
"the",
"teacher",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
5,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"",
"query_toks": [
"SELECT",
"T3.Name",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"course",
"AS",
"T2",
"ON",
"T1.Course_ID",
"=",
"T2.Course_ID",
"JOIN",
"teacher",
"AS",
"T3",
"ON",
"T1.Teacher_ID",
"=",
"T3.Teacher_ID",
"WHERE",
"T2.Course",
"=",
"``",
"Math",
"''"
],
"query_toks_no_value": [
"select",
"t3",
".",
"name",
"from",
"course_arrange",
"as",
"t1",
"join",
"course",
"as",
"t2",
"on",
"t1",
".",
"course_id",
"=",
"t2",
".",
"course_id",
"join",
"teacher",
"as",
"t3",
"on",
"t1",
".",
"teacher_id",
"=",
"t3",
".",
"teacher_id",
"where",
"t2",
".",
"course",
"=",
"value"
],
"question": "「Math」を教える先生の名前を示す。",
"question_toks": [
"Show",
"the",
"name",
"of",
"the",
"teacher",
"for",
"the",
"math",
"course",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
"\"Math\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"",
"query_toks": [
"SELECT",
"T3.Name",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"course",
"AS",
"T2",
"ON",
"T1.Course_ID",
"=",
"T2.Course_ID",
"JOIN",
"teacher",
"AS",
"T3",
"ON",
"T1.Teacher_ID",
"=",
"T3.Teacher_ID",
"WHERE",
"T2.Course",
"=",
"``",
"Math",
"''"
],
"query_toks_no_value": [
"select",
"t3",
".",
"name",
"from",
"course_arrange",
"as",
"t1",
"join",
"course",
"as",
"t2",
"on",
"t1",
".",
"course_id",
"=",
"t2",
".",
"course_id",
"join",
"teacher",
"as",
"t3",
"on",
"t1",
".",
"teacher_id",
"=",
"t3",
".",
"teacher_id",
"where",
"t2",
".",
"course",
"=",
"value"
],
"question": "「Math」を教えている先生の名前は何ですか?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"people",
"who",
"teach",
"math",
"courses",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
[
0,
1,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
"\"Math\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",
"query_toks": [
"SELECT",
"T2.Name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"teacher",
"AS",
"T2",
"ON",
"T1.Teacher_ID",
"=",
"T2.Teacher_ID",
"GROUP",
"BY",
"T2.Name"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"course_arrange",
"as",
"t1",
"join",
"teacher",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"group",
"by",
"t2",
".",
"name"
],
"question": "先生の名前とコースの数を示す。",
"question_toks": [
"Show",
"names",
"of",
"teachers",
"and",
"the",
"number",
"of",
"courses",
"they",
"teach",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
5,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",
"query_toks": [
"SELECT",
"T2.Name",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"teacher",
"AS",
"T2",
"ON",
"T1.Teacher_ID",
"=",
"T2.Teacher_ID",
"GROUP",
"BY",
"T2.Name"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
",",
"count",
"(",
"*",
")",
"from",
"course_arrange",
"as",
"t1",
"join",
"teacher",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"group",
"by",
"t2",
".",
"name"
],
"question": "先生たちの名前とそれぞれ担当するコースの数は?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"teachers",
"and",
"how",
"many",
"courses",
"do",
"they",
"teach",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
5,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2",
"query_toks": [
"SELECT",
"T2.Name",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"teacher",
"AS",
"T2",
"ON",
"T1.Teacher_ID",
"=",
"T2.Teacher_ID",
"GROUP",
"BY",
"T2.Name",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
"from",
"course_arrange",
"as",
"t1",
"join",
"teacher",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"group",
"by",
"t2",
".",
"name",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "二つ以上の授業がある先生の名前を示す。",
"question_toks": [
"Show",
"names",
"of",
"teachers",
"that",
"teach",
"at",
"least",
"two",
"courses",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
5,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2",
"query_toks": [
"SELECT",
"T2.Name",
"FROM",
"course_arrange",
"AS",
"T1",
"JOIN",
"teacher",
"AS",
"T2",
"ON",
"T1.Teacher_ID",
"=",
"T2.Teacher_ID",
"GROUP",
"BY",
"T2.Name",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"2"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
"from",
"course_arrange",
"as",
"t1",
"join",
"teacher",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"group",
"by",
"t2",
".",
"name",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "二つ以上の授業がある先生の名前は?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"teachers",
"who",
"teach",
"at",
"least",
"two",
"courses",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
5,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
2,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "course_teach",
"query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)",
"query_toks": [
"SELECT",
"Name",
"FROM",
"teacher",
"WHERE",
"Teacher_id",
"NOT",
"IN",
"(",
"SELECT",
"Teacher_id",
"FROM",
"course_arrange",
")"
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"where",
"teacher_id",
"not",
"in",
"(",
"select",
"teacher_id",
"from",
"course_arrange",
")"
],
"question": "授業がない先生の名前を並べる。",
"question_toks": [
"List",
"the",
"names",
"of",
"teachers",
"who",
"have",
"not",
"been",
"arranged",
"to",
"teach",
"courses",
"."
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
4,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
9,
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": "course_teach",
"query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)",
"query_toks": [
"SELECT",
"Name",
"FROM",
"teacher",
"WHERE",
"Teacher_id",
"NOT",
"IN",
"(",
"SELECT",
"Teacher_id",
"FROM",
"course_arrange",
")"
],
"query_toks_no_value": [
"select",
"name",
"from",
"teacher",
"where",
"teacher_id",
"not",
"in",
"(",
"select",
"teacher_id",
"from",
"course_arrange",
")"
],
"question": "授業がない先生の名前は?",
"question_toks": [
"What",
"are",
"the",
"names",
"of",
"the",
"teachers",
"whose",
"courses",
"have",
"not",
"been",
"arranged",
"?"
],
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
4,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
9,
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
}
}
]