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": "Combien d'enseignants y a-t-il?",
"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": "Quel est le nombre total d'enseignants?",
"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": "Énumérez les noms des enseignants par ordre croissant d'âge.",
"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": "Quels sont les noms des enseignants classés par ordre croissant d'âge?",
"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": "Quels sont les âges et les villes d'origine des enseignants?",
"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": "Quel est l'âge et la ville d'origine de chaque enseignant?",
"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": "Indiquez le nom des enseignants dont la ville natale n'est pas «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": "Quels sont les noms des enseignants dont la ville natale n'est pas «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": "Affichez le nom des enseignants âgés de 32 ou 33 ans.",
"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": "Quels sont les noms des enseignants âgés de 32 ou 33 ans?",
"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": "Quelle est la ville natale du plus jeune enseignant?",
"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": "D'où vient le plus jeune enseignant?",
"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": "Affichez les différentes villes d'origine des enseignants et le nombre d'enseignants de chaque ville d'origine.",
"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": "Pour chaque ville natale, combien d'enseignants y a-t-il?",
"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": "Listez la ville natale la plus commune des enseignants.",
"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": "Quelles sont les villes natales les plus communes pour les enseignants?",
"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": "Montrez les villes d'origine partagées par au moins deux enseignants.",
"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": "Quelles sont les villes d'où viennent au moins deux enseignants?",
"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": "Affichez les noms des enseignants et les cours qu'ils sont censés dispenser.",
"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": "Quel est le nom de chaque enseignant et quel cours ils enseignent?",
"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": "Affichez les noms des enseignants et les cours pour lesquels ils sont organisés par ordre alphabétique croissant du nom de l'enseignant.",
"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": "Quels sont les noms des enseignants et les cours qu'ils enseignent, par ordre alphabétique croissant du nom de l'enseignant?",
"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": "Montrez le nom de l'enseignant du cours de mathématiques.",
"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": "Quels sont les noms des personnes qui enseignent les cours de mathématiques?",
"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": "Affichez les noms des enseignants et le nombre de cours qu'ils enseignent.",
"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": "Quels sont les noms des enseignants et combien de cours dispensent-ils?",
"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": "Affichez les noms des enseignants qui enseignent au moins deux cours.",
"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": "Quels sont les noms des enseignants qui enseignent au moins deux cours?",
"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": "Listez des noms des enseignants qui n'ont pas été organisés pour donner des cours.",
"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": "Quels sont les noms des enseignants dont les cours n'ont pas été organisés?",
"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
}
}
]