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": "Wie viele Lehrenden gibt es?",
"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": "Wie viele Lehrenden gibt es insgesamt?",
"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": "Führen Sie die Namen der Lehrenden in aufsteigender Reihenfolge ihres Alters auf.",
"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": "Wie lauten die Namen der Lehrenden in aufsteigender Reihenfolge ihres Alters?",
"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": "Welches Alter und welchen Heimatort haben die Lehrenden?",
"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": "Wie alt sind die Lehrenden und woher kommen sie?",
"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": "Führen Sie die Namen von Lehrenden auf, deren Heimatort nicht „Little Lever Urban District“ ist.",
"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": "Wie lauten die Namen der Lehrenden, deren Heimatort nicht „Little Lever Urban District“ ist?",
"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": "Zeigen Sie die Namen der Lehrenden im Alter von 32 oder 33 Jahren an.",
"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": "Wie lauten die Namen der Lehrenden, die 32 oder 33 Jahre alt sind?",
"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": "Wo ist der Heimatort der/des jüngsten Lehrenden?",
"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": "Woher kommt die/der jüngste Lehrende?",
"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": "Zeigen Sie die verschiedenen Heimatorte der Lehrenden und die Anzahl der Lehrenden aus den einzelnen Heimatorten an.",
"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": "Wie viele Lehrenden gibt es in jeder Heimatort?",
"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": "Führen Sie den gebräuchlichsten Heimatort der Lehrenden auf.",
"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": "Was sind die gebräuchlichsten Heimatorte von Lehrenden?",
"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": "Zeigen Sie die Heimatorte an, aus denen mindestens zwei Lehrenden kommen.",
"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": "Aus welchen Städten kommen mindestens zwei Lehrenden?",
"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": "Zeigen Sie die Namen der Lehrenden und die Kurse, die sie unterrichten sollen.",
"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": "Wie lauten die Namen der/des einzelnen Lehrenden und welchen Kurs unterrichten sie?",
"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": "Zeigen Sie die Namen der Lehrenden und die Kurse, die sie unterrichten, in aufsteigender alphabetischer Reihenfolge des Namens der Lehrenden an.",
"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": "Wie lauten die Namen der Lehrenden und der Kurse, die sie unterrichten, in aufsteigender alphabetischer Reihenfolge nach dem Namen der Lehrenden?",
"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": "Zeigen Sie den Namen der Lehrenden für den Mathematikkurs an.",
"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": "Wie lauten die Namen der Personen, die Mathekurse unterrichten?",
"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": "Zeigen Sie die Namen der Lehrenden und die Anzahl der Kurse, die sie unterrichten.",
"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": "Wie lauten die Namen der Lehrenden und die Anzahl der Kurse, die sie unterrichten?",
"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": "Zeigen Sie die Namen der Lehrenden, die mindestens zwei Kurse unterrichten.",
"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": "Wie lauten die Namen der Lehrenden, die mindestens zwei Kurse unterrichten?",
"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": "Geben Sie die Namen der Lehrenden an, die nicht für das Unterrichten von Kursen vorgesehen sind.",
"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": "Wie lauten die Namen der Lehrenden, deren Kurse nicht vereinbart wurden?",
"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
}
}
]