dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "behavior_monitoring",
"query": "SELECT count(*) FROM ASSESSMENT_NOTES",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ASSESSMENT_NOTES"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"assessment_notes"
],
"question": "¿Cuántas notas de evaluación hay en total?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT date_of_notes FROM Assessment_Notes",
"query_toks": [
"SELECT",
"date_of_notes",
"FROM",
"Assessment_Notes"
],
"query_toks_no_value": [
"select",
"date_of_notes",
"from",
"assessment_notes"
],
"question": "¿Cuáles son las fechas de las notas de evaluación?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
38,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT count(*) FROM ADDRESSES WHERE zip_postcode = \"197\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ADDRESSES",
"WHERE",
"zip_postcode",
"=",
"``",
"197",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"addresses",
"where",
"zip_postcode",
"=",
"value"
],
"question": "¿Cuántas direcciones tienen el código postal ''197''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"197\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT count(DISTINCT incident_type_code) FROM Behavior_Incident",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"incident_type_code",
")",
"FROM",
"Behavior_Incident"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"incident_type_code",
")",
"from",
"behavior_incident"
],
"question": "¿Cuántos códigos distintos de tipos de incidentes existen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
42,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT DISTINCT detention_type_code FROM Detention",
"query_toks": [
"SELECT",
"DISTINCT",
"detention_type_code",
"FROM",
"Detention"
],
"query_toks_no_value": [
"select",
"distinct",
"detention_type_code",
"from",
"detention"
],
"question": "Devuelva todos los códigos de tipo de detención distintos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
8
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
50,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT date_incident_start , date_incident_end FROM Behavior_Incident WHERE incident_type_code = \"NOISE\"",
"query_toks": [
"SELECT",
"date_incident_start",
",",
"date_incident_end",
"FROM",
"Behavior_Incident",
"WHERE",
"incident_type_code",
"=",
"``",
"NOISE",
"''"
],
"query_toks_no_value": [
"select",
"date_incident_start",
",",
"date_incident_end",
"from",
"behavior_incident",
"where",
"incident_type_code",
"=",
"value"
],
"question": "¿Cuáles son las fechas de inicio y finalización de los incidentes con el código de tipo de incidente \"NOISE\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
44,
false
],
null
]
],
[
0,
[
0,
[
0,
45,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
42,
false
],
null
],
"\"NOISE\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT detention_summary FROM Detention",
"query_toks": [
"SELECT",
"detention_summary",
"FROM",
"Detention"
],
"query_toks_no_value": [
"select",
"detention_summary",
"from",
"detention"
],
"question": "Devuelva todos los resúmenes de detención.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
8
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
54,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT cell_mobile_number , email_address FROM STUDENTS",
"query_toks": [
"SELECT",
"cell_mobile_number",
",",
"email_address",
"FROM",
"STUDENTS"
],
"query_toks_no_value": [
"select",
"cell_mobile_number",
",",
"email_address",
"from",
"students"
],
"question": "Devuelva el número de móvil y la dirección de correo electrónico de todos los estudiantes.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
21,
false
],
null
]
],
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT email_address FROM Students WHERE first_name = \"Emma\" AND last_name = \"Rohan\"",
"query_toks": [
"SELECT",
"email_address",
"FROM",
"Students",
"WHERE",
"first_name",
"=",
"``",
"Emma",
"''",
"AND",
"last_name",
"=",
"``",
"Rohan",
"''"
],
"query_toks_no_value": [
"select",
"email_address",
"from",
"students",
"where",
"first_name",
"=",
"value",
"and",
"last_name",
"=",
"value"
],
"question": "¿Cuál es el correo electrónico del estudiante con nombre \"Emma\" y apellido \"Rohan\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
"\"Emma\"",
null
],
"and",
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Rohan\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT count(DISTINCT student_id) FROM Students_in_Detention",
"query_toks": [
"SELECT",
"count",
"(",
"DISTINCT",
"student_id",
")",
"FROM",
"Students_in_Detention"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"student_id",
")",
"from",
"students_in_detention"
],
"question": "¿Cuántos estudiantes distintos han estado detenidos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
62,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT gender FROM TEACHERS WHERE last_name = \"Medhurst\"",
"query_toks": [
"SELECT",
"gender",
"FROM",
"TEACHERS",
"WHERE",
"last_name",
"=",
"``",
"Medhurst",
"''"
],
"query_toks_no_value": [
"select",
"gender",
"from",
"teachers",
"where",
"last_name",
"=",
"value"
],
"question": "¿Cuál es el sexo del profesor con apellido \"Medhurst\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
31,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
30,
false
],
null
],
"\"Medhurst\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = \"VIOLENCE\"",
"query_toks": [
"SELECT",
"incident_type_description",
"FROM",
"Ref_Incident_Type",
"WHERE",
"incident_type_code",
"=",
"``",
"VIOLENCE",
"''"
],
"query_toks_no_value": [
"select",
"incident_type_description",
"from",
"ref_incident_type",
"where",
"incident_type_code",
"=",
"value"
],
"question": "¿Cuál es la descripción del tipo de incidente para el tipo de incidente con el código \"VIOLENCE\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
"\"VIOLENCE\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses",
"query_toks": [
"SELECT",
"max",
"(",
"monthly_rental",
")",
",",
"min",
"(",
"monthly_rental",
")",
"FROM",
"Student_Addresses"
],
"query_toks_no_value": [
"select",
"max",
"(",
"monthly_rental",
")",
",",
"min",
"(",
"monthly_rental",
")",
"from",
"student_addresses"
],
"question": "Encuentre el alquiler mensual máximo y mínimo para todas las direcciones de los estudiantes.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
9
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
60,
false
],
null
]
],
[
2,
[
0,
[
0,
60,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT first_name FROM Teachers WHERE email_address LIKE '%man%'",
"query_toks": [
"SELECT",
"first_name",
"FROM",
"Teachers",
"WHERE",
"email_address",
"LIKE",
"'",
"%",
"man",
"%",
"'"
],
"query_toks_no_value": [
"select",
"first_name",
"from",
"teachers",
"where",
"email_address",
"like",
"value"
],
"question": "Busque los nombres de los profesores cuya dirección de correo electrónico contenga la palabra \"man\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
28,
false
],
null
]
]
]
],
"where": [
[
false,
9,
[
0,
[
0,
33,
false
],
null
],
"\"%man%\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT * FROM Assessment_Notes ORDER BY date_of_notes ASC",
"query_toks": [
"SELECT",
"*",
"FROM",
"Assessment_Notes",
"ORDER",
"BY",
"date_of_notes",
"ASC"
],
"query_toks_no_value": [
"select",
"*",
"from",
"assessment_notes",
"order",
"by",
"date_of_notes",
"asc"
],
"question": "Enumere toda la información sobre las notas de evaluación ordenada por fecha en orden ascendente.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
38,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT city FROM Addresses ORDER BY city",
"query_toks": [
"SELECT",
"city",
"FROM",
"Addresses",
"ORDER",
"BY",
"city"
],
"query_toks_no_value": [
"select",
"city",
"from",
"addresses",
"order",
"by",
"city"
],
"question": "Enumere todas las ciudades de direcciones en orden alfabético.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
11,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT first_name , last_name FROM Teachers ORDER BY last_name",
"query_toks": [
"SELECT",
"first_name",
",",
"last_name",
"FROM",
"Teachers",
"ORDER",
"BY",
"last_name"
],
"query_toks_no_value": [
"select",
"first_name",
",",
"last_name",
"from",
"teachers",
"order",
"by",
"last_name"
],
"question": "Busque los nombres y apellidos de los profesores en orden alfabético de apellido.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
28,
false
],
null
]
],
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
30,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC",
"query_toks": [
"SELECT",
"*",
"FROM",
"Student_Addresses",
"ORDER",
"BY",
"monthly_rental",
"DESC"
],
"query_toks_no_value": [
"select",
"*",
"from",
"student_addresses",
"order",
"by",
"monthly_rental",
"desc"
],
"question": "Encuentre toda la información sobre las direcciones de los estudiantes y ordene por alquiler mensual en orden descendente.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
9
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
60,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.student_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.student_id",
",",
"T2.first_name",
"FROM",
"Assessment_Notes",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.student_id",
"=",
"T2.student_id",
"GROUP",
"BY",
"T1.student_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"student_id",
",",
"t2",
".",
"first_name",
"from",
"assessment_notes",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"student_id",
"=",
"t2",
".",
"student_id",
"group",
"by",
"t1",
".",
"student_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Encuentre la identificación y el nombre del estudiante que tiene la mayor cantidad de notas de evaluación.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
36,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
36,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
36,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.teacher_id , T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 3",
"query_toks": [
"SELECT",
"T1.teacher_id",
",",
"T2.first_name",
"FROM",
"Assessment_Notes",
"AS",
"T1",
"JOIN",
"Teachers",
"AS",
"T2",
"ON",
"T1.teacher_id",
"=",
"T2.teacher_id",
"GROUP",
"BY",
"T1.teacher_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"3"
],
"query_toks_no_value": [
"select",
"t1",
".",
"teacher_id",
",",
"t2",
".",
"first_name",
"from",
"assessment_notes",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"group",
"by",
"t1",
".",
"teacher_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Encuentre la identidicación y nombres de los 3 profesores que tienen la mayor cantidad de notas de evaluación.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
37,
false
],
null
],
[
0,
26,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
37,
false
],
null
]
],
[
0,
[
0,
[
0,
28,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
37,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 3,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.student_id , T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.student_id",
",",
"T2.last_name",
"FROM",
"Behavior_Incident",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.student_id",
"=",
"T2.student_id",
"GROUP",
"BY",
"T1.student_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"student_id",
",",
"t2",
".",
"last_name",
"from",
"behavior_incident",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"student_id",
"=",
"t2",
".",
"student_id",
"group",
"by",
"t1",
".",
"student_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Encuentre la identificación y apellido del estudiante que tiene más incidentes de comportamiento.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
43,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
43,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
43,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.teacher_id , T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = \"AFTER\" GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.teacher_id",
",",
"T2.last_name",
"FROM",
"Detention",
"AS",
"T1",
"JOIN",
"Teachers",
"AS",
"T2",
"ON",
"T1.teacher_id",
"=",
"T2.teacher_id",
"WHERE",
"T1.detention_type_code",
"=",
"``",
"AFTER",
"''",
"GROUP",
"BY",
"T1.teacher_id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"teacher_id",
",",
"t2",
".",
"last_name",
"from",
"detention",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"where",
"t1",
".",
"detention_type_code",
"=",
"value",
"group",
"by",
"t1",
".",
"teacher_id",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Encuentre la identificación y apellido del maestro que tiene más detenciones con el código de tipo de detención \"AFTER\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
8
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
51,
false
],
null
],
[
0,
26,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
51,
false
],
null
]
],
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
50,
false
],
null
],
"\"AFTER\"",
null
]
],
"groupBy": [
[
0,
51,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.student_id , T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.student_id",
",",
"T2.first_name",
"FROM",
"Student_Addresses",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.student_id",
"=",
"T2.student_id",
"GROUP",
"BY",
"T1.student_id",
"ORDER",
"BY",
"AVG",
"(",
"monthly_rental",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"student_id",
",",
"t2",
".",
"first_name",
"from",
"student_addresses",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"student_id",
"=",
"t2",
".",
"student_id",
"group",
"by",
"t1",
".",
"student_id",
"order",
"by",
"avg",
"(",
"monthly_rental",
")",
"desc",
"limit",
"value"
],
"question": "¿Cuáles son la identificación y el nombre del estudiante cuyas direcciones tienen el alquiler mensual medio más alto?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
9
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
56,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
56,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
56,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
5,
60,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T2.address_id , T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T2.address_id",
",",
"T1.city",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Student_Addresses",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"GROUP",
"BY",
"T2.address_id",
"ORDER",
"BY",
"AVG",
"(",
"monthly_rental",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t2",
".",
"address_id",
",",
"t1",
".",
"city",
"from",
"addresses",
"as",
"t1",
"join",
"student_addresses",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"group",
"by",
"t2",
".",
"address_id",
"order",
"by",
"avg",
"(",
"monthly_rental",
")",
"desc",
"limit",
"value"
],
"question": "Encuentre la identificación y la ciudad de la dirección del estudiante con el alquiler mensual medio más alto.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
9
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
57,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
57,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
57,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
5,
60,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.incident_type_code , T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.incident_type_code",
",",
"T2.incident_type_description",
"FROM",
"Behavior_Incident",
"AS",
"T1",
"JOIN",
"Ref_Incident_Type",
"AS",
"T2",
"ON",
"T1.incident_type_code",
"=",
"T2.incident_type_code",
"GROUP",
"BY",
"T1.incident_type_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"incident_type_code",
",",
"t2",
".",
"incident_type_description",
"from",
"behavior_incident",
"as",
"t1",
"join",
"ref_incident_type",
"as",
"t2",
"on",
"t1",
".",
"incident_type_code",
"=",
"t2",
".",
"incident_type_code",
"group",
"by",
"t1",
".",
"incident_type_code",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "¿Cuáles son el código y la descripción del tipo de incidente de comportamiento más frecuente?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
42,
false
],
null
],
[
0,
5,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
42,
false
],
null
]
],
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
42,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"T1.detention_type_code",
",",
"T2.detention_type_description",
"FROM",
"Detention",
"AS",
"T1",
"JOIN",
"Ref_Detention_Type",
"AS",
"T2",
"ON",
"T1.detention_type_code",
"=",
"T2.detention_type_code",
"GROUP",
"BY",
"T1.detention_type_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"detention_type_code",
",",
"t2",
".",
"detention_type_description",
"from",
"detention",
"as",
"t1",
"join",
"ref_detention_type",
"as",
"t2",
"on",
"t1",
".",
"detention_type_code",
"=",
"t2",
".",
"detention_type_code",
"group",
"by",
"t1",
".",
"detention_type_code",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "¿Cuáles son el código y la descripción del tipo de detención menos frecuente?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
8
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
50,
false
],
null
],
[
0,
3,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
50,
false
],
null
]
],
[
0,
[
0,
[
0,
4,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
50,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = \"Fanny\"",
"query_toks": [
"SELECT",
"T1.date_of_notes",
"FROM",
"Assessment_Notes",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.student_id",
"=",
"T2.student_id",
"WHERE",
"T2.first_name",
"=",
"``",
"Fanny",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"date_of_notes",
"from",
"assessment_notes",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"student_id",
"=",
"t2",
".",
"student_id",
"where",
"t2",
".",
"first_name",
"=",
"value"
],
"question": "Encuentre las fechas de las notas de evaluación para los estudiantes con el nombre \"Fanny\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
36,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
38,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
"\"Fanny\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schuster\"",
"query_toks": [
"SELECT",
"T1.text_of_notes",
"FROM",
"Assessment_Notes",
"AS",
"T1",
"JOIN",
"Teachers",
"AS",
"T2",
"ON",
"T1.teacher_id",
"=",
"T2.teacher_id",
"WHERE",
"T2.last_name",
"=",
"``",
"Schuster",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"text_of_notes",
"from",
"assessment_notes",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"where",
"t2",
".",
"last_name",
"=",
"value"
],
"question": "Encuentre los textos de notas de evaluación para profesores con apellido \"Schuster\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
37,
false
],
null
],
[
0,
26,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
39,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
30,
false
],
null
],
"\"Schuster\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.date_incident_start , date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = \"Fahey\"",
"query_toks": [
"SELECT",
"T1.date_incident_start",
",",
"date_incident_end",
"FROM",
"Behavior_Incident",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.student_id",
"=",
"T2.student_id",
"WHERE",
"T2.last_name",
"=",
"``",
"Fahey",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"date_incident_start",
",",
"date_incident_end",
"from",
"behavior_incident",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"student_id",
"=",
"t2",
".",
"student_id",
"where",
"t2",
".",
"last_name",
"=",
"value"
],
"question": "Encuentre las fechas de inicio y finalización de los incidentes de comportamiento de los estudiantes con apellido \"Fahey\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
43,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
44,
false
],
null
]
],
[
0,
[
0,
[
0,
45,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Fahey\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.datetime_detention_start , datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schultz\"",
"query_toks": [
"SELECT",
"T1.datetime_detention_start",
",",
"datetime_detention_end",
"FROM",
"Detention",
"AS",
"T1",
"JOIN",
"Teachers",
"AS",
"T2",
"ON",
"T1.teacher_id",
"=",
"T2.teacher_id",
"WHERE",
"T2.last_name",
"=",
"``",
"Schultz",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"datetime_detention_start",
",",
"datetime_detention_end",
"from",
"detention",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id",
"where",
"t2",
".",
"last_name",
"=",
"value"
],
"question": "Encuentre las fechas de inicio y finalización de las detenciones de profesores con apellido \"Schultz\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
8
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
51,
false
],
null
],
[
0,
26,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
52,
false
],
null
]
],
[
0,
[
0,
[
0,
53,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
30,
false
],
null
],
"\"Schultz\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T2.address_id , T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1",
"query_toks": [
"SELECT",
"T2.address_id",
",",
"T1.zip_postcode",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Student_Addresses",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"ORDER",
"BY",
"monthly_rental",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t2",
".",
"address_id",
",",
"t1",
".",
"zip_postcode",
"from",
"addresses",
"as",
"t1",
"join",
"student_addresses",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"order",
"by",
"monthly_rental",
"desc",
"limit",
"value"
],
"question": "¿Cuáles son la identificación y el código postal de la dirección con el alquiler mensual más alto?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
9
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
57,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
57,
false
],
null
]
],
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
0,
60,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental ASC LIMIT 1",
"query_toks": [
"SELECT",
"T2.cell_mobile_number",
"FROM",
"Student_Addresses",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.student_id",
"=",
"T2.student_id",
"ORDER",
"BY",
"T1.monthly_rental",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t2",
".",
"cell_mobile_number",
"from",
"student_addresses",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"student_id",
"=",
"t2",
".",
"student_id",
"order",
"by",
"t1",
".",
"monthly_rental",
"asc",
"limit",
"value"
],
"question": "¿Cuál es el número de móvil del estudiante cuya dirección tiene el alquiler mensual más bajo?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
9
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
56,
false
],
null
],
[
0,
16,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
21,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
60,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Texas\"",
"query_toks": [
"SELECT",
"T2.monthly_rental",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Student_Addresses",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"WHERE",
"T1.state_province_county",
"=",
"``",
"Texas",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"monthly_rental",
"from",
"addresses",
"as",
"t1",
"join",
"student_addresses",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"where",
"t1",
".",
"state_province_county",
"=",
"value"
],
"question": "¿Cuáles son los alquileres mensuales de las direcciones de los estudiantes en el estado de ''Texas''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
9
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
57,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
60,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
"\"Texas\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T2.first_name , T2.last_name FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = \"Wisconsin\"",
"query_toks": [
"SELECT",
"T2.first_name",
",",
"T2.last_name",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"WHERE",
"T1.state_province_county",
"=",
"``",
"Wisconsin",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"first_name",
",",
"t2",
".",
"last_name",
"from",
"addresses",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"where",
"t1",
".",
"state_province_county",
"=",
"value"
],
"question": "¿Cuáles son los nombres y apellidos de los estudiantes con domicilio en el estado de ''Wisconsin''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
17,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
"\"Wisconsin\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.line_1 , avg(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id",
"query_toks": [
"SELECT",
"T1.line_1",
",",
"avg",
"(",
"T2.monthly_rental",
")",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Student_Addresses",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"GROUP",
"BY",
"T2.address_id"
],
"query_toks_no_value": [
"select",
"t1",
".",
"line_1",
",",
"avg",
"(",
"t2",
".",
"monthly_rental",
")",
"from",
"addresses",
"as",
"t1",
"join",
"student_addresses",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"group",
"by",
"t2",
".",
"address_id"
],
"question": "¿Cuáles son la línea 1 y los alquileres mensuales medios de todas las direcciones de los estudiantes?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
9
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
57,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
],
[
5,
[
0,
[
0,
60,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
57,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = \"Lyla\"",
"query_toks": [
"SELECT",
"T1.zip_postcode",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Teachers",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"WHERE",
"T2.first_name",
"=",
"``",
"Lyla",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"zip_postcode",
"from",
"addresses",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"where",
"t2",
".",
"first_name",
"=",
"value"
],
"question": "¿Cuál es el código postal de la dirección donde vive la profesora con el nombre \"Lyla\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
27,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
12,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
28,
false
],
null
],
"\"Lyla\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\"",
"query_toks": [
"SELECT",
"T2.email_address",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Teachers",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"WHERE",
"T1.zip_postcode",
"=",
"``",
"918",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"email_address",
"from",
"addresses",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"where",
"t1",
".",
"zip_postcode",
"=",
"value"
],
"question": "¿Cuáles son las direcciones de correo electrónico de los profesores cuya dirección tiene el código postal \"918\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
27,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
33,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"918\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT count(*) FROM STUDENTS WHERE student_id NOT IN ( SELECT student_id FROM Behavior_Incident )",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"STUDENTS",
"WHERE",
"student_id",
"NOT",
"IN",
"(",
"SELECT",
"student_id",
"FROM",
"Behavior_Incident",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"students",
"where",
"student_id",
"not",
"in",
"(",
"select",
"student_id",
"from",
"behavior_incident",
")"
],
"question": "¿Cuántos estudiantes no están involucrados en ningún incidente de conducta?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
16,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
43,
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": "behavior_monitoring",
"query": "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id",
"query_toks": [
"SELECT",
"last_name",
"FROM",
"Teachers",
"EXCEPT",
"SELECT",
"T1.last_name",
"FROM",
"Teachers",
"AS",
"T1",
"JOIN",
"Detention",
"AS",
"T2",
"ON",
"T1.teacher_id",
"=",
"T2.teacher_id"
],
"query_toks_no_value": [
"select",
"last_name",
"from",
"teachers",
"except",
"select",
"t1",
".",
"last_name",
"from",
"teachers",
"as",
"t1",
"join",
"detention",
"as",
"t2",
"on",
"t1",
".",
"teacher_id",
"=",
"t2",
".",
"teacher_id"
],
"question": "Busque los apellidos de los profesores que no estén involucrados en ninguna detención.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
8
]
],
"conds": [
[
false,
2,
[
0,
[
0,
26,
false
],
null
],
[
0,
51,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "behavior_monitoring",
"query": "SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id",
"query_toks": [
"SELECT",
"T1.line_1",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Students",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id",
"INTERSECT",
"SELECT",
"T1.line_1",
"FROM",
"Addresses",
"AS",
"T1",
"JOIN",
"Teachers",
"AS",
"T2",
"ON",
"T1.address_id",
"=",
"T2.address_id"
],
"query_toks_no_value": [
"select",
"t1",
".",
"line_1",
"from",
"addresses",
"as",
"t1",
"join",
"students",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id",
"intersect",
"select",
"t1",
".",
"line_1",
"from",
"addresses",
"as",
"t1",
"join",
"teachers",
"as",
"t2",
"on",
"t1",
".",
"address_id",
"=",
"t2",
".",
"address_id"
],
"question": "¿Cuáles son la línea 1 de direcciones compartidas por algunos estudiantes y algunos profesores?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
27,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
3
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
[
0,
27,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
}
}
]