dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Ref_calendar",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Ref_calendar"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"ref_calendar"
],
"question": "¿Cuántos elementos de calendario tenemos?",
"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": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Ref_calendar",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Ref_calendar"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"ref_calendar"
],
"question": "Cuente el número de todos los elementos del calendario.",
"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": "cre_Doc_Tracking_DB",
"query": "SELECT calendar_date , day_Number FROM Ref_calendar",
"query_toks": [
"SELECT",
"calendar_date",
",",
"day_Number",
"FROM",
"Ref_calendar"
],
"query_toks_no_value": [
"select",
"calendar_date",
",",
"day_number",
"from",
"ref_calendar"
],
"question": "Muestre todas las fechas del calendario y los números de los días.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT calendar_date , day_Number FROM Ref_calendar",
"query_toks": [
"SELECT",
"calendar_date",
",",
"day_Number",
"FROM",
"Ref_calendar"
],
"query_toks_no_value": [
"select",
"calendar_date",
",",
"day_number",
"from",
"ref_calendar"
],
"question": "¿Cuáles son todas las fechas del calendario y los números de los días?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
4,
false
],
null
]
],
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Ref_document_types",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Ref_document_types"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"ref_document_types"
],
"question": "Muestre el número de tipos de documentos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Ref_document_types",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Ref_document_types"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"ref_document_types"
],
"question": "¿Cuántos tipos de documentos existen?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT document_type_code , document_type_name FROM Ref_document_types",
"query_toks": [
"SELECT",
"document_type_code",
",",
"document_type_name",
"FROM",
"Ref_document_types"
],
"query_toks_no_value": [
"select",
"document_type_code",
",",
"document_type_name",
"from",
"ref_document_types"
],
"question": "Enumere todos los códigos de tipo de documento y los nombres de tipo de documento.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT document_type_code , document_type_name FROM Ref_document_types",
"query_toks": [
"SELECT",
"document_type_code",
",",
"document_type_name",
"FROM",
"Ref_document_types"
],
"query_toks_no_value": [
"select",
"document_type_code",
",",
"document_type_name",
"from",
"ref_document_types"
],
"question": "¿Cuáles son todos los códigos de tipo de documento y los nombres de tipo de documento?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
],
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"",
"query_toks": [
"SELECT",
"document_type_name",
",",
"document_type_description",
"FROM",
"Ref_document_types",
"WHERE",
"document_type_code",
"=",
"``",
"RV",
"''"
],
"query_toks_no_value": [
"select",
"document_type_name",
",",
"document_type_description",
"from",
"ref_document_types",
"where",
"document_type_code",
"=",
"value"
],
"question": "¿Cuál es el nombre y la descripción del código de tipo de documento ''RV''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
"\"RV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT document_type_name , document_type_description FROM Ref_document_types WHERE document_type_code = \"RV\"",
"query_toks": [
"SELECT",
"document_type_name",
",",
"document_type_description",
"FROM",
"Ref_document_types",
"WHERE",
"document_type_code",
"=",
"``",
"RV",
"''"
],
"query_toks_no_value": [
"select",
"document_type_name",
",",
"document_type_description",
"from",
"ref_document_types",
"where",
"document_type_code",
"=",
"value"
],
"question": "Deme el nombre y la descripción del código de tipo de documento ''RV''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
"\"RV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"",
"query_toks": [
"SELECT",
"document_type_code",
"FROM",
"Ref_document_types",
"WHERE",
"document_type_name",
"=",
"``",
"Paper",
"''"
],
"query_toks_no_value": [
"select",
"document_type_code",
"from",
"ref_document_types",
"where",
"document_type_name",
"=",
"value"
],
"question": "¿Cuál es el código de tipo de documento para el tipo de documento \"Paper\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"Paper\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"",
"query_toks": [
"SELECT",
"document_type_code",
"FROM",
"Ref_document_types",
"WHERE",
"document_type_name",
"=",
"``",
"Paper",
"''"
],
"query_toks_no_value": [
"select",
"document_type_code",
"from",
"ref_document_types",
"where",
"document_type_name",
"=",
"value"
],
"question": "Busque el código del tipo de documento \"Paper\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
1,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"Paper\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"All_documents",
"WHERE",
"document_type_code",
"=",
"``",
"CV",
"''",
"OR",
"document_type_code",
"=",
"``",
"BK",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"all_documents",
"where",
"document_type_code",
"=",
"value",
"or",
"document_type_code",
"=",
"value"
],
"question": "Muestre el número de documentos con código de tipo de documento ''CV'' o ''BK''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"CV\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"BK\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM All_documents WHERE document_type_code = \"CV\" OR document_type_code = \"BK\"",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"All_documents",
"WHERE",
"document_type_code",
"=",
"``",
"CV",
"''",
"OR",
"document_type_code",
"=",
"``",
"BK",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"all_documents",
"where",
"document_type_code",
"=",
"value",
"or",
"document_type_code",
"=",
"value"
],
"question": "¿Cuántos documentos tienen el código de tipo de documento ''CV'' o ''BK''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"CV\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"BK\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"",
"query_toks": [
"SELECT",
"date_stored",
"FROM",
"All_documents",
"WHERE",
"Document_name",
"=",
"``",
"Marry",
"CV",
"''"
],
"query_toks_no_value": [
"select",
"date_stored",
"from",
"all_documents",
"where",
"document_name",
"=",
"value"
],
"question": "¿Cuál es la fecha en la que se almacenó el documento \"Marry CV\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
13,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"Marry CV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT date_stored FROM All_documents WHERE Document_name = \"Marry CV\"",
"query_toks": [
"SELECT",
"date_stored",
"FROM",
"All_documents",
"WHERE",
"Document_name",
"=",
"``",
"Marry",
"CV",
"''"
],
"query_toks_no_value": [
"select",
"date_stored",
"from",
"all_documents",
"where",
"document_name",
"=",
"value"
],
"question": "¿Cuándo se almacenó el documento llamado \"Marry CV\"? Deme la fecha.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
13,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"Marry CV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date",
"query_toks": [
"SELECT",
"T2.day_Number",
",",
"T1.Date_Stored",
"FROM",
"All_documents",
"AS",
"T1",
"JOIN",
"Ref_calendar",
"AS",
"T2",
"ON",
"T1.date_stored",
"=",
"T2.calendar_date"
],
"query_toks_no_value": [
"select",
"t2",
".",
"day_number",
",",
"t1",
".",
"date_stored",
"from",
"all_documents",
"as",
"t1",
"join",
"ref_calendar",
"as",
"t2",
"on",
"t1",
".",
"date_stored",
"=",
"t2",
".",
"calendar_date"
],
"question": "¿Cuál es el día Número y fecha de todos los documentos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
13,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.day_Number , T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date",
"query_toks": [
"SELECT",
"T2.day_Number",
",",
"T1.Date_Stored",
"FROM",
"All_documents",
"AS",
"T1",
"JOIN",
"Ref_calendar",
"AS",
"T2",
"ON",
"T1.date_stored",
"=",
"T2.calendar_date"
],
"query_toks_no_value": [
"select",
"t2",
".",
"day_number",
",",
"t1",
".",
"date_stored",
"from",
"all_documents",
"as",
"t1",
"join",
"ref_calendar",
"as",
"t2",
"on",
"t1",
".",
"date_stored",
"=",
"t2",
".",
"calendar_date"
],
"question": "Devuelva el número de día y la fecha de almacenamiento de todos los documentos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
13,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"",
"query_toks": [
"SELECT",
"T2.document_type_name",
"FROM",
"All_documents",
"AS",
"T1",
"JOIN",
"Ref_document_types",
"AS",
"T2",
"ON",
"T1.document_type_code",
"=",
"T2.document_type_code",
"WHERE",
"T1.document_name",
"=",
"``",
"How",
"to",
"read",
"a",
"book",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"document_type_name",
"from",
"all_documents",
"as",
"t1",
"join",
"ref_document_types",
"as",
"t2",
"on",
"t1",
".",
"document_type_code",
"=",
"t2",
".",
"document_type_code",
"where",
"t1",
".",
"document_name",
"=",
"value"
],
"question": "¿Cuál es el nombre del tipo de documento para el documento con el nombre \"How to read a book\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"How to read a book\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"",
"query_toks": [
"SELECT",
"T2.document_type_name",
"FROM",
"All_documents",
"AS",
"T1",
"JOIN",
"Ref_document_types",
"AS",
"T2",
"ON",
"T1.document_type_code",
"=",
"T2.document_type_code",
"WHERE",
"T1.document_name",
"=",
"``",
"How",
"to",
"read",
"a",
"book",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"document_type_name",
"from",
"all_documents",
"as",
"t1",
"join",
"ref_document_types",
"as",
"t2",
"on",
"t1",
".",
"document_type_code",
"=",
"t2",
".",
"document_type_code",
"where",
"t1",
".",
"document_name",
"=",
"value"
],
"question": "Busque el nombre del tipo de documento del documento denominado \"How to read a book\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
0
]
],
"conds": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
[
0,
1,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"How to read a book\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Ref_locations",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Ref_locations"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"ref_locations"
],
"question": "Muestre el número de ubicaciones.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Ref_locations",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Ref_locations"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"ref_locations"
],
"question": "¿Cuántas ubicaciones se enumeran en la base de datos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code , location_name FROM Ref_locations",
"query_toks": [
"SELECT",
"location_code",
",",
"location_name",
"FROM",
"Ref_locations"
],
"query_toks_no_value": [
"select",
"location_code",
",",
"location_name",
"from",
"ref_locations"
],
"question": "Enumere todos los códigos de ubicación y los nombres de las ubicaciones.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"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": "cre_Doc_Tracking_DB",
"query": "SELECT location_code , location_name FROM Ref_locations",
"query_toks": [
"SELECT",
"location_code",
",",
"location_name",
"FROM",
"Ref_locations"
],
"query_toks_no_value": [
"select",
"location_code",
",",
"location_name",
"from",
"ref_locations"
],
"question": "¿Cuáles son todos los códigos de ubicación y los nombres de las ubicaciones?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"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": "cre_Doc_Tracking_DB",
"query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"",
"query_toks": [
"SELECT",
"location_name",
",",
"location_description",
"FROM",
"Ref_locations",
"WHERE",
"location_code",
"=",
"``",
"x",
"''"
],
"query_toks_no_value": [
"select",
"location_name",
",",
"location_description",
"from",
"ref_locations",
"where",
"location_code",
"=",
"value"
],
"question": "¿Cuáles son el nombre y la descripción del código de ubicación ''x''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
"\"x\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_name , location_description FROM Ref_locations WHERE location_code = \"x\"",
"query_toks": [
"SELECT",
"location_name",
",",
"location_description",
"FROM",
"Ref_locations",
"WHERE",
"location_code",
"=",
"``",
"x",
"''"
],
"query_toks_no_value": [
"select",
"location_name",
",",
"location_description",
"from",
"ref_locations",
"where",
"location_code",
"=",
"value"
],
"question": "Deme el nombre y la descripción de la ubicación con el código ''x''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
"\"x\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"",
"query_toks": [
"SELECT",
"location_code",
"FROM",
"Ref_locations",
"WHERE",
"location_name",
"=",
"``",
"Canada",
"''"
],
"query_toks_no_value": [
"select",
"location_code",
"from",
"ref_locations",
"where",
"location_name",
"=",
"value"
],
"question": "¿Cuál es el código de ubicación del país \"Canadá\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Canada\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code FROM Ref_locations WHERE location_name = \"Canada\"",
"query_toks": [
"SELECT",
"location_code",
"FROM",
"Ref_locations",
"WHERE",
"location_name",
"=",
"``",
"Canada",
"''"
],
"query_toks_no_value": [
"select",
"location_code",
"from",
"ref_locations",
"where",
"location_name",
"=",
"value"
],
"question": "Muestre el código de ubicación del país \"Canada\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
6,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Canada\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM ROLES",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ROLES"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"roles"
],
"question": "¿Cuántos roles hay?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM ROLES",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ROLES"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"roles"
],
"question": "Cuente el número total de roles enumerados.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code , role_name , role_description FROM ROLES",
"query_toks": [
"SELECT",
"role_code",
",",
"role_name",
",",
"role_description",
"FROM",
"ROLES"
],
"query_toks_no_value": [
"select",
"role_code",
",",
"role_name",
",",
"role_description",
"from",
"roles"
],
"question": "Enumere todos los códigos de función, nombres de función y descripciones de función.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
9,
false
],
null
]
],
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code , role_name , role_description FROM ROLES",
"query_toks": [
"SELECT",
"role_code",
",",
"role_name",
",",
"role_description",
"FROM",
"ROLES"
],
"query_toks_no_value": [
"select",
"role_code",
",",
"role_name",
",",
"role_description",
"from",
"roles"
],
"question": "¿Cuáles son todos los códigos de función, nombres de función y descripciones de función?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
9,
false
],
null
]
],
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"",
"query_toks": [
"SELECT",
"role_name",
",",
"role_description",
"FROM",
"ROLES",
"WHERE",
"role_code",
"=",
"``",
"MG",
"''"
],
"query_toks_no_value": [
"select",
"role_name",
",",
"role_description",
"from",
"roles",
"where",
"role_code",
"=",
"value"
],
"question": "¿Cuál es el nombre y la descripción del código de función \"MG\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"MG\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_name , role_description FROM ROLES WHERE role_code = \"MG\"",
"query_toks": [
"SELECT",
"role_name",
",",
"role_description",
"FROM",
"ROLES",
"WHERE",
"role_code",
"=",
"``",
"MG",
"''"
],
"query_toks_no_value": [
"select",
"role_name",
",",
"role_description",
"from",
"roles",
"where",
"role_code",
"=",
"value"
],
"question": "Busque el nombre y la descripción del rol con el código \"MG\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
9,
false
],
null
],
"\"MG\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"",
"query_toks": [
"SELECT",
"role_description",
"FROM",
"ROLES",
"WHERE",
"role_name",
"=",
"``",
"Proof",
"Reader",
"''"
],
"query_toks_no_value": [
"select",
"role_description",
"from",
"roles",
"where",
"role_name",
"=",
"value"
],
"question": "Muestre la descripción del nombre de la función \"Proof Readers\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Proof Reader\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_description FROM ROLES WHERE role_name = \"Proof Reader\"",
"query_toks": [
"SELECT",
"role_description",
"FROM",
"ROLES",
"WHERE",
"role_name",
"=",
"``",
"Proof",
"Reader",
"''"
],
"query_toks_no_value": [
"select",
"role_description",
"from",
"roles",
"where",
"role_name",
"=",
"value"
],
"question": "¿Cuál es la descripción de la función denominada \"Proof Reader\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Proof Reader\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Employees",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Employees"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"employees"
],
"question": "¿Cuántos empleados tenemos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT count(*) FROM Employees",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"Employees"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"employees"
],
"question": "Encuentre el número de empleados que tenemos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'",
"query_toks": [
"SELECT",
"employee_name",
",",
"role_code",
",",
"date_of_birth",
"FROM",
"Employees",
"WHERE",
"employee_Name",
"=",
"'Armani",
"'"
],
"query_toks_no_value": [
"select",
"employee_name",
",",
"role_code",
",",
"date_of_birth",
"from",
"employees",
"where",
"employee_name",
"=",
"value"
],
"question": "Muestre el nombre, el código de función y la fecha de nacimiento del empleado con el nombre ''Armani''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
19,
false
],
null
]
],
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Armani\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'",
"query_toks": [
"SELECT",
"employee_name",
",",
"role_code",
",",
"date_of_birth",
"FROM",
"Employees",
"WHERE",
"employee_Name",
"=",
"'Armani",
"'"
],
"query_toks_no_value": [
"select",
"employee_name",
",",
"role_code",
",",
"date_of_birth",
"from",
"employees",
"where",
"employee_name",
"=",
"value"
],
"question": "¿Cuáles son el nombre, el código de función y la fecha de nacimiento del empleado llamado ''Armani''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
19,
false
],
null
]
],
[
0,
[
0,
[
0,
22,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Armani\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"",
"query_toks": [
"SELECT",
"employee_ID",
"FROM",
"Employees",
"WHERE",
"employee_name",
"=",
"``",
"Ebba",
"''"
],
"query_toks_no_value": [
"select",
"employee_id",
"from",
"employees",
"where",
"employee_name",
"=",
"value"
],
"question": "¿Cuál es la identificación del empleado llamado ''Ebba''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Ebba\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_ID FROM Employees WHERE employee_name = \"Ebba\"",
"query_toks": [
"SELECT",
"employee_ID",
"FROM",
"Employees",
"WHERE",
"employee_name",
"=",
"``",
"Ebba",
"''"
],
"query_toks_no_value": [
"select",
"employee_id",
"from",
"employees",
"where",
"employee_name",
"=",
"value"
],
"question": "Muestre la identificación del empleado llamado ''Ebba''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Ebba\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"",
"query_toks": [
"SELECT",
"employee_name",
"FROM",
"Employees",
"WHERE",
"role_code",
"=",
"``",
"HR",
"''"
],
"query_toks_no_value": [
"select",
"employee_name",
"from",
"employees",
"where",
"role_code",
"=",
"value"
],
"question": "Muestre los nombres de todos los empleados con rol \"HR\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
"\"HR\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_name FROM Employees WHERE role_code = \"HR\"",
"query_toks": [
"SELECT",
"employee_name",
"FROM",
"Employees",
"WHERE",
"role_code",
"=",
"``",
"HR",
"''"
],
"query_toks_no_value": [
"select",
"employee_name",
"from",
"employees",
"where",
"role_code",
"=",
"value"
],
"question": "¿Qué empleados tienen el rol con el código \"HR\"? Encuentre sus nombres.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
"\"HR\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code , count(*) FROM Employees GROUP BY role_code",
"query_toks": [
"SELECT",
"role_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code"
],
"query_toks_no_value": [
"select",
"role_code",
",",
"count",
"(",
"*",
")",
"from",
"employees",
"group",
"by",
"role_code"
],
"question": "Muestre todos los códigos de función y la cantidad de empleados en cada función.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code , count(*) FROM Employees GROUP BY role_code",
"query_toks": [
"SELECT",
"role_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code"
],
"query_toks_no_value": [
"select",
"role_code",
",",
"count",
"(",
"*",
")",
"from",
"employees",
"group",
"by",
"role_code"
],
"question": "¿Cuál es el código de cada función y el número de empleados en cada función?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"role_code",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"role_code",
"from",
"employees",
"group",
"by",
"role_code",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "¿Cuál es el código de función con el mayor número de empleados?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"role_code",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"role_code",
"from",
"employees",
"group",
"by",
"role_code",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Busque el código del puesto que tiene más empleados.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3",
"query_toks": [
"SELECT",
"role_code",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"3"
],
"query_toks_no_value": [
"select",
"role_code",
"from",
"employees",
"group",
"by",
"role_code",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "Muestre todos los códigos de función con al menos 3 empleados.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code FROM Employees GROUP BY role_code HAVING count(*) >= 3",
"query_toks": [
"SELECT",
"role_code",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"3"
],
"query_toks_no_value": [
"select",
"role_code",
"from",
"employees",
"group",
"by",
"role_code",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "¿Cuáles son los roles con tres o más empleados? Deme los códigos de función.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"role_code",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"role_code",
"from",
"employees",
"group",
"by",
"role_code",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "Muestre el código de función con la menor cantidad de empleados.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"role_code",
"FROM",
"Employees",
"GROUP",
"BY",
"role_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"role_code",
"from",
"employees",
"group",
"by",
"role_code",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "¿Cuál es el rol con el menor número de empleados? Encuentre los códigos de función.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
19,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
19,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"",
"query_toks": [
"SELECT",
"T2.role_name",
",",
"T2.role_description",
"FROM",
"Employees",
"AS",
"T1",
"JOIN",
"ROLES",
"AS",
"T2",
"ON",
"T1.role_code",
"=",
"T2.role_code",
"WHERE",
"T1.employee_name",
"=",
"``",
"Ebba",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"role_name",
",",
"t2",
".",
"role_description",
"from",
"employees",
"as",
"t1",
"join",
"roles",
"as",
"t2",
"on",
"t1",
".",
"role_code",
"=",
"t2",
".",
"role_code",
"where",
"t1",
".",
"employee_name",
"=",
"value"
],
"question": "¿Cuál es el nombre y la descripción de la función para el empleado llamado ''Ebba''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Ebba\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.role_name , T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"",
"query_toks": [
"SELECT",
"T2.role_name",
",",
"T2.role_description",
"FROM",
"Employees",
"AS",
"T1",
"JOIN",
"ROLES",
"AS",
"T2",
"ON",
"T1.role_code",
"=",
"T2.role_code",
"WHERE",
"T1.employee_name",
"=",
"``",
"Ebba",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"role_name",
",",
"t2",
".",
"role_description",
"from",
"employees",
"as",
"t1",
"join",
"roles",
"as",
"t2",
"on",
"t1",
".",
"role_code",
"=",
"t2",
".",
"role_code",
"where",
"t1",
".",
"employee_name",
"=",
"value"
],
"question": "Muestre el nombre y descripción del rol que desempeñó el empleado llamado ''Ebba''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
],
[
0,
[
0,
[
0,
11,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
20,
false
],
null
],
"\"Ebba\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"",
"query_toks": [
"SELECT",
"T1.employee_name",
"FROM",
"Employees",
"AS",
"T1",
"JOIN",
"ROLES",
"AS",
"T2",
"ON",
"T1.role_code",
"=",
"T2.role_code",
"WHERE",
"T2.role_name",
"=",
"``",
"Editor",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"employee_name",
"from",
"employees",
"as",
"t1",
"join",
"roles",
"as",
"t2",
"on",
"t1",
".",
"role_code",
"=",
"t2",
".",
"role_code",
"where",
"t2",
".",
"role_name",
"=",
"value"
],
"question": "Muestre los nombres de los empleados con el nombre de rol ''Editor''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Editor\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"",
"query_toks": [
"SELECT",
"T1.employee_name",
"FROM",
"Employees",
"AS",
"T1",
"JOIN",
"ROLES",
"AS",
"T2",
"ON",
"T1.role_code",
"=",
"T2.role_code",
"WHERE",
"T2.role_name",
"=",
"``",
"Editor",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"employee_name",
"from",
"employees",
"as",
"t1",
"join",
"roles",
"as",
"t2",
"on",
"t1",
".",
"role_code",
"=",
"t2",
".",
"role_code",
"where",
"t2",
".",
"role_name",
"=",
"value"
],
"question": "Busque los nombres de todos los empleados cuyo nombre de función sea \"Editor\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Editor\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"",
"query_toks": [
"SELECT",
"T1.employee_id",
"FROM",
"Employees",
"AS",
"T1",
"JOIN",
"ROLES",
"AS",
"T2",
"ON",
"T1.role_code",
"=",
"T2.role_code",
"WHERE",
"T2.role_name",
"=",
"``",
"Human",
"Resource",
"''",
"OR",
"T2.role_name",
"=",
"``",
"Manager",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"employee_id",
"from",
"employees",
"as",
"t1",
"join",
"roles",
"as",
"t2",
"on",
"t1",
".",
"role_code",
"=",
"t2",
".",
"role_code",
"where",
"t2",
".",
"role_name",
"=",
"value",
"or",
"t2",
".",
"role_name",
"=",
"value"
],
"question": "Muestre las identidficaciones de empleado para todos los empleados con el nombre de rol \"Human Resource\" o \"Manager\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Human Resource\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Manager\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"",
"query_toks": [
"SELECT",
"T1.employee_id",
"FROM",
"Employees",
"AS",
"T1",
"JOIN",
"ROLES",
"AS",
"T2",
"ON",
"T1.role_code",
"=",
"T2.role_code",
"WHERE",
"T2.role_name",
"=",
"``",
"Human",
"Resource",
"''",
"OR",
"T2.role_name",
"=",
"``",
"Manager",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"employee_id",
"from",
"employees",
"as",
"t1",
"join",
"roles",
"as",
"t2",
"on",
"t1",
".",
"role_code",
"=",
"t2",
".",
"role_code",
"where",
"t2",
".",
"role_name",
"=",
"value",
"or",
"t2",
".",
"role_name",
"=",
"value"
],
"question": "¿Cuáles son las identificaciones de empleado de los empleados cuyo nombre de función es \"Human Resource\" o \"Manager\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
19,
false
],
null
],
[
0,
9,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Human Resource\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
10,
false
],
null
],
"\"Manager\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT DISTINCT location_code FROM Document_locations",
"query_toks": [
"SELECT",
"DISTINCT",
"location_code",
"FROM",
"Document_locations"
],
"query_toks_no_value": [
"select",
"distinct",
"location_code",
"from",
"document_locations"
],
"question": "¿Cuáles son los diferentes códigos de ubicación de los documentos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT DISTINCT location_code FROM Document_locations",
"query_toks": [
"SELECT",
"DISTINCT",
"location_code",
"FROM",
"Document_locations"
],
"query_toks_no_value": [
"select",
"distinct",
"location_code",
"from",
"document_locations"
],
"question": "Deme todos los códigos de ubicación distintos para los documentos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"",
"query_toks": [
"SELECT",
"T3.location_name",
"FROM",
"All_documents",
"AS",
"T1",
"JOIN",
"Document_locations",
"AS",
"T2",
"ON",
"T1.document_id",
"=",
"T2.document_id",
"JOIN",
"Ref_locations",
"AS",
"T3",
"ON",
"T2.location_code",
"=",
"T3.location_code",
"WHERE",
"T1.document_name",
"=",
"``",
"Robin",
"CV",
"''"
],
"query_toks_no_value": [
"select",
"t3",
".",
"location_name",
"from",
"all_documents",
"as",
"t1",
"join",
"document_locations",
"as",
"t2",
"on",
"t1",
".",
"document_id",
"=",
"t2",
".",
"document_id",
"join",
"ref_locations",
"as",
"t3",
"on",
"t2",
".",
"location_code",
"=",
"t3",
".",
"location_code",
"where",
"t1",
".",
"document_name",
"=",
"value"
],
"question": "Muestre el nombre de la ubicación del documento \"Robin CV\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
6
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
24,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
25,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"Robin CV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"",
"query_toks": [
"SELECT",
"T3.location_name",
"FROM",
"All_documents",
"AS",
"T1",
"JOIN",
"Document_locations",
"AS",
"T2",
"ON",
"T1.document_id",
"=",
"T2.document_id",
"JOIN",
"Ref_locations",
"AS",
"T3",
"ON",
"T2.location_code",
"=",
"T3.location_code",
"WHERE",
"T1.document_name",
"=",
"``",
"Robin",
"CV",
"''"
],
"query_toks_no_value": [
"select",
"t3",
".",
"location_name",
"from",
"all_documents",
"as",
"t1",
"join",
"document_locations",
"as",
"t2",
"on",
"t1",
".",
"document_id",
"=",
"t2",
".",
"document_id",
"join",
"ref_locations",
"as",
"t3",
"on",
"t2",
".",
"location_code",
"=",
"t3",
".",
"location_code",
"where",
"t1",
".",
"document_name",
"=",
"value"
],
"question": "¿Cuál es el nombre de la ubicación del documento \"Robin CV\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
6
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
[
0,
24,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
25,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"Robin CV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations",
"query_toks": [
"SELECT",
"location_code",
",",
"date_in_location_from",
",",
"date_in_locaton_to",
"FROM",
"Document_locations"
],
"query_toks_no_value": [
"select",
"location_code",
",",
"date_in_location_from",
",",
"date_in_locaton_to",
"from",
"document_locations"
],
"question": "Muestre el código de ubicación, la fecha de inicio y los datos finales en esa ubicación para todos los documentos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
],
[
0,
[
0,
[
0,
26,
false
],
null
]
],
[
0,
[
0,
[
0,
27,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code , date_in_location_from , date_in_locaton_to FROM Document_locations",
"query_toks": [
"SELECT",
"location_code",
",",
"date_in_location_from",
",",
"date_in_locaton_to",
"FROM",
"Document_locations"
],
"query_toks_no_value": [
"select",
"location_code",
",",
"date_in_location_from",
",",
"date_in_locaton_to",
"from",
"document_locations"
],
"question": "¿Cuáles son el código de ubicación de cada documento y la fecha de inicio y los datos finales en esa ubicación?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
],
[
0,
[
0,
[
0,
26,
false
],
null
]
],
[
0,
[
0,
[
0,
27,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"",
"query_toks": [
"SELECT",
"T1.date_in_location_from",
",",
"T1.date_in_locaton_to",
"FROM",
"Document_locations",
"AS",
"T1",
"JOIN",
"All_documents",
"AS",
"T2",
"ON",
"T1.document_id",
"=",
"T2.document_id",
"WHERE",
"T2.document_name",
"=",
"``",
"Robin",
"CV",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"date_in_location_from",
",",
"t1",
".",
"date_in_locaton_to",
"from",
"document_locations",
"as",
"t1",
"join",
"all_documents",
"as",
"t2",
"on",
"t1",
".",
"document_id",
"=",
"t2",
".",
"document_id",
"where",
"t2",
".",
"document_name",
"=",
"value"
],
"question": "¿Cuál es \"the date in location from\" y \"la fecha en la ubicación hasta\" para el documento con el nombre \"Robin CV\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
24,
false
],
null
],
[
0,
12,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
26,
false
],
null
]
],
[
0,
[
0,
[
0,
27,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"Robin CV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T1.date_in_location_from , T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"",
"query_toks": [
"SELECT",
"T1.date_in_location_from",
",",
"T1.date_in_locaton_to",
"FROM",
"Document_locations",
"AS",
"T1",
"JOIN",
"All_documents",
"AS",
"T2",
"ON",
"T1.document_id",
"=",
"T2.document_id",
"WHERE",
"T2.document_name",
"=",
"``",
"Robin",
"CV",
"''"
],
"query_toks_no_value": [
"select",
"t1",
".",
"date_in_location_from",
",",
"t1",
".",
"date_in_locaton_to",
"from",
"document_locations",
"as",
"t1",
"join",
"all_documents",
"as",
"t2",
"on",
"t1",
".",
"document_id",
"=",
"t2",
".",
"document_id",
"where",
"t2",
".",
"document_name",
"=",
"value"
],
"question": "Busque la fecha de inicio y los datos finales en la ubicación del documento llamado \"Robin CV\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
24,
false
],
null
],
[
0,
12,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
26,
false
],
null
]
],
[
0,
[
0,
[
0,
27,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
15,
false
],
null
],
"\"Robin CV\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code",
"query_toks": [
"SELECT",
"location_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Document_locations",
"GROUP",
"BY",
"location_code"
],
"query_toks_no_value": [
"select",
"location_code",
",",
"count",
"(",
"*",
")",
"from",
"document_locations",
"group",
"by",
"location_code"
],
"question": "Muestre los códigos de ubicación y la cantidad de documentos en cada ubicación.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code , count(*) FROM Document_locations GROUP BY location_code",
"query_toks": [
"SELECT",
"location_code",
",",
"count",
"(",
"*",
")",
"FROM",
"Document_locations",
"GROUP",
"BY",
"location_code"
],
"query_toks_no_value": [
"select",
"location_code",
",",
"count",
"(",
"*",
")",
"from",
"document_locations",
"group",
"by",
"location_code"
],
"question": "¿Cuál es el código de cada ubicación y la cantidad de documentos en esa ubicación?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"location_code",
"FROM",
"Document_locations",
"GROUP",
"BY",
"location_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"location_code",
"from",
"document_locations",
"group",
"by",
"location_code",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "¿Cuál es el código de ubicación con más documentos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"location_code",
"FROM",
"Document_locations",
"GROUP",
"BY",
"location_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"location_code",
"from",
"document_locations",
"group",
"by",
"location_code",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Busque el código de la ubicación con la mayor cantidad de documentos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3",
"query_toks": [
"SELECT",
"location_code",
"FROM",
"Document_locations",
"GROUP",
"BY",
"location_code",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"3"
],
"query_toks_no_value": [
"select",
"location_code",
"from",
"document_locations",
"group",
"by",
"location_code",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "Muestre los códigos de ubicación con al menos 3 documentos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*) >= 3",
"query_toks": [
"SELECT",
"location_code",
"FROM",
"Document_locations",
"GROUP",
"BY",
"location_code",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"3"
],
"query_toks_no_value": [
"select",
"location_code",
"from",
"document_locations",
"group",
"by",
"location_code",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "¿Cuáles son los códigos de las ubicaciones con al menos tres documentos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"T2.location_name",
",",
"T1.location_code",
"FROM",
"Document_locations",
"AS",
"T1",
"JOIN",
"Ref_locations",
"AS",
"T2",
"ON",
"T1.location_code",
"=",
"T2.location_code",
"GROUP",
"BY",
"T1.location_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t2",
".",
"location_name",
",",
"t1",
".",
"location_code",
"from",
"document_locations",
"as",
"t1",
"join",
"ref_locations",
"as",
"t2",
"on",
"t1",
".",
"location_code",
"=",
"t2",
".",
"location_code",
"group",
"by",
"t1",
".",
"location_code",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "Muestre el nombre y el código de la ubicación con la menor cantidad de documentos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
25,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.location_name , T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"T2.location_name",
",",
"T1.location_code",
"FROM",
"Document_locations",
"AS",
"T1",
"JOIN",
"Ref_locations",
"AS",
"T2",
"ON",
"T1.location_code",
"=",
"T2.location_code",
"GROUP",
"BY",
"T1.location_code",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t2",
".",
"location_name",
",",
"t1",
".",
"location_code",
"from",
"document_locations",
"as",
"t1",
"join",
"ref_locations",
"as",
"t2",
"on",
"t1",
".",
"location_code",
"=",
"t2",
".",
"location_code",
"group",
"by",
"t1",
".",
"location_code",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "¿Cuáles son el nombre y el código de la ubicación con la menor cantidad de documentos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
6
],
[
"table_unit",
2
]
],
"conds": [
[
false,
2,
[
0,
[
0,
25,
false
],
null
],
[
0,
6,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
25,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
25,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;",
"query_toks": [
"SELECT",
"T2.employee_name",
",",
"T3.employee_name",
"FROM",
"Documents_to_be_destroyed",
"AS",
"T1",
"JOIN",
"Employees",
"AS",
"T2",
"ON",
"T1.Destruction_Authorised_by_Employee_ID",
"=",
"T2.employee_id",
"JOIN",
"Employees",
"AS",
"T3",
"ON",
"T1.Destroyed_by_Employee_ID",
"=",
"T3.employee_id",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"employee_name",
",",
"t3",
".",
"employee_name",
"from",
"documents_to_be_destroyed",
"as",
"t1",
"join",
"employees",
"as",
"t2",
"on",
"t1",
".",
"destruction_authorised_by_employee_id",
"=",
"t2",
".",
"employee_id",
"join",
"employees",
"as",
"t3",
"on",
"t1",
".",
"destroyed_by_employee_id",
"=",
"t3",
".",
"employee_id"
],
"question": "¿Cuáles son los nombres de los empleados que autorizaron la destrucción y los empleados que destruyeron los documentos correspondientes?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
5
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
29,
false
],
null
],
[
0,
18,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
30,
false
],
null
],
[
0,
18,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT T2.employee_name , T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;",
"query_toks": [
"SELECT",
"T2.employee_name",
",",
"T3.employee_name",
"FROM",
"Documents_to_be_destroyed",
"AS",
"T1",
"JOIN",
"Employees",
"AS",
"T2",
"ON",
"T1.Destruction_Authorised_by_Employee_ID",
"=",
"T2.employee_id",
"JOIN",
"Employees",
"AS",
"T3",
"ON",
"T1.Destroyed_by_Employee_ID",
"=",
"T3.employee_id",
";"
],
"query_toks_no_value": [
"select",
"t2",
".",
"employee_name",
",",
"t3",
".",
"employee_name",
"from",
"documents_to_be_destroyed",
"as",
"t1",
"join",
"employees",
"as",
"t2",
"on",
"t1",
".",
"destruction_authorised_by_employee_id",
"=",
"t2",
".",
"employee_id",
"join",
"employees",
"as",
"t3",
"on",
"t1",
".",
"destroyed_by_employee_id",
"=",
"t3",
".",
"employee_id"
],
"question": "Enumere los nombres de los empleados que autorizaron la destrucción de documentos y los empleados que destruyeron los documentos correspondientes.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
5
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
29,
false
],
null
],
[
0,
18,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
30,
false
],
null
],
[
0,
18,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
20,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID",
"query_toks": [
"SELECT",
"Destruction_Authorised_by_Employee_ID",
",",
"count",
"(",
"*",
")",
"FROM",
"Documents_to_be_destroyed",
"GROUP",
"BY",
"Destruction_Authorised_by_Employee_ID"
],
"query_toks_no_value": [
"select",
"destruction_authorised_by_employee_id",
",",
"count",
"(",
"*",
")",
"from",
"documents_to_be_destroyed",
"group",
"by",
"destruction_authorised_by_employee_id"
],
"question": "Muestre la identificación de cada empleado y el número de destrucción de documentos autorizado por ese empleado.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
29,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT Destruction_Authorised_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID",
"query_toks": [
"SELECT",
"Destruction_Authorised_by_Employee_ID",
",",
"count",
"(",
"*",
")",
"FROM",
"Documents_to_be_destroyed",
"GROUP",
"BY",
"Destruction_Authorised_by_Employee_ID"
],
"query_toks_no_value": [
"select",
"destruction_authorised_by_employee_id",
",",
"count",
"(",
"*",
")",
"from",
"documents_to_be_destroyed",
"group",
"by",
"destruction_authorised_by_employee_id"
],
"question": "¿Cuál es la identificación de cada empleado y la cantidad de destrucción de documentos autorizada por ese empleado?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
29,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID",
"query_toks": [
"SELECT",
"Destroyed_by_Employee_ID",
",",
"count",
"(",
"*",
")",
"FROM",
"Documents_to_be_destroyed",
"GROUP",
"BY",
"Destroyed_by_Employee_ID"
],
"query_toks_no_value": [
"select",
"destroyed_by_employee_id",
",",
"count",
"(",
"*",
")",
"from",
"documents_to_be_destroyed",
"group",
"by",
"destroyed_by_employee_id"
],
"question": "Muestre las identificaciones de los empleados y la cantidad de documentos destruidos por cada empleado.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
30,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT Destroyed_by_Employee_ID , count(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID",
"query_toks": [
"SELECT",
"Destroyed_by_Employee_ID",
",",
"count",
"(",
"*",
")",
"FROM",
"Documents_to_be_destroyed",
"GROUP",
"BY",
"Destroyed_by_Employee_ID"
],
"query_toks_no_value": [
"select",
"destroyed_by_employee_id",
",",
"count",
"(",
"*",
")",
"from",
"documents_to_be_destroyed",
"group",
"by",
"destroyed_by_employee_id"
],
"question": "¿Cuál es la identificación de cada empleado y la cantidad de documento destruido por ese empleado?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
30,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"employee_id",
"FROM",
"Employees",
"EXCEPT",
"SELECT",
"Destruction_Authorised_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"employee_id",
"from",
"employees",
"except",
"select",
"destruction_authorised_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "Muestre las identificaciones de los empleados que no autorizan la destrucción de ningún documento.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"employee_id",
"FROM",
"Employees",
"EXCEPT",
"SELECT",
"Destruction_Authorised_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"employee_id",
"from",
"employees",
"except",
"select",
"destruction_authorised_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "¿Qué empleados no autorizan la destrucción de ningún documento? Deme sus identificaciones de empleado.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"DISTINCT",
"Destruction_Authorised_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"distinct",
"destruction_authorised_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "Muestre las identificaciones de todos los empleados que hayan autorizado la destrucción.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"DISTINCT",
"Destruction_Authorised_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"distinct",
"destruction_authorised_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "¿Cuáles son las identificaciones de todos los empleados que autorizan la destrucción de documentos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"DISTINCT",
"Destroyed_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"distinct",
"destroyed_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "Muestre las identificaciones de todos los empleados que han destruido un documento.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"DISTINCT",
"Destroyed_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"distinct",
"destroyed_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "¿Cuáles son las identificaciones de todos los empleados que han destruido documentos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"employee_id",
"FROM",
"Employees",
"EXCEPT",
"SELECT",
"Destroyed_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"employee_id",
"from",
"employees",
"except",
"select",
"destroyed_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "Muestre las identificaciones de todos los empleados que no destruyan ningún documento.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"employee_id",
"FROM",
"Employees",
"EXCEPT",
"SELECT",
"Destroyed_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"employee_id",
"from",
"employees",
"except",
"select",
"destroyed_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "¿Qué empleados no destruyen ningún documento? Encuentre sus ID de empleado.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"Destroyed_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed",
"UNION",
"SELECT",
"Destruction_Authorised_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"destroyed_by_employee_id",
"from",
"documents_to_be_destroyed",
"union",
"select",
"destruction_authorised_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "Muestre las identificaciones de todos los empleados que hayan destruido un documento o hayan otorgado una autorización para hacerlo.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"except": null
}
},
{
"db_id": "cre_Doc_Tracking_DB",
"query": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed",
"query_toks": [
"SELECT",
"Destroyed_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed",
"UNION",
"SELECT",
"Destruction_Authorised_by_Employee_ID",
"FROM",
"Documents_to_be_destroyed"
],
"query_toks_no_value": [
"select",
"destroyed_by_employee_id",
"from",
"documents_to_be_destroyed",
"union",
"select",
"destruction_authorised_by_employee_id",
"from",
"documents_to_be_destroyed"
],
"question": "¿Qué empleados han destruido un documento o autorizado para hacerlo? Devuelva sus ID de empleado.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
30,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": {
"from": {
"table_units": [
[
"table_unit",
7
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
29,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"except": null
}
}
]