dreamerdeo's picture
Upload folder using huggingface_hub
1faca1c
[
{
"db_id": "chinook_1",
"query": "SELECT count(*) FROM ALBUM",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ALBUM"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"album"
],
"question": "¿Cuántos álbumes hay?",
"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": "chinook_1",
"query": "SELECT count(*) FROM ALBUM",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ALBUM"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"album"
],
"question": "Encuentre el número de álbumes.",
"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": "chinook_1",
"query": "SELECT Name FROM GENRE",
"query_toks": [
"SELECT",
"Name",
"FROM",
"GENRE"
],
"query_toks_no_value": [
"select",
"name",
"from",
"genre"
],
"question": "Enumere los nombres de todos los géneros musicales.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
35,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Name FROM GENRE",
"query_toks": [
"SELECT",
"Name",
"FROM",
"GENRE"
],
"query_toks_no_value": [
"select",
"name",
"from",
"genre"
],
"question": "¿Cuáles son los nombres de los diferentes géneros musicales?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
35,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT * FROM CUSTOMER WHERE State = \"NY\"",
"query_toks": [
"SELECT",
"*",
"FROM",
"CUSTOMER",
"WHERE",
"State",
"=",
"``",
"NY",
"''"
],
"query_toks_no_value": [
"select",
"*",
"from",
"customer",
"where",
"state",
"=",
"value"
],
"question": "Encuentre toda la información del cliente en el estado de ''NY''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"NY\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT * FROM CUSTOMER WHERE State = \"NY\"",
"query_toks": [
"SELECT",
"*",
"FROM",
"CUSTOMER",
"WHERE",
"State",
"=",
"``",
"NY",
"''"
],
"query_toks_no_value": [
"select",
"*",
"from",
"customer",
"where",
"state",
"=",
"value"
],
"question": "¿Cuál es toda la información del cliente para los clientes en el estado de ''NY''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
12,
false
],
null
],
"\"NY\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT FirstName , LastName FROM EMPLOYEE WHERE City = \"Calgary\"",
"query_toks": [
"SELECT",
"FirstName",
",",
"LastName",
"FROM",
"EMPLOYEE",
"WHERE",
"City",
"=",
"``",
"Calgary",
"''"
],
"query_toks_no_value": [
"select",
"firstname",
",",
"lastname",
"from",
"employee",
"where",
"city",
"=",
"value"
],
"question": "¿Cuáles son los nombres y apellidos de los empleados que viven en la ciudad de \"Calgary\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
21,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
27,
false
],
null
],
"\"Calgary\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT FirstName , LastName FROM EMPLOYEE WHERE City = \"Calgary\"",
"query_toks": [
"SELECT",
"FirstName",
",",
"LastName",
"FROM",
"EMPLOYEE",
"WHERE",
"City",
"=",
"``",
"Calgary",
"''"
],
"query_toks_no_value": [
"select",
"firstname",
",",
"lastname",
"from",
"employee",
"where",
"city",
"=",
"value"
],
"question": "Encuentre los nombres completos de los empleados que viven en la ciudad de ''Calgary''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
21,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
27,
false
],
null
],
"\"Calgary\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT distinct(BillingCountry) FROM INVOICE",
"query_toks": [
"SELECT",
"distinct",
"(",
"BillingCountry",
")",
"FROM",
"INVOICE"
],
"query_toks_no_value": [
"select",
"distinct",
"(",
"billingcountry",
")",
"from",
"invoice"
],
"question": "¿Cuáles son los distintos países de facturación de las facturas?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
42,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT distinct(BillingCountry) FROM INVOICE",
"query_toks": [
"SELECT",
"distinct",
"(",
"BillingCountry",
")",
"FROM",
"INVOICE"
],
"query_toks_no_value": [
"select",
"distinct",
"(",
"billingcountry",
")",
"from",
"invoice"
],
"question": "Encuentre los diferentes países de facturación para todas las facturas.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
5
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
42,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\"",
"query_toks": [
"SELECT",
"Name",
"FROM",
"ARTIST",
"WHERE",
"Name",
"LIKE",
"``",
"%",
"a",
"%",
"''"
],
"query_toks_no_value": [
"select",
"name",
"from",
"artist",
"where",
"name",
"like",
"value"
],
"question": "Busque los nombres de todos los artistas que tienen \"a\" en sus nombres.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
9,
[
0,
[
0,
5,
false
],
null
],
"\"%a%\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\"",
"query_toks": [
"SELECT",
"Name",
"FROM",
"ARTIST",
"WHERE",
"Name",
"LIKE",
"``",
"%",
"a",
"%",
"''"
],
"query_toks_no_value": [
"select",
"name",
"from",
"artist",
"where",
"name",
"like",
"value"
],
"question": "¿Cuáles son los nombres de los artistas que tienen la letra ''a'' en sus nombres?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
9,
[
0,
[
0,
5,
false
],
null
],
"\"%a%\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"AC/DC\"",
"query_toks": [
"SELECT",
"Title",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"WHERE",
"T2.Name",
"=",
"``",
"AC/DC",
"''"
],
"query_toks_no_value": [
"select",
"title",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"where",
"t2",
".",
"name",
"=",
"value"
],
"question": "Busque el título de todos los álbumes del artista \"AC / DC\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
"\"AC/DC\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"AC/DC\"",
"query_toks": [
"SELECT",
"Title",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"WHERE",
"T2.Name",
"=",
"``",
"AC/DC",
"''"
],
"query_toks_no_value": [
"select",
"title",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"where",
"t2",
".",
"name",
"=",
"value"
],
"question": "¿Cuáles son los títulos de los álbumes del artista \"AC / DC\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
"\"AC/DC\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"Metallica\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"WHERE",
"T2.Name",
"=",
"``",
"Metallica",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"where",
"t2",
".",
"name",
"=",
"value"
],
"question": "¿Cuántos álbumes tiene el artista \"Metallica\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
"\"Metallica\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"Metallica\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"WHERE",
"T2.Name",
"=",
"``",
"Metallica",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"where",
"t2",
".",
"name",
"=",
"value"
],
"question": "Encuentre el número de álbumes del artista \"Metallica\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
5,
false
],
null
],
"\"Metallica\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"",
"query_toks": [
"SELECT",
"T2.Name",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"WHERE",
"T1.Title",
"=",
"``",
"Balls",
"to",
"the",
"Wall",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"where",
"t1",
".",
"title",
"=",
"value"
],
"question": "¿A qué artista pertenece el álbum \"Balls to the Wall\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"Balls to the Wall\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"",
"query_toks": [
"SELECT",
"T2.Name",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"WHERE",
"T1.Title",
"=",
"``",
"Balls",
"to",
"the",
"Wall",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"where",
"t1",
".",
"title",
"=",
"value"
],
"question": "Busque el nombre del artista que hizo el álbum \"Balls to the Wall\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
2,
false
],
null
],
"\"Balls to the Wall\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T2.Name",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"GROUP",
"BY",
"T2.Name",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"group",
"by",
"t2",
".",
"name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "¿Qué artista tiene más álbumes?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
5,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T2.Name",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId",
"GROUP",
"BY",
"T2.Name",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"group",
"by",
"t2",
".",
"name",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "¿Cuál es el nombre del artista con el mayor número de álbumes?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
5,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Name FROM TRACK WHERE Name LIKE '%you%'",
"query_toks": [
"SELECT",
"Name",
"FROM",
"TRACK",
"WHERE",
"Name",
"LIKE",
"'",
"%",
"you",
"%",
"'"
],
"query_toks_no_value": [
"select",
"name",
"from",
"track",
"where",
"name",
"like",
"value"
],
"question": "Busque los nombres de todas las pistas que contienen la palabra \"you\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
57,
false
],
null
]
]
]
],
"where": [
[
false,
9,
[
0,
[
0,
57,
false
],
null
],
"\"%you%\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Name FROM TRACK WHERE Name LIKE '%you%'",
"query_toks": [
"SELECT",
"Name",
"FROM",
"TRACK",
"WHERE",
"Name",
"LIKE",
"'",
"%",
"you",
"%",
"'"
],
"query_toks_no_value": [
"select",
"name",
"from",
"track",
"where",
"name",
"like",
"value"
],
"question": "¿Cuáles son los nombres de las pistas que contienen la palabra ''you'' en ellas?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
57,
false
],
null
]
]
]
],
"where": [
[
false,
9,
[
0,
[
0,
57,
false
],
null
],
"\"%you%\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(UnitPrice) FROM TRACK",
"query_toks": [
"SELECT",
"AVG",
"(",
"UnitPrice",
")",
"FROM",
"TRACK"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"unitprice",
")",
"from",
"track"
],
"question": "¿Cuál es el precio unitario medio de todas las pistas?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(UnitPrice) FROM TRACK",
"query_toks": [
"SELECT",
"AVG",
"(",
"UnitPrice",
")",
"FROM",
"TRACK"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"unitprice",
")",
"from",
"track"
],
"question": "Calcula el precio unitario medio de una pista.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
5,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK",
"query_toks": [
"SELECT",
"max",
"(",
"Milliseconds",
")",
",",
"min",
"(",
"Milliseconds",
")",
"FROM",
"TRACK"
],
"query_toks_no_value": [
"select",
"max",
"(",
"milliseconds",
")",
",",
"min",
"(",
"milliseconds",
")",
"from",
"track"
],
"question": "¿Cuáles son las duraciones de las pistas más largas y más cortas en milisegundos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
62,
false
],
null
]
],
[
2,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK",
"query_toks": [
"SELECT",
"max",
"(",
"Milliseconds",
")",
",",
"min",
"(",
"Milliseconds",
")",
"FROM",
"TRACK"
],
"query_toks_no_value": [
"select",
"max",
"(",
"milliseconds",
")",
",",
"min",
"(",
"milliseconds",
")",
"from",
"track"
],
"question": "Encuentre la duración máxima y mínima de las pistas en milisegundos.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
false,
[
[
1,
[
0,
[
0,
62,
false
],
null
]
],
[
2,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID",
"query_toks": [
"SELECT",
"T1.Title",
",",
"T2.AlbumID",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"GROUP",
"BY",
"T2.AlbumID"
],
"query_toks_no_value": [
"select",
"t1",
".",
"title",
",",
"t2",
".",
"albumid",
",",
"count",
"(",
"*",
")",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"group",
"by",
"t2",
".",
"albumid"
],
"question": "Muestre los nombres de los álbumes, las identificaciones y el número de pistas de cada álbum.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
0,
[
0,
[
0,
58,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
58,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID",
"query_toks": [
"SELECT",
"T1.Title",
",",
"T2.AlbumID",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"GROUP",
"BY",
"T2.AlbumID"
],
"query_toks_no_value": [
"select",
"t1",
".",
"title",
",",
"t2",
".",
"albumid",
",",
"count",
"(",
"*",
")",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"group",
"by",
"t2",
".",
"albumid"
],
"question": "¿Cuáles son los nombres y las indentificaciones de los diferentes álbumes y cuántas pistas hay en cada uno?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
0,
[
0,
[
0,
58,
false
],
null
]
],
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
58,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.Name",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"GROUP",
"BY",
"T2.GenreId",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"name",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"group",
"by",
"t2",
".",
"genreid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "¿Cuál es el nombre del género más común en todas las pistas?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
35,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
60,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1",
"query_toks": [
"SELECT",
"T1.Name",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"GROUP",
"BY",
"T2.GenreId",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"name",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"group",
"by",
"t2",
".",
"genreid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
],
"question": "Busque el nombre del género que es más frecuente en todas las pistas.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
35,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
60,
false
]
],
"having": [],
"orderBy": [
"desc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"T1.Name",
"FROM",
"MEDIATYPE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.MediaTypeId",
"=",
"T2.MediaTypeId",
"GROUP",
"BY",
"T2.MediaTypeId",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"name",
"from",
"mediatype",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"mediatypeid",
"=",
"t2",
".",
"mediatypeid",
"group",
"by",
"t2",
".",
"mediatypeid",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "¿Cuál es el tipo de medio menos común en todas las pistas?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
50,
false
],
null
],
[
0,
59,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
51,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
59,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1",
"query_toks": [
"SELECT",
"T1.Name",
"FROM",
"MEDIATYPE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.MediaTypeId",
"=",
"T2.MediaTypeId",
"GROUP",
"BY",
"T2.MediaTypeId",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"ASC",
"LIMIT",
"1"
],
"query_toks_no_value": [
"select",
"t1",
".",
"name",
"from",
"mediatype",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"mediatypeid",
"=",
"t2",
".",
"mediatypeid",
"group",
"by",
"t2",
".",
"mediatypeid",
"order",
"by",
"count",
"(",
"*",
")",
"asc",
"limit",
"value"
],
"question": "¿Cuál es el nombre del tipo de medio menos común en todas las pistas?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
50,
false
],
null
],
[
0,
59,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
51,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
59,
false
]
],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
3,
0,
false
],
null
]
]
],
"limit": 1,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID",
"query_toks": [
"SELECT",
"T1.Title",
",",
"T2.AlbumID",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"WHERE",
"T2.UnitPrice",
">",
"1",
"GROUP",
"BY",
"T2.AlbumID"
],
"query_toks_no_value": [
"select",
"t1",
".",
"title",
",",
"t2",
".",
"albumid",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"where",
"t2",
".",
"unitprice",
">",
"value",
"group",
"by",
"t2",
".",
"albumid"
],
"question": "Muestre los nombres y las identificaciones de álbumes de los álbumes que contienen pistas con un precio unitario superior a 1.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
0,
[
0,
[
0,
58,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
64,
false
],
null
],
1.0,
null
]
],
"groupBy": [
[
0,
58,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID",
"query_toks": [
"SELECT",
"T1.Title",
",",
"T2.AlbumID",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"WHERE",
"T2.UnitPrice",
">",
"1",
"GROUP",
"BY",
"T2.AlbumID"
],
"query_toks_no_value": [
"select",
"t1",
".",
"title",
",",
"t2",
".",
"albumid",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"where",
"t2",
".",
"unitprice",
">",
"value",
"group",
"by",
"t2",
".",
"albumid"
],
"question": "¿Cuáles son los títulos y las identificaciones de los álbumes que contienen pistas con un precio unitario superior a 1?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
],
[
0,
[
0,
[
0,
58,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
64,
false
],
null
],
1.0,
null
]
],
"groupBy": [
[
0,
58,
false
]
],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Rock",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "¿Cuántos temas pertenecen al género rock?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Rock\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Rock",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "Cuente el número de pistas que forman parte del género rock.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Rock\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"",
"query_toks": [
"SELECT",
"AVG",
"(",
"UnitPrice",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Jazz",
"''"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"unitprice",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "¿Cuál es el precio unitario medio de las pistas que pertenecen al género Jazz?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Jazz\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"",
"query_toks": [
"SELECT",
"AVG",
"(",
"UnitPrice",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Jazz",
"''"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"unitprice",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "Encuentre el precio unitario medio de las pistas de jazz.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Jazz\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT FirstName , LastName FROM CUSTOMER WHERE Email = \"luisg@embraer.com.br\"",
"query_toks": [
"SELECT",
"FirstName",
",",
"LastName",
"FROM",
"CUSTOMER",
"WHERE",
"Email",
"=",
"``",
"luisg",
"@",
"embraer.com.br",
"''"
],
"query_toks_no_value": [
"select",
"firstname",
",",
"lastname",
"from",
"customer",
"where",
"email",
"=",
"value"
],
"question": "¿Cuál es el nombre y apellido del cliente que tiene correo electrónico \"luisg@embraer.com.br\"?",
"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,
17,
false
],
null
],
"\"luisg@embraer.com.br\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT FirstName , LastName FROM CUSTOMER WHERE Email = \"luisg@embraer.com.br\"",
"query_toks": [
"SELECT",
"FirstName",
",",
"LastName",
"FROM",
"CUSTOMER",
"WHERE",
"Email",
"=",
"``",
"luisg",
"@",
"embraer.com.br",
"''"
],
"query_toks_no_value": [
"select",
"firstname",
",",
"lastname",
"from",
"customer",
"where",
"email",
"=",
"value"
],
"question": "Busque el nombre completo del cliente con el correo electrónico \"luisg@embraer.com.br\".",
"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,
17,
false
],
null
],
"\"luisg@embraer.com.br\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CUSTOMER",
"WHERE",
"Email",
"LIKE",
"``",
"%",
"gmail.com",
"%",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"customer",
"where",
"email",
"like",
"value"
],
"question": "¿Cuántos clientes tienen un correo electrónico que contiene \"gmail.com\"?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
9,
[
0,
[
0,
17,
false
],
null
],
"\"%gmail.com%\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"CUSTOMER",
"WHERE",
"Email",
"LIKE",
"``",
"%",
"gmail.com",
"%",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"customer",
"where",
"email",
"like",
"value"
],
"question": "Cuente la cantidad de clientes que tienen un correo electrónico que contiene \"gmail.com\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
9,
[
0,
[
0,
17,
false
],
null
],
"\"%gmail.com%\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = \"Leonie\"",
"query_toks": [
"SELECT",
"T2.FirstName",
",",
"T2.LastName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"WHERE",
"T1.FirstName",
"=",
"``",
"Leonie",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"where",
"t1",
".",
"firstname",
"=",
"value"
],
"question": "¿Cuál es el nombre y apellido del empleado que ayuda al cliente con el nombre ''Leonie''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
21,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Leonie\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = \"Leonie\"",
"query_toks": [
"SELECT",
"T2.FirstName",
",",
"T2.LastName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"WHERE",
"T1.FirstName",
"=",
"``",
"Leonie",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"firstname",
",",
"t2",
".",
"lastname",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"where",
"t1",
".",
"firstname",
"=",
"value"
],
"question": "Encuentre los nombres completos de los empleados que ayudan a los clientes con el nombre ''Leonie''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
21,
false
],
null
]
],
[
0,
[
0,
[
0,
20,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Leonie\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = \"70174\"",
"query_toks": [
"SELECT",
"T2.City",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"WHERE",
"T1.PostalCode",
"=",
"``",
"70174",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"city",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"where",
"t1",
".",
"postalcode",
"=",
"value"
],
"question": "¿En qué ciudad vive el empleado que ayuda al cliente con el código postal ''70174''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
27,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"70174\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = \"70174\"",
"query_toks": [
"SELECT",
"T2.City",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"WHERE",
"T1.PostalCode",
"=",
"``",
"70174",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"city",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"where",
"t1",
".",
"postalcode",
"=",
"value"
],
"question": "Encuentre las ciudades correspondientes a los empleados que ayudan a los clientes con el código postal ''70174''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
27,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
14,
false
],
null
],
"\"70174\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(DISTINCT city) FROM EMPLOYEE",
"query_toks": [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"city",
")",
"FROM",
"EMPLOYEE"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"city",
")",
"from",
"employee"
],
"question": "¿En cuántas ciudades distintas viven los empleados?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
27,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(DISTINCT city) FROM EMPLOYEE",
"query_toks": [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"city",
")",
"FROM",
"EMPLOYEE"
],
"query_toks_no_value": [
"select",
"count",
"(",
"distinct",
"city",
")",
"from",
"employee"
],
"question": "Encuentre la cantidad de ciudades diferentes en las que viven los empleados.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
27,
true
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = \"Astrid\" AND LastName = \"Gruber\"",
"query_toks": [
"SELECT",
"T2.InvoiceDate",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"INVOICE",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T1.FirstName",
"=",
"``",
"Astrid",
"''",
"AND",
"LastName",
"=",
"``",
"Gruber",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"invoicedate",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"lastname",
"=",
"value"
],
"question": "Encuentre todas las fechas de facturación correspondientes a clientes con nombre ''Astrid'' y apellido ''Gruber''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
38,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Astrid\"",
null
],
"and",
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
"\"Gruber\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = \"Astrid\" AND LastName = \"Gruber\"",
"query_toks": [
"SELECT",
"T2.InvoiceDate",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"INVOICE",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T1.FirstName",
"=",
"``",
"Astrid",
"''",
"AND",
"LastName",
"=",
"``",
"Gruber",
"''"
],
"query_toks_no_value": [
"select",
"t2",
".",
"invoicedate",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t1",
".",
"firstname",
"=",
"value",
"and",
"lastname",
"=",
"value"
],
"question": "¿Cuáles son las fechas de facturación para los clientes con el nombre ''Astrid'' y el apellido ''Gruber''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
38,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
7,
false
],
null
],
"\"Astrid\"",
null
],
"and",
[
false,
2,
[
0,
[
0,
8,
false
],
null
],
"\"Gruber\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20",
"query_toks": [
"SELECT",
"LastName",
"FROM",
"CUSTOMER",
"EXCEPT",
"SELECT",
"T1.LastName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"Invoice",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T2.total",
">",
"20"
],
"query_toks_no_value": [
"select",
"lastname",
"from",
"customer",
"except",
"select",
"t1",
".",
"lastname",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t2",
".",
"total",
">",
"value"
],
"question": "Busque todos los apellidos de los clientes que no tengan totales de factura superiores a 20.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
44,
false
],
null
],
20.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "chinook_1",
"query": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20",
"query_toks": [
"SELECT",
"LastName",
"FROM",
"CUSTOMER",
"EXCEPT",
"SELECT",
"T1.LastName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"Invoice",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T2.total",
">",
"20"
],
"query_toks_no_value": [
"select",
"lastname",
"from",
"customer",
"except",
"select",
"t1",
".",
"lastname",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t2",
".",
"total",
">",
"value"
],
"question": "¿Cuáles son los apellidos de los clientes sin facturas totales superiores a 20?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [
[
false,
3,
[
0,
[
0,
44,
false
],
null
],
20.0,
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "chinook_1",
"query": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.FirstName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"INVOICE",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T1.country",
"=",
"``",
"Brazil",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"firstname",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t1",
".",
"country",
"=",
"value"
],
"question": "Encuentre los nombres de todos los clientes que viven en ''Brasil'' y tienen factura.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
"\"Brazil\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.FirstName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"INVOICE",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T1.country",
"=",
"``",
"Brazil",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"firstname",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t1",
".",
"country",
"=",
"value"
],
"question": "¿Cuáles son los diferentes nombres de los clientes de ''Brasil'' que también han recibido factura?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
"\"Brazil\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Germany\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.Address",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"INVOICE",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T1.country",
"=",
"``",
"Germany",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"address",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t1",
".",
"country",
"=",
"value"
],
"question": "Encuentre la dirección de todos los clientes que viven en ''Alemania'' y tienen factura.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
"\"Germany\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Germany\"",
"query_toks": [
"SELECT",
"DISTINCT",
"T1.Address",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"INVOICE",
"AS",
"T2",
"ON",
"T1.CustomerId",
"=",
"T2.CustomerId",
"WHERE",
"T1.country",
"=",
"``",
"Germany",
"''"
],
"query_toks_no_value": [
"select",
"distinct",
"t1",
".",
"address",
"from",
"customer",
"as",
"t1",
"join",
"invoice",
"as",
"t2",
"on",
"t1",
".",
"customerid",
"=",
"t2",
".",
"customerid",
"where",
"t1",
".",
"country",
"=",
"value"
],
"question": "¿Cuáles son las direcciones de los clientes que viven en ''Alemania'' y que han recibido una factura?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
5
]
],
"conds": [
[
false,
2,
[
0,
[
0,
6,
false
],
null
],
[
0,
37,
false
],
null
]
]
},
"select": [
true,
[
[
0,
[
0,
[
0,
10,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
13,
false
],
null
],
"\"Germany\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Phone FROM EMPLOYEE",
"query_toks": [
"SELECT",
"Phone",
"FROM",
"EMPLOYEE"
],
"query_toks_no_value": [
"select",
"phone",
"from",
"employee"
],
"question": "Enumere los números de teléfono de todos los empleados.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
31,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Phone FROM EMPLOYEE",
"query_toks": [
"SELECT",
"Phone",
"FROM",
"EMPLOYEE"
],
"query_toks_no_value": [
"select",
"phone",
"from",
"employee"
],
"question": "¿Cuáles son los números de teléfono de cada empleado?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
31,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"MEDIATYPE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.MediaTypeId",
"=",
"T2.MediaTypeId",
"WHERE",
"T1.Name",
"=",
"``",
"AAC",
"audio",
"file",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"mediatype",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"mediatypeid",
"=",
"t2",
".",
"mediatypeid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "¿Cuántas pistas hay en el tipo de medio de archivo de audio ''AAC''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
50,
false
],
null
],
[
0,
59,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
51,
false
],
null
],
"\"AAC audio file\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\"",
"query_toks": [
"SELECT",
"COUNT",
"(",
"*",
")",
"FROM",
"MEDIATYPE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.MediaTypeId",
"=",
"T2.MediaTypeId",
"WHERE",
"T1.Name",
"=",
"``",
"AAC",
"audio",
"file",
"''"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"mediatype",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"mediatypeid",
"=",
"t2",
".",
"mediatypeid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "Cuente el número de pistas que son del tipo de medio \"AAC audio file\".",
"sql": {
"from": {
"table_units": [
[
"table_unit",
7
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
50,
false
],
null
],
[
0,
59,
false
],
null
]
]
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
51,
false
],
null
],
"\"AAC audio file\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Latin\" OR T1.Name = \"Pop\"",
"query_toks": [
"SELECT",
"AVG",
"(",
"Milliseconds",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Latin",
"''",
"OR",
"T1.Name",
"=",
"``",
"Pop",
"''"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"milliseconds",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value",
"or",
"t1",
".",
"name",
"=",
"value"
],
"question": "¿Cuál es la duración media en milisegundos de las pistas que pertenecen al género ''Latin'' o ''Pop''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Latin\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Pop\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Latin\" OR T1.Name = \"Pop\"",
"query_toks": [
"SELECT",
"AVG",
"(",
"Milliseconds",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Latin",
"''",
"OR",
"T1.Name",
"=",
"``",
"Pop",
"''"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"milliseconds",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value",
"or",
"t1",
".",
"name",
"=",
"value"
],
"question": "Encuentra la duración media en milisegundos de las pistas ''Latin'' y ''Pop''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Latin\"",
null
],
"or",
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Pop\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10",
"query_toks": [
"SELECT",
"T1.FirstName",
",",
"T1.SupportRepId",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"GROUP",
"BY",
"T1.SupportRepId",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"10"
],
"query_toks_no_value": [
"select",
"t1",
".",
"firstname",
",",
"t1",
".",
"supportrepid",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"group",
"by",
"t1",
".",
"supportrepid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "Muestre los nombres de los empleados y las identificaciones de los empleados que atienden al menos a 10 clientes.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
18,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
10.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10",
"query_toks": [
"SELECT",
"T1.FirstName",
",",
"T1.SupportRepId",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"GROUP",
"BY",
"T1.SupportRepId",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"10"
],
"query_toks_no_value": [
"select",
"t1",
".",
"firstname",
",",
"t1",
".",
"supportrepid",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"group",
"by",
"t1",
".",
"supportrepid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value"
],
"question": "¿Cuáles son los nombres y los representantes de soporte de los empleados que atienden a 10 o más clientes?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
7,
false
],
null
]
],
[
0,
[
0,
[
0,
18,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
18,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
10.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20",
"query_toks": [
"SELECT",
"T1.LastName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"GROUP",
"BY",
"T1.SupportRepId",
"HAVING",
"COUNT",
"(",
"*",
")",
"<",
"=",
"20"
],
"query_toks_no_value": [
"select",
"t1",
".",
"lastname",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"group",
"by",
"t1",
".",
"supportrepid",
"having",
"count",
"(",
"*",
")",
"<",
"=",
"value"
],
"question": "Muestre los apellidos de los empleados que atienden a no más de 20 clientes.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
18,
false
]
],
"having": [
[
false,
6,
[
0,
[
3,
0,
false
],
null
],
20.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20",
"query_toks": [
"SELECT",
"T1.LastName",
"FROM",
"CUSTOMER",
"AS",
"T1",
"JOIN",
"EMPLOYEE",
"AS",
"T2",
"ON",
"T1.SupportRepId",
"=",
"T2.EmployeeId",
"GROUP",
"BY",
"T1.SupportRepId",
"HAVING",
"COUNT",
"(",
"*",
")",
"<",
"=",
"20"
],
"query_toks_no_value": [
"select",
"t1",
".",
"lastname",
"from",
"customer",
"as",
"t1",
"join",
"employee",
"as",
"t2",
"on",
"t1",
".",
"supportrepid",
"=",
"t2",
".",
"employeeid",
"group",
"by",
"t1",
".",
"supportrepid",
"having",
"count",
"(",
"*",
")",
"<",
"=",
"value"
],
"question": "¿Cuáles son los apellidos de los empleados que atienden a un máximo de 20 clientes?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
2
],
[
"table_unit",
3
]
],
"conds": [
[
false,
2,
[
0,
[
0,
18,
false
],
null
],
[
0,
19,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
8,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
18,
false
]
],
"having": [
[
false,
6,
[
0,
[
3,
0,
false
],
null
],
20.0,
null
]
],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Title FROM ALBUM ORDER BY Title",
"query_toks": [
"SELECT",
"Title",
"FROM",
"ALBUM",
"ORDER",
"BY",
"Title"
],
"query_toks_no_value": [
"select",
"title",
"from",
"album",
"order",
"by",
"title"
],
"question": "Enumere todos los títulos de los álbumes en orden alfabético.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
2,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Title FROM ALBUM ORDER BY Title",
"query_toks": [
"SELECT",
"Title",
"FROM",
"ALBUM",
"ORDER",
"BY",
"Title"
],
"query_toks_no_value": [
"select",
"title",
"from",
"album",
"order",
"by",
"title"
],
"question": "¿Cuáles son todos los títulos de los álbumes, en orden alfabético?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [
"asc",
[
[
0,
[
0,
2,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name",
"query_toks": [
"SELECT",
"T2.Name",
",",
"T1.ArtistId",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistID",
"GROUP",
"BY",
"T1.ArtistId",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"3",
"ORDER",
"BY",
"T2.Name"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
",",
"t1",
".",
"artistid",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"group",
"by",
"t1",
".",
"artistid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value",
"order",
"by",
"t2",
".",
"name"
],
"question": "Enumere el nombre y la identificación de todos los artistas que tengan al menos 3 álbumes en orden alfabético.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3.0,
null
]
],
"orderBy": [
"asc",
[
[
0,
[
0,
5,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name",
"query_toks": [
"SELECT",
"T2.Name",
",",
"T1.ArtistId",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistID",
"GROUP",
"BY",
"T1.ArtistId",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"=",
"3",
"ORDER",
"BY",
"T2.Name"
],
"query_toks_no_value": [
"select",
"t2",
".",
"name",
",",
"t1",
".",
"artistid",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid",
"group",
"by",
"t1",
".",
"artistid",
"having",
"count",
"(",
"*",
")",
">",
"=",
"value",
"order",
"by",
"t2",
".",
"name"
],
"question": "¿Cuáles son los nombres y las identificaciones de los artistas con 3 o más álbumes, enumerados en orden alfabético?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
],
[
0,
[
0,
[
0,
3,
false
],
null
]
]
]
],
"where": [],
"groupBy": [
[
0,
3,
false
]
],
"having": [
[
false,
5,
[
0,
[
3,
0,
false
],
null
],
3.0,
null
]
],
"orderBy": [
"asc",
[
[
0,
[
0,
5,
false
],
null
]
]
],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId",
"query_toks": [
"SELECT",
"Name",
"FROM",
"ARTIST",
"EXCEPT",
"SELECT",
"T2.Name",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId"
],
"query_toks_no_value": [
"select",
"name",
"from",
"artist",
"except",
"select",
"t2",
".",
"name",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid"
],
"question": "Busque los nombres de los artistas que no tienen ningún álbum.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "chinook_1",
"query": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId",
"query_toks": [
"SELECT",
"Name",
"FROM",
"ARTIST",
"EXCEPT",
"SELECT",
"T2.Name",
"FROM",
"ALBUM",
"AS",
"T1",
"JOIN",
"ARTIST",
"AS",
"T2",
"ON",
"T1.ArtistId",
"=",
"T2.ArtistId"
],
"query_toks_no_value": [
"select",
"name",
"from",
"artist",
"except",
"select",
"t2",
".",
"name",
"from",
"album",
"as",
"t1",
"join",
"artist",
"as",
"t2",
"on",
"t1",
".",
"artistid",
"=",
"t2",
".",
"artistid"
],
"question": "¿Cuáles son los nombres de los artistas que no han lanzado ningún álbum?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
1
]
],
"conds": [
[
false,
2,
[
0,
[
0,
3,
false
],
null
],
[
0,
4,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
5,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"",
"query_toks": [
"SELECT",
"AVG",
"(",
"T2.UnitPrice",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Rock",
"''"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"t2",
".",
"unitprice",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "¿Cuál es el precio unitario medio de las pistas de rock?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Rock\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"",
"query_toks": [
"SELECT",
"AVG",
"(",
"T2.UnitPrice",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Rock",
"''"
],
"query_toks_no_value": [
"select",
"avg",
"(",
"t2",
".",
"unitprice",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "Encuentre el precio unitario medio de las pistas del género Rock.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
5,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Rock\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\"",
"query_toks": [
"SELECT",
"max",
"(",
"Milliseconds",
")",
",",
"min",
"(",
"Milliseconds",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Pop",
"''"
],
"query_toks_no_value": [
"select",
"max",
"(",
"milliseconds",
")",
",",
"min",
"(",
"milliseconds",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "¿Cuál es la duración de las pistas pop más largas y más cortas en milisegundos?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
1,
[
0,
[
0,
62,
false
],
null
]
],
[
2,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Pop\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\"",
"query_toks": [
"SELECT",
"max",
"(",
"Milliseconds",
")",
",",
"min",
"(",
"Milliseconds",
")",
"FROM",
"GENRE",
"AS",
"T1",
"JOIN",
"TRACK",
"AS",
"T2",
"ON",
"T1.GenreId",
"=",
"T2.GenreId",
"WHERE",
"T1.Name",
"=",
"``",
"Pop",
"''"
],
"query_toks_no_value": [
"select",
"max",
"(",
"milliseconds",
")",
",",
"min",
"(",
"milliseconds",
")",
"from",
"genre",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"genreid",
"=",
"t2",
".",
"genreid",
"where",
"t1",
".",
"name",
"=",
"value"
],
"question": "Encuentre las longitudes máxima y mínima en milisegundos de las pistas pop.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
4
],
[
"table_unit",
10
]
],
"conds": [
[
false,
2,
[
0,
[
0,
34,
false
],
null
],
[
0,
60,
false
],
null
]
]
},
"select": [
false,
[
[
1,
[
0,
[
0,
62,
false
],
null
]
],
[
2,
[
0,
[
0,
62,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Pop\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT BirthDate FROM EMPLOYEE WHERE City = \"Edmonton\"",
"query_toks": [
"SELECT",
"BirthDate",
"FROM",
"EMPLOYEE",
"WHERE",
"City",
"=",
"``",
"Edmonton",
"''"
],
"query_toks_no_value": [
"select",
"birthdate",
"from",
"employee",
"where",
"city",
"=",
"value"
],
"question": "¿Cuáles son las fechas de nacimiento de los empleados que viven en ''Edmonton''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
24,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
27,
false
],
null
],
"\"Edmonton\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT BirthDate FROM EMPLOYEE WHERE City = \"Edmonton\"",
"query_toks": [
"SELECT",
"BirthDate",
"FROM",
"EMPLOYEE",
"WHERE",
"City",
"=",
"``",
"Edmonton",
"''"
],
"query_toks_no_value": [
"select",
"birthdate",
"from",
"employee",
"where",
"city",
"=",
"value"
],
"question": "Encuentre las fechas de nacimiento correspondientes a los empleados que viven en la ciudad de ''Edmonton''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
3
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
24,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
27,
false
],
null
],
"\"Edmonton\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT distinct(UnitPrice) FROM TRACK",
"query_toks": [
"SELECT",
"distinct",
"(",
"UnitPrice",
")",
"FROM",
"TRACK"
],
"query_toks_no_value": [
"select",
"distinct",
"(",
"unitprice",
")",
"from",
"track"
],
"question": "¿Cuáles son los precios unitarios distintos de todas las pistas?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT distinct(UnitPrice) FROM TRACK",
"query_toks": [
"SELECT",
"distinct",
"(",
"UnitPrice",
")",
"FROM",
"TRACK"
],
"query_toks_no_value": [
"select",
"distinct",
"(",
"unitprice",
")",
"from",
"track"
],
"question": "Encuentre los distintos precios unitarios de las pistas.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
10
]
],
"conds": []
},
"select": [
true,
[
[
0,
[
0,
[
0,
64,
false
],
null
]
]
]
],
"where": [],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ARTIST",
"WHERE",
"artistid",
"NOT",
"IN",
"(",
"SELECT",
"artistid",
"FROM",
"ALBUM",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"artist",
"where",
"artistid",
"not",
"in",
"(",
"select",
"artistid",
"from",
"album",
")"
],
"question": "¿Cuántos artistas no tienen ningún disco?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
4,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
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": "chinook_1",
"query": "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)",
"query_toks": [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"ARTIST",
"WHERE",
"artistid",
"NOT",
"IN",
"(",
"SELECT",
"artistid",
"FROM",
"ALBUM",
")"
],
"query_toks_no_value": [
"select",
"count",
"(",
"*",
")",
"from",
"artist",
"where",
"artistid",
"not",
"in",
"(",
"select",
"artistid",
"from",
"album",
")"
],
"question": "Calcule el número de artistas que no han lanzado un álbum.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
1
]
],
"conds": []
},
"select": [
false,
[
[
3,
[
0,
[
0,
0,
false
],
null
]
]
]
],
"where": [
[
true,
8,
[
0,
[
0,
4,
false
],
null
],
{
"from": {
"table_units": [
[
"table_unit",
0
]
],
"conds": []
},
"select": [
false,
[
[
0,
[
0,
[
0,
3,
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": "chinook_1",
"query": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'",
"query_toks": [
"SELECT",
"T1.Title",
"FROM",
"Album",
"AS",
"T1",
"JOIN",
"Track",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"JOIN",
"Genre",
"AS",
"T3",
"ON",
"T2.GenreID",
"=",
"T3.GenreID",
"WHERE",
"T3.Name",
"=",
"'Reggae",
"'",
"INTERSECT",
"SELECT",
"T1.Title",
"FROM",
"Album",
"AS",
"T1",
"JOIN",
"Track",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"JOIN",
"Genre",
"AS",
"T3",
"ON",
"T2.GenreID",
"=",
"T3.GenreID",
"WHERE",
"T3.Name",
"=",
"'Rock",
"'"
],
"query_toks_no_value": [
"select",
"t1",
".",
"title",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"join",
"genre",
"as",
"t3",
"on",
"t2",
".",
"genreid",
"=",
"t3",
".",
"genreid",
"where",
"t3",
".",
"name",
"=",
"value",
"intersect",
"select",
"t1",
".",
"title",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"join",
"genre",
"as",
"t3",
"on",
"t2",
".",
"genreid",
"=",
"t3",
".",
"genreid",
"where",
"t3",
".",
"name",
"=",
"value"
],
"question": "¿Cuáles son los títulos de los álbumes que contienen pistas de los géneros ''Reggae'' y ''Rock''?",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
60,
false
],
null
],
[
0,
34,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Reggae\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
60,
false
],
null
],
[
0,
34,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Rock\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
}
},
{
"db_id": "chinook_1",
"query": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'",
"query_toks": [
"SELECT",
"T1.Title",
"FROM",
"Album",
"AS",
"T1",
"JOIN",
"Track",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"JOIN",
"Genre",
"AS",
"T3",
"ON",
"T2.GenreID",
"=",
"T3.GenreID",
"WHERE",
"T3.Name",
"=",
"'Reggae",
"'",
"INTERSECT",
"SELECT",
"T1.Title",
"FROM",
"Album",
"AS",
"T1",
"JOIN",
"Track",
"AS",
"T2",
"ON",
"T1.AlbumId",
"=",
"T2.AlbumId",
"JOIN",
"Genre",
"AS",
"T3",
"ON",
"T2.GenreID",
"=",
"T3.GenreID",
"WHERE",
"T3.Name",
"=",
"'Rock",
"'"
],
"query_toks_no_value": [
"select",
"t1",
".",
"title",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"join",
"genre",
"as",
"t3",
"on",
"t2",
".",
"genreid",
"=",
"t3",
".",
"genreid",
"where",
"t3",
".",
"name",
"=",
"value",
"intersect",
"select",
"t1",
".",
"title",
"from",
"album",
"as",
"t1",
"join",
"track",
"as",
"t2",
"on",
"t1",
".",
"albumid",
"=",
"t2",
".",
"albumid",
"join",
"genre",
"as",
"t3",
"on",
"t2",
".",
"genreid",
"=",
"t3",
".",
"genreid",
"where",
"t3",
".",
"name",
"=",
"value"
],
"question": "Busque los títulos de álbumes que contienen pistas de los géneros ''Reggae'' y ''Rock''.",
"sql": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
60,
false
],
null
],
[
0,
34,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Reggae\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": {
"from": {
"table_units": [
[
"table_unit",
0
],
[
"table_unit",
10
],
[
"table_unit",
4
]
],
"conds": [
[
false,
2,
[
0,
[
0,
1,
false
],
null
],
[
0,
58,
false
],
null
],
"and",
[
false,
2,
[
0,
[
0,
60,
false
],
null
],
[
0,
34,
false
],
null
]
]
},
"select": [
false,
[
[
0,
[
0,
[
0,
2,
false
],
null
]
]
]
],
"where": [
[
false,
2,
[
0,
[
0,
35,
false
],
null
],
"\"Rock\"",
null
]
],
"groupBy": [],
"having": [],
"orderBy": [],
"limit": null,
"intersect": null,
"union": null,
"except": null
},
"union": null,
"except": null
}
}
]