[{"db_id":"soccer_3","query":"SELECT count(*) FROM club","query_toks":["SELECT","count","(","*",")","FROM","club"],"query_toks_no_value":["select","count","(","*",")","from","club"],"question":"Quantos clubes existem?","question_toks":["Quantos","clubes","existem","?"],"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":"soccer_3","query":"SELECT count(*) FROM club","query_toks":["SELECT","count","(","*",")","FROM","club"],"query_toks_no_value":["select","count","(","*",")","from","club"],"question":"Conte o número de clubes.","question_toks":["Conte","o","número","de","clubes","."],"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":"soccer_3","query":"SELECT Name FROM club ORDER BY Name ASC","query_toks":["SELECT","Name","FROM","club","ORDER","BY","Name","ASC"],"query_toks_no_value":["select","name","from","club","order","by","name","asc"],"question":"Liste o nome dos clubes em ordem alfabética ascendente.","question_toks":["Liste","o","nome","dos","clubes","em","ordem","alfabética","ascendente","."],"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":"soccer_3","query":"SELECT Name FROM club ORDER BY Name ASC","query_toks":["SELECT","Name","FROM","club","ORDER","BY","Name","ASC"],"query_toks_no_value":["select","name","from","club","order","by","name","asc"],"question":"Quais são os nomes dos clubes, ordenados alfabeticamente?","question_toks":["Quais","são","os","nomes","dos","clubes",",","ordenados","alfabeticamente","?"],"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":"soccer_3","query":"SELECT Manager , Captain FROM club","query_toks":["SELECT","Manager",",","Captain","FROM","club"],"query_toks_no_value":["select","manager",",","captain","from","club"],"question":"Quais são os gerentes e capitães dos clubes?","question_toks":["Quais","são","os","gerentes","e","capitães","dos","clubes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Manager , Captain FROM club","query_toks":["SELECT","Manager",",","Captain","FROM","club"],"query_toks_no_value":["select","manager",",","captain","from","club"],"question":"Retorne os gerentes e capitães de todos os clubes.","question_toks":["Retorne","os","gerentes","e","capitães","de","todos","os","clubes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Name FROM club WHERE Manufacturer != \"Nike\"","query_toks":["SELECT","Name","FROM","club","WHERE","Manufacturer","!","=","``","Nike","''"],"query_toks_no_value":["select","name","from","club","where","manufacturer","!","=","value"],"question":"Liste o nome dos clubes cujo fabricante não é \"Nike\".","question_toks":["Liste","o","nome","dos","clubes","cujo","fabricante","não","é","``","Nike","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,7,[0,[0,5,false],null],"\"Nike\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Name FROM club WHERE Manufacturer != \"Nike\"","query_toks":["SELECT","Name","FROM","club","WHERE","Manufacturer","!","=","``","Nike","''"],"query_toks_no_value":["select","name","from","club","where","manufacturer","!","=","value"],"question":"Quais são os nomes dos clubes que não têm como fabricante a Nike?","question_toks":["Quais","são","os","nomes","dos","clubes","que","não","têm","como","fabricante","a","Nike","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,7,[0,[0,5,false],null],"\"Nike\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Name FROM player ORDER BY Wins_count ASC","query_toks":["SELECT","Name","FROM","player","ORDER","BY","Wins_count","ASC"],"query_toks_no_value":["select","name","from","player","order","by","wins_count","asc"],"question":"Quais são os nomes dos jogadores em ordem ascendente de contagem de vitórias?","question_toks":["Quais","são","os","nomes","dos","jogadores","em","ordem","ascendente","de","contagem","de","vitórias","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Name FROM player ORDER BY Wins_count ASC","query_toks":["SELECT","Name","FROM","player","ORDER","BY","Wins_count","ASC"],"query_toks_no_value":["select","name","from","player","order","by","wins_count","asc"],"question":"Retorne os nomes dos jogadores em ordem de contagem de vitórias, ascendente.","question_toks":["Retorne","os","nomes","dos","jogadores","em","ordem","de","contagem","de","vitórias",",","ascendente","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Name FROM player ORDER BY Earnings DESC LIMIT 1","query_toks":["SELECT","Name","FROM","player","ORDER","BY","Earnings","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","player","order","by","earnings","desc","limit","value"],"question":"Qual é o nome do jogador com os maiores ganhos?","question_toks":["Qual","é","o","nome","do","jogador","com","os","maiores","ganhos","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Name FROM player ORDER BY Earnings DESC LIMIT 1","query_toks":["SELECT","Name","FROM","player","ORDER","BY","Earnings","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","player","order","by","earnings","desc","limit","value"],"question":"Retorne o nome do jogador que ganha mais dinheiro.","question_toks":["Retorne","o","nome","do","jogador","que","ganha","mais","dinheiro","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT DISTINCT Country FROM player WHERE Earnings > 1200000","query_toks":["SELECT","DISTINCT","Country","FROM","player","WHERE","Earnings",">","1200000"],"query_toks_no_value":["select","distinct","country","from","player","where","earnings",">","value"],"question":"Quais são os países distintos de jogadores com ganhos superiores a 1200000?","question_toks":["Quais","são","os","países","distintos","de","jogadores","com","ganhos","superiores","a","1200000","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,10,false],null],1200000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT DISTINCT Country FROM player WHERE Earnings > 1200000","query_toks":["SELECT","DISTINCT","Country","FROM","player","WHERE","Earnings",">","1200000"],"query_toks_no_value":["select","distinct","country","from","player","where","earnings",">","value"],"question":"De quais países são os jogadores que ganham mais de 1200000?","question_toks":["De","quais","países","são","os","jogadores","que","ganham","mais","de","1200000","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,10,false],null],1200000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Country FROM player WHERE Wins_count > 2 ORDER BY Earnings DESC LIMIT 1","query_toks":["SELECT","Country","FROM","player","WHERE","Wins_count",">","2","ORDER","BY","Earnings","DESC","LIMIT","1"],"query_toks_no_value":["select","country","from","player","where","wins_count",">","value","order","by","earnings","desc","limit","value"],"question":"Qual é o país do jogador com os maiores ganhos entre os jogadores que têm mais de 2 vitórias?","question_toks":["Qual","é","o","país","do","jogador","com","os","maiores","ganhos","entre","os","jogadores","que","têm","mais","de","2","vitórias","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,12,false],null],2.0,null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Country FROM player WHERE Wins_count > 2 ORDER BY Earnings DESC LIMIT 1","query_toks":["SELECT","Country","FROM","player","WHERE","Wins_count",">","2","ORDER","BY","Earnings","DESC","LIMIT","1"],"query_toks_no_value":["select","country","from","player","where","wins_count",">","value","order","by","earnings","desc","limit","value"],"question":"Dos jogadores que têm mais de 2 vitórias, qual é o país do jogador que mais ganha?","question_toks":["Dos","jogadores","que","têm","mais","de","2","vitórias",",","qual","é","o","país","do","jogador","que","mais","ganha","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,12,false],null],2.0,null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T2.Name , T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID","query_toks":["SELECT","T2.Name",",","T1.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID"],"query_toks_no_value":["select","t2",".","name",",","t1",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id"],"question":"Mostre os nomes dos jogadores e os nomes dos clubes em que estão.","question_toks":["Mostre","os","nomes","dos","jogadores","e","os","nomes","dos","clubes","em","que","estão","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T2.Name , T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID","query_toks":["SELECT","T2.Name",",","T1.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID"],"query_toks_no_value":["select","t2",".","name",",","t1",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id"],"question":"Quais são os nomes dos jogadores e os clubes correspondentes em que eles estão?","question_toks":["Quais","são","os","nomes","dos","jogadores","e","os","clubes","correspondentes","em","que","eles","estão","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Wins_count > 2","query_toks":["SELECT","T1.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","WHERE","T2.Wins_count",">","2"],"query_toks_no_value":["select","t1",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id","where","t2",".","wins_count",">","value"],"question":"Mostre os nomes dos clubes que têm jogadores com mais de 2 vitórias.","question_toks":["Mostre","os","nomes","dos","clubes","que","têm","jogadores","com","mais","de","2","vitórias","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,12,false],null],2.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.Wins_count > 2","query_toks":["SELECT","T1.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","WHERE","T2.Wins_count",">","2"],"query_toks_no_value":["select","t1",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id","where","t2",".","wins_count",">","value"],"question":"Quais são os nomes dos clubes que têm jogadores que venceram mais de duas vezes?","question_toks":["Quais","são","os","nomes","dos","clubes","que","têm","jogadores","que","venceram","mais","de","duas","vezes","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,12,false],null],2.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T2.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.Manager = \"Sam Allardyce\"","query_toks":["SELECT","T2.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","WHERE","T1.Manager","=","``","Sam","Allardyce","''"],"query_toks_no_value":["select","t2",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id","where","t1",".","manager","=","value"],"question":"Mostre os nomes dos jogadores do clube com o gerente \"Sam Allardyce\".","question_toks":["Mostre","os","nomes","dos","jogadores","do","clube","com","o","gerente","``","Sam","Allardyce","''","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Sam Allardyce\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T2.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T1.Manager = \"Sam Allardyce\"","query_toks":["SELECT","T2.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","WHERE","T1.Manager","=","``","Sam","Allardyce","''"],"query_toks_no_value":["select","t2",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id","where","t1",".","manager","=","value"],"question":"Quais são os nomes dos jogadores do clube gerido por Sam Allardyce?","question_toks":["Quais","são","os","nomes","dos","jogadores","do","clube","gerido","por","Sam","Allardyce","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Sam Allardyce\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID GROUP BY T1.Club_ID ORDER BY avg(T2.Earnings) DESC","query_toks":["SELECT","T1.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","GROUP","BY","T1.Club_ID","ORDER","BY","avg","(","T2.Earnings",")","DESC"],"query_toks_no_value":["select","t1",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id","group","by","t1",".","club_id","order","by","avg","(","t2",".","earnings",")","desc"],"question":"Mostre os nomes dos clubes em ordem decrescente da média de ganhos dos jogadores pertencentes.","question_toks":["Mostre","os","nomes","dos","clubes","em","ordem","decrescente","da","média","de","ganhos","dos","jogadores","pertencentes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[5,10,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT T1.Name FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID GROUP BY T1.Club_ID ORDER BY avg(T2.Earnings) DESC","query_toks":["SELECT","T1.Name","FROM","club","AS","T1","JOIN","player","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","GROUP","BY","T1.Club_ID","ORDER","BY","avg","(","T2.Earnings",")","DESC"],"query_toks_no_value":["select","t1",".","name","from","club","as","t1","join","player","as","t2","on","t1",".","club_id","=","t2",".","club_id","group","by","t1",".","club_id","order","by","avg","(","t2",".","earnings",")","desc"],"question":"Quais são os nomes dos clubes, ordenados de forma decrescente pela média de ganhos dos jogadores de cada clube?","question_toks":["Quais","são","os","nomes","dos","clubes",",","ordenados","de","forma","decrescente","pela","média","de","ganhos","dos","jogadores","de","cada","clube","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[5,10,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Manufacturer , COUNT(*) FROM club GROUP BY Manufacturer","query_toks":["SELECT","Manufacturer",",","COUNT","(","*",")","FROM","club","GROUP","BY","Manufacturer"],"query_toks_no_value":["select","manufacturer",",","count","(","*",")","from","club","group","by","manufacturer"],"question":"Mostre os diferentes fabricantes e o número de clubes com os quais estão associados.","question_toks":["Mostre","os","diferentes","fabricantes","e","o","número","de","clubes","com","os","quais","estão","associados","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Manufacturer , COUNT(*) FROM club GROUP BY Manufacturer","query_toks":["SELECT","Manufacturer",",","COUNT","(","*",")","FROM","club","GROUP","BY","Manufacturer"],"query_toks_no_value":["select","manufacturer",",","count","(","*",")","from","club","group","by","manufacturer"],"question":"Quantos clubes utilizam cada fabricante?","question_toks":["Quantos","clubes","utilizam","cada","fabricante","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Manufacturer FROM club GROUP BY Manufacturer ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Manufacturer","FROM","club","GROUP","BY","Manufacturer","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","manufacturer","from","club","group","by","manufacturer","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre o fabricante mais comum de clubes.","question_toks":["Mostre","o","fabricante","mais","comum","de","clubes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"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":"soccer_3","query":"SELECT Manufacturer FROM club GROUP BY Manufacturer ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Manufacturer","FROM","club","GROUP","BY","Manufacturer","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","manufacturer","from","club","group","by","manufacturer","order","by","count","(","*",")","desc","limit","value"],"question":"Qual fabricante é o mais comum entre os clubes?","question_toks":["Qual","fabricante","é","o","mais","comum","entre","os","clubes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"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":"soccer_3","query":"SELECT Manufacturer FROM club GROUP BY Manufacturer HAVING COUNT(*) > 1","query_toks":["SELECT","Manufacturer","FROM","club","GROUP","BY","Manufacturer","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","manufacturer","from","club","group","by","manufacturer","having","count","(","*",")",">","value"],"question":"Liste os fabricantes que estão associados a mais de um clube.","question_toks":["Liste","os","fabricantes","que","estão","associados","a","mais","de","um","clube","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Manufacturer FROM club GROUP BY Manufacturer HAVING COUNT(*) > 1","query_toks":["SELECT","Manufacturer","FROM","club","GROUP","BY","Manufacturer","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","manufacturer","from","club","group","by","manufacturer","having","count","(","*",")",">","value"],"question":"Quais fabricantes trabalham para mais de 1 clube?","question_toks":["Quais","fabricantes","trabalham","para","mais","de","1","clube","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Country FROM player GROUP BY Country HAVING COUNT(*) > 1","query_toks":["SELECT","Country","FROM","player","GROUP","BY","Country","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","country","from","player","group","by","country","having","count","(","*",")",">","value"],"question":"Liste os países que têm mais de um jogador.","question_toks":["Liste","os","países","que","têm","mais","de","um","jogador","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Country FROM player GROUP BY Country HAVING COUNT(*) > 1","query_toks":["SELECT","Country","FROM","player","GROUP","BY","Country","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","country","from","player","group","by","country","having","count","(","*",")",">","value"],"question":"Quais países produziram mais de um jogador?","question_toks":["Quais","países","produziram","mais","de","um","jogador","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Name FROM club WHERE Club_ID NOT IN (SELECT Club_ID FROM player)","query_toks":["SELECT","Name","FROM","club","WHERE","Club_ID","NOT","IN","(","SELECT","Club_ID","FROM","player",")"],"query_toks_no_value":["select","name","from","club","where","club_id","not","in","(","select","club_id","from","player",")"],"question":"Liste o nome dos clubes que não têm jogadores.","question_toks":["Liste","o","nome","dos","clubes","que","não","têm","jogadores","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"soccer_3","query":"SELECT Name FROM club WHERE Club_ID NOT IN (SELECT Club_ID FROM player)","query_toks":["SELECT","Name","FROM","club","WHERE","Club_ID","NOT","IN","(","SELECT","Club_ID","FROM","player",")"],"query_toks_no_value":["select","name","from","club","where","club_id","not","in","(","select","club_id","from","player",")"],"question":"Quais são os nomes dos clubes que não têm jogadores?","question_toks":["Quais","são","os","nomes","dos","clubes","que","não","têm","jogadores","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"soccer_3","query":"SELECT Country FROM player WHERE Earnings > 1400000 INTERSECT SELECT Country FROM player WHERE Earnings < 1100000","query_toks":["SELECT","Country","FROM","player","WHERE","Earnings",">","1400000","INTERSECT","SELECT","Country","FROM","player","WHERE","Earnings","<","1100000"],"query_toks_no_value":["select","country","from","player","where","earnings",">","value","intersect","select","country","from","player","where","earnings","<","value"],"question":"Mostre o país dos jogadores com ganhos superiores a 1400000 e dos jogadores com ganhos inferiores a 1100000.","question_toks":["Mostre","o","país","dos","jogadores","com","ganhos","superiores","a","1400000","e","dos","jogadores","com","ganhos","inferiores","a","1100000","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,10,false],null],1400000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,4,[0,[0,10,false],null],1100000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Country FROM player WHERE Earnings > 1400000 INTERSECT SELECT Country FROM player WHERE Earnings < 1100000","query_toks":["SELECT","Country","FROM","player","WHERE","Earnings",">","1400000","INTERSECT","SELECT","Country","FROM","player","WHERE","Earnings","<","1100000"],"query_toks_no_value":["select","country","from","player","where","earnings",">","value","intersect","select","country","from","player","where","earnings","<","value"],"question":"Qual país produziu tanto jogadores com ganhos acima de 1400000 quanto jogadores com ganhos abaixo de 1100000?","question_toks":["Qual","país","produziu","tanto","jogadores","com","ganhos","acima","de","1400000","quanto","jogadores","com","ganhos","abaixo","de","1100000","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,10,false],null],1400000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,4,[0,[0,10,false],null],1100000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT COUNT (DISTINCT Country) FROM player","query_toks":["SELECT","COUNT","(","DISTINCT","Country",")","FROM","player"],"query_toks_no_value":["select","count","(","distinct","country",")","from","player"],"question":"Qual é o número de países distintos de todos os jogadores?","question_toks":["Qual","é","o","número","de","países","distintos","de","todos","os","jogadores","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,9,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT COUNT (DISTINCT Country) FROM player","query_toks":["SELECT","COUNT","(","DISTINCT","Country",")","FROM","player"],"query_toks_no_value":["select","count","(","distinct","country",")","from","player"],"question":"De quantos países diferentes os jogadores são?","question_toks":["De","quantos","países","diferentes","os","jogadores","são","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,9,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Earnings FROM player WHERE Country = \"Australia\" OR Country = \"Zimbabwe\"","query_toks":["SELECT","Earnings","FROM","player","WHERE","Country","=","``","Australia","''","OR","Country","=","``","Zimbabwe","''"],"query_toks_no_value":["select","earnings","from","player","where","country","=","value","or","country","=","value"],"question":"Mostre os ganhos dos jogadores do país \"Australia\" ou \"Zimbabwe\".","question_toks":["Mostre","os","ganhos","dos","jogadores","do","país","``","Australia","''","ou","``","Zimbabwe","''","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Australia\"",null],"or",[false,2,[0,[0,9,false],null],"\"Zimbabwe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"soccer_3","query":"SELECT Earnings FROM player WHERE Country = \"Australia\" OR Country = \"Zimbabwe\"","query_toks":["SELECT","Earnings","FROM","player","WHERE","Country","=","``","Australia","''","OR","Country","=","``","Zimbabwe","''"],"query_toks_no_value":["select","earnings","from","player","where","country","=","value","or","country","=","value"],"question":"Quais são os ganhos dos jogadores de qualquer um dos países, Australia ou Zimbabwe?","question_toks":["Quais","são","os","ganhos","dos","jogadores","de","qualquer","um","dos","países",",","Australia","ou","Zimbabwe","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Australia\"",null],"or",[false,2,[0,[0,9,false],null],"\"Zimbabwe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.customer_id , T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2 INTERSECT SELECT T1.customer_id , T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING count(*) >= 3","query_toks":["SELECT","T1.customer_id",",","T1.customer_first_name",",","T1.customer_last_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id","HAVING","count","(","*",")",">","2","INTERSECT","SELECT","T1.customer_id",",","T1.customer_first_name",",","T1.customer_last_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","JOIN","Order_items","AS","T3","ON","T2.order_id","=","T3.order_id","GROUP","BY","T1.customer_id","HAVING","count","(","*",")",">","=","3"],"query_toks_no_value":["select","t1",".","customer_id",",","t1",".","customer_first_name",",","t1",".","customer_last_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id","having","count","(","*",")",">","value","intersect","select","t1",".","customer_id",",","t1",".","customer_first_name",",","t1",".","customer_last_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","order_items","as","t3","on","t2",".","order_id","=","t3",".","order_id","group","by","t1",".","customer_id","having","count","(","*",")",">","=","value"],"question":"Liste o id, o primeiro nome e o sobrenome dos clientes que fizeram mais de 2 pedidos e compraram pelo menos 3 itens.","question_toks":["Liste","o","id",",","o","primeiro","nome","e","o","sobrenome","dos","clientes","que","fizeram","mais","de","2","pedidos","e","compraram","pelo","menos","3","itens","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null]]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null],"and",[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.customer_id , T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) > 2 INTERSECT SELECT T1.customer_id , T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING count(*) >= 3","query_toks":["SELECT","T1.customer_id",",","T1.customer_first_name",",","T1.customer_last_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id","HAVING","count","(","*",")",">","2","INTERSECT","SELECT","T1.customer_id",",","T1.customer_first_name",",","T1.customer_last_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","JOIN","Order_items","AS","T3","ON","T2.order_id","=","T3.order_id","GROUP","BY","T1.customer_id","HAVING","count","(","*",")",">","=","3"],"query_toks_no_value":["select","t1",".","customer_id",",","t1",".","customer_first_name",",","t1",".","customer_last_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id","having","count","(","*",")",">","value","intersect","select","t1",".","customer_id",",","t1",".","customer_first_name",",","t1",".","customer_last_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","order_items","as","t3","on","t2",".","order_id","=","t3",".","order_id","group","by","t1",".","customer_id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids, os primeiros e os últimos nomes dos clientes que fizeram pedidos mais de duas vezes e compraram pelo menos 3 itens?","question_toks":["Quais","são","os","ids",",","os","primeiros","e","os","últimos","nomes","dos","clientes","que","fizeram","pedidos","mais","de","duas","vezes","e","compraram","pelo","menos","3","itens","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null]]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null],"and",[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_id , T1.order_status_code , count(*) FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id","query_toks":["SELECT","T1.order_id",",","T1.order_status_code",",","count","(","*",")","FROM","Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id"],"query_toks_no_value":["select","t1",".","order_id",",","t1",".","order_status_code",",","count","(","*",")","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id"],"question":"Para os pedidos com quaisquer produtos, quantos produtos cada pedido contém? Liste o id do pedido, o status e o número.","question_toks":["Para","os","pedidos","com","quaisquer","produtos",",","quantos","produtos","cada","pedido","contém","?","Liste","o","id","do","pedido",",","o","status","e","o","número","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,26,false],null]],[0,[0,[0,28,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_id , T1.order_status_code , count(*) FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id","query_toks":["SELECT","T1.order_id",",","T1.order_status_code",",","count","(","*",")","FROM","Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id"],"query_toks_no_value":["select","t1",".","order_id",",","t1",".","order_status_code",",","count","(","*",")","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id"],"question":"Para cada pedido, quantos produtos ele contém e quais são os status e ids dos pedidos?","question_toks":["Para","cada","pedido",",","quantos","produtos","ele","contém","e","quais","são","os","status","e","ids","dos","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,26,false],null]],[0,[0,[0,28,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT min(date_order_placed) FROM Orders UNION SELECT T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) > 1","query_toks":["SELECT","min","(","date_order_placed",")","FROM","Orders","UNION","SELECT","T1.date_order_placed","FROM","Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","min","(","date_order_placed",")","from","orders","union","select","t1",".","date_order_placed","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id","having","count","(","*",")",">","value"],"question":"Liste as datas dos pedidos que foram feitos em primeiro lugar ou que têm mais de 1 item.","question_toks":["Liste","as","datas","dos","pedidos","que","foram","feitos","em","primeiro","lugar","ou","que","têm","mais","de","1","item","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[2,[0,[0,29,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"e_commerce","query":"SELECT min(date_order_placed) FROM Orders UNION SELECT T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) > 1","query_toks":["SELECT","min","(","date_order_placed",")","FROM","Orders","UNION","SELECT","T1.date_order_placed","FROM","Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","min","(","date_order_placed",")","from","orders","union","select","t1",".","date_order_placed","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id","having","count","(","*",")",">","value"],"question":"Quais são as datas do pedido mais antigo e as datas de todos os pedidos com mais de 1 item?","question_toks":["Quais","são","as","datas","do","pedido","mais","antigo","e","as","datas","de","todos","os","pedidos","com","mais","de","1","item","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[2,[0,[0,29,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"e_commerce","query":"SELECT customer_first_name , customer_middle_initial , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_middle_initial , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id","query_toks":["SELECT","customer_first_name",",","customer_middle_initial",",","customer_last_name","FROM","Customers","EXCEPT","SELECT","T1.customer_first_name",",","T1.customer_middle_initial",",","T1.customer_last_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id"],"query_toks_no_value":["select","customer_first_name",",","customer_middle_initial",",","customer_last_name","from","customers","except","select","t1",".","customer_first_name",",","t1",".","customer_middle_initial",",","t1",".","customer_last_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id"],"question":"Quais clientes não fizeram nenhum pedido? Liste o primeiro nome, a inicial do meio e o sobrenome.","question_toks":["Quais","clientes","não","fizeram","nenhum","pedido","?","Liste","o","primeiro","nome",",","a","inicial","do","meio","e","o","sobrenome","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"e_commerce","query":"SELECT customer_first_name , customer_middle_initial , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_middle_initial , T1.customer_last_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id","query_toks":["SELECT","customer_first_name",",","customer_middle_initial",",","customer_last_name","FROM","Customers","EXCEPT","SELECT","T1.customer_first_name",",","T1.customer_middle_initial",",","T1.customer_last_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id"],"query_toks_no_value":["select","customer_first_name",",","customer_middle_initial",",","customer_last_name","from","customers","except","select","t1",".","customer_first_name",",","t1",".","customer_middle_initial",",","t1",".","customer_last_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id"],"question":"Quais são os primeiros e últimos nomes, e as iniciais do meio de todos os clientes que não fizeram nenhum pedido?","question_toks":["Quais","são","os","primeiros","e","últimos","nomes",",","e","as","iniciais","do","meio","de","todos","os","clientes","que","não","fizeram","nenhum","pedido","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"e_commerce","query":"SELECT product_id , product_name , product_price , product_color FROM Products EXCEPT SELECT T1.product_id , T1.product_name , T1.product_price , T1.product_color FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T2.order_id = T3.order_id GROUP BY T1.product_id HAVING count(*) >= 2","query_toks":["SELECT","product_id",",","product_name",",","product_price",",","product_color","FROM","Products","EXCEPT","SELECT","T1.product_id",",","T1.product_name",",","T1.product_price",",","T1.product_color","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Orders","AS","T3","ON","T2.order_id","=","T3.order_id","GROUP","BY","T1.product_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","product_id",",","product_name",",","product_price",",","product_color","from","products","except","select","t1",".","product_id",",","t1",".","product_name",",","t1",".","product_price",",","t1",".","product_color","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","orders","as","t3","on","t2",".","order_id","=","t3",".","order_id","group","by","t1",".","product_id","having","count","(","*",")",">","=","value"],"question":"Quais são o id, nome, preço e cor dos produtos que não foram pedidos pelo menos duas vezes?","question_toks":["Quais","são","o","id",",","nome",",","preço","e","cor","dos","produtos","que","não","foram","pedidos","pelo","menos","duas","vezes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]],[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",5],["table_unit",4]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,32,false],null],[0,26,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"e_commerce","query":"select t1.product_id , t1.product_name , t1.product_price , t1.product_color from products as t1 join order_items as t2 on t1.product_id = t2.product_id join orders as t3 on t2.order_id = t3.order_id group by t1.product_id having count(*) < 2","query_toks":["select","t1.product_id",",","t1.product_name",",","t1.product_price",",","t1.product_color","from","products","as","t1","join","order_items","as","t2","on","t1.product_id","=","t2.product_id","join","orders","as","t3","on","t2.order_id","=","t3.order_id","group","by","t1.product_id","having","count","(","*",")","<","2"],"query_toks_no_value":["select","t1",".","product_id",",","t1",".","product_name",",","t1",".","product_price",",","t1",".","product_color","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","orders","as","t3","on","t2",".","order_id","=","t3",".","order_id","group","by","t1",".","product_id","having","count","(","*",")","<","value"],"question":"Quais são os ids, nomes, preços e cores de todos os produtos que foram listados em menos de dois pedidos?","question_toks":["Quais","são","os","ids",",","nomes",",","preços","e","cores","de","todos","os","produtos","que","foram","listados","em","menos","de","dois","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,32,false],null],[0,26,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,4,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_id , T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) >= 2","query_toks":["SELECT","T1.order_id",",","T1.date_order_placed","FROM","Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","order_id",",","t1",".","date_order_placed","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id","having","count","(","*",")",">","=","value"],"question":"Quais pedidos têm pelo menos 2 produtos? Liste o id do pedido e a data.","question_toks":["Quais","pedidos","têm","pelo","menos","2","produtos","?","Liste","o","id","do","pedido","e","a","data","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,26,false],null]],[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_id , T1.date_order_placed FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) >= 2","query_toks":["SELECT","T1.order_id",",","T1.date_order_placed","FROM","Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","order_id",",","t1",".","date_order_placed","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids e datas dos pedidos com pelo menos dois produtos?","question_toks":["Quais","são","os","ids","e","datas","dos","pedidos","com","pelo","menos","dois","produtos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,26,false],null]],[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_id , T1.product_name , T1.product_price FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.product_id",",","T1.product_name",",","T1.product_price","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","GROUP","BY","T1.product_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","product_id",",","t1",".","product_name",",","t1",".","product_price","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","group","by","t1",".","product_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual produto é listado nos pedidos com mais frequência? Liste o id, nome do produto e preço.","question_toks":["Qual","produto","é","listado","nos","pedidos","com","mais","frequência","?","Liste","o","id",",","nome","do","produto","e","preço","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_id , T1.product_name , T1.product_price FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.product_id",",","T1.product_name",",","T1.product_price","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","GROUP","BY","T1.product_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","product_id",",","t1",".","product_name",",","t1",".","product_price","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","group","by","t1",".","product_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os ids, nomes e preços de todos os produtos que são pedidos com mais frequência?","question_toks":["Quais","são","os","ids",",","nomes","e","preços","de","todos","os","produtos","que","são","pedidos","com","mais","frequência","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_id , sum(T2.product_price) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T1.order_id ORDER BY sum(T2.product_price) ASC LIMIT 1","query_toks":["SELECT","T1.order_id",",","sum","(","T2.product_price",")","FROM","Order_items","AS","T1","JOIN","Products","AS","T2","ON","T1.product_id","=","T2.product_id","GROUP","BY","T1.order_id","ORDER","BY","sum","(","T2.product_price",")","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","order_id",",","sum","(","t2",".","product_price",")","from","order_items","as","t1","join","products","as","t2","on","t1",".","product_id","=","t2",".","product_id","group","by","t1",".","order_id","order","by","sum","(","t2",".","product_price",")","asc","limit","value"],"question":"Qual pedido tem a menor soma dos preços dos produtos? Liste o id do pedido e a soma.","question_toks":["Qual","pedido","tem","a","menor","soma","dos","preços","dos","produtos","?","Liste","o","id","do","pedido","e","a","soma","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,31,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,32,false],null]],[4,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,32,false]],"having":[],"orderBy":["asc",[[0,[4,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"select t1.order_id , sum(t2.product_price) from order_items as t1 join products as t2 on t1.product_id = t2.product_id group by t1.order_id order by sum(t2.product_price) asc limit 1","query_toks":["select","t1.order_id",",","sum","(","t2.product_price",")","from","order_items","as","t1","join","products","as","t2","on","t1.product_id","=","t2.product_id","group","by","t1.order_id","order","by","sum","(","t2.product_price",")","asc","limit","1"],"query_toks_no_value":["select","t1",".","order_id",",","sum","(","t2",".","product_price",")","from","order_items","as","t1","join","products","as","t2","on","t1",".","product_id","=","t2",".","product_id","group","by","t1",".","order_id","order","by","sum","(","t2",".","product_price",")","asc","limit","value"],"question":"Qual é o pedido que teve o menor custo total e qual é o custo total?","question_toks":["Qual","é","o","pedido","que","teve","o","menor","custo","total","e","qual","é","o","custo","total","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,31,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,32,false],null]],[4,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,32,false]],"having":[],"orderBy":["asc",[[0,[4,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT Payment_method_code FROM Customer_Payment_Methods GROUP BY Payment_method_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","Payment_method_code","FROM","Customer_Payment_Methods","GROUP","BY","Payment_method_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","payment_method_code","from","customer_payment_methods","group","by","payment_method_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o método de pagamento mais popular?","question_toks":["Qual","é","o","método","de","pagamento","mais","popular","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT Payment_method_code FROM Customer_Payment_Methods GROUP BY Payment_method_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","Payment_method_code","FROM","Customer_Payment_Methods","GROUP","BY","Payment_method_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","payment_method_code","from","customer_payment_methods","group","by","payment_method_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o método de pagamento que mais clientes utilizam?","question_toks":["Qual","é","o","método","de","pagamento","que","mais","clientes","utilizam","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.gender_code , count(*) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.gender_code","query_toks":["SELECT","T1.gender_code",",","count","(","*",")","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","JOIN","Order_items","AS","T3","ON","T2.order_id","=","T3.order_id","GROUP","BY","T1.gender_code"],"query_toks_no_value":["select","t1",".","gender_code",",","count","(","*",")","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","order_items","as","t3","on","t2",".","order_id","=","t3",".","order_id","group","by","t1",".","gender_code"],"question":"Quantos produtos cada gênero de clientes compra? Liste o gênero e o número.","question_toks":["Quantos","produtos","cada","gênero","de","clientes","compra","?","Liste","o","gênero","e","o","número","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null],"and",[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.gender_code , count(*) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.gender_code","query_toks":["SELECT","T1.gender_code",",","count","(","*",")","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","JOIN","Order_items","AS","T3","ON","T2.order_id","=","T3.order_id","GROUP","BY","T1.gender_code"],"query_toks_no_value":["select","t1",".","gender_code",",","count","(","*",")","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","order_items","as","t3","on","t2",".","order_id","=","t3",".","order_id","group","by","t1",".","gender_code"],"question":"Quantos produtos cada gênero compra?","question_toks":["Quantos","produtos","cada","gênero","compra","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null],"and",[false,2,[0,[0,26,false],null],[0,32,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.gender_code , count(*) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.gender_code","query_toks":["SELECT","T1.gender_code",",","count","(","*",")","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.gender_code"],"query_toks_no_value":["select","t1",".","gender_code",",","count","(","*",")","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","gender_code"],"question":"Quantas ordens cada gênero de clientes fez?","question_toks":["Quantas","ordens","cada","gênero","de","clientes","fez","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.gender_code , count(*) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.gender_code","query_toks":["SELECT","T1.gender_code",",","count","(","*",")","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.gender_code"],"query_toks_no_value":["select","t1",".","gender_code",",","count","(","*",")","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","gender_code"],"question":"Quantos pedidos cada gênero fez?","question_toks":["Quantos","pedidos","cada","gênero","fez","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.customer_first_name , T1.customer_middle_initial , T1.customer_last_name , T2.Payment_method_code FROM Customers AS T1 JOIN Customer_Payment_Methods AS T2 ON T1.customer_id = T2.customer_id","query_toks":["SELECT","T1.customer_first_name",",","T1.customer_middle_initial",",","T1.customer_last_name",",","T2.Payment_method_code","FROM","Customers","AS","T1","JOIN","Customer_Payment_Methods","AS","T2","ON","T1.customer_id","=","T2.customer_id"],"query_toks_no_value":["select","t1",".","customer_first_name",",","t1",".","customer_middle_initial",",","t1",".","customer_last_name",",","t2",".","payment_method_code","from","customers","as","t1","join","customer_payment_methods","as","t2","on","t1",".","customer_id","=","t2",".","customer_id"],"question":"Liste o primeiro nome, a inicial do meio, o sobrenome e os métodos de pagamento dos clientes.","question_toks":["Liste","o","primeiro","nome",",","a","inicial","do","meio",",","o","sobrenome","e","os","métodos","de","pagamento","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.customer_first_name , T1.customer_middle_initial , T1.customer_last_name , T2.Payment_method_code FROM Customers AS T1 JOIN Customer_Payment_Methods AS T2 ON T1.customer_id = T2.customer_id","query_toks":["SELECT","T1.customer_first_name",",","T1.customer_middle_initial",",","T1.customer_last_name",",","T2.Payment_method_code","FROM","Customers","AS","T1","JOIN","Customer_Payment_Methods","AS","T2","ON","T1.customer_id","=","T2.customer_id"],"query_toks_no_value":["select","t1",".","customer_first_name",",","t1",".","customer_middle_initial",",","t1",".","customer_last_name",",","t2",".","payment_method_code","from","customers","as","t1","join","customer_payment_methods","as","t2","on","t1",".","customer_id","=","t2",".","customer_id"],"question":"Quais são os primeiros nomes, iniciais do meio, sobrenomes e métodos de pagamento de todos os clientes?","question_toks":["Quais","são","os","primeiros","nomes",",","iniciais","do","meio",",","sobrenomes","e","métodos","de","pagamento","de","todos","os","clientes","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.invoice_status_code , T1.invoice_date , T2.shipment_date FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number = T2.invoice_number","query_toks":["SELECT","T1.invoice_status_code",",","T1.invoice_date",",","T2.shipment_date","FROM","Invoices","AS","T1","JOIN","Shipments","AS","T2","ON","T1.invoice_number","=","T2.invoice_number"],"query_toks_no_value":["select","t1",".","invoice_status_code",",","t1",".","invoice_date",",","t2",".","shipment_date","from","invoices","as","t1","join","shipments","as","t2","on","t1",".","invoice_number","=","t2",".","invoice_number"],"question":"Liste o status das faturas, a data e a data de envio.","question_toks":["Liste","o","status","das","faturas",",","a","data","e","a","data","de","envio","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",6]],"conds":[[false,2,[0,[0,23,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,24,false],null]],[0,[0,[0,25,false],null]],[0,[0,[0,38,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.invoice_status_code , T1.invoice_date , T2.shipment_date FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number = T2.invoice_number","query_toks":["SELECT","T1.invoice_status_code",",","T1.invoice_date",",","T2.shipment_date","FROM","Invoices","AS","T1","JOIN","Shipments","AS","T2","ON","T1.invoice_number","=","T2.invoice_number"],"query_toks_no_value":["select","t1",".","invoice_status_code",",","t1",".","invoice_date",",","t2",".","shipment_date","from","invoices","as","t1","join","shipments","as","t2","on","t1",".","invoice_number","=","t2",".","invoice_number"],"question":"Quais são os status, datas e datas de envio para todas as faturas?","question_toks":["Quais","são","os","status",",","datas","e","datas","de","envio","para","todas","as","faturas","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",6]],"conds":[[false,2,[0,[0,23,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,24,false],null]],[0,[0,[0,25,false],null]],[0,[0,[0,38,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_name , T4.shipment_date FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id = T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id = T4.shipment_id","query_toks":["SELECT","T1.product_name",",","T4.shipment_date","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Shipment_Items","AS","T3","ON","T2.order_item_id","=","T3.order_item_id","JOIN","Shipments","AS","T4","ON","T3.shipment_id","=","T4.shipment_id"],"query_toks_no_value":["select","t1",".","product_name",",","t4",".","shipment_date","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","shipment_items","as","t3","on","t2",".","order_item_id","=","t3",".","order_item_id","join","shipments","as","t4","on","t3",".","shipment_id","=","t4",".","shipment_id"],"question":"Liste os nomes dos produtos que estão sendo enviados e a data de envio correspondente.","question_toks":["Liste","os","nomes","dos","produtos","que","estão","sendo","enviados","e","a","data","de","envio","correspondente","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,30,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,38,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_name , T4.shipment_date FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id = T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id = T4.shipment_id","query_toks":["SELECT","T1.product_name",",","T4.shipment_date","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Shipment_Items","AS","T3","ON","T2.order_item_id","=","T3.order_item_id","JOIN","Shipments","AS","T4","ON","T3.shipment_id","=","T4.shipment_id"],"query_toks_no_value":["select","t1",".","product_name",",","t4",".","shipment_date","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","shipment_items","as","t3","on","t2",".","order_item_id","=","t3",".","order_item_id","join","shipments","as","t4","on","t3",".","shipment_id","=","t4",".","shipment_id"],"question":"Quais são os nomes dos produtos que foram enviados e em quais dias eles foram enviados?","question_toks":["Quais","são","os","nomes","dos","produtos","que","foram","enviados","e","em","quais","dias","eles","foram","enviados","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,30,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,38,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_item_status_code , T3.shipment_tracking_number FROM Order_items AS T1 JOIN Shipment_Items AS T2 ON T1.order_item_id = T2.order_item_id JOIN Shipments AS T3 ON T2.shipment_id = T3.shipment_id","query_toks":["SELECT","T1.order_item_status_code",",","T3.shipment_tracking_number","FROM","Order_items","AS","T1","JOIN","Shipment_Items","AS","T2","ON","T1.order_item_id","=","T2.order_item_id","JOIN","Shipments","AS","T3","ON","T2.shipment_id","=","T3.shipment_id"],"query_toks_no_value":["select","t1",".","order_item_status_code",",","t3",".","shipment_tracking_number","from","order_items","as","t1","join","shipment_items","as","t2","on","t1",".","order_item_id","=","t2",".","order_item_id","join","shipments","as","t3","on","t2",".","shipment_id","=","t3",".","shipment_id"],"question":"Qual é o código de status dos itens sendo pedidos e enviados e seu correspondente número de rastreamento da remessa?","question_toks":["Qual","é","o","código","de","status","dos","itens","sendo","pedidos","e","enviados","e","seu","correspondente","número","de","rastreamento","da","remessa","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,30,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,33,false],null]],[0,[0,[0,37,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_item_status_code , T3.shipment_tracking_number FROM Order_items AS T1 JOIN Shipment_Items AS T2 ON T1.order_item_id = T2.order_item_id JOIN Shipments AS T3 ON T2.shipment_id = T3.shipment_id","query_toks":["SELECT","T1.order_item_status_code",",","T3.shipment_tracking_number","FROM","Order_items","AS","T1","JOIN","Shipment_Items","AS","T2","ON","T1.order_item_id","=","T2.order_item_id","JOIN","Shipments","AS","T3","ON","T2.shipment_id","=","T3.shipment_id"],"query_toks_no_value":["select","t1",".","order_item_status_code",",","t3",".","shipment_tracking_number","from","order_items","as","t1","join","shipment_items","as","t2","on","t1",".","order_item_id","=","t2",".","order_item_id","join","shipments","as","t3","on","t2",".","shipment_id","=","t3",".","shipment_id"],"question":"Qual é o código de status dos itens que foram pedidos e enviados, e quais são os seus números de rastreamento de envio?","question_toks":["Qual","é","o","código","de","status","dos","itens","que","foram","pedidos","e","enviados",",","e","quais","são","os","seus","números","de","rastreamento","de","envio","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,30,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,33,false],null]],[0,[0,[0,37,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_name , T1.product_color FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id = T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id = T4.shipment_id","query_toks":["SELECT","T1.product_name",",","T1.product_color","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Shipment_Items","AS","T3","ON","T2.order_item_id","=","T3.order_item_id","JOIN","Shipments","AS","T4","ON","T3.shipment_id","=","T4.shipment_id"],"query_toks_no_value":["select","t1",".","product_name",",","t1",".","product_color","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","shipment_items","as","t3","on","t2",".","order_item_id","=","t3",".","order_item_id","join","shipments","as","t4","on","t3",".","shipment_id","=","t4",".","shipment_id"],"question":"Qual é o nome do produto e a cor dos itens pedidos que foram enviados?","question_toks":["Qual","é","o","nome","do","produto","e","a","cor","dos","itens","pedidos","que","foram","enviados","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,30,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_name , T1.product_color FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id JOIN Shipment_Items AS T3 ON T2.order_item_id = T3.order_item_id JOIN Shipments AS T4 ON T3.shipment_id = T4.shipment_id","query_toks":["SELECT","T1.product_name",",","T1.product_color","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Shipment_Items","AS","T3","ON","T2.order_item_id","=","T3.order_item_id","JOIN","Shipments","AS","T4","ON","T3.shipment_id","=","T4.shipment_id"],"query_toks_no_value":["select","t1",".","product_name",",","t1",".","product_color","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","shipment_items","as","t3","on","t2",".","order_item_id","=","t3",".","order_item_id","join","shipments","as","t4","on","t3",".","shipment_id","=","t4",".","shipment_id"],"question":"Quais são os nomes e cores de todos os produtos que foram enviados?","question_toks":["Quais","são","os","nomes","e","cores","de","todos","os","produtos","que","foram","enviados","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,30,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT DISTINCT T1.product_name , T1.product_price , T1.product_description FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T2.order_id = T3.order_id JOIN Customers AS T4 ON T3.customer_id = T4.customer_id WHERE T4.gender_code = 'Female'","query_toks":["SELECT","DISTINCT","T1.product_name",",","T1.product_price",",","T1.product_description","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Orders","AS","T3","ON","T2.order_id","=","T3.order_id","JOIN","Customers","AS","T4","ON","T3.customer_id","=","T4.customer_id","WHERE","T4.gender_code","=","'Female","'"],"query_toks_no_value":["select","distinct","t1",".","product_name",",","t1",".","product_price",",","t1",".","product_description","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","orders","as","t3","on","t2",".","order_id","=","t3",".","order_id","join","customers","as","t4","on","t3",".","customer_id","=","t4",".","customer_id","where","t4",".","gender_code","=","value"],"question":"Liste todos os nomes de produtos distintos, preços e descrições que foram comprados por clientes do sexo feminino.","question_toks":["Liste","todos","os","nomes","de","produtos","distintos",",","preços","e","descrições","que","foram","comprados","por","clientes","do","sexo","feminino","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",4],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,32,false],null],[0,26,false],null],"and",[false,2,[0,[0,27,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]],[0,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Female\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT DISTINCT T1.product_name , T1.product_price , T1.product_description FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T2.order_id = T3.order_id JOIN Customers AS T4 ON T3.customer_id = T4.customer_id WHERE T4.gender_code = 'Female'","query_toks":["SELECT","DISTINCT","T1.product_name",",","T1.product_price",",","T1.product_description","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Orders","AS","T3","ON","T2.order_id","=","T3.order_id","JOIN","Customers","AS","T4","ON","T3.customer_id","=","T4.customer_id","WHERE","T4.gender_code","=","'Female","'"],"query_toks_no_value":["select","distinct","t1",".","product_name",",","t1",".","product_price",",","t1",".","product_description","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","orders","as","t3","on","t2",".","order_id","=","t3",".","order_id","join","customers","as","t4","on","t3",".","customer_id","=","t4",".","customer_id","where","t4",".","gender_code","=","value"],"question":"Quais são os diferentes nomes, preços e descrições de todos os produtos comprados por clientes do sexo feminino?","question_toks":["Quais","são","os","diferentes","nomes",",","preços","e","descrições","de","todos","os","produtos","comprados","por","clientes","do","sexo","feminino","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",4],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null],"and",[false,2,[0,[0,32,false],null],[0,26,false],null],"and",[false,2,[0,[0,27,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]],[0,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Female\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT invoice_status_code FROM Invoices WHERE invoice_number NOT IN ( SELECT invoice_number FROM Shipments )","query_toks":["SELECT","invoice_status_code","FROM","Invoices","WHERE","invoice_number","NOT","IN","(","SELECT","invoice_number","FROM","Shipments",")"],"query_toks_no_value":["select","invoice_status_code","from","invoices","where","invoice_number","not","in","(","select","invoice_number","from","shipments",")"],"question":"Quais são os status das faturas de todos os pedidos que não foram enviados?","question_toks":["Quais","são","os","status","das","faturas","de","todos","os","pedidos","que","não","foram","enviados","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,24,false],null]]]],"where":[[true,8,[0,[0,23,false],null],{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,36,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":"e_commerce","query":"SELECT invoice_status_code FROM Invoices WHERE invoice_number NOT IN ( SELECT invoice_number FROM Shipments )","query_toks":["SELECT","invoice_status_code","FROM","Invoices","WHERE","invoice_number","NOT","IN","(","SELECT","invoice_number","FROM","Shipments",")"],"query_toks_no_value":["select","invoice_status_code","from","invoices","where","invoice_number","not","in","(","select","invoice_number","from","shipments",")"],"question":"Quais são os status das faturas para todos os pedidos que ainda não foram enviados?","question_toks":["Quais","são","os","status","das","faturas","para","todos","os","pedidos","que","ainda","não","foram","enviados","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,24,false],null]]]],"where":[[true,8,[0,[0,23,false],null],{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,36,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":"e_commerce","query":"select t1.order_id , t1.date_order_placed , sum(t3.product_price) from orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id group by t1.order_id","query_toks":["select","t1.order_id",",","t1.date_order_placed",",","sum","(","t3.product_price",")","from","orders","as","t1","join","order_items","as","t2","on","t1.order_id","=","t2.order_id","join","products","as","t3","on","t2.product_id","=","t3.product_id","group","by","t1.order_id"],"query_toks_no_value":["select","t1",".","order_id",",","t1",".","date_order_placed",",","sum","(","t3",".","product_price",")","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","join","products","as","t3","on","t2",".","product_id","=","t3",".","product_id","group","by","t1",".","order_id"],"question":"Qual é o custo total de todos os pedidos? Liste o id do pedido, a data e o custo total.","question_toks":["Qual","é","o","custo","total","de","todos","os","pedidos","?","Liste","o","id","do","pedido",",","a","data","e","o","custo","total","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null],"and",[false,2,[0,[0,31,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,26,false],null]],[0,[0,[0,29,false],null]],[4,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.order_id , T1.date_order_placed , sum(T3.product_price) FROM Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id JOIN Products AS T3 ON T2.product_id = T3.product_id GROUP BY T1.order_id","query_toks":["SELECT","T1.order_id",",","T1.date_order_placed",",","sum","(","T3.product_price",")","FROM","Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","JOIN","Products","AS","T3","ON","T2.product_id","=","T3.product_id","GROUP","BY","T1.order_id"],"query_toks_no_value":["select","t1",".","order_id",",","t1",".","date_order_placed",",","sum","(","t3",".","product_price",")","from","orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","join","products","as","t3","on","t2",".","product_id","=","t3",".","product_id","group","by","t1",".","order_id"],"question":"Para cada pedido, qual é seu id, data e valor total pago?","question_toks":["Para","cada","pedido",",","qual","é","seu","id",",","data","e","valor","total","pago","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,26,false],null],[0,32,false],null],"and",[false,2,[0,[0,31,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,26,false],null]],[0,[0,[0,29,false],null]],[4,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(DISTINCT customer_id) FROM Orders","query_toks":["SELECT","count","(","DISTINCT","customer_id",")","FROM","Orders"],"query_toks_no_value":["select","count","(","distinct","customer_id",")","from","orders"],"question":"Quantos clientes fizeram algum pedido?","question_toks":["Quantos","clientes","fizeram","algum","pedido","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,27,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(DISTINCT customer_id) FROM Orders","query_toks":["SELECT","count","(","DISTINCT","customer_id",")","FROM","Orders"],"query_toks_no_value":["select","count","(","distinct","customer_id",")","from","orders"],"question":"Quantos clientes diferentes fizeram pedidos?","question_toks":["Quantos","clientes","diferentes","fizeram","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,27,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(DISTINCT order_item_status_code) FROM Order_items","query_toks":["SELECT","count","(","DISTINCT","order_item_status_code",")","FROM","Order_items"],"query_toks_no_value":["select","count","(","distinct","order_item_status_code",")","from","order_items"],"question":"Quantos estados de itens existem nos pedidos?","question_toks":["Quantos","estados","de","itens","existem","nos","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[3,[0,[0,33,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(DISTINCT order_item_status_code) FROM Order_items","query_toks":["SELECT","count","(","DISTINCT","order_item_status_code",")","FROM","Order_items"],"query_toks_no_value":["select","count","(","distinct","order_item_status_code",")","from","order_items"],"question":"Quantos códigos de status de item diferentes estão listados nos itens pedidos?","question_toks":["Quantos","códigos","de","status","de","item","diferentes","estão","listados","nos","itens","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[3,[0,[0,33,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(DISTINCT Payment_method_code) FROM Customer_Payment_Methods","query_toks":["SELECT","count","(","DISTINCT","Payment_method_code",")","FROM","Customer_Payment_Methods"],"query_toks_no_value":["select","count","(","distinct","payment_method_code",")","from","customer_payment_methods"],"question":"Quantos métodos de pagamento diferentes existem?","question_toks":["Quantos","métodos","de","pagamento","diferentes","existem","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,22,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(DISTINCT Payment_method_code) FROM Customer_Payment_Methods","query_toks":["SELECT","count","(","DISTINCT","Payment_method_code",")","FROM","Customer_Payment_Methods"],"query_toks_no_value":["select","count","(","distinct","payment_method_code",")","from","customer_payment_methods"],"question":"Quantos métodos de pagamento diferentes os clientes podem escolher?","question_toks":["Quantos","métodos","de","pagamento","diferentes","os","clientes","podem","escolher","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,22,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT login_name , login_password FROM Customers WHERE phone_number LIKE '+12%'","query_toks":["SELECT","login_name",",","login_password","FROM","Customers","WHERE","phone_number","LIKE","'+12","%","'"],"query_toks_no_value":["select","login_name",",","login_password","from","customers","where","phone_number","like","value"],"question":"Quais são os nomes de login e senhas dos clientes cujos números de telefone têm o prefixo '+12'?","question_toks":["Quais","são","os","nomes","de","login","e","senhas","dos","clientes","cujos","números","de","telefone","têm","o","prefixo","'+12","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,9,[0,[0,16,false],null],"\"+12%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT login_name , login_password FROM Customers WHERE phone_number LIKE '+12%'","query_toks":["SELECT","login_name",",","login_password","FROM","Customers","WHERE","phone_number","LIKE","'+12","%","'"],"query_toks_no_value":["select","login_name",",","login_password","from","customers","where","phone_number","like","value"],"question":"Quais são os nomes de usuário e senhas de todos os clientes cujo número de telefone começa com '+12'?","question_toks":["Quais","são","os","nomes","de","usuário","e","senhas","de","todos","os","clientes","cujo","número","de","telefone","começa","com","'+12","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,9,[0,[0,16,false],null],"\"+12%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT product_size FROM Products WHERE product_name LIKE '%Dell%'","query_toks":["SELECT","product_size","FROM","Products","WHERE","product_name","LIKE","'","%","Dell","%","'"],"query_toks_no_value":["select","product_size","from","products","where","product_name","like","value"],"question":"Quais são os tamanhos dos produtos cujo nome contém a substring 'Dell'?","question_toks":["Quais","são","os","tamanhos","dos","produtos","cujo","nome","contém","a","substring","'Dell","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,9,[0,[0,3,false],null],"\"%Dell%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT product_size FROM Products WHERE product_name LIKE '%Dell%'","query_toks":["SELECT","product_size","FROM","Products","WHERE","product_name","LIKE","'","%","Dell","%","'"],"query_toks_no_value":["select","product_size","from","products","where","product_name","like","value"],"question":"Quais são os tamanhos de todos os produtos cujo nome inclui a palavra 'Dell'?","question_toks":["Quais","são","os","tamanhos","de","todos","os","produtos","cujo","nome","inclui","a","palavra","'Dell","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,9,[0,[0,3,false],null],"\"%Dell%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT product_price , product_size FROM Products WHERE product_price > ( SELECT avg(product_price) FROM Products )","query_toks":["SELECT","product_price",",","product_size","FROM","Products","WHERE","product_price",">","(","SELECT","avg","(","product_price",")","FROM","Products",")"],"query_toks_no_value":["select","product_price",",","product_size","from","products","where","product_price",">","(","select","avg","(","product_price",")","from","products",")"],"question":"Quais são o preço e o tamanho dos produtos cujo preço está acima da média?","question_toks":["Quais","são","o","preço","e","o","tamanho","dos","produtos","cujo","preço","está","acima","da","média","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"e_commerce","query":"SELECT product_price , product_size FROM Products WHERE product_price > ( SELECT avg(product_price) FROM Products )","query_toks":["SELECT","product_price",",","product_size","FROM","Products","WHERE","product_price",">","(","SELECT","avg","(","product_price",")","FROM","Products",")"],"query_toks_no_value":["select","product_price",",","product_size","from","products","where","product_price",">","(","select","avg","(","product_price",")","from","products",")"],"question":"Quais são os preços e tamanhos de todos os produtos cujo preço está acima da média?","question_toks":["Quais","são","os","preços","e","tamanhos","de","todos","os","produtos","cujo","preço","está","acima","da","média","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"e_commerce","query":"SELECT count(*) FROM Products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )","query_toks":["SELECT","count","(","*",")","FROM","Products","WHERE","product_id","NOT","IN","(","SELECT","product_id","FROM","Order_items",")"],"query_toks_no_value":["select","count","(","*",")","from","products","where","product_id","not","in","(","select","product_id","from","order_items",")"],"question":"Quantos tipos de produtos não foram vendidos?","question_toks":["Quantos","tipos","de","produtos","não","foram","vendidos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,31,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":"e_commerce","query":"SELECT count(*) FROM Products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )","query_toks":["SELECT","count","(","*",")","FROM","Products","WHERE","product_id","NOT","IN","(","SELECT","product_id","FROM","Order_items",")"],"query_toks_no_value":["select","count","(","*",")","from","products","where","product_id","not","in","(","select","product_id","from","order_items",")"],"question":"Qual é o número de produtos que ainda não foram pedidos?","question_toks":["Qual","é","o","número","de","produtos","que","ainda","não","foram","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,31,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":"e_commerce","query":"SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payment_Methods )","query_toks":["SELECT","count","(","*",")","FROM","Customers","WHERE","customer_id","NOT","IN","(","SELECT","customer_id","FROM","Customer_Payment_Methods",")"],"query_toks_no_value":["select","count","(","*",")","from","customers","where","customer_id","not","in","(","select","customer_id","from","customer_payment_methods",")"],"question":"Quantos clientes não têm nenhum método de pagamento?","question_toks":["Quantos","clientes","não","têm","nenhum","método","de","pagamento","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,21,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":"e_commerce","query":"SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payment_Methods )","query_toks":["SELECT","count","(","*",")","FROM","Customers","WHERE","customer_id","NOT","IN","(","SELECT","customer_id","FROM","Customer_Payment_Methods",")"],"query_toks_no_value":["select","count","(","*",")","from","customers","where","customer_id","not","in","(","select","customer_id","from","customer_payment_methods",")"],"question":"Quantos clientes não têm um método de pagamento listado?","question_toks":["Quantos","clientes","não","têm","um","método","de","pagamento","listado","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,21,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":"e_commerce","query":"SELECT order_status_code , date_order_placed FROM Orders","query_toks":["SELECT","order_status_code",",","date_order_placed","FROM","Orders"],"query_toks_no_value":["select","order_status_code",",","date_order_placed","from","orders"],"question":"Quais são todos os status dos pedidos e todas as datas dos pedidos?","question_toks":["Quais","são","todos","os","status","dos","pedidos","e","todas","as","datas","dos","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,28,false],null]],[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT order_status_code , date_order_placed FROM Orders","query_toks":["SELECT","order_status_code",",","date_order_placed","FROM","Orders"],"query_toks_no_value":["select","order_status_code",",","date_order_placed","from","orders"],"question":"Quais são os códigos de status e as datas de realização de todos os pedidos?","question_toks":["Quais","são","os","códigos","de","status","e","as","datas","de","realização","de","todos","os","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,28,false],null]],[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT address_line_1 , town_city , county FROM Customers WHERE Country = 'USA'","query_toks":["SELECT","address_line_1",",","town_city",",","county","FROM","Customers","WHERE","Country","=","'USA","'"],"query_toks_no_value":["select","address_line_1",",","town_city",",","county","from","customers","where","country","=","value"],"question":"Liste as informações de endereço, cidade e condado dos clientes que vivem nos USA.","question_toks":["Liste","as","informações","de","endereço",",","cidade","e","condado","dos","clientes","que","vivem","nos","USA","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,18,false],null]],[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,20,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT address_line_1 , town_city , county FROM Customers WHERE Country = 'USA'","query_toks":["SELECT","address_line_1",",","town_city",",","county","FROM","Customers","WHERE","Country","=","'USA","'"],"query_toks_no_value":["select","address_line_1",",","town_city",",","county","from","customers","where","country","=","value"],"question":"Quais são os endereços, cidades e informações do condado para todos os clientes que vivem nos United States?","question_toks":["Quais","são","os","endereços",",","cidades","e","informações","do","condado","para","todos","os","clientes","que","vivem","nos","United","States","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,18,false],null]],[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,20,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.customer_first_name , T4.product_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_items AS T3 ON T2.order_id = T3.order_id JOIN Products AS T4 ON T3.product_id = T4.product_id","query_toks":["SELECT","T1.customer_first_name",",","T4.product_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","JOIN","Order_items","AS","T3","ON","T2.order_id","=","T3.order_id","JOIN","Products","AS","T4","ON","T3.product_id","=","T4.product_id"],"query_toks_no_value":["select","t1",".","customer_first_name",",","t4",".","product_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","order_items","as","t3","on","t2",".","order_id","=","t3",".","order_id","join","products","as","t4","on","t3",".","product_id","=","t4",".","product_id"],"question":"Liste todos os pares de nomes de compradores e nomes de produtos.","question_toks":["Liste","todos","os","pares","de","nomes","de","compradores","e","nomes","de","produtos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null],"and",[false,2,[0,[0,26,false],null],[0,32,false],null],"and",[false,2,[0,[0,31,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.customer_first_name , T4.product_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_items AS T3 ON T2.order_id = T3.order_id JOIN Products AS T4 ON T3.product_id = T4.product_id","query_toks":["SELECT","T1.customer_first_name",",","T4.product_name","FROM","Customers","AS","T1","JOIN","Orders","AS","T2","ON","T1.customer_id","=","T2.customer_id","JOIN","Order_items","AS","T3","ON","T2.order_id","=","T3.order_id","JOIN","Products","AS","T4","ON","T3.product_id","=","T4.product_id"],"query_toks_no_value":["select","t1",".","customer_first_name",",","t4",".","product_name","from","customers","as","t1","join","orders","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","order_items","as","t3","on","t2",".","order_id","=","t3",".","order_id","join","products","as","t4","on","t3",".","product_id","=","t4",".","product_id"],"question":"Quais são os primeiros nomes de todos os compradores e quais produtos eles compraram? Liste-os em pares.","question_toks":["Quais","são","os","primeiros","nomes","de","todos","os","compradores","e","quais","produtos","eles","compraram","?","Liste-os","em","pares","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,8,false],null],[0,27,false],null],"and",[false,2,[0,[0,26,false],null],[0,32,false],null],"and",[false,2,[0,[0,31,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(*) FROM Shipment_Items","query_toks":["SELECT","count","(","*",")","FROM","Shipment_Items"],"query_toks_no_value":["select","count","(","*",")","from","shipment_items"],"question":"Quantos itens são enviados?","question_toks":["Quantos","itens","são","enviados","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT count(*) FROM Shipment_Items","query_toks":["SELECT","count","(","*",")","FROM","Shipment_Items"],"query_toks_no_value":["select","count","(","*",")","from","shipment_items"],"question":"Conte quantos produtos foram enviados.","question_toks":["Conte","quantos","produtos","foram","enviados","."],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT avg(product_price) FROM Products","query_toks":["SELECT","avg","(","product_price",")","FROM","Products"],"query_toks_no_value":["select","avg","(","product_price",")","from","products"],"question":"Qual é o preço médio dos produtos?","question_toks":["Qual","é","o","preço","médio","dos","produtos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT avg(product_price) FROM Products","query_toks":["SELECT","avg","(","product_price",")","FROM","Products"],"query_toks_no_value":["select","avg","(","product_price",")","from","products"],"question":"Quanto custam os produtos em média?","question_toks":["Quanto","custam","os","produtos","em","média","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT avg(T1.product_price) FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id","query_toks":["SELECT","avg","(","T1.product_price",")","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id"],"query_toks_no_value":["select","avg","(","t1",".","product_price",")","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id"],"question":"Qual é o preço médio dos produtos que estão sendo pedidos?","question_toks":["Qual","é","o","preço","médio","dos","produtos","que","estão","sendo","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null]]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT avg(T1.product_price) FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id","query_toks":["SELECT","avg","(","T1.product_price",")","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id"],"query_toks_no_value":["select","avg","(","t1",".","product_price",")","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id"],"question":"Qual é o preço de todos os produtos que estão sendo pedidos na média?","question_toks":["Qual","é","o","preço","de","todos","os","produtos","que","estão","sendo","pedidos","na","média","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null]]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT email_address , town_city , county FROM Customers WHERE gender_code = ( SELECT gender_code FROM Customers GROUP BY gender_code ORDER BY count(*) ASC LIMIT 1 )","query_toks":["SELECT","email_address",",","town_city",",","county","FROM","Customers","WHERE","gender_code","=","(","SELECT","gender_code","FROM","Customers","GROUP","BY","gender_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1",")"],"query_toks_no_value":["select","email_address",",","town_city",",","county","from","customers","where","gender_code","=","(","select","gender_code","from","customers","group","by","gender_code","order","by","count","(","*",")","asc","limit","value",")"],"question":"Quais são o endereço de e-mail, a cidade e o condado dos clientes que pertencem ao gênero menos comum?","question_toks":["Quais","são","o","endereço","de","e-mail",",","a","cidade","e","o","condado","dos","clientes","que","pertencem","ao","gênero","menos","comum","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,18,false],null]],[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT email_address , town_city , county FROM Customers WHERE gender_code = ( SELECT gender_code FROM Customers GROUP BY gender_code ORDER BY count(*) ASC LIMIT 1 )","query_toks":["SELECT","email_address",",","town_city",",","county","FROM","Customers","WHERE","gender_code","=","(","SELECT","gender_code","FROM","Customers","GROUP","BY","gender_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1",")"],"query_toks_no_value":["select","email_address",",","town_city",",","county","from","customers","where","gender_code","=","(","select","gender_code","from","customers","group","by","gender_code","order","by","count","(","*",")","asc","limit","value",")"],"question":"Quais são os endereços de e-mail, cidades e condados listados para todos os clientes que são do gênero que faz pedidos com menos frequência?","question_toks":["Quais","são","os","endereços","de","e-mail",",","cidades","e","condados","listados","para","todos","os","clientes","que","são","do","gênero","que","faz","pedidos","com","menos","frequência","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,18,false],null]],[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT date_order_placed FROM Orders WHERE customer_id IN ( SELECT T1.customer_id FROM Customers AS T1 JOIN Customer_Payment_Methods AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 )","query_toks":["SELECT","date_order_placed","FROM","Orders","WHERE","customer_id","IN","(","SELECT","T1.customer_id","FROM","Customers","AS","T1","JOIN","Customer_Payment_Methods","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id","HAVING","count","(","*",")",">","=","2",")"],"query_toks_no_value":["select","date_order_placed","from","orders","where","customer_id","in","(","select","t1",".","customer_id","from","customers","as","t1","join","customer_payment_methods","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id","having","count","(","*",")",">","=","value",")"],"question":"Liste a data dos pedidos que foram feitos por clientes com pelo menos 2 métodos de pagamento.","question_toks":["Liste","a","data","dos","pedidos","que","foram","feitos","por","clientes","com","pelo","menos","2","métodos","de","pagamento","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,8,[0,[0,27,false],null],{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT date_order_placed FROM Orders WHERE customer_id IN ( SELECT T1.customer_id FROM Customers AS T1 JOIN Customer_Payment_Methods AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 )","query_toks":["SELECT","date_order_placed","FROM","Orders","WHERE","customer_id","IN","(","SELECT","T1.customer_id","FROM","Customers","AS","T1","JOIN","Customer_Payment_Methods","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id","HAVING","count","(","*",")",">","=","2",")"],"query_toks_no_value":["select","date_order_placed","from","orders","where","customer_id","in","(","select","t1",".","customer_id","from","customers","as","t1","join","customer_payment_methods","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id","having","count","(","*",")",">","=","value",")"],"question":"Qual é a data de todos os pedidos que foram feitos por clientes com pelo menos 2 métodos de pagamento?","question_toks":["Qual","é","a","data","de","todos","os","pedidos","que","foram","feitos","por","clientes","com","pelo","menos","2","métodos","de","pagamento","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,8,[0,[0,27,false],null],{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT order_status_code FROM Orders GROUP BY order_status_code ORDER BY count(*) LIMIT 1","query_toks":["SELECT","order_status_code","FROM","Orders","GROUP","BY","order_status_code","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","order_status_code","from","orders","group","by","order_status_code","order","by","count","(","*",")","limit","value"],"question":"Qual é o status de pedido mais incomum?","question_toks":["Qual","é","o","status","de","pedido","mais","incomum","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,28,false],null]]]],"where":[],"groupBy":[[0,28,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT order_status_code FROM Orders GROUP BY order_status_code ORDER BY count(*) LIMIT 1","query_toks":["SELECT","order_status_code","FROM","Orders","GROUP","BY","order_status_code","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","order_status_code","from","orders","group","by","order_status_code","order","by","count","(","*",")","limit","value"],"question":"Qual é o status de pedido menos comum?","question_toks":["Qual","é","o","status","de","pedido","menos","comum","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,28,false],null]]]],"where":[],"groupBy":[[0,28,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_id , T1.product_description FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id HAVING count(*) > 3","query_toks":["SELECT","T1.product_id",",","T1.product_description","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","GROUP","BY","T1.product_id","HAVING","count","(","*",")",">","3"],"query_toks_no_value":["select","t1",".","product_id",",","t1",".","product_description","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","group","by","t1",".","product_id","having","count","(","*",")",">","value"],"question":"Para todos os produtos vendidos mais de 3 vezes, liste seu id e descrição.","question_toks":["Para","todos","os","produtos","vendidos","mais","de","3","vezes",",","liste","seu","id","e","descrição","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,3,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.product_id , T1.product_description FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id HAVING count(*) > 3","query_toks":["SELECT","T1.product_id",",","T1.product_description","FROM","Products","AS","T1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id","GROUP","BY","T1.product_id","HAVING","count","(","*",")",">","3"],"query_toks_no_value":["select","t1",".","product_id",",","t1",".","product_description","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id","group","by","t1",".","product_id","having","count","(","*",")",">","value"],"question":"Para todos os produtos vendidos mais de 3 vezes, quais são seus ids e descrições?","question_toks":["Para","todos","os","produtos","vendidos","mais","de","3","vezes",",","quais","são","seus","ids","e","descrições","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,1,false],null],[0,31,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,3,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.invoice_date , T1.invoice_number FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number HAVING count(*) >= 2","query_toks":["SELECT","T1.invoice_date",",","T1.invoice_number","FROM","Invoices","AS","T1","JOIN","Shipments","AS","T2","ON","T1.invoice_number","=","T2.invoice_number","GROUP","BY","T1.invoice_number","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","invoice_date",",","t1",".","invoice_number","from","invoices","as","t1","join","shipments","as","t2","on","t1",".","invoice_number","=","t2",".","invoice_number","group","by","t1",".","invoice_number","having","count","(","*",")",">","=","value"],"question":"Liste as datas das faturas e os ids das faturas que causaram pelo menos 2 remessas.","question_toks":["Liste","as","datas","das","faturas","e","os","ids","das","faturas","que","causaram","pelo","menos","2","remessas","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",6]],"conds":[[false,2,[0,[0,23,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,25,false],null]],[0,[0,[0,23,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT T1.invoice_date , T1.invoice_number FROM Invoices AS T1 JOIN Shipments AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number HAVING count(*) >= 2","query_toks":["SELECT","T1.invoice_date",",","T1.invoice_number","FROM","Invoices","AS","T1","JOIN","Shipments","AS","T2","ON","T1.invoice_number","=","T2.invoice_number","GROUP","BY","T1.invoice_number","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","invoice_date",",","t1",".","invoice_number","from","invoices","as","t1","join","shipments","as","t2","on","t1",".","invoice_number","=","t2",".","invoice_number","group","by","t1",".","invoice_number","having","count","(","*",")",">","=","value"],"question":"Quais são as datas e os IDs das faturas que estão relacionadas a pelo menos 2 remessas?","question_toks":["Quais","são","as","datas","e","os","IDs","das","faturas","que","estão","relacionadas","a","pelo","menos","2","remessas","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",6]],"conds":[[false,2,[0,[0,23,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,25,false],null]],[0,[0,[0,23,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT shipment_tracking_number , shipment_date FROM Shipments","query_toks":["SELECT","shipment_tracking_number",",","shipment_date","FROM","Shipments"],"query_toks_no_value":["select","shipment_tracking_number",",","shipment_date","from","shipments"],"question":"Quais são todos os números de rastreamento de envio e datas de envio?","question_toks":["Quais","são","todos","os","números","de","rastreamento","de","envio","e","datas","de","envio","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,37,false],null]],[0,[0,[0,38,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT shipment_tracking_number , shipment_date FROM Shipments","query_toks":["SELECT","shipment_tracking_number",",","shipment_date","FROM","Shipments"],"query_toks_no_value":["select","shipment_tracking_number",",","shipment_date","from","shipments"],"question":"Quais são os números de rastreamento e as datas de todos os envios listados?","question_toks":["Quais","são","os","números","de","rastreamento","e","as","datas","de","todos","os","envios","listados","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,37,false],null]],[0,[0,[0,38,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"e_commerce","query":"SELECT product_color , product_description , product_size FROM Products WHERE product_price < ( SELECT max(product_price) FROM products )","query_toks":["SELECT","product_color",",","product_description",",","product_size","FROM","Products","WHERE","product_price","<","(","SELECT","max","(","product_price",")","FROM","products",")"],"query_toks_no_value":["select","product_color",",","product_description",",","product_size","from","products","where","product_price","<","(","select","max","(","product_price",")","from","products",")"],"question":"Quais são a cor, descrição e tamanho dos produtos com preço abaixo do preço máximo?","question_toks":["Quais","são","a","cor",",","descrição","e","tamanho","dos","produtos","com","preço","abaixo","do","preço","máximo","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[0,[0,[0,7,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,4,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":"e_commerce","query":"select product_color , product_description , product_size from products where product_price != ( select max(product_price) from products )","query_toks":["select","product_color",",","product_description",",","product_size","from","products","where","product_price","!=","(","select","max","(","product_price",")","from","products",")"],"query_toks_no_value":["select","product_color",",","product_description",",","product_size","from","products","where","product_price","!","=","(","select","max","(","product_price",")","from","products",")"],"question":"Quais são as cores, descrições e tamanhos de todos os produtos que não estão com o preço máximo?","question_toks":["Quais","são","as","cores",",","descrições","e","tamanhos","de","todos","os","produtos","que","não","estão","com","o","preço","máximo","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[0,[0,[0,7,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,7,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,4,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":"bbc_channels","query":"SELECT name FROM director WHERE age > (SELECT avg(age) FROM director)","query_toks":["SELECT","name","FROM","director","WHERE","age",">","(","SELECT","avg","(","age",")","FROM","director",")"],"query_toks_no_value":["select","name","from","director","where","age",">","(","select","avg","(","age",")","from","director",")"],"question":"Retorne os nomes dos diretores que são mais velhos do que a idade média.","question_toks":["Retorne","os","nomes","dos","diretores","que","são","mais","velhos","do","que","a","idade","média","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,3,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,8,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":"bbc_channels","query":"SELECT name FROM director ORDER BY age DESC LIMIT 1","query_toks":["SELECT","name","FROM","director","ORDER","BY","age","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","director","order","by","age","desc","limit","value"],"question":"Encontre o nome do diretor mais velho.","question_toks":["Encontre","o","nome","do","diretor","mais","velho","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT count(*) FROM channel WHERE internet LIKE \"%bbc%\"","query_toks":["SELECT","count","(","*",")","FROM","channel","WHERE","internet","LIKE","``","%","bbc","%","''"],"query_toks_no_value":["select","count","(","*",")","from","channel","where","internet","like","value"],"question":"Conte quantos canais têm a palavra 'bbc' em seu link de internet.","question_toks":["Conte","quantos","canais","têm","a","palavra","'bbc","'","em","seu","link","de","internet","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%bbc%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT count(DISTINCT Digital_terrestrial_channel) FROM channel","query_toks":["SELECT","count","(","DISTINCT","Digital_terrestrial_channel",")","FROM","channel"],"query_toks_no_value":["select","count","(","distinct","digital_terrestrial_channel",")","from","channel"],"question":"Quantos canais digitais terrestres diferentes existem?","question_toks":["Quantos","canais","digitais","terrestres","diferentes","existem","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,4,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT title FROM program ORDER BY start_year DESC","query_toks":["SELECT","title","FROM","program","ORDER","BY","start_year","DESC"],"query_toks_no_value":["select","title","from","program","order","by","start_year","desc"],"question":"Liste todos os títulos dos programas na ordem do ano de início. Liste o mais recente primeiro.","question_toks":["Liste","todos","os","títulos","dos","programas","na","ordem","do","ano","de","início",".","Liste","o","mais","recente","primeiro","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT t2.name FROM program AS t1 JOIN director AS t2 ON t1.director_id = t2.director_id GROUP BY t1.director_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t2.name","FROM","program","AS","t1","JOIN","director","AS","t2","ON","t1.director_id","=","t2.director_id","GROUP","BY","t1.director_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","program","as","t1","join","director","as","t2","on","t1",".","director_id","=","t2",".","director_id","group","by","t1",".","director_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual diretor está responsável pelo maior número de programas?","question_toks":["Qual","diretor","está","responsável","pelo","maior","número","de","programas","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT t2.name , t2.age FROM program AS t1 JOIN director AS t2 ON t1.director_id = t2.director_id GROUP BY t1.director_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t2.name",",","t2.age","FROM","program","AS","t1","JOIN","director","AS","t2","ON","t1.director_id","=","t2.director_id","GROUP","BY","t1.director_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name",",","t2",".","age","from","program","as","t1","join","director","as","t2","on","t1",".","director_id","=","t2",".","director_id","group","by","t1",".","director_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome e a idade do diretor que está à frente do maior número de programas.","question_toks":["Encontre","o","nome","e","a","idade","do","diretor","que","está","à","frente","do","maior","número","de","programas","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT title FROM program ORDER BY start_year DESC LIMIT 1","query_toks":["SELECT","title","FROM","program","ORDER","BY","start_year","DESC","LIMIT","1"],"query_toks_no_value":["select","title","from","program","order","by","start_year","desc","limit","value"],"question":"Retorne o título do programa que começou mais recentemente.","question_toks":["Retorne","o","título","do","programa","que","começou","mais","recentemente","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT t1.name , t1.internet FROM channel AS t1 JOIN program AS t2 ON t1.channel_id = t2.channel_id GROUP BY t1.channel_id HAVING count(*) > 1","query_toks":["SELECT","t1.name",",","t1.internet","FROM","channel","AS","t1","JOIN","program","AS","t2","ON","t1.channel_id","=","t2.channel_id","GROUP","BY","t1.channel_id","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","t1",".","name",",","t1",".","internet","from","channel","as","t1","join","program","as","t2","on","t1",".","channel_id","=","t2",".","channel_id","group","by","t1",".","channel_id","having","count","(","*",")",">","value"],"question":"Encontre o nome e o link do site dos canais que têm mais de um programa.","question_toks":["Encontre","o","nome","e","o","link","do","site","dos","canais","que","têm","mais","de","um","programa","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT t1.name , count(*) FROM channel AS t1 JOIN program AS t2 ON t1.channel_id = t2.channel_id GROUP BY t1.channel_id","query_toks":["SELECT","t1.name",",","count","(","*",")","FROM","channel","AS","t1","JOIN","program","AS","t2","ON","t1.channel_id","=","t2.channel_id","GROUP","BY","t1.channel_id"],"query_toks_no_value":["select","t1",".","name",",","count","(","*",")","from","channel","as","t1","join","program","as","t2","on","t1",".","channel_id","=","t2",".","channel_id","group","by","t1",".","channel_id"],"question":"Encontre o número de programas para cada canal. Retorne o nome de cada canal também.","question_toks":["Encontre","o","número","de","programas","para","cada","canal",".","Retorne","o","nome","de","cada","canal","também","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT count(*) FROM channel WHERE channel_id NOT IN (SELECT channel_id FROM program)","query_toks":["SELECT","count","(","*",")","FROM","channel","WHERE","channel_id","NOT","IN","(","SELECT","channel_id","FROM","program",")"],"query_toks_no_value":["select","count","(","*",")","from","channel","where","channel_id","not","in","(","select","channel_id","from","program",")"],"question":"Encontre o número de canais que não exibem nenhum programa.","question_toks":["Encontre","o","número","de","canais","que","não","exibem","nenhum","programa","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"bbc_channels","query":"SELECT t2.name FROM program AS t1 JOIN director AS t2 ON t1.director_id = t2.director_id WHERE t1.title = 'Dracula'","query_toks":["SELECT","t2.name","FROM","program","AS","t1","JOIN","director","AS","t2","ON","t1.director_id","=","t2.director_id","WHERE","t1.title","=","'Dracula","'"],"query_toks_no_value":["select","t2",".","name","from","program","as","t1","join","director","as","t2","on","t1",".","director_id","=","t2",".","director_id","where","t1",".","title","=","value"],"question":"Qual é o nome do diretor que está no programa \"Dracula\"?","question_toks":["Qual","é","o","nome","do","diretor","que","está","no","programa","``","Dracula","''","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Dracula\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT t1.name , t1.internet FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id = t2.channel_id GROUP BY t1.channel_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t1.name",",","t1.internet","FROM","channel","AS","t1","JOIN","director_admin","AS","t2","ON","t1.channel_id","=","t2.channel_id","GROUP","BY","t1.channel_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name",",","t1",".","internet","from","channel","as","t1","join","director_admin","as","t2","on","t1",".","channel_id","=","t2",".","channel_id","group","by","t1",".","channel_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome e a web do canal que é dirigido pelo maior número de diretores.","question_toks":["Encontre","o","nome","e","a","web","do","canal","que","é","dirigido","pelo","maior","número","de","diretores","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT name FROM director WHERE age BETWEEN 30 AND 60","query_toks":["SELECT","name","FROM","director","WHERE","age","BETWEEN","30","AND","60"],"query_toks_no_value":["select","name","from","director","where","age","between","value","and","value"],"question":"Encontre o nome dos diretores cuja idade está entre 30 e 60 anos.","question_toks":["Encontre","o","nome","dos","diretores","cuja","idade","está","entre","30","e","60","anos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,1,[0,[0,8,false],null],30.0,60.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT t1.name FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id = t2.channel_id JOIN director AS t3 ON t2.director_id = t3.director_id WHERE t3.age < 40 INTERSECT SELECT t1.name FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id = t2.channel_id JOIN director AS t3 ON t2.director_id = t3.director_id WHERE t3.age > 60","query_toks":["SELECT","t1.name","FROM","channel","AS","t1","JOIN","director_admin","AS","t2","ON","t1.channel_id","=","t2.channel_id","JOIN","director","AS","t3","ON","t2.director_id","=","t3.director_id","WHERE","t3.age","<","40","INTERSECT","SELECT","t1.name","FROM","channel","AS","t1","JOIN","director_admin","AS","t2","ON","t1.channel_id","=","t2.channel_id","JOIN","director","AS","t3","ON","t2.director_id","=","t3.director_id","WHERE","t3.age",">","60"],"query_toks_no_value":["select","t1",".","name","from","channel","as","t1","join","director_admin","as","t2","on","t1",".","channel_id","=","t2",".","channel_id","join","director","as","t3","on","t2",".","director_id","=","t3",".","director_id","where","t3",".","age","<","value","intersect","select","t1",".","name","from","channel","as","t1","join","director_admin","as","t2","on","t1",".","channel_id","=","t2",".","channel_id","join","director","as","t3","on","t2",".","director_id","=","t3",".","director_id","where","t3",".","age",">","value"],"question":"Me dê o nome dos canais que têm tanto um diretor com menos de 40 anos quanto um diretor com mais de 60 anos.","question_toks":["Me","dê","o","nome","dos","canais","que","têm","tanto","um","diretor","com","menos","de","40","anos","quanto","um","diretor","com","mais","de","60","anos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,4,[0,[0,8,false],null],40.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",3],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,8,false],null],60.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"bbc_channels","query":"SELECT t1.name , t1.channel_id FROM channel AS t1 JOIN director_admin AS t2 ON t1.channel_id = t2.channel_id JOIN director AS t3 ON t2.director_id = t3.director_id WHERE t3.name != \"Hank Baskett\"","query_toks":["SELECT","t1.name",",","t1.channel_id","FROM","channel","AS","t1","JOIN","director_admin","AS","t2","ON","t1.channel_id","=","t2.channel_id","JOIN","director","AS","t3","ON","t2.director_id","=","t3.director_id","WHERE","t3.name","!","=","``","Hank","Baskett","''"],"query_toks_no_value":["select","t1",".","name",",","t1",".","channel_id","from","channel","as","t1","join","director_admin","as","t2","on","t1",".","channel_id","=","t2",".","channel_id","join","director","as","t3","on","t2",".","director_id","=","t3",".","director_id","where","t3",".","name","!","=","value"],"question":"Encontre o id e o nome do canal que não é dirigido por Hank Baskett.","question_toks":["Encontre","o","id","e","o","nome","do","canal","que","não","é","dirigido","por","Hank","Baskett","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[[false,7,[0,[0,7,false],null],"\"Hank Baskett\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT count(*) FROM radio","query_toks":["SELECT","count","(","*",")","FROM","radio"],"query_toks_no_value":["select","count","(","*",")","from","radio"],"question":"Quantas rádios existem?","question_toks":["Quantas","rádios","existem","?"],"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":"tv_shows","query":"select transmitter from radio order by erp_kw asc","query_toks":["select","transmitter","from","radio","order","by","erp_kw","asc"],"query_toks_no_value":["select","transmitter","from","radio","order","by","erp_kw","asc"],"question":"Liste os transmissores de rádios em ordem crescente de erp kw.","question_toks":["Liste","os","transmissores","de","rádios","em","ordem","crescente","de","erp","kw","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT tv_show_name , Original_Airdate FROM tv_show","query_toks":["SELECT","tv_show_name",",","Original_Airdate","FROM","tv_show"],"query_toks_no_value":["select","tv_show_name",",","original_airdate","from","tv_show"],"question":"Quais são os nomes e as datas de exibição originais dos programas de TV?","question_toks":["Quais","são","os","nomes","e","as","datas","de","exibição","originais","dos","programas","de","TV","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT Station_name FROM city_channel WHERE Affiliation != \"ABC\"","query_toks":["SELECT","Station_name","FROM","city_channel","WHERE","Affiliation","!","=","``","ABC","''"],"query_toks_no_value":["select","station_name","from","city_channel","where","affiliation","!","=","value"],"question":"Liste os nomes das estações dos canais da cidade cuja afiliação não é \"ABC\".","question_toks":["Liste","os","nomes","das","estações","dos","canais","da","cidade","cuja","afiliação","não","é","``","ABC","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,7,[0,[0,5,false],null],"\"ABC\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT Transmitter FROM radio WHERE ERP_kW > 150 OR ERP_kW < 30","query_toks":["SELECT","Transmitter","FROM","radio","WHERE","ERP_kW",">","150","OR","ERP_kW","<","30"],"query_toks_no_value":["select","transmitter","from","radio","where","erp_kw",">","value","or","erp_kw","<","value"],"question":"Mostre os transmissores de rádios cujo ERP é maior que 150 ou menor que 30.","question_toks":["Mostre","os","transmissores","de","rádios","cujo","ERP","é","maior","que","150","ou","menor","que","30","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,3,[0,[0,12,false],null],150.0,null],"or",[false,4,[0,[0,12,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT Transmitter FROM radio ORDER BY ERP_kW DESC LIMIT 1","query_toks":["SELECT","Transmitter","FROM","radio","ORDER","BY","ERP_kW","DESC","LIMIT","1"],"query_toks_no_value":["select","transmitter","from","radio","order","by","erp_kw","desc","limit","value"],"question":"Qual é o transmissor da rádio com o maior ERP_kW?","question_toks":["Qual","é","o","transmissor","da","rádio","com","o","maior","ERP_kW","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT avg(ERP_kW) FROM radio","query_toks":["SELECT","avg","(","ERP_kW",")","FROM","radio"],"query_toks_no_value":["select","avg","(","erp_kw",")","from","radio"],"question":"Qual é a média de ERP em todas as rádios?","question_toks":["Qual","é","a","média","de","ERP","em","todas","as","rádios","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT Affiliation , COUNT(*) FROM city_channel GROUP BY Affiliation","query_toks":["SELECT","Affiliation",",","COUNT","(","*",")","FROM","city_channel","GROUP","BY","Affiliation"],"query_toks_no_value":["select","affiliation",",","count","(","*",")","from","city_channel","group","by","affiliation"],"question":"Mostre as diferentes afiliações dos canais da cidade e o número de canais da cidade com cada afiliação.","question_toks":["Mostre","as","diferentes","afiliações","dos","canais","da","cidade","e","o","número","de","canais","da","cidade","com","cada","afiliação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT Affiliation FROM city_channel GROUP BY Affiliation ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Affiliation","FROM","city_channel","GROUP","BY","Affiliation","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","affiliation","from","city_channel","group","by","affiliation","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre a afiliação mais comum para os canais da cidade.","question_toks":["Mostre","a","afiliação","mais","comum","para","os","canais","da","cidade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"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":"tv_shows","query":"SELECT Affiliation FROM city_channel GROUP BY Affiliation HAVING COUNT(*) > 3","query_toks":["SELECT","Affiliation","FROM","city_channel","GROUP","BY","Affiliation","HAVING","COUNT","(","*",")",">","3"],"query_toks_no_value":["select","affiliation","from","city_channel","group","by","affiliation","having","count","(","*",")",">","value"],"question":"Liste as afiliações compartilhadas por mais de três canais da cidade.","question_toks":["Liste","as","afiliações","compartilhadas","por","mais","de","três","canais","da","cidade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,3,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT City , Station_name FROM city_channel ORDER BY Station_name ASC","query_toks":["SELECT","City",",","Station_name","FROM","city_channel","ORDER","BY","Station_name","ASC"],"query_toks_no_value":["select","city",",","station_name","from","city_channel","order","by","station_name","asc"],"question":"Mostre as cidades e os nomes das estações dos canais da cidade em ordem alfabética ascendente pelo nome da estação.","question_toks":["Mostre","as","cidades","e","os","nomes","das","estações","dos","canais","da","cidade","em","ordem","alfabética","ascendente","pelo","nome","da","estação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT T3.Transmitter , T2.City FROM city_channel_radio AS T1 JOIN city_channel AS T2 ON T1.City_channel_ID = T2.ID JOIN radio AS T3 ON T1.Radio_ID = T3.Radio_ID","query_toks":["SELECT","T3.Transmitter",",","T2.City","FROM","city_channel_radio","AS","T1","JOIN","city_channel","AS","T2","ON","T1.City_channel_ID","=","T2.ID","JOIN","radio","AS","T3","ON","T1.Radio_ID","=","T3.Radio_ID"],"query_toks_no_value":["select","t3",".","transmitter",",","t2",".","city","from","city_channel_radio","as","t1","join","city_channel","as","t2","on","t1",".","city_channel_id","=","t2",".","id","join","radio","as","t3","on","t1",".","radio_id","=","t3",".","radio_id"],"question":"Mostre os transmissores das rádios e as cidades dos canais com os quais estão associados.","question_toks":["Mostre","os","transmissores","das","rádios","e","as","cidades","dos","canais","com","os","quais","estão","associados","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,1,false],null],"and",[false,2,[0,[0,19,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT T3.Transmitter , T2.Station_name FROM city_channel_radio AS T1 JOIN city_channel AS T2 ON T1.City_channel_ID = T2.ID JOIN radio AS T3 ON T1.Radio_ID = T3.Radio_ID ORDER BY T3.ERP_kW DESC","query_toks":["SELECT","T3.Transmitter",",","T2.Station_name","FROM","city_channel_radio","AS","T1","JOIN","city_channel","AS","T2","ON","T1.City_channel_ID","=","T2.ID","JOIN","radio","AS","T3","ON","T1.Radio_ID","=","T3.Radio_ID","ORDER","BY","T3.ERP_kW","DESC"],"query_toks_no_value":["select","t3",".","transmitter",",","t2",".","station_name","from","city_channel_radio","as","t1","join","city_channel","as","t2","on","t1",".","city_channel_id","=","t2",".","id","join","radio","as","t3","on","t1",".","radio_id","=","t3",".","radio_id","order","by","t3",".","erp_kw","desc"],"question":"Mostre os transmissores das rádios e os nomes das estações dos canais com os quais estão associados em ordem decrescente da ERP das rádios.","question_toks":["Mostre","os","transmissores","das","rádios","e","os","nomes","das","estações","dos","canais","com","os","quais","estão","associados","em","ordem","decrescente","da","ERP","das","rádios","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,1,false],null],"and",[false,2,[0,[0,19,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,12,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT T2.Transmitter , COUNT(*) FROM city_channel_radio AS T1 JOIN radio AS T2 ON T1.Radio_ID = T2.Radio_ID GROUP BY T2.Transmitter","query_toks":["SELECT","T2.Transmitter",",","COUNT","(","*",")","FROM","city_channel_radio","AS","T1","JOIN","radio","AS","T2","ON","T1.Radio_ID","=","T2.Radio_ID","GROUP","BY","T2.Transmitter"],"query_toks_no_value":["select","t2",".","transmitter",",","count","(","*",")","from","city_channel_radio","as","t1","join","radio","as","t2","on","t1",".","radio_id","=","t2",".","radio_id","group","by","t2",".","transmitter"],"question":"Mostre os transmissores das rádios e o número de canais de cidade com os quais estão associados.","question_toks":["Mostre","os","transmissores","das","rádios","e","o","número","de","canais","de","cidade","com","os","quais","estão","associados","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",1]],"conds":[[false,2,[0,[0,19,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"tv_shows","query":"SELECT Transmitter FROM radio WHERE Radio_ID NOT IN (SELECT Radio_ID FROM city_channel_radio)","query_toks":["SELECT","Transmitter","FROM","radio","WHERE","Radio_ID","NOT","IN","(","SELECT","Radio_ID","FROM","city_channel_radio",")"],"query_toks_no_value":["select","transmitter","from","radio","where","radio_id","not","in","(","select","radio_id","from","city_channel_radio",")"],"question":"Mostre os transmissores distintos de rádios que não estão associados a nenhum canal da cidade.","question_toks":["Mostre","os","transmissores","distintos","de","rádios","que","não","estão","associados","a","nenhum","canal","da","cidade","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[true,8,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,19,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":"vehicle_driver","query":"SELECT model FROM vehicle WHERE power > 6000 ORDER BY top_speed DESC LIMIT 1","query_toks":["SELECT","model","FROM","vehicle","WHERE","power",">","6000","ORDER","BY","top_speed","DESC","LIMIT","1"],"query_toks_no_value":["select","model","from","vehicle","where","power",">","value","order","by","top_speed","desc","limit","value"],"question":"Qual é o modelo do veículo com a maior velocidade máxima cuja potência é superior a 6000?","question_toks":["Qual","é","o","modelo","do","veículo","com","a","maior","velocidade","máxima","cuja","potência","é","superior","a","6000","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,5,false],null],6000.0,null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT model FROM vehicle WHERE power > 6000 ORDER BY top_speed DESC LIMIT 1","query_toks":["SELECT","model","FROM","vehicle","WHERE","power",">","6000","ORDER","BY","top_speed","DESC","LIMIT","1"],"query_toks_no_value":["select","model","from","vehicle","where","power",">","value","order","by","top_speed","desc","limit","value"],"question":"Dos veículos com potência superior a 6000, retorne o modelo do veículo com a maior velocidade máxima.","question_toks":["Dos","veículos","com","potência","superior","a","6000",",","retorne","o","modelo","do","veículo","com","a","maior","velocidade","máxima","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,5,false],null],6000.0,null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT name FROM driver WHERE citizenship = 'United States'","query_toks":["SELECT","name","FROM","driver","WHERE","citizenship","=","'United","States","'"],"query_toks_no_value":["select","name","from","driver","where","citizenship","=","value"],"question":"Quais são os nomes dos motoristas que são cidadãos dos 'United States'?","question_toks":["Quais","são","os","nomes","dos","motoristas","que","são","cidadãos","dos","'United","States","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"United States\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT name FROM driver WHERE citizenship = 'United States'","query_toks":["SELECT","name","FROM","driver","WHERE","citizenship","=","'United","States","'"],"query_toks_no_value":["select","name","from","driver","where","citizenship","=","value"],"question":"Retorne os nomes dos motoristas com cidadania dos United States.","question_toks":["Retorne","os","nomes","dos","motoristas","com","cidadania","dos","United","States","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"United States\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) , driver_id FROM vehicle_driver GROUP BY driver_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","driver_id","FROM","vehicle_driver","GROUP","BY","driver_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","driver_id","from","vehicle_driver","group","by","driver_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quantos veículos um motorista dirigiu no máximo e qual é o id do motorista que dirigiu essa quantidade de veículos?","question_toks":["Quantos","veículos","um","motorista","dirigiu","no","máximo","e","qual","é","o","id","do","motorista","que","dirigiu","essa","quantidade","de","veículos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) , driver_id FROM vehicle_driver GROUP BY driver_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","driver_id","FROM","vehicle_driver","GROUP","BY","driver_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","driver_id","from","vehicle_driver","group","by","driver_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id do motorista que dirigiu mais veículos e quantos veículos são esses?","question_toks":["Qual","é","o","id","do","motorista","que","dirigiu","mais","veículos","e","quantos","veículos","são","esses","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT max(power) , avg(power) FROM vehicle WHERE builder = 'Zhuzhou'","query_toks":["SELECT","max","(","power",")",",","avg","(","power",")","FROM","vehicle","WHERE","builder","=","'Zhuzhou","'"],"query_toks_no_value":["select","max","(","power",")",",","avg","(","power",")","from","vehicle","where","builder","=","value"],"question":"Qual é a potência máxima e média dos veículos fabricados pela 'Zhuzhou'?","question_toks":["Qual","é","a","potência","máxima","e","média","dos","veículos","fabricados","pela","'Zhuzhou","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,5,false],null]],[5,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Zhuzhou\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT max(power) , avg(power) FROM vehicle WHERE builder = 'Zhuzhou'","query_toks":["SELECT","max","(","power",")",",","avg","(","power",")","FROM","vehicle","WHERE","builder","=","'Zhuzhou","'"],"query_toks_no_value":["select","max","(","power",")",",","avg","(","power",")","from","vehicle","where","builder","=","value"],"question":"Retorne a potência máxima e média dos veículos construídos pela Zhuzhou.","question_toks":["Retorne","a","potência","máxima","e","média","dos","veículos","construídos","pela","Zhuzhou","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,5,false],null]],[5,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Zhuzhou\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT vehicle_id FROM vehicle_driver GROUP BY vehicle_id ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","vehicle_id","FROM","vehicle_driver","GROUP","BY","vehicle_id","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","vehicle_id","from","vehicle_driver","group","by","vehicle_id","order","by","count","(","*",")","asc","limit","value"],"question":"Qual é o id do veículo que foi dirigido menos vezes entre os veículos já utilizados?","question_toks":["Qual","é","o","id","do","veículo","que","foi","dirigido","menos","vezes","entre","os","veículos","já","utilizados","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT vehicle_id FROM vehicle_driver GROUP BY vehicle_id ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","vehicle_id","FROM","vehicle_driver","GROUP","BY","vehicle_id","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","vehicle_id","from","vehicle_driver","group","by","vehicle_id","order","by","count","(","*",")","asc","limit","value"],"question":"Retorne o id do veículo que foi dirigido o menor número de vezes.","question_toks":["Retorne","o","id","do","veículo","que","foi","dirigido","o","menor","número","de","vezes","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT top_speed , power FROM vehicle WHERE build_year = 1996","query_toks":["SELECT","top_speed",",","power","FROM","vehicle","WHERE","build_year","=","1996"],"query_toks_no_value":["select","top_speed",",","power","from","vehicle","where","build_year","=","value"],"question":"Qual é a velocidade máxima e a potência do veículo fabricado no ano de 1996?","question_toks":["Qual","é","a","velocidade","máxima","e","a","potência","do","veículo","fabricado","no","ano","de","1996","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,3,false],null],1996.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT top_speed , power FROM vehicle WHERE build_year = 1996","query_toks":["SELECT","top_speed",",","power","FROM","vehicle","WHERE","build_year","=","1996"],"query_toks_no_value":["select","top_speed",",","power","from","vehicle","where","build_year","=","value"],"question":"Retorne a velocidade máxima e a potência do veículo que foi construído no ano de 1996.","question_toks":["Retorne","a","velocidade","máxima","e","a","potência","do","veículo","que","foi","construído","no","ano","de","1996","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,3,false],null],1996.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT build_year , model , builder FROM vehicle","query_toks":["SELECT","build_year",",","model",",","builder","FROM","vehicle"],"query_toks_no_value":["select","build_year",",","model",",","builder","from","vehicle"],"question":"Quais são o ano de fabricação, o nome do modelo e o fabricante dos veículos?","question_toks":["Quais","são","o","ano","de","fabricação",",","o","nome","do","modelo","e","o","fabricante","dos","veículos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT build_year , model , builder FROM vehicle","query_toks":["SELECT","build_year",",","model",",","builder","FROM","vehicle"],"query_toks_no_value":["select","build_year",",","model",",","builder","from","vehicle"],"question":"Dê o ano de fabricação, modelo e fabricante de cada veículo.","question_toks":["Dê","o","ano","de","fabricação",",","modelo","e","fabricante","de","cada","veículo","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(DISTINCT T1.driver_id) FROM vehicle_driver AS T1 JOIN vehicle AS T2 ON T1.vehicle_id = T2.vehicle_id WHERE T2.build_year = 2012","query_toks":["SELECT","count","(","DISTINCT","T1.driver_id",")","FROM","vehicle_driver","AS","T1","JOIN","vehicle","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","WHERE","T2.build_year","=","2012"],"query_toks_no_value":["select","count","(","distinct","t1",".","driver_id",")","from","vehicle_driver","as","t1","join","vehicle","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","where","t2",".","build_year","=","value"],"question":"Quantos motoristas dirigiram veículos fabricados em 2012?","question_toks":["Quantos","motoristas","dirigiram","veículos","fabricados","em","2012","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,2,[0,[0,3,false],null],2012.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(DISTINCT T1.driver_id) FROM vehicle_driver AS T1 JOIN vehicle AS T2 ON T1.vehicle_id = T2.vehicle_id WHERE T2.build_year = 2012","query_toks":["SELECT","count","(","DISTINCT","T1.driver_id",")","FROM","vehicle_driver","AS","T1","JOIN","vehicle","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","WHERE","T2.build_year","=","2012"],"query_toks_no_value":["select","count","(","distinct","t1",".","driver_id",")","from","vehicle_driver","as","t1","join","vehicle","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","where","t2",".","build_year","=","value"],"question":"Conte o número de motoristas diferentes que dirigiram veículos fabricados em 2012.","question_toks":["Conte","o","número","de","motoristas","diferentes","que","dirigiram","veículos","fabricados","em","2012","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,2,[0,[0,3,false],null],2012.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) FROM driver WHERE Racing_Series = 'NASCAR'","query_toks":["SELECT","count","(","*",")","FROM","driver","WHERE","Racing_Series","=","'NASCAR","'"],"query_toks_no_value":["select","count","(","*",")","from","driver","where","racing_series","=","value"],"question":"Conte quantos pilotos competiram na 'NASCAR'.","question_toks":["Conte","quantos","pilotos","competiram","na","'NASCAR","'","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"NASCAR\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) FROM driver WHERE Racing_Series = 'NASCAR'","query_toks":["SELECT","count","(","*",")","FROM","driver","WHERE","Racing_Series","=","'NASCAR","'"],"query_toks_no_value":["select","count","(","*",")","from","driver","where","racing_series","=","value"],"question":"Conte o número de pilotos que competiram na NASCAR.","question_toks":["Conte","o","número","de","pilotos","que","competiram","na","NASCAR","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"NASCAR\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT avg(top_speed) FROM vehicle","query_toks":["SELECT","avg","(","top_speed",")","FROM","vehicle"],"query_toks_no_value":["select","avg","(","top_speed",")","from","vehicle"],"question":"Qual é a velocidade máxima média dos veículos?","question_toks":["Qual","é","a","velocidade","máxima","média","dos","veículos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT avg(top_speed) FROM vehicle","query_toks":["SELECT","avg","(","top_speed",")","FROM","vehicle"],"query_toks_no_value":["select","avg","(","top_speed",")","from","vehicle"],"question":"Retorne a velocidade máxima média de todos os veículos.","question_toks":["Retorne","a","velocidade","máxima","média","de","todos","os","veículos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"select distinct t1.name from driver as t1 join vehicle_driver as t2 on t1.driver_id = t2.driver_id join vehicle as t3 on t2.vehicle_id = t3.vehicle_id where t3.power > 5000","query_toks":["select","distinct","t1.name","from","driver","as","t1","join","vehicle_driver","as","t2","on","t1.driver_id","=","t2.driver_id","join","vehicle","as","t3","on","t2.vehicle_id","=","t3.vehicle_id","where","t3.power",">","5000"],"query_toks_no_value":["select","distinct","t1",".","name","from","driver","as","t1","join","vehicle_driver","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","join","vehicle","as","t3","on","t2",".","vehicle_id","=","t3",".","vehicle_id","where","t3",".","power",">","value"],"question":"Quais são os nomes distintos dos motoristas que dirigiram veículos com potência superior a 5000?","question_toks":["Quais","são","os","nomes","distintos","dos","motoristas","que","dirigiram","veículos","com","potência","superior","a","5000","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,8,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,5,false],null],5000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT DISTINCT T1.Name FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id = T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id = T3.vehicle_id WHERE T3.power > 5000","query_toks":["SELECT","DISTINCT","T1.Name","FROM","driver","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.driver_id","=","T2.driver_id","JOIN","vehicle","AS","T3","ON","T2.vehicle_id","=","T3.vehicle_id","WHERE","T3.power",">","5000"],"query_toks_no_value":["select","distinct","t1",".","name","from","driver","as","t1","join","vehicle_driver","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","join","vehicle","as","t3","on","t2",".","vehicle_id","=","t3",".","vehicle_id","where","t3",".","power",">","value"],"question":"Retorne os nomes dos motoristas que dirigiram veículos com potência superior a 5000.","question_toks":["Retorne","os","nomes","dos","motoristas","que","dirigiram","veículos","com","potência","superior","a","5000","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,8,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,5,false],null],5000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT model FROM vehicle WHERE total_production > 100 OR top_speed > 150","query_toks":["SELECT","model","FROM","vehicle","WHERE","total_production",">","100","OR","top_speed",">","150"],"query_toks_no_value":["select","model","from","vehicle","where","total_production",">","value","or","top_speed",">","value"],"question":"Quais modelos de carro têm produção total maior que 100 ou velocidade máxima superior a 150?","question_toks":["Quais","modelos","de","carro","têm","produção","total","maior","que","100","ou","velocidade","máxima","superior","a","150","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,7,false],null],100.0,null],"or",[false,3,[0,[0,4,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT model FROM vehicle WHERE total_production > 100 OR top_speed > 150","query_toks":["SELECT","model","FROM","vehicle","WHERE","total_production",">","100","OR","top_speed",">","150"],"query_toks_no_value":["select","model","from","vehicle","where","total_production",">","value","or","top_speed",">","value"],"question":"Dê os modelos de carros que têm uma produção total superior a 100 ou uma velocidade máxima superior a 150.","question_toks":["Dê","os","modelos","de","carros","que","têm","uma","produção","total","superior","a","100","ou","uma","velocidade","máxima","superior","a","150","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,7,false],null],100.0,null],"or",[false,3,[0,[0,4,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT model , build_year FROM vehicle WHERE model LIKE '%DJ%'","query_toks":["SELECT","model",",","build_year","FROM","vehicle","WHERE","model","LIKE","'","%","DJ","%","'"],"query_toks_no_value":["select","model",",","build_year","from","vehicle","where","model","like","value"],"question":"Quais são os nomes dos modelos e o ano de fabricação dos carros com 'DJ' no nome do modelo?","question_toks":["Quais","são","os","nomes","dos","modelos","e","o","ano","de","fabricação","dos","carros","com","'DJ","'","no","nome","do","modelo","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%DJ%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT model , build_year FROM vehicle WHERE model LIKE '%DJ%'","query_toks":["SELECT","model",",","build_year","FROM","vehicle","WHERE","model","LIKE","'","%","DJ","%","'"],"query_toks_no_value":["select","model",",","build_year","from","vehicle","where","model","like","value"],"question":"Retorne o modelo e o ano de fabricação dos carros que incluem \"DJ\" em seus nomes de modelo.","question_toks":["Retorne","o","modelo","e","o","ano","de","fabricação","dos","carros","que","incluem","``","DJ","''","em","seus","nomes","de","modelo","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%DJ%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT model FROM vehicle EXCEPT SELECT T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id","query_toks":["SELECT","model","FROM","vehicle","EXCEPT","SELECT","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id"],"query_toks_no_value":["select","model","from","vehicle","except","select","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id"],"question":"Quais são os modelos que não foram dirigidos por nenhum motorista?","question_toks":["Quais","são","os","modelos","que","não","foram","dirigidos","por","nenhum","motorista","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"vehicle_driver","query":"SELECT model FROM vehicle EXCEPT SELECT T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id","query_toks":["SELECT","model","FROM","vehicle","EXCEPT","SELECT","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id"],"query_toks_no_value":["select","model","from","vehicle","except","select","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id"],"question":"Retorne os modelos de veículos que nunca foram dirigidos.","question_toks":["Retorne","os","modelos","de","veículos","que","nunca","foram","dirigidos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"vehicle_driver","query":"SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*) = 2 OR T1.builder = 'Ziyang'","query_toks":["SELECT","T1.vehicle_id",",","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","GROUP","BY","T2.vehicle_id","HAVING","count","(","*",")","=","2","OR","T1.builder","=","'Ziyang","'"],"query_toks_no_value":["select","t1",".","vehicle_id",",","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","group","by","t2",".","vehicle_id","having","count","(","*",")","=","value","or","t1",".","builder","=","value"],"question":"Quais são os ids e modelos dos veículos que foram dirigidos por dois motoristas ou foram fabricados pela 'Ziyang'?","question_toks":["Quais","são","os","ids","e","modelos","dos","veículos","que","foram","dirigidos","por","dois","motoristas","ou","foram","fabricados","pela","'Ziyang","'","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,2,[0,[3,0,false],null],2.0,null],"or",[false,2,[0,[0,6,false],null],"\"Ziyang\"",null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*) = 2 OR T1.builder = 'Ziyang'","query_toks":["SELECT","T1.vehicle_id",",","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","GROUP","BY","T2.vehicle_id","HAVING","count","(","*",")","=","2","OR","T1.builder","=","'Ziyang","'"],"query_toks_no_value":["select","t1",".","vehicle_id",",","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","group","by","t2",".","vehicle_id","having","count","(","*",")","=","value","or","t1",".","builder","=","value"],"question":"Retorne os ids e modelos dos veículos que foram dirigidos por exatamente dois motoristas ou construídos pela Ziyang.","question_toks":["Retorne","os","ids","e","modelos","dos","veículos","que","foram","dirigidos","por","exatamente","dois","motoristas","ou","construídos","pela","Ziyang","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,2,[0,[3,0,false],null],2.0,null],"or",[false,2,[0,[0,6,false],null],"\"Ziyang\"",null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id JOIN driver AS T3 ON T2.driver_id = T3.driver_id WHERE T3.name = 'Jeff Gordon' UNION SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*) > 2","query_toks":["SELECT","T1.vehicle_id",",","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","JOIN","driver","AS","T3","ON","T2.driver_id","=","T3.driver_id","WHERE","T3.name","=","'Jeff","Gordon","'","UNION","SELECT","T1.vehicle_id",",","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","GROUP","BY","T2.vehicle_id","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","t1",".","vehicle_id",",","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","join","driver","as","t3","on","t2",".","driver_id","=","t3",".","driver_id","where","t3",".","name","=","value","union","select","t1",".","vehicle_id",",","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","group","by","t2",".","vehicle_id","having","count","(","*",")",">","value"],"question":"Quais são os ids e modelos de veículos que foram dirigidos por mais de 2 motoristas ou que foram dirigidos pelo motorista chamado 'Jeff Gordon'?","question_toks":["Quais","são","os","ids","e","modelos","de","veículos","que","foram","dirigidos","por","mais","de","2","motoristas","ou","que","foram","dirigidos","pelo","motorista","chamado","'Jeff","Gordon","'","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null],"and",[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Jeff Gordon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"vehicle_driver","query":"SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id JOIN driver AS T3 ON T2.driver_id = T3.driver_id WHERE T3.name = 'Jeff Gordon' UNION SELECT T1.vehicle_id , T1.model FROM vehicle AS T1 JOIN vehicle_driver AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T2.vehicle_id HAVING count(*) > 2","query_toks":["SELECT","T1.vehicle_id",",","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","JOIN","driver","AS","T3","ON","T2.driver_id","=","T3.driver_id","WHERE","T3.name","=","'Jeff","Gordon","'","UNION","SELECT","T1.vehicle_id",",","T1.model","FROM","vehicle","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.vehicle_id","=","T2.vehicle_id","GROUP","BY","T2.vehicle_id","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","t1",".","vehicle_id",",","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","join","driver","as","t3","on","t2",".","driver_id","=","t3",".","driver_id","where","t3",".","name","=","value","union","select","t1",".","vehicle_id",",","t1",".","model","from","vehicle","as","t1","join","vehicle_driver","as","t2","on","t1",".","vehicle_id","=","t2",".","vehicle_id","group","by","t2",".","vehicle_id","having","count","(","*",")",">","value"],"question":"Retorne os IDs e modelos dos veículos que foram dirigidos por mais de 2 motoristas ou que foram dirigidos por Jeff Gordon.","question_toks":["Retorne","os","IDs","e","modelos","dos","veículos","que","foram","dirigidos","por","mais","de","2","motoristas","ou","que","foram","dirigidos","por","Jeff","Gordon","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null],"and",[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Jeff Gordon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) FROM vehicle WHERE top_speed = (SELECT max(top_speed) FROM vehicle)","query_toks":["SELECT","count","(","*",")","FROM","vehicle","WHERE","top_speed","=","(","SELECT","max","(","top_speed",")","FROM","vehicle",")"],"query_toks_no_value":["select","count","(","*",")","from","vehicle","where","top_speed","=","(","select","max","(","top_speed",")","from","vehicle",")"],"question":"Quantos veículos têm a máxima velocidade máxima?","question_toks":["Quantos","veículos","têm","a","máxima","velocidade","máxima","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,4,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":"vehicle_driver","query":"SELECT count(*) FROM vehicle WHERE top_speed = (SELECT max(top_speed) FROM vehicle)","query_toks":["SELECT","count","(","*",")","FROM","vehicle","WHERE","top_speed","=","(","SELECT","max","(","top_speed",")","FROM","vehicle",")"],"query_toks_no_value":["select","count","(","*",")","from","vehicle","where","top_speed","=","(","select","max","(","top_speed",")","from","vehicle",")"],"question":"Conte o número de veículos que têm uma velocidade máxima igual à máxima entre todos os veículos.","question_toks":["Conte","o","número","de","veículos","que","têm","uma","velocidade","máxima","igual","à","máxima","entre","todos","os","veículos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,4,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":"vehicle_driver","query":"SELECT name FROM driver ORDER BY name","query_toks":["SELECT","name","FROM","driver","ORDER","BY","name"],"query_toks_no_value":["select","name","from","driver","order","by","name"],"question":"Mostre todos os nomes dos motoristas em ordem alfabética.","question_toks":["Mostre","todos","os","nomes","dos","motoristas","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,9,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT name FROM driver ORDER BY name","query_toks":["SELECT","name","FROM","driver","ORDER","BY","name"],"query_toks_no_value":["select","name","from","driver","order","by","name"],"question":"Quais são os nomes dos motoristas, retornados em ordem alfabética?","question_toks":["Quais","são","os","nomes","dos","motoristas",",","retornados","em","ordem","alfabética","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,9,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) , racing_series FROM driver GROUP BY racing_series","query_toks":["SELECT","count","(","*",")",",","racing_series","FROM","driver","GROUP","BY","racing_series"],"query_toks_no_value":["select","count","(","*",")",",","racing_series","from","driver","group","by","racing_series"],"question":"Quantos pilotos têm competido em cada série de corridas?","question_toks":["Quantos","pilotos","têm","competido","em","cada","série","de","corridas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) , racing_series FROM driver GROUP BY racing_series","query_toks":["SELECT","count","(","*",")",",","racing_series","FROM","driver","GROUP","BY","racing_series"],"query_toks_no_value":["select","count","(","*",")",",","racing_series","from","driver","group","by","racing_series"],"question":"Conte o número de pilotos que competiram em cada série.","question_toks":["Conte","o","número","de","pilotos","que","competiram","em","cada","série","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT T1.name , T1.citizenship FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id = T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id = T3.vehicle_id WHERE T3.model = 'DJ1'","query_toks":["SELECT","T1.name",",","T1.citizenship","FROM","driver","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.driver_id","=","T2.driver_id","JOIN","vehicle","AS","T3","ON","T2.vehicle_id","=","T3.vehicle_id","WHERE","T3.model","=","'DJ1","'"],"query_toks_no_value":["select","t1",".","name",",","t1",".","citizenship","from","driver","as","t1","join","vehicle_driver","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","join","vehicle","as","t3","on","t2",".","vehicle_id","=","t3",".","vehicle_id","where","t3",".","model","=","value"],"question":"Quais são o nome e a cidadania dos motoristas que dirigiram o modelo de veículo 'DJ1'?","question_toks":["Quais","são","o","nome","e","a","cidadania","dos","motoristas","que","dirigiram","o","modelo","de","veículo","'DJ1","'","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,8,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"DJ1\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT T1.name , T1.citizenship FROM driver AS T1 JOIN vehicle_driver AS T2 ON T1.driver_id = T2.driver_id JOIN vehicle AS T3 ON T2.vehicle_id = T3.vehicle_id WHERE T3.model = 'DJ1'","query_toks":["SELECT","T1.name",",","T1.citizenship","FROM","driver","AS","T1","JOIN","vehicle_driver","AS","T2","ON","T1.driver_id","=","T2.driver_id","JOIN","vehicle","AS","T3","ON","T2.vehicle_id","=","T3.vehicle_id","WHERE","T3.model","=","'DJ1","'"],"query_toks_no_value":["select","t1",".","name",",","t1",".","citizenship","from","driver","as","t1","join","vehicle_driver","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","join","vehicle","as","t3","on","t2",".","vehicle_id","=","t3",".","vehicle_id","where","t3",".","model","=","value"],"question":"Retorne os nomes e as cidadanias dos motoristas que dirigiram o veículo com o modelo 'DJ1'.","question_toks":["Retorne","os","nomes","e","as","cidadanias","dos","motoristas","que","dirigiram","o","veículo","com","o","modelo","'DJ1","'","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,8,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"DJ1\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_driver","query":"SELECT count(*) FROM driver WHERE driver_id NOT IN ( SELECT driver_id FROM vehicle_driver )","query_toks":["SELECT","count","(","*",")","FROM","driver","WHERE","driver_id","NOT","IN","(","SELECT","driver_id","FROM","vehicle_driver",")"],"query_toks_no_value":["select","count","(","*",")","from","driver","where","driver_id","not","in","(","select","driver_id","from","vehicle_driver",")"],"question":"Conte quantos motoristas não dirigiram nenhum carro.","question_toks":["Conte","quantos","motoristas","não","dirigiram","nenhum","carro","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,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":"vehicle_driver","query":"SELECT count(*) FROM driver WHERE driver_id NOT IN ( SELECT driver_id FROM vehicle_driver )","query_toks":["SELECT","count","(","*",")","FROM","driver","WHERE","driver_id","NOT","IN","(","SELECT","driver_id","FROM","vehicle_driver",")"],"query_toks_no_value":["select","count","(","*",")","from","driver","where","driver_id","not","in","(","select","driver_id","from","vehicle_driver",")"],"question":"Conte o número de motoristas que não dirigiram nenhum veículo.","question_toks":["Conte","o","número","de","motoristas","que","não","dirigiram","nenhum","veículo","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,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":"online_exams","query":"SELECT count(*) FROM Exams","query_toks":["SELECT","count","(","*",")","FROM","Exams"],"query_toks_no_value":["select","count","(","*",")","from","exams"],"question":"Quantos exames existem?","question_toks":["Quantos","exames","existem","?"],"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":"online_exams","query":"SELECT count(*) FROM Exams","query_toks":["SELECT","count","(","*",")","FROM","Exams"],"query_toks_no_value":["select","count","(","*",")","from","exams"],"question":"Conte o número de exames.","question_toks":["Conte","o","número","de","exames","."],"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":"online_exams","query":"select distinct subject_code from exams order by subject_code asc","query_toks":["select","distinct","subject_code","from","exams","order","by","subject_code","asc"],"query_toks_no_value":["select","distinct","subject_code","from","exams","order","by","subject_code","asc"],"question":"Liste os códigos de assunto distintos dos exames em ordem alfabética ascendente.","question_toks":["Liste","os","códigos","de","assunto","distintos","dos","exames","em","ordem","alfabética","ascendente","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,14,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT DISTINCT Subject_Code FROM Exams ORDER BY Subject_Code","query_toks":["SELECT","DISTINCT","Subject_Code","FROM","Exams","ORDER","BY","Subject_Code"],"query_toks_no_value":["select","distinct","subject_code","from","exams","order","by","subject_code"],"question":"Dê-me uma lista ordenada alfabeticamente dos códigos de assunto distintos para exames.","question_toks":["Dê-me","uma","lista","ordenada","alfabeticamente","dos","códigos","de","assunto","distintos","para","exames","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,14,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Exam_Date , Exam_Name FROM Exams WHERE Subject_Code != 'Database'","query_toks":["SELECT","Exam_Date",",","Exam_Name","FROM","Exams","WHERE","Subject_Code","!","=","'Database","'"],"query_toks_no_value":["select","exam_date",",","exam_name","from","exams","where","subject_code","!","=","value"],"question":"Quais são os nomes e datas dos exames com código de assunto que não é \"Database\"?","question_toks":["Quais","são","os","nomes","e","datas","dos","exames","com","código","de","assunto","que","não","é","``","Database","''","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]],[0,[0,[0,16,false],null]]]],"where":[[false,7,[0,[0,14,false],null],"\"Database\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Exam_Date , Exam_Name FROM Exams WHERE Subject_Code != 'Database'","query_toks":["SELECT","Exam_Date",",","Exam_Name","FROM","Exams","WHERE","Subject_Code","!","=","'Database","'"],"query_toks_no_value":["select","exam_date",",","exam_name","from","exams","where","subject_code","!","=","value"],"question":"Encontre os exames cujo código de assunto não é \"Database\". Quais são as datas dos exames e os nomes dos exames?","question_toks":["Encontre","os","exames","cujo","código","de","assunto","não","é","``","Database","''",".","Quais","são","as","datas","dos","exames","e","os","nomes","dos","exames","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]],[0,[0,[0,16,false],null]]]],"where":[[false,7,[0,[0,14,false],null],"\"Database\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Exam_Date FROM Exams WHERE Subject_Code LIKE '%data%' ORDER BY Exam_Date DESC","query_toks":["SELECT","Exam_Date","FROM","Exams","WHERE","Subject_Code","LIKE","'","%","data","%","'","ORDER","BY","Exam_Date","DESC"],"query_toks_no_value":["select","exam_date","from","exams","where","subject_code","like","value","order","by","exam_date","desc"],"question":"Liste as datas dos exames com código de assunto contendo a palavra \"data\", em ordem decrescente de datas.","question_toks":["Liste","as","datas","dos","exames","com","código","de","assunto","contendo","a","palavra","``","data","''",",","em","ordem","decrescente","de","datas","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,9,[0,[0,14,false],null],"\"%data%\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Exam_Date FROM Exams WHERE Subject_Code LIKE '%data%' ORDER BY Exam_Date DESC","query_toks":["SELECT","Exam_Date","FROM","Exams","WHERE","Subject_Code","LIKE","'","%","data","%","'","ORDER","BY","Exam_Date","DESC"],"query_toks_no_value":["select","exam_date","from","exams","where","subject_code","like","value","order","by","exam_date","desc"],"question":"Quais são as datas dos exames cujo código de assunto contém a substring \"data\"? Retorne-as em ordem decrescente de datas.","question_toks":["Quais","são","as","datas","dos","exames","cujo","código","de","assunto","contém","a","substring","``","data","''","?","Retorne-as","em","ordem","decrescente","de","datas","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,9,[0,[0,14,false],null],"\"%data%\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Type_of_Question_Code , COUNT(*) FROM Questions GROUP BY Type_of_Question_Code","query_toks":["SELECT","Type_of_Question_Code",",","COUNT","(","*",")","FROM","Questions","GROUP","BY","Type_of_Question_Code"],"query_toks_no_value":["select","type_of_question_code",",","count","(","*",")","from","questions","group","by","type_of_question_code"],"question":"Quais são os tipos de perguntas e suas contagens?","question_toks":["Quais","são","os","tipos","de","perguntas","e","suas","contagens","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Type_of_Question_Code , COUNT(*) FROM Questions GROUP BY Type_of_Question_Code","query_toks":["SELECT","Type_of_Question_Code",",","COUNT","(","*",")","FROM","Questions","GROUP","BY","Type_of_Question_Code"],"query_toks_no_value":["select","type_of_question_code",",","count","(","*",")","from","questions","group","by","type_of_question_code"],"question":"Para cada tipo de pergunta, retorne seu código de tipo e sua contagem de ocorrências.","question_toks":["Para","cada","tipo","de","pergunta",",","retorne","seu","código","de","tipo","e","sua","contagem","de","ocorrências","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT DISTINCT Student_Answer_Text FROM Student_Answers WHERE Comments = \"Normal\"","query_toks":["SELECT","DISTINCT","Student_Answer_Text","FROM","Student_Answers","WHERE","Comments","=","``","Normal","''"],"query_toks_no_value":["select","distinct","student_answer_text","from","student_answers","where","comments","=","value"],"question":"Quais são os textos de resposta distintos dos alunos que receberam comentários \"Normal\"?","question_toks":["Quais","são","os","textos","de","resposta","distintos","dos","alunos","que","receberam","comentários","``","Normal","''","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[true,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"Normal\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT DISTINCT Student_Answer_Text FROM Student_Answers WHERE Comments = \"Normal\"","query_toks":["SELECT","DISTINCT","Student_Answer_Text","FROM","Student_Answers","WHERE","Comments","=","``","Normal","''"],"query_toks_no_value":["select","distinct","student_answer_text","from","student_answers","where","comments","=","value"],"question":"Liste todos os textos de respostas dos alunos distintos aos quais foram dados comentários \"Normal\"?","question_toks":["Liste","todos","os","textos","de","respostas","dos","alunos","distintos","aos","quais","foram","dados","comentários","``","Normal","''","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[true,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"Normal\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT count(DISTINCT Comments) FROM Student_Answers","query_toks":["SELECT","count","(","DISTINCT","Comments",")","FROM","Student_Answers"],"query_toks_no_value":["select","count","(","distinct","comments",")","from","student_answers"],"question":"Quantos comentários diferentes existem para as respostas dos alunos?","question_toks":["Quantos","comentários","diferentes","existem","para","as","respostas","dos","alunos","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[3,[0,[0,27,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT count(DISTINCT Comments) FROM Student_Answers","query_toks":["SELECT","count","(","DISTINCT","Comments",")","FROM","Student_Answers"],"query_toks_no_value":["select","count","(","distinct","comments",")","from","student_answers"],"question":"Conte o número de comentários diferentes para as respostas dos alunos.","question_toks":["Conte","o","número","de","comentários","diferentes","para","as","respostas","dos","alunos","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[3,[0,[0,27,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Student_Answer_Text FROM Student_Answers GROUP BY Student_Answer_Text ORDER BY COUNT(*) DESC","query_toks":["SELECT","Student_Answer_Text","FROM","Student_Answers","GROUP","BY","Student_Answer_Text","ORDER","BY","COUNT","(","*",")","DESC"],"query_toks_no_value":["select","student_answer_text","from","student_answers","group","by","student_answer_text","order","by","count","(","*",")","desc"],"question":"Liste todos os textos de respostas dos alunos em ordem decrescente de contagem.","question_toks":["Liste","todos","os","textos","de","respostas","dos","alunos","em","ordem","decrescente","de","contagem","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[[0,29,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Student_Answer_Text FROM Student_Answers GROUP BY Student_Answer_Text ORDER BY COUNT(*) DESC","query_toks":["SELECT","Student_Answer_Text","FROM","Student_Answers","GROUP","BY","Student_Answer_Text","ORDER","BY","COUNT","(","*",")","DESC"],"query_toks_no_value":["select","student_answer_text","from","student_answers","group","by","student_answer_text","order","by","count","(","*",")","desc"],"question":"Ordene os textos das respostas dos alunos em ordem decrescente de frequência de ocorrência.","question_toks":["Ordene","os","textos","das","respostas","dos","alunos","em","ordem","decrescente","de","frequência","de","ocorrência","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[],"groupBy":[[0,29,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT T2.First_Name , T1.Date_of_Answer FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID = T2.Student_ID","query_toks":["SELECT","T2.First_Name",",","T1.Date_of_Answer","FROM","Student_Answers","AS","T1","JOIN","Students","AS","T2","ON","T1.Student_ID","=","T2.Student_ID"],"query_toks_no_value":["select","t2",".","first_name",",","t1",".","date_of_answer","from","student_answers","as","t1","join","students","as","t2","on","t1",".","student_id","=","t2",".","student_id"],"question":"Por favor, mostre os primeiros nomes dos alunos e as datas de suas respostas.","question_toks":["Por","favor",",","mostre","os","primeiros","nomes","dos","alunos","e","as","datas","de","suas","respostas","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,25,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,26,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT T2.First_Name , T1.Date_of_Answer FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID = T2.Student_ID","query_toks":["SELECT","T2.First_Name",",","T1.Date_of_Answer","FROM","Student_Answers","AS","T1","JOIN","Students","AS","T2","ON","T1.Student_ID","=","T2.Student_ID"],"query_toks_no_value":["select","t2",".","first_name",",","t1",".","date_of_answer","from","student_answers","as","t1","join","students","as","t2","on","t1",".","student_id","=","t2",".","student_id"],"question":"Para cada resposta do aluno, encontre o primeiro nome do aluno e a data da resposta.","question_toks":["Para","cada","resposta","do","aluno",",","encontre","o","primeiro","nome","do","aluno","e","a","data","da","resposta","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,25,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,26,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT T2.Email_Adress , T1.Date_of_Answer FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID = T2.Student_ID ORDER BY T1.Date_of_Answer DESC","query_toks":["SELECT","T2.Email_Adress",",","T1.Date_of_Answer","FROM","Student_Answers","AS","T1","JOIN","Students","AS","T2","ON","T1.Student_ID","=","T2.Student_ID","ORDER","BY","T1.Date_of_Answer","DESC"],"query_toks_no_value":["select","t2",".","email_adress",",","t1",".","date_of_answer","from","student_answers","as","t1","join","students","as","t2","on","t1",".","student_id","=","t2",".","student_id","order","by","t1",".","date_of_answer","desc"],"question":"Por favor, mostre os endereços de e-mail dos alunos e as datas de suas respostas em ordem decrescente de datas.","question_toks":["Por","favor",",","mostre","os","endereços","de","e-mail","dos","alunos","e","as","datas","de","suas","respostas","em","ordem","decrescente","de","datas","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,25,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,26,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,26,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT T2.Email_Adress , T1.Date_of_Answer FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID = T2.Student_ID ORDER BY T1.Date_of_Answer DESC","query_toks":["SELECT","T2.Email_Adress",",","T1.Date_of_Answer","FROM","Student_Answers","AS","T1","JOIN","Students","AS","T2","ON","T1.Student_ID","=","T2.Student_ID","ORDER","BY","T1.Date_of_Answer","DESC"],"query_toks_no_value":["select","t2",".","email_adress",",","t1",".","date_of_answer","from","student_answers","as","t1","join","students","as","t2","on","t1",".","student_id","=","t2",".","student_id","order","by","t1",".","date_of_answer","desc"],"question":"Para cada resposta do aluno, encontre o endereço de e-mail do aluno e a data da resposta. Ordene-os em ordem decrescente de datas.","question_toks":["Para","cada","resposta","do","aluno",",","encontre","o","endereço","de","e-mail","do","aluno","e","a","data","da","resposta",".","Ordene-os","em","ordem","decrescente","de","datas","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,25,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,26,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,26,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Assessment FROM Student_Assessments GROUP BY Assessment ORDER BY COUNT(*) ASC LIMIT 1","query_toks":["SELECT","Assessment","FROM","Student_Assessments","GROUP","BY","Assessment","ORDER","BY","COUNT","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","assessment","from","student_assessments","group","by","assessment","order","by","count","(","*",")","asc","limit","value"],"question":"Mostre a avaliação menos comum para os alunos.","question_toks":["Mostre","a","avaliação","menos","comum","para","os","alunos","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,34,false],null]]]],"where":[],"groupBy":[[0,34,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Assessment FROM Student_Assessments GROUP BY Assessment ORDER BY COUNT(*) ASC LIMIT 1","query_toks":["SELECT","Assessment","FROM","Student_Assessments","GROUP","BY","Assessment","ORDER","BY","COUNT","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","assessment","from","student_assessments","group","by","assessment","order","by","count","(","*",")","asc","limit","value"],"question":"Qual avaliação tem a menor contagem de frequência?","question_toks":["Qual","avaliação","tem","a","menor","contagem","de","frequência","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,34,false],null]]]],"where":[],"groupBy":[[0,34,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT T2.First_Name FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID = T2.Student_ID GROUP BY T1.Student_ID HAVING COUNT(*) >= 2","query_toks":["SELECT","T2.First_Name","FROM","Student_Answers","AS","T1","JOIN","Students","AS","T2","ON","T1.Student_ID","=","T2.Student_ID","GROUP","BY","T1.Student_ID","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","t2",".","first_name","from","student_answers","as","t1","join","students","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")",">","=","value"],"question":"Mostre os primeiros nomes dos alunos que têm pelo menos dois registros de resposta.","question_toks":["Mostre","os","primeiros","nomes","dos","alunos","que","têm","pelo","menos","dois","registros","de","resposta","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,25,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,25,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT T2.First_Name FROM Student_Answers AS T1 JOIN Students AS T2 ON T1.Student_ID = T2.Student_ID GROUP BY T1.Student_ID HAVING COUNT(*) >= 2","query_toks":["SELECT","T2.First_Name","FROM","Student_Answers","AS","T1","JOIN","Students","AS","T2","ON","T1.Student_ID","=","T2.Student_ID","GROUP","BY","T1.Student_ID","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","t2",".","first_name","from","student_answers","as","t1","join","students","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")",">","=","value"],"question":"Quais alunos têm 2 ou mais registros de respostas? Dê-me seus primeiros nomes.","question_toks":["Quais","alunos","têm","2","ou","mais","registros","de","respostas","?","Dê-me","seus","primeiros","nomes","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,25,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,25,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Valid_Answer_Text FROM Valid_Answers GROUP BY Valid_Answer_Text ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Valid_Answer_Text","FROM","Valid_Answers","GROUP","BY","Valid_Answer_Text","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","valid_answer_text","from","valid_answers","group","by","valid_answer_text","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o texto de resposta válida mais comum?","question_toks":["Qual","é","o","texto","de","resposta","válida","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Valid_Answer_Text FROM Valid_Answers GROUP BY Valid_Answer_Text ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Valid_Answer_Text","FROM","Valid_Answers","GROUP","BY","Valid_Answer_Text","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","valid_answer_text","from","valid_answers","group","by","valid_answer_text","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o texto da resposta válida que apareceu com mais frequência.","question_toks":["Encontre","o","texto","da","resposta","válida","que","apareceu","com","mais","frequência","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Last_Name FROM Students WHERE Gender_MFU != \"M\"","query_toks":["SELECT","Last_Name","FROM","Students","WHERE","Gender_MFU","!","=","``","M","''"],"query_toks_no_value":["select","last_name","from","students","where","gender_mfu","!","=","value"],"question":"Liste os sobrenomes dos alunos cujo gênero não é \"M\".","question_toks":["Liste","os","sobrenomes","dos","alunos","cujo","gênero","não","é","``","M","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,7,[0,[0,5,false],null],"\"M\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Last_Name FROM Students WHERE Gender_MFU != \"M\"","query_toks":["SELECT","Last_Name","FROM","Students","WHERE","Gender_MFU","!","=","``","M","''"],"query_toks_no_value":["select","last_name","from","students","where","gender_mfu","!","=","value"],"question":"Quais são os sobrenomes dos alunos com gênero diferente de \"M\"?","question_toks":["Quais","são","os","sobrenomes","dos","alunos","com","gênero","diferente","de","``","M","''","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,7,[0,[0,5,false],null],"\"M\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Gender_MFU , COUNT(*) FROM Students GROUP BY Gender_MFU","query_toks":["SELECT","Gender_MFU",",","COUNT","(","*",")","FROM","Students","GROUP","BY","Gender_MFU"],"query_toks_no_value":["select","gender_mfu",",","count","(","*",")","from","students","group","by","gender_mfu"],"question":"Liste cada gênero e o número correspondente de estudantes.","question_toks":["Liste","cada","gênero","e","o","número","correspondente","de","estudantes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Gender_MFU , COUNT(*) FROM Students GROUP BY Gender_MFU","query_toks":["SELECT","Gender_MFU",",","COUNT","(","*",")","FROM","Students","GROUP","BY","Gender_MFU"],"query_toks_no_value":["select","gender_mfu",",","count","(","*",")","from","students","group","by","gender_mfu"],"question":"Para cada gênero, retorne o código do gênero e o número de estudantes que se identificam com esse gênero.","question_toks":["Para","cada","gênero",",","retorne","o","código","do","gênero","e","o","número","de","estudantes","que","se","identificam","com","esse","gênero","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Last_Name FROM Students WHERE Gender_MFU = \"F\" OR Gender_MFU = \"M\"","query_toks":["SELECT","Last_Name","FROM","Students","WHERE","Gender_MFU","=","``","F","''","OR","Gender_MFU","=","``","M","''"],"query_toks_no_value":["select","last_name","from","students","where","gender_mfu","=","value","or","gender_mfu","=","value"],"question":"Liste os sobrenomes dos alunos cujo gênero é \"F\" ou \"M\".","question_toks":["Liste","os","sobrenomes","dos","alunos","cujo","gênero","é","``","F","''","ou","``","M","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"F\"",null],"or",[false,2,[0,[0,5,false],null],"\"M\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Last_Name FROM Students WHERE Gender_MFU = \"F\" OR Gender_MFU = \"M\"","query_toks":["SELECT","Last_Name","FROM","Students","WHERE","Gender_MFU","=","``","F","''","OR","Gender_MFU","=","``","M","''"],"query_toks_no_value":["select","last_name","from","students","where","gender_mfu","=","value","or","gender_mfu","=","value"],"question":"Quais alunos identificam seu gênero como \"F\" ou \"M\"? Me dê seus sobrenomes.","question_toks":["Quais","alunos","identificam","seu","gênero","como","``","F","''","ou","``","M","''","?","Me","dê","seus","sobrenomes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"F\"",null],"or",[false,2,[0,[0,5,false],null],"\"M\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT First_Name FROM Students WHERE Student_ID NOT IN (SELECT Student_ID FROM Student_Answers)","query_toks":["SELECT","First_Name","FROM","Students","WHERE","Student_ID","NOT","IN","(","SELECT","Student_ID","FROM","Student_Answers",")"],"query_toks_no_value":["select","first_name","from","students","where","student_id","not","in","(","select","student_id","from","student_answers",")"],"question":"Liste os primeiros nomes dos alunos que não têm respostas.","question_toks":["Liste","os","primeiros","nomes","dos","alunos","que","não","têm","respostas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,25,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":"online_exams","query":"SELECT First_Name FROM Students WHERE Student_ID NOT IN (SELECT Student_ID FROM Student_Answers)","query_toks":["SELECT","First_Name","FROM","Students","WHERE","Student_ID","NOT","IN","(","SELECT","Student_ID","FROM","Student_Answers",")"],"query_toks_no_value":["select","first_name","from","students","where","student_id","not","in","(","select","student_id","from","student_answers",")"],"question":"Quais alunos não têm respostas? Encontre seus primeiros nomes.","question_toks":["Quais","alunos","não","têm","respostas","?","Encontre","seus","primeiros","nomes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,25,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":"online_exams","query":"SELECT Student_Answer_Text FROM Student_Answers WHERE Comments = \"Normal\" INTERSECT SELECT Student_Answer_Text FROM Student_Answers WHERE Comments = \"Absent\"","query_toks":["SELECT","Student_Answer_Text","FROM","Student_Answers","WHERE","Comments","=","``","Normal","''","INTERSECT","SELECT","Student_Answer_Text","FROM","Student_Answers","WHERE","Comments","=","``","Absent","''"],"query_toks_no_value":["select","student_answer_text","from","student_answers","where","comments","=","value","intersect","select","student_answer_text","from","student_answers","where","comments","=","value"],"question":"Mostre os textos de resposta dos alunos que receberam tanto \"Normal\" quanto \"Ausente\" como comentários.","question_toks":["Mostre","os","textos","de","resposta","dos","alunos","que","receberam","tanto","``","Normal","''","quanto","``","Ausente","''","como","comentários","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"Normal\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"Absent\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Student_Answer_Text FROM Student_Answers WHERE Comments = \"Normal\" INTERSECT SELECT Student_Answer_Text FROM Student_Answers WHERE Comments = \"Absent\"","query_toks":["SELECT","Student_Answer_Text","FROM","Student_Answers","WHERE","Comments","=","``","Normal","''","INTERSECT","SELECT","Student_Answer_Text","FROM","Student_Answers","WHERE","Comments","=","``","Absent","''"],"query_toks_no_value":["select","student_answer_text","from","student_answers","where","comments","=","value","intersect","select","student_answer_text","from","student_answers","where","comments","=","value"],"question":"Quais textos de resposta dos alunos foram dados como \"Normal\" e \"Ausente\" nos comentários?","question_toks":["Quais","textos","de","resposta","dos","alunos","foram","dados","como","``","Normal","''","e","``","Ausente","''","nos","comentários","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"Normal\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"Absent\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Type_of_Question_Code FROM Questions GROUP BY Type_of_Question_Code HAVING count(*) >= 3","query_toks":["SELECT","Type_of_Question_Code","FROM","Questions","GROUP","BY","Type_of_Question_Code","HAVING","count","(","*",")",">","=","3"],"query_toks_no_value":["select","type_of_question_code","from","questions","group","by","type_of_question_code","having","count","(","*",")",">","=","value"],"question":"Mostre os tipos de perguntas que têm pelo menos três perguntas.","question_toks":["Mostre","os","tipos","de","perguntas","que","têm","pelo","menos","três","perguntas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT Type_of_Question_Code FROM Questions GROUP BY Type_of_Question_Code HAVING count(*) >= 3","query_toks":["SELECT","Type_of_Question_Code","FROM","Questions","GROUP","BY","Type_of_Question_Code","HAVING","count","(","*",")",">","=","3"],"query_toks_no_value":["select","type_of_question_code","from","questions","group","by","type_of_question_code","having","count","(","*",")",">","=","value"],"question":"Quais tipos de perguntas têm 3 ou mais perguntas? Retorne o código do tipo de pergunta.","question_toks":["Quais","tipos","de","perguntas","têm","3","ou","mais","perguntas","?","Retorne","o","código","do","tipo","de","pergunta","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT * FROM Students","query_toks":["SELECT","*","FROM","Students"],"query_toks_no_value":["select","*","from","students"],"question":"Mostre todas as informações sobre os alunos.","question_toks":["Mostre","todas","as","informações","sobre","os","alunos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"online_exams","query":"SELECT * FROM Students","query_toks":["SELECT","*","FROM","Students"],"query_toks_no_value":["select","*","from","students"],"question":"Quais são todas as informações disponíveis sobre cada aluno?","question_toks":["Quais","são","todas","as","informações","disponíveis","sobre","cada","aluno","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(*) FROM Addresses","query_toks":["SELECT","count","(","*",")","FROM","Addresses"],"query_toks_no_value":["select","count","(","*",")","from","addresses"],"question":"Quantos endereços temos?","question_toks":["Quantos","endereços","temos","?"],"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":"customers_and_orders","query":"SELECT count(*) FROM Addresses","query_toks":["SELECT","count","(","*",")","FROM","Addresses"],"query_toks_no_value":["select","count","(","*",")","from","addresses"],"question":"Conte o número de endereços.","question_toks":["Conte","o","número","de","endereços","."],"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":"customers_and_orders","query":"SELECT address_id , address_details FROM Addresses","query_toks":["SELECT","address_id",",","address_details","FROM","Addresses"],"query_toks_no_value":["select","address_id",",","address_details","from","addresses"],"question":"Liste todos os ids de endereço e os detalhes do endereço.","question_toks":["Liste","todos","os","ids","de","endereço","e","os","detalhes","do","endereço","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT address_id , address_details FROM Addresses","query_toks":["SELECT","address_id",",","address_details","FROM","Addresses"],"query_toks_no_value":["select","address_id",",","address_details","from","addresses"],"question":"Quais são todos os ids de endereço e detalhes do endereço?","question_toks":["Quais","são","todos","os","ids","de","endereço","e","detalhes","do","endereço","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(*) FROM Products","query_toks":["SELECT","count","(","*",")","FROM","Products"],"query_toks_no_value":["select","count","(","*",")","from","products"],"question":"Quantos produtos temos?","question_toks":["Quantos","produtos","temos","?"],"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":"customers_and_orders","query":"SELECT count(*) FROM Products","query_toks":["SELECT","count","(","*",")","FROM","Products"],"query_toks_no_value":["select","count","(","*",")","from","products"],"question":"Conte o número de produtos.","question_toks":["Conte","o","número","de","produtos","."],"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":"customers_and_orders","query":"SELECT product_id , product_type_code , product_name FROM Products","query_toks":["SELECT","product_id",",","product_type_code",",","product_name","FROM","Products"],"query_toks_no_value":["select","product_id",",","product_type_code",",","product_name","from","products"],"question":"Mostre todos os ids de produtos, códigos de tipo de produto e nomes de produtos.","question_toks":["Mostre","todos","os","ids","de","produtos",",","códigos","de","tipo","de","produto","e","nomes","de","produtos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_id , product_type_code , product_name FROM Products","query_toks":["SELECT","product_id",",","product_type_code",",","product_name","FROM","Products"],"query_toks_no_value":["select","product_id",",","product_type_code",",","product_name","from","products"],"question":"Quais são os ids, códigos de tipo e nomes de todos os produtos?","question_toks":["Quais","são","os","ids",",","códigos","de","tipo","e","nomes","de","todos","os","produtos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_price FROM Products WHERE product_name = \"Monitor\"","query_toks":["SELECT","product_price","FROM","Products","WHERE","product_name","=","``","Monitor","''"],"query_toks_no_value":["select","product_price","from","products","where","product_name","=","value"],"question":"Qual é o preço do produto com o nome Monitor?","question_toks":["Qual","é","o","preço","do","produto","com","o","nome","Monitor","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Monitor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_price FROM Products WHERE product_name = \"Monitor\"","query_toks":["SELECT","product_price","FROM","Products","WHERE","product_name","=","``","Monitor","''"],"query_toks_no_value":["select","product_price","from","products","where","product_name","=","value"],"question":"Dê o preço do produto Monitor.","question_toks":["Dê","o","preço","do","produto","Monitor","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Monitor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT min(product_price) , avg(product_price) , max(product_price) FROM Products","query_toks":["SELECT","min","(","product_price",")",",","avg","(","product_price",")",",","max","(","product_price",")","FROM","Products"],"query_toks_no_value":["select","min","(","product_price",")",",","avg","(","product_price",")",",","max","(","product_price",")","from","products"],"question":"Mostre o preço mínimo, médio e máximo de todos os produtos.","question_toks":["Mostre","o","preço","mínimo",",","médio","e","máximo","de","todos","os","produtos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,4,false],null]],[5,[0,[0,4,false],null]],[1,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT min(product_price) , avg(product_price) , max(product_price) FROM Products","query_toks":["SELECT","min","(","product_price",")",",","avg","(","product_price",")",",","max","(","product_price",")","FROM","Products"],"query_toks_no_value":["select","min","(","product_price",")",",","avg","(","product_price",")",",","max","(","product_price",")","from","products"],"question":"Quais são os preços mínimo, médio e máximo de todos os produtos?","question_toks":["Quais","são","os","preços","mínimo",",","médio","e","máximo","de","todos","os","produtos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,4,false],null]],[5,[0,[0,4,false],null]],[1,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT avg(product_price) FROM Products WHERE product_type_code = \"Clothes\"","query_toks":["SELECT","avg","(","product_price",")","FROM","Products","WHERE","product_type_code","=","``","Clothes","''"],"query_toks_no_value":["select","avg","(","product_price",")","from","products","where","product_type_code","=","value"],"question":"Qual é o preço médio dos produtos do tipo Clothes?","question_toks":["Qual","é","o","preço","médio","dos","produtos","do","tipo","Clothes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Clothes\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT avg(product_price) FROM Products WHERE product_type_code = \"Clothes\"","query_toks":["SELECT","avg","(","product_price",")","FROM","Products","WHERE","product_type_code","=","``","Clothes","''"],"query_toks_no_value":["select","avg","(","product_price",")","from","products","where","product_type_code","=","value"],"question":"Retorne o preço médio das Clothes.","question_toks":["Retorne","o","preço","médio","das","Clothes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Clothes\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(*) FROM Products WHERE product_type_code = \"Hardware\"","query_toks":["SELECT","count","(","*",")","FROM","Products","WHERE","product_type_code","=","``","Hardware","''"],"query_toks_no_value":["select","count","(","*",")","from","products","where","product_type_code","=","value"],"question":"Quantos produtos do tipo hardware temos?","question_toks":["Quantos","produtos","do","tipo","hardware","temos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(*) FROM Products WHERE product_type_code = \"Hardware\"","query_toks":["SELECT","count","(","*",")","FROM","Products","WHERE","product_type_code","=","``","Hardware","''"],"query_toks_no_value":["select","count","(","*",")","from","products","where","product_type_code","=","value"],"question":"Conte o número de produtos do tipo Hardware.","question_toks":["Conte","o","número","de","produtos","do","tipo","Hardware","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_price > (SELECT avg(product_price) FROM Products)","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_price",">","(","SELECT","avg","(","product_price",")","FROM","Products",")"],"query_toks_no_value":["select","product_name","from","products","where","product_price",">","(","select","avg","(","product_price",")","from","products",")"],"question":"Mostre todos os nomes dos produtos com preço superior à média.","question_toks":["Mostre","todos","os","nomes","dos","produtos","com","preço","superior","à","média","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_price > (SELECT avg(product_price) FROM Products)","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_price",">","(","SELECT","avg","(","product_price",")","FROM","Products",")"],"query_toks_no_value":["select","product_name","from","products","where","product_price",">","(","select","avg","(","product_price",")","from","products",")"],"question":"Quais são os nomes dos produtos que têm um preço acima da média de todos os produtos?","question_toks":["Quais","são","os","nomes","dos","produtos","que","têm","um","preço","acima","da","média","de","todos","os","produtos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_type_code = \"Hardware\" AND product_price > (SELECT avg(product_price) FROM Products WHERE product_type_code = \"Hardware\")","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_type_code","=","``","Hardware","''","AND","product_price",">","(","SELECT","avg","(","product_price",")","FROM","Products","WHERE","product_type_code","=","``","Hardware","''",")"],"query_toks_no_value":["select","product_name","from","products","where","product_type_code","=","value","and","product_price",">","(","select","avg","(","product_price",")","from","products","where","product_type_code","=","value",")"],"question":"Mostre todos os nomes de produtos de hardware com preço superior à média dos preços dos produtos do tipo hardware.","question_toks":["Mostre","todos","os","nomes","de","produtos","de","hardware","com","preço","superior","à","média","dos","preços","dos","produtos","do","tipo","hardware","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null],"and",[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"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":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_type_code = \"Hardware\" AND product_price > (SELECT avg(product_price) FROM Products WHERE product_type_code = \"Hardware\")","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_type_code","=","``","Hardware","''","AND","product_price",">","(","SELECT","avg","(","product_price",")","FROM","Products","WHERE","product_type_code","=","``","Hardware","''",")"],"query_toks_no_value":["select","product_name","from","products","where","product_type_code","=","value","and","product_price",">","(","select","avg","(","product_price",")","from","products","where","product_type_code","=","value",")"],"question":"Quais são os nomes dos produtos de Hardware com preços acima do preço médio dos produtos de Hardware?","question_toks":["Quais","são","os","nomes","dos","produtos","de","Hardware","com","preços","acima","do","preço","médio","dos","produtos","de","Hardware","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null],"and",[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"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":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_type_code = \"Clothes\" ORDER BY product_price DESC LIMIT 1","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_type_code","=","``","Clothes","''","ORDER","BY","product_price","DESC","LIMIT","1"],"query_toks_no_value":["select","product_name","from","products","where","product_type_code","=","value","order","by","product_price","desc","limit","value"],"question":"Qual é o nome do produto mais caro do tipo Clothes?","question_toks":["Qual","é","o","nome","do","produto","mais","caro","do","tipo","Clothes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Clothes\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_type_code = \"Clothes\" ORDER BY product_price DESC LIMIT 1","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_type_code","=","``","Clothes","''","ORDER","BY","product_price","DESC","LIMIT","1"],"query_toks_no_value":["select","product_name","from","products","where","product_type_code","=","value","order","by","product_price","desc","limit","value"],"question":"Dê o nome do produto de \"Clothes\" mais caro.","question_toks":["Dê","o","nome","do","produto","de","``","Clothes","''","mais","caro","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Clothes\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_id , product_name FROM Products WHERE product_type_code = \"Hardware\" ORDER BY product_price ASC LIMIT 1","query_toks":["SELECT","product_id",",","product_name","FROM","Products","WHERE","product_type_code","=","``","Hardware","''","ORDER","BY","product_price","ASC","LIMIT","1"],"query_toks_no_value":["select","product_id",",","product_name","from","products","where","product_type_code","=","value","order","by","product_price","asc","limit","value"],"question":"Qual é o id do produto e o nome do produto para o produto do tipo Hardware mais barato?","question_toks":["Qual","é","o","id","do","produto","e","o","nome","do","produto","para","o","produto","do","tipo","Hardware","mais","barato","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_id , product_name FROM Products WHERE product_type_code = \"Hardware\" ORDER BY product_price ASC LIMIT 1","query_toks":["SELECT","product_id",",","product_name","FROM","Products","WHERE","product_type_code","=","``","Hardware","''","ORDER","BY","product_price","ASC","LIMIT","1"],"query_toks_no_value":["select","product_id",",","product_name","from","products","where","product_type_code","=","value","order","by","product_price","asc","limit","value"],"question":"Dê o id e o nome do produto de Hardware mais barato.","question_toks":["Dê","o","id","e","o","nome","do","produto","de","Hardware","mais","barato","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_name FROM Products ORDER BY product_price DESC","query_toks":["SELECT","product_name","FROM","Products","ORDER","BY","product_price","DESC"],"query_toks_no_value":["select","product_name","from","products","order","by","product_price","desc"],"question":"Liste todos os nomes dos produtos em ordem decrescente de preço.","question_toks":["Liste","todos","os","nomes","dos","produtos","em","ordem","decrescente","de","preço","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_name FROM Products ORDER BY product_price DESC","query_toks":["SELECT","product_name","FROM","Products","ORDER","BY","product_price","DESC"],"query_toks_no_value":["select","product_name","from","products","order","by","product_price","desc"],"question":"Quais são os nomes dos produtos, ordenados por preço decrescente?","question_toks":["Quais","são","os","nomes","dos","produtos",",","ordenados","por","preço","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_type_code = \"Hardware\" ORDER BY product_price ASC","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_type_code","=","``","Hardware","''","ORDER","BY","product_price","ASC"],"query_toks_no_value":["select","product_name","from","products","where","product_type_code","=","value","order","by","product_price","asc"],"question":"Mostre todos os produtos do tipo hardware em ordem crescente de preço.","question_toks":["Mostre","todos","os","produtos","do","tipo","hardware","em","ordem","crescente","de","preço","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_name FROM Products WHERE product_type_code = \"Hardware\" ORDER BY product_price ASC","query_toks":["SELECT","product_name","FROM","Products","WHERE","product_type_code","=","``","Hardware","''","ORDER","BY","product_price","ASC"],"query_toks_no_value":["select","product_name","from","products","where","product_type_code","=","value","order","by","product_price","asc"],"question":"Quais são os nomes de todos os produtos de Hardware, ordenados por preço em ordem crescente?","question_toks":["Quais","são","os","nomes","de","todos","os","produtos","de","Hardware",",","ordenados","por","preço","em","ordem","crescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Hardware\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code , count(*) FROM Products GROUP BY product_type_code","query_toks":["SELECT","product_type_code",",","count","(","*",")","FROM","Products","GROUP","BY","product_type_code"],"query_toks_no_value":["select","product_type_code",",","count","(","*",")","from","products","group","by","product_type_code"],"question":"Liste todos os códigos de tipo de produto e o número de produtos em cada tipo.","question_toks":["Liste","todos","os","códigos","de","tipo","de","produto","e","o","número","de","produtos","em","cada","tipo","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code , count(*) FROM Products GROUP BY product_type_code","query_toks":["SELECT","product_type_code",",","count","(","*",")","FROM","Products","GROUP","BY","product_type_code"],"query_toks_no_value":["select","product_type_code",",","count","(","*",")","from","products","group","by","product_type_code"],"question":"Quantos produtos existem para cada tipo de produto?","question_toks":["Quantos","produtos","existem","para","cada","tipo","de","produto","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code , avg(product_price) FROM Products GROUP BY product_type_code","query_toks":["SELECT","product_type_code",",","avg","(","product_price",")","FROM","Products","GROUP","BY","product_type_code"],"query_toks_no_value":["select","product_type_code",",","avg","(","product_price",")","from","products","group","by","product_type_code"],"question":"Mostre todos os códigos de tipo de produto e o preço médio para cada tipo.","question_toks":["Mostre","todos","os","códigos","de","tipo","de","produto","e","o","preço","médio","para","cada","tipo","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code , avg(product_price) FROM Products GROUP BY product_type_code","query_toks":["SELECT","product_type_code",",","avg","(","product_price",")","FROM","Products","GROUP","BY","product_type_code"],"query_toks_no_value":["select","product_type_code",",","avg","(","product_price",")","from","products","group","by","product_type_code"],"question":"Qual é o preço médio dos produtos para cada tipo de produto?","question_toks":["Qual","é","o","preço","médio","dos","produtos","para","cada","tipo","de","produto","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code FROM Products GROUP BY product_type_code HAVING count(*) >= 2","query_toks":["SELECT","product_type_code","FROM","Products","GROUP","BY","product_type_code","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","product_type_code","from","products","group","by","product_type_code","having","count","(","*",")",">","=","value"],"question":"Quais são os códigos de tipo de produto com pelo menos dois produtos?","question_toks":["Quais","são","os","códigos","de","tipo","de","produto","com","pelo","menos","dois","produtos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code FROM Products GROUP BY product_type_code HAVING count(*) >= 2","query_toks":["SELECT","product_type_code","FROM","Products","GROUP","BY","product_type_code","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","product_type_code","from","products","group","by","product_type_code","having","count","(","*",")",">","=","value"],"question":"Dê os códigos de tipo de produto dos tipos de produto que têm dois ou mais produtos.","question_toks":["Dê","os","códigos","de","tipo","de","produto","dos","tipos","de","produto","que","têm","dois","ou","mais","produtos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","product_type_code","FROM","Products","GROUP","BY","product_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","product_type_code","from","products","group","by","product_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o código do tipo de produto com o maior número de produtos?","question_toks":["Qual","é","o","código","do","tipo","de","produto","com","o","maior","número","de","produtos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","product_type_code","FROM","Products","GROUP","BY","product_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","product_type_code","from","products","group","by","product_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o código de tipo de produto mais frequente?","question_toks":["Qual","é","o","código","de","tipo","de","produto","mais","frequente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(*) FROM Customers","query_toks":["SELECT","count","(","*",")","FROM","Customers"],"query_toks_no_value":["select","count","(","*",")","from","customers"],"question":"Quantos clientes temos?","question_toks":["Quantos","clientes","temos","?"],"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":"customers_and_orders","query":"SELECT count(*) FROM Customers","query_toks":["SELECT","count","(","*",")","FROM","Customers"],"query_toks_no_value":["select","count","(","*",")","from","customers"],"question":"Conte o número de clientes.","question_toks":["Conte","o","número","de","clientes","."],"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":"customers_and_orders","query":"SELECT customer_id , customer_name FROM Customers","query_toks":["SELECT","customer_id",",","customer_name","FROM","Customers"],"query_toks_no_value":["select","customer_id",",","customer_name","from","customers"],"question":"Mostre todos os ids de clientes e nomes de clientes.","question_toks":["Mostre","todos","os","ids","de","clientes","e","nomes","de","clientes","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT customer_id , customer_name FROM Customers","query_toks":["SELECT","customer_id",",","customer_name","FROM","Customers"],"query_toks_no_value":["select","customer_id",",","customer_name","from","customers"],"question":"Quais são os ids e nomes de todos os clientes?","question_toks":["Quais","são","os","ids","e","nomes","de","todos","os","clientes","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT customer_address , customer_phone , customer_email FROM Customers WHERE customer_name = \"Jeromy\"","query_toks":["SELECT","customer_address",",","customer_phone",",","customer_email","FROM","Customers","WHERE","customer_name","=","``","Jeromy","''"],"query_toks_no_value":["select","customer_address",",","customer_phone",",","customer_email","from","customers","where","customer_name","=","value"],"question":"Qual é o endereço, telefone e e-mail do cliente Jeromy?","question_toks":["Qual","é","o","endereço",",","telefone","e","e-mail","do","cliente","Jeromy","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Jeromy\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT customer_address , customer_phone , customer_email FROM Customers WHERE customer_name = \"Jeromy\"","query_toks":["SELECT","customer_address",",","customer_phone",",","customer_email","FROM","Customers","WHERE","customer_name","=","``","Jeromy","''"],"query_toks_no_value":["select","customer_address",",","customer_phone",",","customer_email","from","customers","where","customer_name","=","value"],"question":"Dê o endereço, telefone e e-mail para os clientes com o nome Jeromy.","question_toks":["Dê","o","endereço",",","telefone","e","e-mail","para","os","clientes","com","o","nome","Jeromy","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Jeromy\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT payment_method_code , count(*) FROM Customers GROUP BY payment_method_code","query_toks":["SELECT","payment_method_code",",","count","(","*",")","FROM","Customers","GROUP","BY","payment_method_code"],"query_toks_no_value":["select","payment_method_code",",","count","(","*",")","from","customers","group","by","payment_method_code"],"question":"Mostre todos os códigos de método de pagamento e o número de clientes em cada código.","question_toks":["Mostre","todos","os","códigos","de","método","de","pagamento","e","o","número","de","clientes","em","cada","código","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT payment_method_code , count(*) FROM Customers GROUP BY payment_method_code","query_toks":["SELECT","payment_method_code",",","count","(","*",")","FROM","Customers","GROUP","BY","payment_method_code"],"query_toks_no_value":["select","payment_method_code",",","count","(","*",")","from","customers","group","by","payment_method_code"],"question":"Quantos clientes usam cada método de pagamento?","question_toks":["Quantos","clientes","usam","cada","método","de","pagamento","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT payment_method_code FROM Customers GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","payment_method_code","FROM","Customers","GROUP","BY","payment_method_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","payment_method_code","from","customers","group","by","payment_method_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o código do método de pagamento utilizado pelo maior número de clientes?","question_toks":["Qual","é","o","código","do","método","de","pagamento","utilizado","pelo","maior","número","de","clientes","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT payment_method_code FROM Customers GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","payment_method_code","FROM","Customers","GROUP","BY","payment_method_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","payment_method_code","from","customers","group","by","payment_method_code","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o código do método de pagamento que é mais comumente usado.","question_toks":["Dê","o","código","do","método","de","pagamento","que","é","mais","comumente","usado","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT customer_name FROM Customers WHERE payment_method_code = ( SELECT payment_method_code FROM Customers GROUP BY payment_method_code ORDER BY count(*) ASC LIMIT 1)","query_toks":["SELECT","customer_name","FROM","Customers","WHERE","payment_method_code","=","(","SELECT","payment_method_code","FROM","Customers","GROUP","BY","payment_method_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1",")"],"query_toks_no_value":["select","customer_name","from","customers","where","payment_method_code","=","(","select","payment_method_code","from","customers","group","by","payment_method_code","order","by","count","(","*",")","asc","limit","value",")"],"question":"Mostre todos os nomes de clientes com o código do método de pagamento usado pelo menor número de clientes.","question_toks":["Mostre","todos","os","nomes","de","clientes","com","o","código","do","método","de","pagamento","usado","pelo","menor","número","de","clientes","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT customer_name FROM Customers WHERE payment_method_code = ( SELECT payment_method_code FROM Customers GROUP BY payment_method_code ORDER BY count(*) ASC LIMIT 1)","query_toks":["SELECT","customer_name","FROM","Customers","WHERE","payment_method_code","=","(","SELECT","payment_method_code","FROM","Customers","GROUP","BY","payment_method_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1",")"],"query_toks_no_value":["select","customer_name","from","customers","where","payment_method_code","=","(","select","payment_method_code","from","customers","group","by","payment_method_code","order","by","count","(","*",")","asc","limit","value",")"],"question":"Quais são os nomes dos clientes que usam o método de pagamento menos comum?","question_toks":["Quais","são","os","nomes","dos","clientes","que","usam","o","método","de","pagamento","menos","comum","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT payment_method_code , customer_number FROM Customers WHERE customer_name = \"Jeromy\"","query_toks":["SELECT","payment_method_code",",","customer_number","FROM","Customers","WHERE","customer_name","=","``","Jeromy","''"],"query_toks_no_value":["select","payment_method_code",",","customer_number","from","customers","where","customer_name","=","value"],"question":"Qual é o método de pagamento e o número do cliente para o cliente chamado Jeromy?","question_toks":["Qual","é","o","método","de","pagamento","e","o","número","do","cliente","para","o","cliente","chamado","Jeromy","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Jeromy\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT payment_method_code , customer_number FROM Customers WHERE customer_name = \"Jeromy\"","query_toks":["SELECT","payment_method_code",",","customer_number","FROM","Customers","WHERE","customer_name","=","``","Jeromy","''"],"query_toks_no_value":["select","payment_method_code",",","customer_number","from","customers","where","customer_name","=","value"],"question":"Dê o código do método de pagamento e o número do cliente correspondente ao cliente chamado Jeromy.","question_toks":["Dê","o","código","do","método","de","pagamento","e","o","número","do","cliente","correspondente","ao","cliente","chamado","Jeromy","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Jeromy\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT DISTINCT payment_method_code FROM Customers","query_toks":["SELECT","DISTINCT","payment_method_code","FROM","Customers"],"query_toks_no_value":["select","distinct","payment_method_code","from","customers"],"question":"Quais são os métodos de pagamento distintos utilizados pelos clientes?","question_toks":["Quais","são","os","métodos","de","pagamento","distintos","utilizados","pelos","clientes","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT DISTINCT payment_method_code FROM Customers","query_toks":["SELECT","DISTINCT","payment_method_code","FROM","Customers"],"query_toks_no_value":["select","distinct","payment_method_code","from","customers"],"question":"Forneça os diferentes códigos de método de pagamento que os clientes usam.","question_toks":["Forneça","os","diferentes","códigos","de","método","de","pagamento","que","os","clientes","usam","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_id , product_type_code FROM Products ORDER BY product_name","query_toks":["SELECT","product_id",",","product_type_code","FROM","Products","ORDER","BY","product_name"],"query_toks_no_value":["select","product_id",",","product_type_code","from","products","order","by","product_name"],"question":"Mostre o id e o tipo de produto para todos os produtos, ordenados pelo nome do produto.","question_toks":["Mostre","o","id","e","o","tipo","de","produto","para","todos","os","produtos",",","ordenados","pelo","nome","do","produto","."],"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":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_id , product_type_code FROM Products ORDER BY product_name","query_toks":["SELECT","product_id",",","product_type_code","FROM","Products","ORDER","BY","product_name"],"query_toks_no_value":["select","product_id",",","product_type_code","from","products","order","by","product_name"],"question":"Quais são os ids e os tipos de produtos para todos os produtos, ordenados alfabeticamente pelo nome do produto?","question_toks":["Quais","são","os","ids","e","os","tipos","de","produtos","para","todos","os","produtos",",","ordenados","alfabeticamente","pelo","nome","do","produto","?"],"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":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","product_type_code","FROM","Products","GROUP","BY","product_type_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","product_type_code","from","products","group","by","product_type_code","order","by","count","(","*",")","asc","limit","value"],"question":"Qual é o tipo de produto com o menor número de produtos?","question_toks":["Qual","é","o","tipo","de","produto","com","o","menor","número","de","produtos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT product_type_code FROM Products GROUP BY product_type_code ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","product_type_code","FROM","Products","GROUP","BY","product_type_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","product_type_code","from","products","group","by","product_type_code","order","by","count","(","*",")","asc","limit","value"],"question":"Qual é o código do tipo de produto que é menos comum?","question_toks":["Qual","é","o","código","do","tipo","de","produto","que","é","menos","comum","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(*) FROM Customer_orders","query_toks":["SELECT","count","(","*",")","FROM","Customer_orders"],"query_toks_no_value":["select","count","(","*",")","from","customer_orders"],"question":"Quantos pedidos de clientes temos?","question_toks":["Quantos","pedidos","de","clientes","temos","?"],"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":"customers_and_orders","query":"SELECT count(*) FROM Customer_orders","query_toks":["SELECT","count","(","*",")","FROM","Customer_orders"],"query_toks_no_value":["select","count","(","*",")","from","customer_orders"],"question":"Conte o número de pedidos de clientes.","question_toks":["Conte","o","número","de","pedidos","de","clientes","."],"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":"customers_and_orders","query":"SELECT order_id , order_date , order_status_code FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = \"Jeromy\"","query_toks":["SELECT","order_id",",","order_date",",","order_status_code","FROM","Customer_orders","AS","T1","JOIN","Customers","AS","T2","ON","T1.customer_id","=","T2.customer_id","WHERE","T2.customer_name","=","``","Jeromy","''"],"query_toks_no_value":["select","order_id",",","order_date",",","order_status_code","from","customer_orders","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","where","t2",".","customer_name","=","value"],"question":"Mostre os ids dos pedidos, as datas dos pedidos e os códigos de status dos pedidos para todos os pedidos do cliente Jeromy.","question_toks":["Mostre","os","ids","dos","pedidos",",","as","datas","dos","pedidos","e","os","códigos","de","status","dos","pedidos","para","todos","os","pedidos","do","cliente","Jeromy","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,15,false],null]],[0,[0,[0,17,false],null]],[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Jeromy\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT order_id , order_date , order_status_code FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = \"Jeromy\"","query_toks":["SELECT","order_id",",","order_date",",","order_status_code","FROM","Customer_orders","AS","T1","JOIN","Customers","AS","T2","ON","T1.customer_id","=","T2.customer_id","WHERE","T2.customer_name","=","``","Jeromy","''"],"query_toks_no_value":["select","order_id",",","order_date",",","order_status_code","from","customer_orders","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","where","t2",".","customer_name","=","value"],"question":"Quais foram os ids, datas e códigos de status dos pedidos feitos por Jeromy?","question_toks":["Quais","foram","os","ids",",","datas","e","códigos","de","status","dos","pedidos","feitos","por","Jeromy","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,15,false],null]],[0,[0,[0,17,false],null]],[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Jeromy\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT T2.customer_name , T1.customer_id , count(*) FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id","query_toks":["SELECT","T2.customer_name",",","T1.customer_id",",","count","(","*",")","FROM","Customer_orders","AS","T1","JOIN","Customers","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id"],"query_toks_no_value":["select","t2",".","customer_name",",","t1",".","customer_id",",","count","(","*",")","from","customer_orders","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id"],"question":"Mostre todos os nomes dos clientes, ids e o número de pedidos de cada cliente.","question_toks":["Mostre","todos","os","nomes","dos","clientes",",","ids","e","o","número","de","pedidos","de","cada","cliente","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,16,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT T2.customer_name , T1.customer_id , count(*) FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id","query_toks":["SELECT","T2.customer_name",",","T1.customer_id",",","count","(","*",")","FROM","Customer_orders","AS","T1","JOIN","Customers","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id"],"query_toks_no_value":["select","t2",".","customer_name",",","t1",".","customer_id",",","count","(","*",")","from","customer_orders","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id"],"question":"Quais são os nomes, ids e o número de pedidos feitos por cada cliente?","question_toks":["Quais","são","os","nomes",",","ids","e","o","número","de","pedidos","feitos","por","cada","cliente","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,16,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT T1.customer_id , T2.customer_name , T2.customer_phone , T2.customer_email FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.customer_id",",","T2.customer_name",",","T2.customer_phone",",","T2.customer_email","FROM","Customer_orders","AS","T1","JOIN","Customers","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","customer_id",",","t2",".","customer_name",",","t2",".","customer_phone",",","t2",".","customer_email","from","customer_orders","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id do cliente, nome, telefone e e-mail do cliente com mais pedidos?","question_toks":["Qual","é","o","id","do","cliente",",","nome",",","telefone","e","e-mail","do","cliente","com","mais","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT T1.customer_id , T2.customer_name , T2.customer_phone , T2.customer_email FROM Customer_orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.customer_id",",","T2.customer_name",",","T2.customer_phone",",","T2.customer_email","FROM","Customer_orders","AS","T1","JOIN","Customers","AS","T2","ON","T1.customer_id","=","T2.customer_id","GROUP","BY","T1.customer_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","customer_id",",","t2",".","customer_name",",","t2",".","customer_phone",",","t2",".","customer_email","from","customer_orders","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_id","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o id, nome, telefone e e-mail correspondentes ao cliente que fez mais pedidos.","question_toks":["Dê","o","id",",","nome",",","telefone","e","e-mail","correspondentes","ao","cliente","que","fez","mais","pedidos","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT order_status_code , count(*) FROM Customer_orders GROUP BY order_status_code","query_toks":["SELECT","order_status_code",",","count","(","*",")","FROM","Customer_orders","GROUP","BY","order_status_code"],"query_toks_no_value":["select","order_status_code",",","count","(","*",")","from","customer_orders","group","by","order_status_code"],"question":"Mostre todos os status de pedidos e o número de pedidos em cada status.","question_toks":["Mostre","todos","os","status","de","pedidos","e","o","número","de","pedidos","em","cada","status","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT order_status_code , count(*) FROM Customer_orders GROUP BY order_status_code","query_toks":["SELECT","order_status_code",",","count","(","*",")","FROM","Customer_orders","GROUP","BY","order_status_code"],"query_toks_no_value":["select","order_status_code",",","count","(","*",")","from","customer_orders","group","by","order_status_code"],"question":"Quantas ordens têm cada código de status do pedido?","question_toks":["Quantas","ordens","têm","cada","código","de","status","do","pedido","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT order_status_code FROM Customer_orders GROUP BY order_status_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","order_status_code","FROM","Customer_orders","GROUP","BY","order_status_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","order_status_code","from","customer_orders","group","by","order_status_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o código de status do pedido que é mais comum?","question_toks":["Qual","é","o","código","de","status","do","pedido","que","é","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT order_status_code FROM Customer_orders GROUP BY order_status_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","order_status_code","FROM","Customer_orders","GROUP","BY","order_status_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","order_status_code","from","customer_orders","group","by","order_status_code","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o código de status do pedido que é mais frequente entre os pedidos dos clientes.","question_toks":["Dê","o","código","de","status","do","pedido","que","é","mais","frequente","entre","os","pedidos","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_orders)","query_toks":["SELECT","count","(","*",")","FROM","Customers","WHERE","customer_id","NOT","IN","(","SELECT","customer_id","FROM","Customer_orders",")"],"query_toks_no_value":["select","count","(","*",")","from","customers","where","customer_id","not","in","(","select","customer_id","from","customer_orders",")"],"question":"Quantos clientes não têm um pedido?","question_toks":["Quantos","clientes","não","têm","um","pedido","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,16,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":"customers_and_orders","query":"SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_orders)","query_toks":["SELECT","count","(","*",")","FROM","Customers","WHERE","customer_id","NOT","IN","(","SELECT","customer_id","FROM","Customer_orders",")"],"query_toks_no_value":["select","count","(","*",")","from","customers","where","customer_id","not","in","(","select","customer_id","from","customer_orders",")"],"question":"Conte o número de clientes que não fizeram um pedido.","question_toks":["Conte","o","número","de","clientes","que","não","fizeram","um","pedido","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,16,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":"customers_and_orders","query":"SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS t1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id","query_toks":["SELECT","product_name","FROM","Products","EXCEPT","SELECT","T1.product_name","FROM","Products","AS","t1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id"],"query_toks_no_value":["select","product_name","from","products","except","select","t1",".","product_name","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id"],"question":"Mostre todos os nomes de produtos sem um pedido.","question_toks":["Mostre","todos","os","nomes","de","produtos","sem","um","pedido","."],"sql":{"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":{"from":{"table_units":[["table_unit",0],["table_unit",4]],"conds":[[false,2,[0,[0,1,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"customers_and_orders","query":"SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS t1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id","query_toks":["SELECT","product_name","FROM","Products","EXCEPT","SELECT","T1.product_name","FROM","Products","AS","t1","JOIN","Order_items","AS","T2","ON","T1.product_id","=","T2.product_id"],"query_toks_no_value":["select","product_name","from","products","except","select","t1",".","product_name","from","products","as","t1","join","order_items","as","t2","on","t1",".","product_id","=","t2",".","product_id"],"question":"Quais são os nomes dos produtos que não foram pedidos?","question_toks":["Quais","são","os","nomes","dos","produtos","que","não","foram","pedidos","?"],"sql":{"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":{"from":{"table_units":[["table_unit",0],["table_unit",4]],"conds":[[false,2,[0,[0,1,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"customers_and_orders","query":"SELECT sum(order_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"Monitor\"","query_toks":["SELECT","sum","(","order_quantity",")","FROM","Order_items","AS","T1","JOIN","Products","AS","T2","ON","T1.product_id","=","T2.product_id","WHERE","T2.product_name","=","``","Monitor","''"],"query_toks_no_value":["select","sum","(","order_quantity",")","from","order_items","as","t1","join","products","as","t2","on","t1",".","product_id","=","t2",".","product_id","where","t2",".","product_name","=","value"],"question":"Quantos produtos chamados Monitor foram pedidos?","question_toks":["Quantos","produtos","chamados","Monitor","foram","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",0]],"conds":[[false,2,[0,[0,21,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,22,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Monitor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT sum(order_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"Monitor\"","query_toks":["SELECT","sum","(","order_quantity",")","FROM","Order_items","AS","T1","JOIN","Products","AS","T2","ON","T1.product_id","=","T2.product_id","WHERE","T2.product_name","=","``","Monitor","''"],"query_toks_no_value":["select","sum","(","order_quantity",")","from","order_items","as","t1","join","products","as","t2","on","t1",".","product_id","=","t2",".","product_id","where","t2",".","product_name","=","value"],"question":"Qual é o total de produtos Monitor que foram pedidos?","question_toks":["Qual","é","o","total","de","produtos","Monitor","que","foram","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",0]],"conds":[[false,2,[0,[0,21,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,22,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Monitor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(DISTINCT T3.customer_id) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Customer_orders AS T3 ON T3.order_id = T1.order_id WHERE T2.product_name = \"Monitor\"","query_toks":["SELECT","count","(","DISTINCT","T3.customer_id",")","FROM","Order_items","AS","T1","JOIN","Products","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Customer_orders","AS","T3","ON","T3.order_id","=","T1.order_id","WHERE","T2.product_name","=","``","Monitor","''"],"query_toks_no_value":["select","count","(","distinct","t3",".","customer_id",")","from","order_items","as","t1","join","products","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","customer_orders","as","t3","on","t3",".","order_id","=","t1",".","order_id","where","t2",".","product_name","=","value"],"question":"Quantos clientes encomendaram o produto chamado Monitor?","question_toks":["Quantos","clientes","encomendaram","o","produto","chamado","Monitor","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,21,false],null],[0,1,false],null],"and",[false,2,[0,[0,15,false],null],[0,20,false],null]]},"select":[false,[[3,[0,[0,16,true],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Monitor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(DISTINCT T3.customer_id) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Customer_orders AS T3 ON T3.order_id = T1.order_id WHERE T2.product_name = \"Monitor\"","query_toks":["SELECT","count","(","DISTINCT","T3.customer_id",")","FROM","Order_items","AS","T1","JOIN","Products","AS","T2","ON","T1.product_id","=","T2.product_id","JOIN","Customer_orders","AS","T3","ON","T3.order_id","=","T1.order_id","WHERE","T2.product_name","=","``","Monitor","''"],"query_toks_no_value":["select","count","(","distinct","t3",".","customer_id",")","from","order_items","as","t1","join","products","as","t2","on","t1",".","product_id","=","t2",".","product_id","join","customer_orders","as","t3","on","t3",".","order_id","=","t1",".","order_id","where","t2",".","product_name","=","value"],"question":"Conte o número de clientes diferentes que compraram um produto Monitor.","question_toks":["Conte","o","número","de","clientes","diferentes","que","compraram","um","produto","Monitor","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,21,false],null],[0,1,false],null],"and",[false,2,[0,[0,15,false],null],[0,20,false],null]]},"select":[false,[[3,[0,[0,16,true],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Monitor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(DISTINCT customer_id) FROM Customer_orders","query_toks":["SELECT","count","(","DISTINCT","customer_id",")","FROM","Customer_orders"],"query_toks_no_value":["select","count","(","distinct","customer_id",")","from","customer_orders"],"question":"Quantos clientes têm um pedido?","question_toks":["Quantos","clientes","têm","um","pedido","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,16,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT count(DISTINCT customer_id) FROM Customer_orders","query_toks":["SELECT","count","(","DISTINCT","customer_id",")","FROM","Customer_orders"],"query_toks_no_value":["select","count","(","distinct","customer_id",")","from","customer_orders"],"question":"Conte o número de clientes diferentes que fizeram um pedido.","question_toks":["Conte","o","número","de","clientes","diferentes","que","fizeram","um","pedido","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,16,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"customers_and_orders","query":"SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Customer_orders","query_toks":["SELECT","customer_id","FROM","Customers","EXCEPT","SELECT","customer_id","FROM","Customer_orders"],"query_toks_no_value":["select","customer_id","from","customers","except","select","customer_id","from","customer_orders"],"question":"Mostre todos os ids de clientes sem um pedido.","question_toks":["Mostre","todos","os","ids","de","clientes","sem","um","pedido","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"customers_and_orders","query":"SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Customer_orders","query_toks":["SELECT","customer_id","FROM","Customers","EXCEPT","SELECT","customer_id","FROM","Customer_orders"],"query_toks_no_value":["select","customer_id","from","customers","except","select","customer_id","from","customer_orders"],"question":"Quais são os ids dos clientes que não fizeram um pedido?","question_toks":["Quais","são","os","ids","dos","clientes","que","não","fizeram","um","pedido","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"customers_and_orders","query":"SELECT T1.order_date , T1.order_id FROM Customer_Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id WHERE T2.order_quantity > 6 UNION SELECT T1.order_date , T1.order_id FROM Customer_Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) > 3;","query_toks":["SELECT","T1.order_date",",","T1.order_id","FROM","Customer_Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","WHERE","T2.order_quantity",">","6","UNION","SELECT","T1.order_date",",","T1.order_id","FROM","Customer_Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id","HAVING","count","(","*",")",">","3",";"],"query_toks_no_value":["select","t1",".","order_date",",","t1",".","order_id","from","customer_orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","where","t2",".","order_quantity",">","value","union","select","t1",".","order_date",",","t1",".","order_id","from","customer_orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id","having","count","(","*",")",">","value"],"question":"Mostre todas as datas de pedidos e ids dos pedidos com quantidade de qualquer produto maior que 6 ou com mais de 3 produtos.","question_toks":["Mostre","todas","as","datas","de","pedidos","e","ids","dos","pedidos","com","quantidade","de","qualquer","produto","maior","que","6","ou","com","mais","de","3","produtos","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,15,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,3,[0,[0,22,false],null],6.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,15,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[[false,3,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"customers_and_orders","query":"SELECT T1.order_date , T1.order_id FROM Customer_Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id WHERE T2.order_quantity > 6 UNION SELECT T1.order_date , T1.order_id FROM Customer_Orders AS T1 JOIN Order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id HAVING count(*) > 3;","query_toks":["SELECT","T1.order_date",",","T1.order_id","FROM","Customer_Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","WHERE","T2.order_quantity",">","6","UNION","SELECT","T1.order_date",",","T1.order_id","FROM","Customer_Orders","AS","T1","JOIN","Order_items","AS","T2","ON","T1.order_id","=","T2.order_id","GROUP","BY","T1.order_id","HAVING","count","(","*",")",">","3",";"],"query_toks_no_value":["select","t1",".","order_date",",","t1",".","order_id","from","customer_orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","where","t2",".","order_quantity",">","value","union","select","t1",".","order_date",",","t1",".","order_id","from","customer_orders","as","t1","join","order_items","as","t2","on","t1",".","order_id","=","t2",".","order_id","group","by","t1",".","order_id","having","count","(","*",")",">","value"],"question":"Quais são os ids dos pedidos e as respectivas datas dos pedidos para pedidos com uma quantidade maior que 6 ou que consistem em mais de 3 produtos?","question_toks":["Quais","são","os","ids","dos","pedidos","e","as","respectivas","datas","dos","pedidos","para","pedidos","com","uma","quantidade","maior","que","6","ou","que","consistem","em","mais","de","3","produtos","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,15,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,3,[0,[0,22,false],null],6.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,15,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[[false,3,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"region_building","query":"SELECT count(*) FROM building","query_toks":["SELECT","count","(","*",")","FROM","building"],"query_toks_no_value":["select","count","(","*",")","from","building"],"question":"Quantos edifícios existem?","question_toks":["Quantos","edifícios","existem","?"],"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":"region_building","query":"SELECT count(*) FROM building","query_toks":["SELECT","count","(","*",")","FROM","building"],"query_toks_no_value":["select","count","(","*",")","from","building"],"question":"Conte o número de edifícios.","question_toks":["Conte","o","número","de","edifícios","."],"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":"region_building","query":"SELECT Name FROM building ORDER BY Number_of_Stories ASC","query_toks":["SELECT","Name","FROM","building","ORDER","BY","Number_of_Stories","ASC"],"query_toks_no_value":["select","name","from","building","order","by","number_of_stories","asc"],"question":"Liste os nomes dos edifícios em ordem crescente de número de andares.","question_toks":["Liste","os","nomes","dos","edifícios","em","ordem","crescente","de","número","de","andares","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Name FROM building ORDER BY Number_of_Stories ASC","query_toks":["SELECT","Name","FROM","building","ORDER","BY","Number_of_Stories","ASC"],"query_toks_no_value":["select","name","from","building","order","by","number_of_stories","asc"],"question":"Qual é a lista de nomes de edifícios, ordenada pelo número de andares de cada edifício em ordem crescente?","question_toks":["Qual","é","a","lista","de","nomes","de","edifícios",",","ordenada","pelo","número","de","andares","de","cada","edifício","em","ordem","crescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Address FROM building ORDER BY Completed_Year DESC","query_toks":["SELECT","Address","FROM","building","ORDER","BY","Completed_Year","DESC"],"query_toks_no_value":["select","address","from","building","order","by","completed_year","desc"],"question":"Liste os endereços dos edifícios em ordem decrescente do ano de conclusão da construção.","question_toks":["Liste","os","endereços","dos","edifícios","em","ordem","decrescente","do","ano","de","conclusão","da","construção","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Address FROM building ORDER BY Completed_Year DESC","query_toks":["SELECT","Address","FROM","building","ORDER","BY","Completed_Year","DESC"],"query_toks_no_value":["select","address","from","building","order","by","completed_year","desc"],"question":"Ordene os edifícios em ordem decrescente do ano de conclusão da construção e retorne os endereços dos edifícios.","question_toks":["Ordene","os","edifícios","em","ordem","decrescente","do","ano","de","conclusão","da","construção","e","retorne","os","endereços","dos","edifícios","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT max(Number_of_Stories) FROM building WHERE Completed_Year != \"1980\"","query_toks":["SELECT","max","(","Number_of_Stories",")","FROM","building","WHERE","Completed_Year","!","=","``","1980","''"],"query_toks_no_value":["select","max","(","number_of_stories",")","from","building","where","completed_year","!","=","value"],"question":"Qual é o número máximo de andares de edifícios não concluídos em 1980?","question_toks":["Qual","é","o","número","máximo","de","andares","de","edifícios","não","concluídos","em","1980","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,5,false],null]]]],"where":[[false,7,[0,[0,6,false],null],"\"1980\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT max(Number_of_Stories) FROM building WHERE Completed_Year != \"1980\"","query_toks":["SELECT","max","(","Number_of_Stories",")","FROM","building","WHERE","Completed_Year","!","=","``","1980","''"],"query_toks_no_value":["select","max","(","number_of_stories",")","from","building","where","completed_year","!","=","value"],"question":"Entre os edifícios não concluídos em 1980, qual é o número máximo de andares?","question_toks":["Entre","os","edifícios","não","concluídos","em","1980",",","qual","é","o","número","máximo","de","andares","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,5,false],null]]]],"where":[[false,7,[0,[0,6,false],null],"\"1980\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT avg(Population) FROM region","query_toks":["SELECT","avg","(","Population",")","FROM","region"],"query_toks_no_value":["select","avg","(","population",")","from","region"],"question":"Qual é a população média de todas as regiões?","question_toks":["Qual","é","a","população","média","de","todas","as","regiões","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT avg(Population) FROM region","query_toks":["SELECT","avg","(","Population",")","FROM","region"],"query_toks_no_value":["select","avg","(","population",")","from","region"],"question":"Calcule a população média de uma região.","question_toks":["Calcule","a","população","média","de","uma","região","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Name FROM region ORDER BY Name ASC","query_toks":["SELECT","Name","FROM","region","ORDER","BY","Name","ASC"],"query_toks_no_value":["select","name","from","region","order","by","name","asc"],"question":"Quais são os nomes das regiões em ordem alfabética ascendente?","question_toks":["Quais","são","os","nomes","das","regiões","em","ordem","alfabética","ascendente","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Name FROM region ORDER BY Name ASC","query_toks":["SELECT","Name","FROM","region","ORDER","BY","Name","ASC"],"query_toks_no_value":["select","name","from","region","order","by","name","asc"],"question":"Liste os nomes das regiões em ordem alfabética.","question_toks":["Liste","os","nomes","das","regiões","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Capital FROM region WHERE Area > 10000","query_toks":["SELECT","Capital","FROM","region","WHERE","Area",">","10000"],"query_toks_no_value":["select","capital","from","region","where","area",">","value"],"question":"Quais são as capitais das regiões com área maior que 10000?","question_toks":["Quais","são","as","capitais","das","regiões","com","área","maior","que","10000","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,10,false],null],10000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Capital FROM region WHERE Area > 10000","query_toks":["SELECT","Capital","FROM","region","WHERE","Area",">","10000"],"query_toks_no_value":["select","capital","from","region","where","area",">","value"],"question":"Me dê as capitais das regiões cuja área é maior que 10000.","question_toks":["Me","dê","as","capitais","das","regiões","cuja","área","é","maior","que","10000","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,10,false],null],10000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Capital FROM region ORDER BY Population DESC LIMIT 1","query_toks":["SELECT","Capital","FROM","region","ORDER","BY","Population","DESC","LIMIT","1"],"query_toks_no_value":["select","capital","from","region","order","by","population","desc","limit","value"],"question":"Liste a capital da região com a maior população.","question_toks":["Liste","a","capital","da","região","com","a","maior","população","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Capital FROM region ORDER BY Population DESC LIMIT 1","query_toks":["SELECT","Capital","FROM","region","ORDER","BY","Population","DESC","LIMIT","1"],"query_toks_no_value":["select","capital","from","region","order","by","population","desc","limit","value"],"question":"Qual região tem a maior população? Me dê a capital da região.","question_toks":["Qual","região","tem","a","maior","população","?","Me","dê","a","capital","da","região","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Name FROM region ORDER BY Area DESC LIMIT 5","query_toks":["SELECT","Name","FROM","region","ORDER","BY","Area","DESC","LIMIT","5"],"query_toks_no_value":["select","name","from","region","order","by","area","desc","limit","value"],"question":"Liste os nomes das regiões com as 5 maiores áreas.","question_toks":["Liste","os","nomes","das","regiões","com","as","5","maiores","áreas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":5,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Name FROM region ORDER BY Area DESC LIMIT 5","query_toks":["SELECT","Name","FROM","region","ORDER","BY","Area","DESC","LIMIT","5"],"query_toks_no_value":["select","name","from","region","order","by","area","desc","limit","value"],"question":"Quais são os nomes das 5 maiores regiões em termos de área?","question_toks":["Quais","são","os","nomes","das","5","maiores","regiões","em","termos","de","área","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":5,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T1.Name , T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID","query_toks":["SELECT","T1.Name",",","T2.Name","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID"],"query_toks_no_value":["select","t1",".","name",",","t2",".","name","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id"],"question":"Mostre os nomes dos edifícios e os nomes das regiões em que estão.","question_toks":["Mostre","os","nomes","dos","edifícios","e","os","nomes","das","regiões","em","que","estão","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T1.Name , T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID","query_toks":["SELECT","T1.Name",",","T2.Name","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID"],"query_toks_no_value":["select","t1",".","name",",","t2",".","name","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id"],"question":"Para cada edifício, retorne o nome do edifício e o nome da região a que pertence.","question_toks":["Para","cada","edifício",",","retorne","o","nome","do","edifício","e","o","nome","da","região","a","que","pertence","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT(*) > 1","query_toks":["SELECT","T2.Name","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID","GROUP","BY","T1.Region_ID","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","t2",".","name","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id","group","by","t1",".","region_id","having","count","(","*",")",">","value"],"question":"Mostre os nomes das regiões que têm mais de um edifício.","question_toks":["Mostre","os","nomes","das","regiões","que","têm","mais","de","um","edifício","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T2.Name FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID HAVING COUNT(*) > 1","query_toks":["SELECT","T2.Name","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID","GROUP","BY","T1.Region_ID","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","t2",".","name","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id","group","by","t1",".","region_id","having","count","(","*",")",">","value"],"question":"Quais regiões têm mais de um edifício? Dê-me os nomes das regiões.","question_toks":["Quais","regiões","têm","mais","de","um","edifício","?","Dê-me","os","nomes","das","regiões","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T2.capital FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T2.capital","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID","GROUP","BY","T1.Region_ID","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","capital","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id","group","by","t1",".","region_id","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre a capital da região que tem mais edifícios.","question_toks":["Mostre","a","capital","da","região","que","tem","mais","edifícios","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T2.capital FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID GROUP BY T1.Region_ID ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T2.capital","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID","GROUP","BY","T1.Region_ID","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","capital","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id","group","by","t1",".","region_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual região tem o maior número de edifícios? Mostre-me a capital da região.","question_toks":["Qual","região","tem","o","maior","número","de","edifícios","?","Mostre-me","a","capital","da","região","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T1.Address , T2.Capital FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID","query_toks":["SELECT","T1.Address",",","T2.Capital","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID"],"query_toks_no_value":["select","t1",".","address",",","t2",".","capital","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id"],"question":"Mostre os endereços dos edifícios e as capitais das regiões em que estão.","question_toks":["Mostre","os","endereços","dos","edifícios","e","as","capitais","das","regiões","em","que","estão","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T1.Address , T2.Capital FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID","query_toks":["SELECT","T1.Address",",","T2.Capital","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID"],"query_toks_no_value":["select","t1",".","address",",","t2",".","capital","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id"],"question":"Para cada edifício, retorne o endereço do edifício e o nome da região a que pertence.","question_toks":["Para","cada","edifício",",","retorne","o","endereço","do","edifício","e","o","nome","da","região","a","que","pertence","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T1.Number_of_Stories FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID WHERE T2.Name = \"Abruzzo\"","query_toks":["SELECT","T1.Number_of_Stories","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID","WHERE","T2.Name","=","``","Abruzzo","''"],"query_toks_no_value":["select","t1",".","number_of_stories","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id","where","t2",".","name","=","value"],"question":"Mostre o número de andares dos edifícios na região com o nome \"Abruzzo\".","question_toks":["Mostre","o","número","de","andares","dos","edifícios","na","região","com","o","nome","``","Abruzzo","''","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"Abruzzo\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT T1.Number_of_Stories FROM building AS T1 JOIN region AS T2 ON T1.Region_ID = T2.Region_ID WHERE T2.Name = \"Abruzzo\"","query_toks":["SELECT","T1.Number_of_Stories","FROM","building","AS","T1","JOIN","region","AS","T2","ON","T1.Region_ID","=","T2.Region_ID","WHERE","T2.Name","=","``","Abruzzo","''"],"query_toks_no_value":["select","t1",".","number_of_stories","from","building","as","t1","join","region","as","t2","on","t1",".","region_id","=","t2",".","region_id","where","t2",".","name","=","value"],"question":"Retorne o número de andares para cada edifício na região chamada \"Abruzzo\".","question_toks":["Retorne","o","número","de","andares","para","cada","edifício","na","região","chamada","``","Abruzzo","''","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"Abruzzo\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Completed_Year , COUNT(*) FROM building GROUP BY Completed_Year","query_toks":["SELECT","Completed_Year",",","COUNT","(","*",")","FROM","building","GROUP","BY","Completed_Year"],"query_toks_no_value":["select","completed_year",",","count","(","*",")","from","building","group","by","completed_year"],"question":"Mostre cada ano de conclusão e o número de edifícios concluídos nesse ano.","question_toks":["Mostre","cada","ano","de","conclusão","e","o","número","de","edifícios","concluídos","nesse","ano","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Completed_Year , COUNT(*) FROM building GROUP BY Completed_Year","query_toks":["SELECT","Completed_Year",",","COUNT","(","*",")","FROM","building","GROUP","BY","Completed_Year"],"query_toks_no_value":["select","completed_year",",","count","(","*",")","from","building","group","by","completed_year"],"question":"Para o ano de conclusão, retorne o ano e o número de edifícios concluídos.","question_toks":["Para","o","ano","de","conclusão",",","retorne","o","ano","e","o","número","de","edifícios","concluídos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Completed_Year FROM building GROUP BY Completed_Year ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Completed_Year","FROM","building","GROUP","BY","Completed_Year","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","completed_year","from","building","group","by","completed_year","order","by","count","(","*",")","desc","limit","value"],"question":"Liste o ano em que mais edifícios foram concluídos.","question_toks":["Liste","o","ano","em","que","mais","edifícios","foram","concluídos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Completed_Year FROM building GROUP BY Completed_Year ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Completed_Year","FROM","building","GROUP","BY","Completed_Year","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","completed_year","from","building","group","by","completed_year","order","by","count","(","*",")","desc","limit","value"],"question":"Em qual ano a maioria das construções foi concluída?","question_toks":["Em","qual","ano","a","maioria","das","construções","foi","concluída","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Name FROM region WHERE Region_ID NOT IN (SELECT Region_ID FROM building)","query_toks":["SELECT","Name","FROM","region","WHERE","Region_ID","NOT","IN","(","SELECT","Region_ID","FROM","building",")"],"query_toks_no_value":["select","name","from","region","where","region_id","not","in","(","select","region_id","from","building",")"],"question":"Liste os nomes das regiões que não têm nenhum edifício.","question_toks":["Liste","os","nomes","das","regiões","que","não","têm","nenhum","edifício","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[true,8,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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":"region_building","query":"SELECT Name FROM region WHERE Region_ID NOT IN (SELECT Region_ID FROM building)","query_toks":["SELECT","Name","FROM","region","WHERE","Region_ID","NOT","IN","(","SELECT","Region_ID","FROM","building",")"],"query_toks_no_value":["select","name","from","region","where","region_id","not","in","(","select","region_id","from","building",")"],"question":"Quais são os nomes das regiões em que não há edifícios?","question_toks":["Quais","são","os","nomes","das","regiões","em","que","não","há","edifícios","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[true,8,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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":"region_building","query":"SELECT Completed_Year FROM building WHERE Number_of_Stories > 20 INTERSECT SELECT Completed_Year FROM building WHERE Number_of_Stories < 15","query_toks":["SELECT","Completed_Year","FROM","building","WHERE","Number_of_Stories",">","20","INTERSECT","SELECT","Completed_Year","FROM","building","WHERE","Number_of_Stories","<","15"],"query_toks_no_value":["select","completed_year","from","building","where","number_of_stories",">","value","intersect","select","completed_year","from","building","where","number_of_stories","<","value"],"question":"Mostre os anos de conclusão compartilhados por edifícios com mais de 20 andares e edifícios com menos de 15 andares.","question_toks":["Mostre","os","anos","de","conclusão","compartilhados","por","edifícios","com","mais","de","20","andares","e","edifícios","com","menos","de","15","andares","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,5,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,5,false],null],15.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Completed_Year FROM building WHERE Number_of_Stories > 20 INTERSECT SELECT Completed_Year FROM building WHERE Number_of_Stories < 15","query_toks":["SELECT","Completed_Year","FROM","building","WHERE","Number_of_Stories",">","20","INTERSECT","SELECT","Completed_Year","FROM","building","WHERE","Number_of_Stories","<","15"],"query_toks_no_value":["select","completed_year","from","building","where","number_of_stories",">","value","intersect","select","completed_year","from","building","where","number_of_stories","<","value"],"question":"Em quais anos foram concluídos tanto os edifícios com mais de 20 andares quanto os edifícios com menos de 15 andares?","question_toks":["Em","quais","anos","foram","concluídos","tanto","os","edifícios","com","mais","de","20","andares","quanto","os","edifícios","com","menos","de","15","andares","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,5,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,5,false],null],15.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"region_building","query":"SELECT DISTINCT Address FROM building","query_toks":["SELECT","DISTINCT","Address","FROM","building"],"query_toks_no_value":["select","distinct","address","from","building"],"question":"Mostre os endereços distintos dos edifícios.","question_toks":["Mostre","os","endereços","distintos","dos","edifícios","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT DISTINCT Address FROM building","query_toks":["SELECT","DISTINCT","Address","FROM","building"],"query_toks_no_value":["select","distinct","address","from","building"],"question":"Dê-me uma lista de endereços de edifícios distintos.","question_toks":["Dê-me","uma","lista","de","endereços","de","edifícios","distintos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Completed_Year FROM building ORDER BY Number_of_Stories DESC","query_toks":["SELECT","Completed_Year","FROM","building","ORDER","BY","Number_of_Stories","DESC"],"query_toks_no_value":["select","completed_year","from","building","order","by","number_of_stories","desc"],"question":"Mostre os anos de conclusão dos edifícios em ordem decrescente do número de andares.","question_toks":["Mostre","os","anos","de","conclusão","dos","edifícios","em","ordem","decrescente","do","número","de","andares","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"region_building","query":"SELECT Completed_Year FROM building ORDER BY Number_of_Stories DESC","query_toks":["SELECT","Completed_Year","FROM","building","ORDER","BY","Number_of_Stories","DESC"],"query_toks_no_value":["select","completed_year","from","building","order","by","number_of_stories","desc"],"question":"Ordene os edifícios em ordem decrescente do número de andares e retorne seus anos de conclusão.","question_toks":["Ordene","os","edifícios","em","ordem","decrescente","do","número","de","andares","e","retorne","seus","anos","de","conclusão","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select channel_details from channels order by channel_details","query_toks":["select","channel_details","from","channels","order","by","channel_details"],"query_toks_no_value":["select","channel_details","from","channels","order","by","channel_details"],"question":"Liste os detalhes de todos os canais em ordem alfabética.","question_toks":["Liste","os","detalhes","de","todos","os","canais","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select channel_details from channels order by channel_details","query_toks":["select","channel_details","from","channels","order","by","channel_details"],"query_toks_no_value":["select","channel_details","from","channels","order","by","channel_details"],"question":"Qual é a lista de detalhes dos canais ordenada alfabeticamente?","question_toks":["Qual","é","a","lista","de","detalhes","dos","canais","ordenada","alfabeticamente","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT count(*) FROM services","query_toks":["SELECT","count","(","*",")","FROM","services"],"query_toks_no_value":["select","count","(","*",")","from","services"],"question":"Quantos serviços existem?","question_toks":["Quantos","serviços","existem","?"],"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":"government_shift","query":"SELECT count(*) FROM services","query_toks":["SELECT","count","(","*",")","FROM","services"],"query_toks_no_value":["select","count","(","*",")","from","services"],"question":"Conte o número de serviços.","question_toks":["Conte","o","número","de","serviços","."],"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":"government_shift","query":"SELECT analytical_layer_type_code FROM analytical_layer GROUP BY analytical_layer_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","analytical_layer_type_code","FROM","analytical_layer","GROUP","BY","analytical_layer_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","analytical_layer_type_code","from","analytical_layer","group","by","analytical_layer_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o código de tipo de camada analítica mais comum?","question_toks":["Qual","é","o","código","de","tipo","de","camada","analítica","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,23,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT analytical_layer_type_code FROM analytical_layer GROUP BY analytical_layer_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","analytical_layer_type_code","FROM","analytical_layer","GROUP","BY","analytical_layer_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","analytical_layer_type_code","from","analytical_layer","group","by","analytical_layer_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o código do tipo de camada analítica que aparece com mais frequência.","question_toks":["Encontre","o","código","do","tipo","de","camada","analítica","que","aparece","com","mais","frequência","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,23,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t1.customer_details = \"Hardy Kutch\"","query_toks":["SELECT","t3.service_details","FROM","customers","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.customer_id","=","t2.customer_id","JOIN","services","AS","t3","ON","t2.service_id","=","t3.service_id","WHERE","t1.customer_details","=","``","Hardy","Kutch","''"],"query_toks_no_value":["select","t3",".","service_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","services","as","t3","on","t2",".","service_id","=","t3",".","service_id","where","t1",".","customer_details","=","value"],"question":"Encontre todos os serviços que foram utilizados pelo cliente com detalhes \"Hardy Kutch\".","question_toks":["Encontre","todos","os","serviços","que","foram","utilizados","pelo","cliente","com","detalhes","``","Hardy","Kutch","''","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Hardy Kutch\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t1.customer_details = \"Hardy Kutch\"","query_toks":["SELECT","t3.service_details","FROM","customers","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.customer_id","=","t2.customer_id","JOIN","services","AS","t3","ON","t2.service_id","=","t3.service_id","WHERE","t1.customer_details","=","``","Hardy","Kutch","''"],"query_toks_no_value":["select","t3",".","service_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","services","as","t3","on","t2",".","service_id","=","t3",".","service_id","where","t1",".","customer_details","=","value"],"question":"Quais serviços foram utilizados pelo cliente com os detalhes \"Hardy Kutch\"? Me dê os detalhes do serviço.","question_toks":["Quais","serviços","foram","utilizados","pelo","cliente","com","os","detalhes","``","Hardy","Kutch","''","?","Me","dê","os","detalhes","do","serviço","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Hardy Kutch\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select t1.service_details from services as t1 join customers_and_services as t2 on t1.service_id = t2.service_id group by t1.service_details having count(*) > 3","query_toks":["select","t1.service_details","from","services","as","t1","join","customers_and_services","as","t2","on","t1.service_id","=","t2.service_id","group","by","t1.service_details","having","count","(","*",")",">","3"],"query_toks_no_value":["select","t1",".","service_details","from","services","as","t1","join","customers_and_services","as","t2","on","t1",".","service_id","=","t2",".","service_id","group","by","t1",".","service_details","having","count","(","*",")",">","value"],"question":"Encontre os detalhes dos serviços que foram utilizados mais de 3 vezes.","question_toks":["Encontre","os","detalhes","dos","serviços","que","foram","utilizados","mais","de","3","vezes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,3,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT t1.service_details FROM services AS t1 JOIN customers_and_services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_details HAVING count(*) > 3","query_toks":["SELECT","t1.service_details","FROM","services","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.service_id","=","t2.service_id","GROUP","BY","t1.service_details","HAVING","count","(","*",")",">","3"],"query_toks_no_value":["select","t1",".","service_details","from","services","as","t1","join","customers_and_services","as","t2","on","t1",".","service_id","=","t2",".","service_id","group","by","t1",".","service_details","having","count","(","*",")",">","value"],"question":"Quais serviços foram utilizados pelos clientes mais de 3 vezes? Me dê os detalhes do serviço.","question_toks":["Quais","serviços","foram","utilizados","pelos","clientes","mais","de","3","vezes","?","Me","dê","os","detalhes","do","serviço","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,3,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT t1.customer_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_details ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t1.customer_details","FROM","customers","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.customer_id","=","t2.customer_id","GROUP","BY","t1.customer_details","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_details","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre os detalhes do cliente que utilizou os serviços mais vezes.","question_toks":["Encontre","os","detalhes","do","cliente","que","utilizou","os","serviços","mais","vezes","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select t1.customer_details from customers as t1 join customers_and_services as t2 on t1.customer_id = t2.customer_id group by t1.customer_details order by count(*) desc limit 1","query_toks":["select","t1.customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1.customer_id","=","t2.customer_id","group","by","t1.customer_details","order","by","count","(","*",")","desc","limit","1"],"query_toks_no_value":["select","t1",".","customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_details","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne os detalhes do cliente com o maior número de serviços utilizados.","question_toks":["Retorne","os","detalhes","do","cliente","com","o","maior","número","de","serviços","utilizados","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select t1.customer_details from customers as t1 join customers_and_services as t2 on t1.customer_id = t2.customer_id group by t1.customer_details order by count(*) desc limit 1","query_toks":["select","t1.customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1.customer_id","=","t2.customer_id","group","by","t1.customer_details","order","by","count","(","*",")","desc","limit","1"],"query_toks_no_value":["select","t1",".","customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_details","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome do cliente que utilizou o maior número de tipos de serviços.","question_toks":["Encontre","o","nome","do","cliente","que","utilizou","o","maior","número","de","tipos","de","serviços","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select t1.customer_details from customers as t1 join customers_and_services as t2 on t1.customer_id = t2.customer_id group by t1.customer_details order by count(*) desc limit 1","query_toks":["select","t1.customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1.customer_id","=","t2.customer_id","group","by","t1.customer_details","order","by","count","(","*",")","desc","limit","1"],"query_toks_no_value":["select","t1",".","customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","customer_details","order","by","count","(","*",")","desc","limit","value"],"question":"Qual cliente utilizou o maior número de tipos de serviços? Me dê os detalhes do cliente.","question_toks":["Qual","cliente","utilizou","o","maior","número","de","tipos","de","serviços","?","Me","dê","os","detalhes","do","cliente","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select customer_details from customers where customer_id not in (select customer_id from customers_and_services)","query_toks":["select","customer_details","from","customers","where","customer_id","not","in","(","select","customer_id","from","customers_and_services",")"],"query_toks_no_value":["select","customer_details","from","customers","where","customer_id","not","in","(","select","customer_id","from","customers_and_services",")"],"question":"Encontre os detalhes do cliente que nunca usou nenhum serviço.","question_toks":["Encontre","os","detalhes","do","cliente","que","nunca","usou","nenhum","serviço","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[true,8,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,8,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":"government_shift","query":"select customer_details from customers where customer_id not in (select customer_id from customers_and_services)","query_toks":["select","customer_details","from","customers","where","customer_id","not","in","(","select","customer_id","from","customers_and_services",")"],"query_toks_no_value":["select","customer_details","from","customers","where","customer_id","not","in","(","select","customer_id","from","customers_and_services",")"],"question":"Quais clientes nunca usaram nenhum serviço? Me dê os detalhes dos clientes.","question_toks":["Quais","clientes","nunca","usaram","nenhum","serviço","?","Me","dê","os","detalhes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[true,8,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,8,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":"government_shift","query":"select distinct t1.customer_details from customers as t1 join customers_and_services as t2 on t1.customer_id = t2.customer_id where t2.service_id = (select service_id from services group by service_id order by count(*) asc limit 1)","query_toks":["select","distinct","t1.customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1.customer_id","=","t2.customer_id","where","t2.service_id","=","(","select","service_id","from","services","group","by","service_id","order","by","count","(","*",")","asc","limit","1",")"],"query_toks_no_value":["select","distinct","t1",".","customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","where","t2",".","service_id","=","(","select","service_id","from","services","group","by","service_id","order","by","count","(","*",")","asc","limit","value",")"],"question":"Encontre os detalhes dos clientes que utilizaram o serviço menos utilizado.","question_toks":["Encontre","os","detalhes","dos","clientes","que","utilizaram","o","serviço","menos","utilizado","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select distinct t1.customer_details from customers as t1 join customers_and_services as t2 on t1.customer_id = t2.customer_id where t2.service_id = (select service_id from services group by service_id order by count(*) asc limit 1)","query_toks":["select","distinct","t1.customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1.customer_id","=","t2.customer_id","where","t2.service_id","=","(","select","service_id","from","services","group","by","service_id","order","by","count","(","*",")","asc","limit","1",")"],"query_toks_no_value":["select","distinct","t1",".","customer_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","where","t2",".","service_id","=","(","select","service_id","from","services","group","by","service_id","order","by","count","(","*",")","asc","limit","value",")"],"question":"Quais clientes usaram o serviço menos utilizado? Me dê os detalhes distintos dos clientes.","question_toks":["Quais","clientes","usaram","o","serviço","menos","utilizado","?","Me","dê","os","detalhes","distintos","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT count(DISTINCT customers_and_services_details) FROM customers_and_services","query_toks":["SELECT","count","(","DISTINCT","customers_and_services_details",")","FROM","customers_and_services"],"query_toks_no_value":["select","count","(","distinct","customers_and_services_details",")","from","customers_and_services"],"question":"Quantos detalhes distintos de clientes e serviços existem?","question_toks":["Quantos","detalhes","distintos","de","clientes","e","serviços","existem","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,10,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT count(DISTINCT customers_and_services_details) FROM customers_and_services","query_toks":["SELECT","count","(","DISTINCT","customers_and_services_details",")","FROM","customers_and_services"],"query_toks_no_value":["select","count","(","distinct","customers_and_services_details",")","from","customers_and_services"],"question":"Conte o número total de detalhes de clientes e serviços disponíveis.","question_toks":["Conte","o","número","total","de","detalhes","de","clientes","e","serviços","disponíveis","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,10,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT customer_details FROM customers WHERE customer_details LIKE \"%Kutch%\"","query_toks":["SELECT","customer_details","FROM","customers","WHERE","customer_details","LIKE","``","%","Kutch","%","''"],"query_toks_no_value":["select","customer_details","from","customers","where","customer_details","like","value"],"question":"Encontre todos os clientes cujo nome contém \"Kutch\".","question_toks":["Encontre","todos","os","clientes","cujo","nome","contém","``","Kutch","''","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,9,[0,[0,4,false],null],"\"%Kutch%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT customer_details FROM customers WHERE customer_details LIKE \"%Kutch%\"","query_toks":["SELECT","customer_details","FROM","customers","WHERE","customer_details","LIKE","``","%","Kutch","%","''"],"query_toks_no_value":["select","customer_details","from","customers","where","customer_details","like","value"],"question":"Quais são os detalhes dos clientes que têm \"Kutch\" em parte de seus detalhes?","question_toks":["Quais","são","os","detalhes","dos","clientes","que","têm","``","Kutch","''","em","parte","de","seus","detalhes","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,9,[0,[0,4,false],null],"\"%Kutch%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT DISTINCT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id JOIN customer_interactions AS t4 ON t3.service_id = t4.service_id WHERE t1.customer_details = \"Hardy Kutch\" OR t4.services_and_channels_details = \"good\"","query_toks":["SELECT","DISTINCT","t3.service_details","FROM","customers","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.customer_id","=","t2.customer_id","JOIN","services","AS","t3","ON","t2.service_id","=","t3.service_id","JOIN","customer_interactions","AS","t4","ON","t3.service_id","=","t4.service_id","WHERE","t1.customer_details","=","``","Hardy","Kutch","''","OR","t4.services_and_channels_details","=","``","good","''"],"query_toks_no_value":["select","distinct","t3",".","service_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","services","as","t3","on","t2",".","service_id","=","t3",".","service_id","join","customer_interactions","as","t4","on","t3",".","service_id","=","t4",".","service_id","where","t1",".","customer_details","=","value","or","t4",".","services_and_channels_details","=","value"],"question":"Encontre o nome de todos os serviços que foram utilizados pelo cliente \"Hardy Kutch\" ou que foram avaliados como \"good\" em uma das interações com o cliente.","question_toks":["Encontre","o","nome","de","todos","os","serviços","que","foram","utilizados","pelo","cliente","``","Hardy","Kutch","''","ou","que","foram","avaliados","como","``","good","''","em","uma","das","interações","com","o","cliente","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",0],["table_unit",4]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null],"and",[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Hardy Kutch\"",null],"or",[false,2,[0,[0,16,false],null],"\"good\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT DISTINCT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id JOIN customer_interactions AS t4 ON t3.service_id = t4.service_id WHERE t1.customer_details = \"Hardy Kutch\" OR t4.services_and_channels_details = \"good\"","query_toks":["SELECT","DISTINCT","t3.service_details","FROM","customers","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.customer_id","=","t2.customer_id","JOIN","services","AS","t3","ON","t2.service_id","=","t3.service_id","JOIN","customer_interactions","AS","t4","ON","t3.service_id","=","t4.service_id","WHERE","t1.customer_details","=","``","Hardy","Kutch","''","OR","t4.services_and_channels_details","=","``","good","''"],"query_toks_no_value":["select","distinct","t3",".","service_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","services","as","t3","on","t2",".","service_id","=","t3",".","service_id","join","customer_interactions","as","t4","on","t3",".","service_id","=","t4",".","service_id","where","t1",".","customer_details","=","value","or","t4",".","services_and_channels_details","=","value"],"question":"Quais serviços são utilizados pelo cliente \"Hardy Kutch\" ou são avaliados como \"good\" em uma interação com o cliente? Me dê os detalhes do serviço.","question_toks":["Quais","serviços","são","utilizados","pelo","cliente","``","Hardy","Kutch","''","ou","são","avaliados","como","``","good","''","em","uma","interação","com","o","cliente","?","Me","dê","os","detalhes","do","serviço","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",0],["table_unit",4]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null],"and",[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Hardy Kutch\"",null],"or",[false,2,[0,[0,16,false],null],"\"good\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT DISTINCT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id JOIN customer_interactions AS t4 ON t3.service_id = t4.service_id WHERE t1.customer_details = \"Hardy Kutch\" AND t4.services_and_channels_details = \"bad\"","query_toks":["SELECT","DISTINCT","t3.service_details","FROM","customers","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.customer_id","=","t2.customer_id","JOIN","services","AS","t3","ON","t2.service_id","=","t3.service_id","JOIN","customer_interactions","AS","t4","ON","t3.service_id","=","t4.service_id","WHERE","t1.customer_details","=","``","Hardy","Kutch","''","AND","t4.services_and_channels_details","=","``","bad","''"],"query_toks_no_value":["select","distinct","t3",".","service_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","services","as","t3","on","t2",".","service_id","=","t3",".","service_id","join","customer_interactions","as","t4","on","t3",".","service_id","=","t4",".","service_id","where","t1",".","customer_details","=","value","and","t4",".","services_and_channels_details","=","value"],"question":"Encontre os nomes de todos os serviços que foram utilizados pelo cliente \"Hardy Kutch\" e que foram avaliados como \"bad\" em uma das interações com o cliente.","question_toks":["Encontre","os","nomes","de","todos","os","serviços","que","foram","utilizados","pelo","cliente","``","Hardy","Kutch","''","e","que","foram","avaliados","como","``","bad","''","em","uma","das","interações","com","o","cliente","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",0],["table_unit",4]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null],"and",[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Hardy Kutch\"",null],"and",[false,2,[0,[0,16,false],null],"\"bad\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT DISTINCT t3.service_details FROM customers AS t1 JOIN customers_and_services AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id JOIN customer_interactions AS t4 ON t3.service_id = t4.service_id WHERE t1.customer_details = \"Hardy Kutch\" AND t4.services_and_channels_details = \"bad\"","query_toks":["SELECT","DISTINCT","t3.service_details","FROM","customers","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.customer_id","=","t2.customer_id","JOIN","services","AS","t3","ON","t2.service_id","=","t3.service_id","JOIN","customer_interactions","AS","t4","ON","t3.service_id","=","t4.service_id","WHERE","t1.customer_details","=","``","Hardy","Kutch","''","AND","t4.services_and_channels_details","=","``","bad","''"],"query_toks_no_value":["select","distinct","t3",".","service_details","from","customers","as","t1","join","customers_and_services","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","services","as","t3","on","t2",".","service_id","=","t3",".","service_id","join","customer_interactions","as","t4","on","t3",".","service_id","=","t4",".","service_id","where","t1",".","customer_details","=","value","and","t4",".","services_and_channels_details","=","value"],"question":"Quais serviços são utilizados pelo cliente \"Hardy Kutch\" e são avaliados como \"bad\" em uma interação com o cliente? Me dê os detalhes do serviço.","question_toks":["Quais","serviços","são","utilizados","pelo","cliente","``","Hardy","Kutch","''","e","são","avaliados","como","``","bad","''","em","uma","interação","com","o","cliente","?","Me","dê","os","detalhes","do","serviço","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",0],["table_unit",4]],"conds":[[false,2,[0,[0,3,false],null],[0,8,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null],"and",[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Hardy Kutch\"",null],"and",[false,2,[0,[0,16,false],null],"\"bad\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select distinct t1.service_details from services as t1 join customer_interactions as t2 on t1.service_id = t2.service_id join channels as t3 on t2.channel_id = t3.channel_id where t3.channel_details = \"15 ij\"","query_toks":["select","distinct","t1.service_details","from","services","as","t1","join","customer_interactions","as","t2","on","t1.service_id","=","t2.service_id","join","channels","as","t3","on","t2.channel_id","=","t3.channel_id","where","t3.channel_details","=","\"15 ij\""],"query_toks_no_value":["select","distinct","t1",".","service_details","from","services","as","t1","join","customer_interactions","as","t2","on","t1",".","service_id","=","t2",".","service_id","join","channels","as","t3","on","t2",".","channel_id","=","t3",".","channel_id","where","t3",".","channel_details","=","value"],"question":"Encontre os detalhes de todos os serviços que interagiram com \"15 ij\" para os detalhes do canal.","question_toks":["Encontre","os","detalhes","de","todos","os","serviços","que","interagiram","com","``","15","ij","''","para","os","detalhes","do","canal","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null],"and",[false,2,[0,[0,12,false],null],[0,5,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"15 ij\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT DISTINCT t1.service_details FROM services AS t1 JOIN customer_interactions AS t2 ON t1.service_id = t2.service_id JOIN channels AS t3 ON t2.channel_id = t3.channel_id WHERE t3.channel_details = \"15 ij\"","query_toks":["SELECT","DISTINCT","t1.service_details","FROM","services","AS","t1","JOIN","customer_interactions","AS","t2","ON","t1.service_id","=","t2.service_id","JOIN","channels","AS","t3","ON","t2.channel_id","=","t3.channel_id","WHERE","t3.channel_details","=","``","15","ij","''"],"query_toks_no_value":["select","distinct","t1",".","service_details","from","services","as","t1","join","customer_interactions","as","t2","on","t1",".","service_id","=","t2",".","service_id","join","channels","as","t3","on","t2",".","channel_id","=","t3",".","channel_id","where","t3",".","channel_details","=","value"],"question":"Me dê os detalhes de todos os serviços que interagiram com o canal com detalhe \"15 ij\".","question_toks":["Me","dê","os","detalhes","de","todos","os","serviços","que","interagiram","com","o","canal","com","detalhe","``","15","ij","''","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null],"and",[false,2,[0,[0,12,false],null],[0,5,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"15 ij\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select t1.customer_details from customers as t1 join customer_interactions as t2 on t1.customer_id = t2.customer_id where t2.status_code = \"stuck\" and services_and_channels_details = \"bad\"","query_toks":["select","t1.customer_details","from","customers","as","t1","join","customer_interactions","as","t2","on","t1.customer_id","=","t2.customer_id","where","t2.status_code","=","\"stuck\"","and","services_and_channels_details","=","\"bad\""],"query_toks_no_value":["select","t1",".","customer_details","from","customers","as","t1","join","customer_interactions","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","where","t2",".","status_code","=","value","and","services_and_channels_details","=","value"],"question":"Encontre todos os detalhes dos clientes que estiveram envolvidos em uma interação com status \"Stuck\" e detalhe de serviço e canal \"bad\".","question_toks":["Encontre","todos","os","detalhes","dos","clientes","que","estiveram","envolvidos","em","uma","interação","com","status","``","Stuck","''","e","detalhe","de","serviço","e","canal","``","bad","''","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,3,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"stuck\"",null],"and",[false,2,[0,[0,16,false],null],"\"bad\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT t1.customer_details FROM customers AS t1 JOIN customer_interactions AS t2 ON t1.customer_id = t2.customer_id WHERE t2.status_code = \"Stuck\" AND services_and_channels_details = \"bad\"","query_toks":["SELECT","t1.customer_details","FROM","customers","AS","t1","JOIN","customer_interactions","AS","t2","ON","t1.customer_id","=","t2.customer_id","WHERE","t2.status_code","=","``","Stuck","''","AND","services_and_channels_details","=","``","bad","''"],"query_toks_no_value":["select","t1",".","customer_details","from","customers","as","t1","join","customer_interactions","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","where","t2",".","status_code","=","value","and","services_and_channels_details","=","value"],"question":"Quais clientes experimentaram o status \"Stuck\" e o detalhe de serviço e canal \"bad\" em uma interação? Me dê os detalhes dos clientes.","question_toks":["Quais","clientes","experimentaram","o","status","``","Stuck","''","e","o","detalhe","de","serviço","e","canal","``","bad","''","em","uma","interação","?","Me","dê","os","detalhes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4]],"conds":[[false,2,[0,[0,3,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"Stuck\"",null],"and",[false,2,[0,[0,16,false],null],"\"bad\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT count(*) FROM integration_platform WHERE integration_platform_details = \"Success\"","query_toks":["SELECT","count","(","*",")","FROM","integration_platform","WHERE","integration_platform_details","=","``","Success","''"],"query_toks_no_value":["select","count","(","*",")","from","integration_platform","where","integration_platform_details","=","value"],"question":"Quantas plataformas de integração são bem-sucedidas?","question_toks":["Quantas","plataformas","de","integração","são","bem-sucedidas","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"Success\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT count(*) FROM integration_platform WHERE integration_platform_details = \"Success\"","query_toks":["SELECT","count","(","*",")","FROM","integration_platform","WHERE","integration_platform_details","=","``","Success","''"],"query_toks_no_value":["select","count","(","*",")","from","integration_platform","where","integration_platform_details","=","value"],"question":"Conte o número de plataformas de integração que têm \"Success\" nos detalhes.","question_toks":["Conte","o","número","de","plataformas","de","integração","que","têm","``","Success","''","nos","detalhes","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"Success\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select distinct t1.customer_details from customers as t1 join customer_interactions as t2 on t1.customer_id = t2.customer_id join integration_platform as t3 where t3.integration_platform_details = \"fail\"","query_toks":["select","distinct","t1.customer_details","from","customers","as","t1","join","customer_interactions","as","t2","on","t1.customer_id","=","t2.customer_id","join","integration_platform","as","t3","where","t3.integration_platform_details","=","\"fail\""],"query_toks_no_value":["select","distinct","t1",".","customer_details","from","customers","as","t1","join","customer_interactions","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","integration_platform","as","t3","where","t3",".","integration_platform_details","=","value"],"question":"Liste os detalhes de todos os clientes que estão associados a uma plataforma de integração com falha.","question_toks":["Liste","os","detalhes","de","todos","os","clientes","que","estão","associados","a","uma","plataforma","de","integração","com","falha","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,3,false],null],[0,13,false],null]]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"fail\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT DISTINCT t1.customer_details FROM customers AS t1 JOIN customer_interactions AS t2 ON t1.customer_id = t2.customer_id JOIN integration_platform AS t3 WHERE t3.integration_platform_details = \"Fail\"","query_toks":["SELECT","DISTINCT","t1.customer_details","FROM","customers","AS","t1","JOIN","customer_interactions","AS","t2","ON","t1.customer_id","=","t2.customer_id","JOIN","integration_platform","AS","t3","WHERE","t3.integration_platform_details","=","``","Fail","''"],"query_toks_no_value":["select","distinct","t1",".","customer_details","from","customers","as","t1","join","customer_interactions","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","join","integration_platform","as","t3","where","t3",".","integration_platform_details","=","value"],"question":"Quais clientes têm detalhes da plataforma de integração \"Fail\" nas interações? Me dê os detalhes dos clientes.","question_toks":["Quais","clientes","têm","detalhes","da","plataforma","de","integração","``","Fail","''","nas","interações","?","Me","dê","os","detalhes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",4],["table_unit",5]],"conds":[[false,2,[0,[0,3,false],null],[0,13,false],null]]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"Fail\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select service_details from services except select t2.service_details from customers_and_services as t1 join services as t2 on t1.service_id = t2.service_id","query_toks":["select","service_details","from","services","except","select","t2.service_details","from","customers_and_services","as","t1","join","services","as","t2","on","t1.service_id","=","t2.service_id"],"query_toks_no_value":["select","service_details","from","services","except","select","t2",".","service_details","from","customers_and_services","as","t1","join","services","as","t2","on","t1",".","service_id","=","t2",".","service_id"],"question":"Quais serviços nunca foram utilizados por nenhum cliente? Liste seus detalhes.","question_toks":["Quais","serviços","nunca","foram","utilizados","por","nenhum","cliente","?","Liste","seus","detalhes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"government_shift","query":"select service_details from services except select t2.service_details from customers_and_services as t1 join services as t2 on t1.service_id = t2.service_id","query_toks":["select","service_details","from","services","except","select","t2.service_details","from","customers_and_services","as","t1","join","services","as","t2","on","t1.service_id","=","t2.service_id"],"query_toks_no_value":["select","service_details","from","services","except","select","t2",".","service_details","from","customers_and_services","as","t1","join","services","as","t2","on","t1",".","service_id","=","t2",".","service_id"],"question":"Encontre os detalhes dos serviços que nenhum cliente jamais usou. Retorne os detalhes do serviço.","question_toks":["Encontre","os","detalhes","dos","serviços","que","nenhum","cliente","jamais","usou",".","Retorne","os","detalhes","do","serviço","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"government_shift","query":"SELECT analytical_layer_type_code , count(*) FROM analytical_layer GROUP BY analytical_layer_type_code","query_toks":["SELECT","analytical_layer_type_code",",","count","(","*",")","FROM","analytical_layer","GROUP","BY","analytical_layer_type_code"],"query_toks_no_value":["select","analytical_layer_type_code",",","count","(","*",")","from","analytical_layer","group","by","analytical_layer_type_code"],"question":"Encontre todos os códigos de tipo de camada com suas contagens de uso correspondentes.","question_toks":["Encontre","todos","os","códigos","de","tipo","de","camada","com","suas","contagens","de","uso","correspondentes","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,23,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT analytical_layer_type_code , count(*) FROM analytical_layer GROUP BY analytical_layer_type_code","query_toks":["SELECT","analytical_layer_type_code",",","count","(","*",")","FROM","analytical_layer","GROUP","BY","analytical_layer_type_code"],"query_toks_no_value":["select","analytical_layer_type_code",",","count","(","*",")","from","analytical_layer","group","by","analytical_layer_type_code"],"question":"Para cada camada analítica, retorne o código do tipo de camada analítica e o número de vezes que foi utilizado.","question_toks":["Para","cada","camada","analítica",",","retorne","o","código","do","tipo","de","camada","analítica","e","o","número","de","vezes","que","foi","utilizado","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,23,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"select distinct t1.service_details from services as t1 join customers_and_services as t2 on t1.service_id = t2.service_id where t2.customers_and_services_details = \"unsatisfied\"","query_toks":["select","distinct","t1.service_details","from","services","as","t1","join","customers_and_services","as","t2","on","t1.service_id","=","t2.service_id","where","t2.customers_and_services_details","=","\"unsatisfied\""],"query_toks_no_value":["select","distinct","t1",".","service_details","from","services","as","t1","join","customers_and_services","as","t2","on","t1",".","service_id","=","t2",".","service_id","where","t2",".","customers_and_services_details","=","value"],"question":"Encontre os detalhes de todos os serviços que foram marcados como \"unsatisfied \" nos detalhes de clientes e serviços.","question_toks":["Encontre","os","detalhes","de","todos","os","serviços","que","foram","marcados","como","``","unsatisfied","``","nos","detalhes","de","clientes","e","serviços","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"unsatisfied\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"government_shift","query":"SELECT DISTINCT t1.service_details FROM services AS t1 JOIN customers_and_services AS t2 ON t1.service_id = t2.service_id WHERE t2.customers_and_services_details = \"Unsatisfied\"","query_toks":["SELECT","DISTINCT","t1.service_details","FROM","services","AS","t1","JOIN","customers_and_services","AS","t2","ON","t1.service_id","=","t2.service_id","WHERE","t2.customers_and_services_details","=","``","Unsatisfied","''"],"query_toks_no_value":["select","distinct","t1",".","service_details","from","services","as","t1","join","customers_and_services","as","t2","on","t1",".","service_id","=","t2",".","service_id","where","t2",".","customers_and_services_details","=","value"],"question":"Quais serviços foram avaliados como \"unsatisfied\" nos detalhes de clientes e serviços? Me dê os detalhes do serviço.","question_toks":["Quais","serviços","foram","avaliados","como","``","unsatisfied","''","nos","detalhes","de","clientes","e","serviços","?","Me","dê","os","detalhes","do","serviço","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Unsatisfied\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT count(*) FROM vehicles","query_toks":["SELECT","count","(","*",")","FROM","vehicles"],"query_toks_no_value":["select","count","(","*",")","from","vehicles"],"question":"Conte quantos veículos temos.","question_toks":["Conte","quantos","veículos","temos","."],"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":"vehicle_rent","query":"SELECT count(*) FROM vehicles","query_toks":["SELECT","count","(","*",")","FROM","vehicles"],"query_toks_no_value":["select","count","(","*",")","from","vehicles"],"question":"Conte o número de veículos.","question_toks":["Conte","o","número","de","veículos","."],"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":"vehicle_rent","query":"SELECT name FROM vehicles ORDER BY model_year DESC","query_toks":["SELECT","name","FROM","vehicles","ORDER","BY","model_year","DESC"],"query_toks_no_value":["select","name","from","vehicles","order","by","model_year","desc"],"question":"Mostre os nomes de todos os veículos em ordem decrescente de ano do modelo.","question_toks":["Mostre","os","nomes","de","todos","os","veículos","em","ordem","decrescente","de","ano","do","modelo","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name FROM vehicles ORDER BY model_year DESC","query_toks":["SELECT","name","FROM","vehicles","ORDER","BY","model_year","DESC"],"query_toks_no_value":["select","name","from","vehicles","order","by","model_year","desc"],"question":"Quais são os nomes de todos os veículos, ordenados por ano do modelo em ordem decrescente?","question_toks":["Quais","são","os","nomes","de","todos","os","veículos",",","ordenados","por","ano","do","modelo","em","ordem","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT DISTINCT type_of_powertrain FROM vehicles","query_toks":["SELECT","DISTINCT","type_of_powertrain","FROM","vehicles"],"query_toks_no_value":["select","distinct","type_of_powertrain","from","vehicles"],"question":"Liste todos os tipos distintos de powertrain dos veículos.","question_toks":["Liste","todos","os","tipos","distintos","de","powertrain","dos","veículos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT DISTINCT type_of_powertrain FROM vehicles","query_toks":["SELECT","DISTINCT","type_of_powertrain","FROM","vehicles"],"query_toks_no_value":["select","distinct","type_of_powertrain","from","vehicles"],"question":"Quais são os diferentes tipos de powertrain?","question_toks":["Quais","são","os","diferentes","tipos","de","powertrain","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , type_of_powertrain , annual_fuel_cost FROM vehicles WHERE model_year = 2013 OR model_year = 2014","query_toks":["SELECT","name",",","type_of_powertrain",",","annual_fuel_cost","FROM","vehicles","WHERE","model_year","=","2013","OR","model_year","=","2014"],"query_toks_no_value":["select","name",",","type_of_powertrain",",","annual_fuel_cost","from","vehicles","where","model_year","=","value","or","model_year","=","value"],"question":"Mostre o nome, o tipo de powertrain e o custo anual de combustível para todos os veículos com ano do modelo 2013 ou 2014.","question_toks":["Mostre","o","nome",",","o","tipo","de","powertrain","e","o","custo","anual","de","combustível","para","todos","os","veículos","com","ano","do","modelo","2013","ou","2014","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,10,false],null],2013.0,null],"or",[false,2,[0,[0,10,false],null],2014.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , type_of_powertrain , annual_fuel_cost FROM vehicles WHERE model_year = 2013 OR model_year = 2014","query_toks":["SELECT","name",",","type_of_powertrain",",","annual_fuel_cost","FROM","vehicles","WHERE","model_year","=","2013","OR","model_year","=","2014"],"query_toks_no_value":["select","name",",","type_of_powertrain",",","annual_fuel_cost","from","vehicles","where","model_year","=","value","or","model_year","=","value"],"question":"Quais são os nomes, tipos de powertrain e custos anuais de combustível para veículos com anos de modelo em 2013 ou 2014?","question_toks":["Quais","são","os","nomes",",","tipos","de","powertrain","e","custos","anuais","de","combustível","para","veículos","com","anos","de","modelo","em","2013","ou","2014","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,10,false],null],2013.0,null],"or",[false,2,[0,[0,10,false],null],2014.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain FROM vehicles WHERE model_year = 2014 INTERSECT SELECT type_of_powertrain FROM vehicles WHERE model_year = 2013","query_toks":["SELECT","type_of_powertrain","FROM","vehicles","WHERE","model_year","=","2014","INTERSECT","SELECT","type_of_powertrain","FROM","vehicles","WHERE","model_year","=","2013"],"query_toks_no_value":["select","type_of_powertrain","from","vehicles","where","model_year","=","value","intersect","select","type_of_powertrain","from","vehicles","where","model_year","=","value"],"question":"Mostre os tipos de powertrain com veículos tanto de 2014 quanto de 2013.","question_toks":["Mostre","os","tipos","de","powertrain","com","veículos","tanto","de","2014","quanto","de","2013","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,10,false],null],2014.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,10,false],null],2013.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain FROM vehicles WHERE model_year = 2014 INTERSECT SELECT type_of_powertrain FROM vehicles WHERE model_year = 2013","query_toks":["SELECT","type_of_powertrain","FROM","vehicles","WHERE","model_year","=","2014","INTERSECT","SELECT","type_of_powertrain","FROM","vehicles","WHERE","model_year","=","2013"],"query_toks_no_value":["select","type_of_powertrain","from","vehicles","where","model_year","=","value","intersect","select","type_of_powertrain","from","vehicles","where","model_year","=","value"],"question":"Quais são os tipos de powertrain que têm veículos fabricados em 2013 e 2014?","question_toks":["Quais","são","os","tipos","de","powertrain","que","têm","veículos","fabricados","em","2013","e","2014","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,10,false],null],2014.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,10,false],null],2013.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain , count(*) FROM vehicles GROUP BY type_of_powertrain","query_toks":["SELECT","type_of_powertrain",",","count","(","*",")","FROM","vehicles","GROUP","BY","type_of_powertrain"],"query_toks_no_value":["select","type_of_powertrain",",","count","(","*",")","from","vehicles","group","by","type_of_powertrain"],"question":"Mostre todos os tipos de powertrain e o número de veículos em cada tipo.","question_toks":["Mostre","todos","os","tipos","de","powertrain","e","o","número","de","veículos","em","cada","tipo","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain , count(*) FROM vehicles GROUP BY type_of_powertrain","query_toks":["SELECT","type_of_powertrain",",","count","(","*",")","FROM","vehicles","GROUP","BY","type_of_powertrain"],"query_toks_no_value":["select","type_of_powertrain",",","count","(","*",")","from","vehicles","group","by","type_of_powertrain"],"question":"Quantos veículos têm cada tipo de powertrain?","question_toks":["Quantos","veículos","têm","cada","tipo","de","powertrain","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain FROM vehicles GROUP BY type_of_powertrain ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","type_of_powertrain","FROM","vehicles","GROUP","BY","type_of_powertrain","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","type_of_powertrain","from","vehicles","group","by","type_of_powertrain","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o tipo de powertrain com o maior número de veículos?","question_toks":["Qual","é","o","tipo","de","powertrain","com","o","maior","número","de","veículos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain FROM vehicles GROUP BY type_of_powertrain ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","type_of_powertrain","FROM","vehicles","GROUP","BY","type_of_powertrain","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","type_of_powertrain","from","vehicles","group","by","type_of_powertrain","order","by","count","(","*",")","desc","limit","value"],"question":"Qual tipo de powertrain é o mais comum?","question_toks":["Qual","tipo","de","powertrain","é","o","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT min(annual_fuel_cost) , max(annual_fuel_cost) , avg(annual_fuel_cost) FROM vehicles","query_toks":["SELECT","min","(","annual_fuel_cost",")",",","max","(","annual_fuel_cost",")",",","avg","(","annual_fuel_cost",")","FROM","vehicles"],"query_toks_no_value":["select","min","(","annual_fuel_cost",")",",","max","(","annual_fuel_cost",")",",","avg","(","annual_fuel_cost",")","from","vehicles"],"question":"Mostre o custo anual mínimo, máximo e médio de combustível para todos os veículos.","question_toks":["Mostre","o","custo","anual","mínimo",",","máximo","e","médio","de","combustível","para","todos","os","veículos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[2,[0,[0,16,false],null]],[1,[0,[0,16,false],null]],[5,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT min(annual_fuel_cost) , max(annual_fuel_cost) , avg(annual_fuel_cost) FROM vehicles","query_toks":["SELECT","min","(","annual_fuel_cost",")",",","max","(","annual_fuel_cost",")",",","avg","(","annual_fuel_cost",")","FROM","vehicles"],"query_toks_no_value":["select","min","(","annual_fuel_cost",")",",","max","(","annual_fuel_cost",")",",","avg","(","annual_fuel_cost",")","from","vehicles"],"question":"Quais são os custos anuais mínimos, máximos e médios de combustível em todos os veículos?","question_toks":["Quais","são","os","custos","anuais","mínimos",",","máximos","e","médios","de","combustível","em","todos","os","veículos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[2,[0,[0,16,false],null]],[1,[0,[0,16,false],null]],[5,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , model_year FROM vehicles WHERE city_fuel_economy_rate <= highway_fuel_economy_rate","query_toks":["SELECT","name",",","model_year","FROM","vehicles","WHERE","city_fuel_economy_rate","<","=","highway_fuel_economy_rate"],"query_toks_no_value":["select","name",",","model_year","from","vehicles","where","city_fuel_economy_rate","<","=","highway_fuel_economy_rate"],"question":"Mostre o nome e o ano do modelo para veículos com taxa de economia de combustível na cidade menor ou igual à taxa de economia de combustível na rodovia.","question_toks":["Mostre","o","nome","e","o","ano","do","modelo","para","veículos","com","taxa","de","economia","de","combustível","na","cidade","menor","ou","igual","à","taxa","de","economia","de","combustível","na","rodovia","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,6,[0,[0,13,false],null],[0,14,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , model_year FROM vehicles WHERE city_fuel_economy_rate <= highway_fuel_economy_rate","query_toks":["SELECT","name",",","model_year","FROM","vehicles","WHERE","city_fuel_economy_rate","<","=","highway_fuel_economy_rate"],"query_toks_no_value":["select","name",",","model_year","from","vehicles","where","city_fuel_economy_rate","<","=","highway_fuel_economy_rate"],"question":"Quais são os nomes e os anos do modelo dos veículos que têm uma taxa de economia de combustível na cidade menor ou igual à sua taxa de economia de combustível na rodovia?","question_toks":["Quais","são","os","nomes","e","os","anos","do","modelo","dos","veículos","que","têm","uma","taxa","de","economia","de","combustível","na","cidade","menor","ou","igual","à","sua","taxa","de","economia","de","combustível","na","rodovia","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,6,[0,[0,13,false],null],[0,14,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain , avg(annual_fuel_cost) FROM vehicles GROUP BY type_of_powertrain HAVING count(*) >= 2","query_toks":["SELECT","type_of_powertrain",",","avg","(","annual_fuel_cost",")","FROM","vehicles","GROUP","BY","type_of_powertrain","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","type_of_powertrain",",","avg","(","annual_fuel_cost",")","from","vehicles","group","by","type_of_powertrain","having","count","(","*",")",">","=","value"],"question":"Mostre o tipo de powertrain com pelo menos dois veículos e o custo médio anual de combustível para veículos em cada um desses tipos.","question_toks":["Mostre","o","tipo","de","powertrain","com","pelo","menos","dois","veículos","e","o","custo","médio","anual","de","combustível","para","veículos","em","cada","um","desses","tipos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[5,[0,[0,16,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT type_of_powertrain , avg(annual_fuel_cost) FROM vehicles GROUP BY type_of_powertrain HAVING count(*) >= 2","query_toks":["SELECT","type_of_powertrain",",","avg","(","annual_fuel_cost",")","FROM","vehicles","GROUP","BY","type_of_powertrain","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","type_of_powertrain",",","avg","(","annual_fuel_cost",")","from","vehicles","group","by","type_of_powertrain","having","count","(","*",")",">","=","value"],"question":"Quais são os tipos de powertrain para os quais há dois ou mais veículos, e quais são seus custos médios anuais de combustível?","question_toks":["Quais","são","os","tipos","de","powertrain","para","os","quais","há","dois","ou","mais","veículos",",","e","quais","são","seus","custos","médios","anuais","de","combustível","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[5,[0,[0,16,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , age , membership_credit FROM customers","query_toks":["SELECT","name",",","age",",","membership_credit","FROM","customers"],"query_toks_no_value":["select","name",",","age",",","membership_credit","from","customers"],"question":"Mostre o nome, a idade e o crédito de associação de todos os clientes.","question_toks":["Mostre","o","nome",",","a","idade","e","o","crédito","de","associação","de","todos","os","clientes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , age , membership_credit FROM customers","query_toks":["SELECT","name",",","age",",","membership_credit","FROM","customers"],"query_toks_no_value":["select","name",",","age",",","membership_credit","from","customers"],"question":"Quais são os nomes, idades e créditos de associação de todos os clientes?","question_toks":["Quais","são","os","nomes",",","idades","e","créditos","de","associação","de","todos","os","clientes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , age FROM customers ORDER BY membership_credit DESC LIMIT 1","query_toks":["SELECT","name",",","age","FROM","customers","ORDER","BY","membership_credit","DESC","LIMIT","1"],"query_toks_no_value":["select","name",",","age","from","customers","order","by","membership_credit","desc","limit","value"],"question":"Mostre o nome e a idade do cliente com o maior crédito de associação.","question_toks":["Mostre","o","nome","e","a","idade","do","cliente","com","o","maior","crédito","de","associação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name , age FROM customers ORDER BY membership_credit DESC LIMIT 1","query_toks":["SELECT","name",",","age","FROM","customers","ORDER","BY","membership_credit","DESC","LIMIT","1"],"query_toks_no_value":["select","name",",","age","from","customers","order","by","membership_credit","desc","limit","value"],"question":"Qual é o nome e a idade do cliente com o maior crédito de associação?","question_toks":["Qual","é","o","nome","e","a","idade","do","cliente","com","o","maior","crédito","de","associação","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT avg(age) FROM customers WHERE membership_credit > (SELECT avg(membership_credit) FROM customers)","query_toks":["SELECT","avg","(","age",")","FROM","customers","WHERE","membership_credit",">","(","SELECT","avg","(","membership_credit",")","FROM","customers",")"],"query_toks_no_value":["select","avg","(","age",")","from","customers","where","membership_credit",">","(","select","avg","(","membership_credit",")","from","customers",")"],"question":"Qual é a idade média dos clientes com um crédito de associação acima da média?","question_toks":["Qual","é","a","idade","média","dos","clientes","com","um","crédito","de","associação","acima","da","média","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"vehicle_rent","query":"SELECT avg(age) FROM customers WHERE membership_credit > (SELECT avg(membership_credit) FROM customers)","query_toks":["SELECT","avg","(","age",")","FROM","customers","WHERE","membership_credit",">","(","SELECT","avg","(","membership_credit",")","FROM","customers",")"],"query_toks_no_value":["select","avg","(","age",")","from","customers","where","membership_credit",">","(","select","avg","(","membership_credit",")","from","customers",")"],"question":"Retorne a idade média dos clientes que têm crédito de associação acima da média de todos os clientes.","question_toks":["Retorne","a","idade","média","dos","clientes","que","têm","crédito","de","associação","acima","da","média","de","todos","os","clientes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"vehicle_rent","query":"SELECT * FROM discount","query_toks":["SELECT","*","FROM","discount"],"query_toks_no_value":["select","*","from","discount"],"question":"Mostre todas as informações de todos os descontos.","question_toks":["Mostre","todas","as","informações","de","todos","os","descontos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT * FROM discount","query_toks":["SELECT","*","FROM","discount"],"query_toks_no_value":["select","*","from","discount"],"question":"Retorne todas as informações sobre descontos.","question_toks":["Retorne","todas","as","informações","sobre","descontos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name , sum(T1.total_hours) FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id","query_toks":["SELECT","T2.name",",","sum","(","T1.total_hours",")","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T2.id"],"query_toks_no_value":["select","t2",".","name",",","sum","(","t1",".","total_hours",")","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t2",".","id"],"question":"Mostre o nome e o total de horas de aluguel para cada veículo.","question_toks":["Mostre","o","nome","e","o","total","de","horas","de","aluguel","para","cada","veículo","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[4,[0,[0,22,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name , sum(T1.total_hours) FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id","query_toks":["SELECT","T2.name",",","sum","(","T1.total_hours",")","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T2.id"],"query_toks_no_value":["select","t2",".","name",",","sum","(","t1",".","total_hours",")","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t2",".","id"],"question":"Quais são os nomes e o total de horas de aluguel para cada veículo?","question_toks":["Quais","são","os","nomes","e","o","total","de","horas","de","aluguel","para","cada","veículo","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[4,[0,[0,22,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT name FROM vehicles WHERE id NOT IN (SELECT vehicles_id FROM renting_history)","query_toks":["SELECT","name","FROM","vehicles","WHERE","id","NOT","IN","(","SELECT","vehicles_id","FROM","renting_history",")"],"query_toks_no_value":["select","name","from","vehicles","where","id","not","in","(","select","vehicles_id","from","renting_history",")"],"question":"Mostre o nome dos veículos sem histórico de aluguel.","question_toks":["Mostre","o","nome","dos","veículos","sem","histórico","de","aluguel","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,21,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":"vehicle_rent","query":"SELECT name FROM vehicles WHERE id NOT IN (SELECT vehicles_id FROM renting_history)","query_toks":["SELECT","name","FROM","vehicles","WHERE","id","NOT","IN","(","SELECT","vehicles_id","FROM","renting_history",")"],"query_toks_no_value":["select","name","from","vehicles","where","id","not","in","(","select","vehicles_id","from","renting_history",")"],"question":"Quais são os nomes dos veículos que nunca foram alugados?","question_toks":["Quais","são","os","nomes","dos","veículos","que","nunca","foram","alugados","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,21,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":"vehicle_rent","query":"SELECT T2.name FROM renting_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.id GROUP BY T2.id HAVING count(*) >= 2","query_toks":["SELECT","T2.name","FROM","renting_history","AS","T1","JOIN","customers","AS","T2","ON","T1.customer_id","=","T2.id","GROUP","BY","T2.id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t2",".","name","from","renting_history","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","id","group","by","t2",".","id","having","count","(","*",")",">","=","value"],"question":"Mostre o nome do cliente com pelo menos dois registros de histórico de aluguel.","question_toks":["Mostre","o","nome","do","cliente","com","pelo","menos","dois","registros","de","histórico","de","aluguel","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name FROM renting_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.id GROUP BY T2.id HAVING count(*) >= 2","query_toks":["SELECT","T2.name","FROM","renting_history","AS","T1","JOIN","customers","AS","T2","ON","T1.customer_id","=","T2.id","GROUP","BY","T2.id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t2",".","name","from","renting_history","as","t1","join","customers","as","t2","on","t1",".","customer_id","=","t2",".","id","group","by","t2",".","id","having","count","(","*",")",">","=","value"],"question":"Quais são os nomes dos clientes que têm dois ou mais registros de histórico de aluguel?","question_toks":["Quais","são","os","nomes","dos","clientes","que","têm","dois","ou","mais","registros","de","histórico","de","aluguel","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name , T2.model_year FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.name",",","T2.model_year","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name",",","t2",".","model_year","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre o nome e o ano do modelo do veículo com o maior número de registros de histórico de aluguel.","question_toks":["Mostre","o","nome","e","o","ano","do","modelo","do","veículo","com","o","maior","número","de","registros","de","histórico","de","aluguel","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name , T2.model_year FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.name",",","T2.model_year","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name",",","t2",".","model_year","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome e o ano do modelo do veículo que foi alugado mais vezes?","question_toks":["Qual","é","o","nome","e","o","ano","do","modelo","do","veículo","que","foi","alugado","mais","vezes","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY sum(T1.total_hours) DESC","query_toks":["SELECT","T2.name","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","sum","(","T1.total_hours",")","DESC"],"query_toks_no_value":["select","t2",".","name","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t2",".","id","order","by","sum","(","t1",".","total_hours",")","desc"],"question":"Mostre o nome do veículo em ordem decrescente de horas totais de aluguel.","question_toks":["Mostre","o","nome","do","veículo","em","ordem","decrescente","de","horas","totais","de","aluguel","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[4,22,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T2.id ORDER BY sum(T1.total_hours) DESC","query_toks":["SELECT","T2.name","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","sum","(","T1.total_hours",")","DESC"],"query_toks_no_value":["select","t2",".","name","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t2",".","id","order","by","sum","(","t1",".","total_hours",")","desc"],"question":"Quais são os nomes dos veículos, ordenados em ordem decrescente pelo total de horas de aluguel?","question_toks":["Quais","são","os","nomes","dos","veículos",",","ordenados","em","ordem","decrescente","pelo","total","de","horas","de","aluguel","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[4,22,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name FROM renting_history AS T1 JOIN discount AS T2 ON T1.discount_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","renting_history","AS","T1","JOIN","discount","AS","T2","ON","T1.discount_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","renting_history","as","t1","join","discount","as","t2","on","t1",".","discount_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do desconto com o maior número de registros de histórico de aluguel?","question_toks":["Qual","é","o","nome","do","desconto","com","o","maior","número","de","registros","de","histórico","de","aluguel","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",1]],"conds":[[false,2,[0,[0,20,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,6,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":"vehicle_rent","query":"SELECT T2.name FROM renting_history AS T1 JOIN discount AS T2 ON T1.discount_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","renting_history","AS","T1","JOIN","discount","AS","T2","ON","T1.discount_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","renting_history","as","t1","join","discount","as","t2","on","t1",".","discount_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne o nome do desconto que corresponde ao maior número de registros de histórico de aluguel.","question_toks":["Retorne","o","nome","do","desconto","que","corresponde","ao","maior","número","de","registros","de","histórico","de","aluguel","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",1]],"conds":[[false,2,[0,[0,20,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,6,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":"vehicle_rent","query":"SELECT T2.name , T2.Type_of_powertrain FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T1.vehicles_id HAVING sum(T1.total_hours) > 30","query_toks":["SELECT","T2.name",",","T2.Type_of_powertrain","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T1.vehicles_id","HAVING","sum","(","T1.total_hours",")",">","30"],"query_toks_no_value":["select","t2",".","name",",","t2",".","type_of_powertrain","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t1",".","vehicles_id","having","sum","(","t1",".","total_hours",")",">","value"],"question":"Encontre o nome e o tipo de powertrain dos carros que foram alugados por mais de 30 horas no total.","question_toks":["Encontre","o","nome","e","o","tipo","de","powertrain","dos","carros","que","foram","alugados","por","mais","de","30","horas","no","total","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,3,[0,[4,22,false],null],30.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT T2.name , T2.Type_of_powertrain FROM renting_history AS T1 JOIN vehicles AS T2 ON T1.vehicles_id = T2.id GROUP BY T1.vehicles_id HAVING sum(T1.total_hours) > 30","query_toks":["SELECT","T2.name",",","T2.Type_of_powertrain","FROM","renting_history","AS","T1","JOIN","vehicles","AS","T2","ON","T1.vehicles_id","=","T2.id","GROUP","BY","T1.vehicles_id","HAVING","sum","(","T1.total_hours",")",">","30"],"query_toks_no_value":["select","t2",".","name",",","t2",".","type_of_powertrain","from","renting_history","as","t1","join","vehicles","as","t2","on","t1",".","vehicles_id","=","t2",".","id","group","by","t1",".","vehicles_id","having","sum","(","t1",".","total_hours",")",">","value"],"question":"Quais são os nomes e os tipos de powertrain dos carros que têm mais de 30 horas totais de aluguel?","question_toks":["Quais","são","os","nomes","e","os","tipos","de","powertrain","dos","carros","que","têm","mais","de","30","horas","totais","de","aluguel","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,21,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,3,[0,[4,22,false],null],30.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT avg(City_fuel_economy_rate) , avg(Highway_fuel_economy_rate) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain","query_toks":["SELECT","avg","(","City_fuel_economy_rate",")",",","avg","(","Highway_fuel_economy_rate",")",",","Type_of_powertrain","FROM","vehicles","GROUP","BY","Type_of_powertrain"],"query_toks_no_value":["select","avg","(","city_fuel_economy_rate",")",",","avg","(","highway_fuel_economy_rate",")",",","type_of_powertrain","from","vehicles","group","by","type_of_powertrain"],"question":"Encontre a média das taxas de combustível na cidade e na rodovia para carros com diferentes tipos de powertrain .","question_toks":["Encontre","a","média","das","taxas","de","combustível","na","cidade","e","na","rodovia","para","carros","com","diferentes","tipos","de","powertrain","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,13,false],null]],[5,[0,[0,14,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"vehicle_rent","query":"SELECT avg(City_fuel_economy_rate) , avg(Highway_fuel_economy_rate) , Type_of_powertrain FROM vehicles GROUP BY Type_of_powertrain","query_toks":["SELECT","avg","(","City_fuel_economy_rate",")",",","avg","(","Highway_fuel_economy_rate",")",",","Type_of_powertrain","FROM","vehicles","GROUP","BY","Type_of_powertrain"],"query_toks_no_value":["select","avg","(","city_fuel_economy_rate",")",",","avg","(","highway_fuel_economy_rate",")",",","type_of_powertrain","from","vehicles","group","by","type_of_powertrain"],"question":"Quais são a média da taxa de economia de combustível na cidade e a média da taxa de economia de combustível na rodovia para diferentes tipos de sistemas de powertrain?","question_toks":["Quais","são","a","média","da","taxa","de","economia","de","combustível","na","cidade","e","a","média","da","taxa","de","economia","de","combustível","na","rodovia","para","diferentes","tipos","de","sistemas","de","powertrain","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,13,false],null]],[5,[0,[0,14,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT avg(amount_of_loan) FROM Student_Loans","query_toks":["SELECT","avg","(","amount_of_loan",")","FROM","Student_Loans"],"query_toks_no_value":["select","avg","(","amount_of_loan",")","from","student_loans"],"question":"Qual é o valor médio de um empréstimo estudantil?","question_toks":["Qual","é","o","valor","médio","de","um","empréstimo","estudantil","?"],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[5,[0,[0,31,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT avg(amount_of_loan) FROM Student_Loans","query_toks":["SELECT","avg","(","amount_of_loan",")","FROM","Student_Loans"],"query_toks_no_value":["select","avg","(","amount_of_loan",")","from","student_loans"],"question":"Calcule a média do valor dos empréstimos estudantis.","question_toks":["Calcule","a","média","do","valor","dos","empréstimos","estudantis","."],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[5,[0,[0,31,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) >= 2 UNION SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) < 2","query_toks":["SELECT","T1.bio_data",",","T1.student_id","FROM","Students","AS","T1","JOIN","Classes","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id","HAVING","count","(","*",")",">","=","2","UNION","SELECT","T1.bio_data",",","T1.student_id","FROM","Students","AS","T1","JOIN","Detention","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id","HAVING","count","(","*",")","<","2"],"query_toks_no_value":["select","t1",".","bio_data",",","t1",".","student_id","from","students","as","t1","join","classes","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")",">","=","value","union","select","t1",".","bio_data",",","t1",".","student_id","from","students","as","t1","join","detention","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")","<","value"],"question":"Liste os dados biográficos e o id dos alunos que frequentam 2 ou mais aulas e os alunos que têm menos de 2 detenções.","question_toks":["Liste","os","dados","biográficos","e","o","id","dos","alunos","que","frequentam","2","ou","mais","aulas","e","os","alunos","que","têm","menos","de","2","detenções","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",11]],"conds":[[false,2,[0,[0,1,false],null],[0,45,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",13]],"conds":[[false,2,[0,[0,1,false],null],[0,45,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,4,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) >= 2 UNION SELECT T1.bio_data , T1.student_id FROM Students AS T1 JOIN Detention AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) < 2","query_toks":["SELECT","T1.bio_data",",","T1.student_id","FROM","Students","AS","T1","JOIN","Classes","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id","HAVING","count","(","*",")",">","=","2","UNION","SELECT","T1.bio_data",",","T1.student_id","FROM","Students","AS","T1","JOIN","Detention","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id","HAVING","count","(","*",")","<","2"],"query_toks_no_value":["select","t1",".","bio_data",",","t1",".","student_id","from","students","as","t1","join","classes","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")",">","=","value","union","select","t1",".","bio_data",",","t1",".","student_id","from","students","as","t1","join","detention","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")","<","value"],"question":"Quais são os dados biográficos e o id dos alunos que ou participaram de duas ou mais aulas ou têm menos de duas detenções?","question_toks":["Quais","são","os","dados","biográficos","e","o","id","dos","alunos","que","ou","participaram","de","duas","ou","mais","aulas","ou","têm","menos","de","duas","detenções","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",11]],"conds":[[false,2,[0,[0,1,false],null],[0,45,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",13]],"conds":[[false,2,[0,[0,1,false],null],[0,45,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,4,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE '%data%' EXCEPT SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE 'net%'","query_toks":["SELECT","T1.teacher_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","WHERE","T2.class_details","LIKE","'","%","data","%","'","EXCEPT","SELECT","T1.teacher_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","WHERE","T2.class_details","LIKE","'net","%","'"],"query_toks_no_value":["select","t1",".","teacher_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","where","t2",".","class_details","like","value","except","select","t1",".","teacher_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","where","t2",".","class_details","like","value"],"question":"Liste os detalhes dos professores que ensinam alguma aula cujo detalhe contém a substring 'data', mas não ensinam uma aula cujo detalhe contém o prefixo 'net'.","question_toks":["Liste","os","detalhes","dos","professores","que","ensinam","alguma","aula","cujo","detalhe","contém","a","substring","'data","'",",","mas","não","ensinam","uma","aula","cujo","detalhe","contém","o","prefixo","'net","'","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[[false,9,[0,[0,36,false],null],"\"%data%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[[false,9,[0,[0,36,false],null],"\"net%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE '%data%' EXCEPT SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.class_details LIKE 'net%'","query_toks":["SELECT","T1.teacher_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","WHERE","T2.class_details","LIKE","'","%","data","%","'","EXCEPT","SELECT","T1.teacher_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","WHERE","T2.class_details","LIKE","'net","%","'"],"query_toks_no_value":["select","t1",".","teacher_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","where","t2",".","class_details","like","value","except","select","t1",".","teacher_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","where","t2",".","class_details","like","value"],"question":"Quais professores ensinam uma aula que contém a substring 'data' em seus detalhes, mas não ensinam uma aula que tem o prefixo 'net' em seus detalhes? Me dê os detalhes dos professores.","question_toks":["Quais","professores","ensinam","uma","aula","que","contém","a","substring","'data","'","em","seus","detalhes",",","mas","não","ensinam","uma","aula","que","tem","o","prefixo","'net","'","em","seus","detalhes","?","Me","dê","os","detalhes","dos","professores","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[[false,9,[0,[0,36,false],null],"\"%data%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[[false,9,[0,[0,36,false],null],"\"net%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Students_Information_Systems","query":"select bio_data from students where student_id not in (select t1.student_id from students as t1 join detention as t2 on t1.student_id = t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id = t2.student_id)","query_toks":["select","bio_data","from","students","where","student_id","not","in","(","select","t1.student_id","from","students","as","t1","join","detention","as","t2","on","t1.student_id","=","t2.student_id","union","select","t1.student_id","from","students","as","t1","join","student_loans","as","t2","on","t1.student_id","=","t2.student_id",")"],"query_toks_no_value":["select","bio_data","from","students","where","student_id","not","in","(","select","t1",".","student_id","from","students","as","t1","join","detention","as","t2","on","t1",".","student_id","=","t2",".","student_id","union","select","t1",".","student_id","from","students","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id",")"],"question":"Liste os dados biográficos dos alunos que nunca tiveram detenção ou empréstimo estudantil.","question_toks":["Liste","os","dados","biográficos","dos","alunos","que","nunca","tiveram","detenção","ou","empréstimo","estudantil","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",13]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"select bio_data from students where student_id not in (select t1.student_id from students as t1 join detention as t2 on t1.student_id = t2.student_id union select t1.student_id from students as t1 join student_loans as t2 on t1.student_id = t2.student_id)","query_toks":["select","bio_data","from","students","where","student_id","not","in","(","select","t1.student_id","from","students","as","t1","join","detention","as","t2","on","t1.student_id","=","t2.student_id","union","select","t1.student_id","from","students","as","t1","join","student_loans","as","t2","on","t1.student_id","=","t2.student_id",")"],"query_toks_no_value":["select","bio_data","from","students","where","student_id","not","in","(","select","t1",".","student_id","from","students","as","t1","join","detention","as","t2","on","t1",".","student_id","=","t2",".","student_id","union","select","t1",".","student_id","from","students","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id",")"],"question":"Quais alunos nunca tiveram detenção ou empréstimo estudantil? Encontre seus dados biográficos.","question_toks":["Quais","alunos","nunca","tiveram","detenção","ou","empréstimo","estudantil","?","Encontre","seus","dados","biográficos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",13]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT amount_of_loan , date_of_loan FROM Student_Loans WHERE student_id IN ( SELECT student_id FROM Achievements GROUP BY student_id HAVING count(*) >= 2 )","query_toks":["SELECT","amount_of_loan",",","date_of_loan","FROM","Student_Loans","WHERE","student_id","IN","(","SELECT","student_id","FROM","Achievements","GROUP","BY","student_id","HAVING","count","(","*",")",">","=","2",")"],"query_toks_no_value":["select","amount_of_loan",",","date_of_loan","from","student_loans","where","student_id","in","(","select","student_id","from","achievements","group","by","student_id","having","count","(","*",")",">","=","value",")"],"question":"Quais são os valores dos empréstimos e as datas dos empréstimos dos estudantes que têm pelo menos 2 conquistas?","question_toks":["Quais","são","os","valores","dos","empréstimos","e","as","datas","dos","empréstimos","dos","estudantes","que","têm","pelo","menos","2","conquistas","?"],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,31,false],null]],[0,[0,[0,30,false],null]]]],"where":[[false,8,[0,[0,29,false],null],{"from":{"table_units":[["table_unit",14]],"conds":[]},"select":[false,[[0,[0,[0,52,false],null]]]],"where":[],"groupBy":[[0,52,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT amount_of_loan , date_of_loan FROM Student_Loans WHERE student_id IN ( SELECT student_id FROM Achievements GROUP BY student_id HAVING count(*) >= 2 )","query_toks":["SELECT","amount_of_loan",",","date_of_loan","FROM","Student_Loans","WHERE","student_id","IN","(","SELECT","student_id","FROM","Achievements","GROUP","BY","student_id","HAVING","count","(","*",")",">","=","2",")"],"query_toks_no_value":["select","amount_of_loan",",","date_of_loan","from","student_loans","where","student_id","in","(","select","student_id","from","achievements","group","by","student_id","having","count","(","*",")",">","=","value",")"],"question":"Liste o valor e a data do empréstimo para os estudantes que têm duas ou mais conquistas.","question_toks":["Liste","o","valor","e","a","data","do","empréstimo","para","os","estudantes","que","têm","duas","ou","mais","conquistas","."],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,31,false],null]],[0,[0,[0,30,false],null]]]],"where":[[false,8,[0,[0,29,false],null],{"from":{"table_units":[["table_unit",14]],"conds":[]},"select":[false,[[0,[0,[0,52,false],null]]]],"where":[],"groupBy":[[0,52,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details , T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.teacher_details",",","T1.teacher_id","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","GROUP","BY","T1.teacher_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","teacher_details",",","t1",".","teacher_id","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","group","by","t1",".","teacher_id","order","by","count","(","*",")","desc","limit","value"],"question":"Liste os detalhes e o id do professor que ensina o maior número de cursos.","question_toks":["Liste","os","detalhes","e","o","id","do","professor","que","ensina","o","maior","número","de","cursos","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,27,false],null]],[0,[0,[0,26,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details , T1.teacher_id FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.teacher_details",",","T1.teacher_id","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","GROUP","BY","T1.teacher_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","teacher_details",",","t1",".","teacher_id","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","group","by","t1",".","teacher_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os detalhes e o id do professor que ensina o maior número de cursos?","question_toks":["Quais","são","os","detalhes","e","o","id","do","professor","que","ensina","o","maior","número","de","cursos","?"],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,27,false],null]],[0,[0,[0,26,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT distinct(T1.detention_type_description) FROM Ref_Detention_Type AS T1 JOIN Detention AS T2 ON T1.detention_type_code = T2.detention_type_code","query_toks":["SELECT","distinct","(","T1.detention_type_description",")","FROM","Ref_Detention_Type","AS","T1","JOIN","Detention","AS","T2","ON","T1.detention_type_code","=","T2.detention_type_code"],"query_toks_no_value":["select","distinct","(","t1",".","detention_type_description",")","from","ref_detention_type","as","t1","join","detention","as","t2","on","t1",".","detention_type_code","=","t2",".","detention_type_code"],"question":"Quais são as descrições distintas de todas as detenções que já aconteceram?","question_toks":["Quais","são","as","descrições","distintas","de","todas","as","detenções","que","já","aconteceram","?"],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",13]],"conds":[[false,2,[0,[0,19,false],null],[0,44,false],null]]},"select":[true,[[0,[0,[0,20,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT distinct(T1.detention_type_description) FROM Ref_Detention_Type AS T1 JOIN Detention AS T2 ON T1.detention_type_code = T2.detention_type_code","query_toks":["SELECT","distinct","(","T1.detention_type_description",")","FROM","Ref_Detention_Type","AS","T1","JOIN","Detention","AS","T2","ON","T1.detention_type_code","=","T2.detention_type_code"],"query_toks_no_value":["select","distinct","(","t1",".","detention_type_description",")","from","ref_detention_type","as","t1","join","detention","as","t2","on","t1",".","detention_type_code","=","t2",".","detention_type_code"],"question":"Retorne as descrições distintas de todas as detenções que ocorreram.","question_toks":["Retorne","as","descrições","distintas","de","todas","as","detenções","que","ocorreram","."],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",13]],"conds":[[false,2,[0,[0,19,false],null],[0,44,false],null]]},"select":[true,[[0,[0,[0,20,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT DISTINCT T1.student_details , T3.address_type_description FROM Students AS T1 JOIN Students_Addresses AS T2 ON T1.student_id = T2.student_id JOIN Ref_Address_Types AS T3 ON T2.address_type_code = T3.address_type_code","query_toks":["SELECT","DISTINCT","T1.student_details",",","T3.address_type_description","FROM","Students","AS","T1","JOIN","Students_Addresses","AS","T2","ON","T1.student_id","=","T2.student_id","JOIN","Ref_Address_Types","AS","T3","ON","T2.address_type_code","=","T3.address_type_code"],"query_toks_no_value":["select","distinct","t1",".","student_details",",","t3",".","address_type_description","from","students","as","t1","join","students_addresses","as","t2","on","t1",".","student_id","=","t2",".","student_id","join","ref_address_types","as","t3","on","t2",".","address_type_code","=","t3",".","address_type_code"],"question":"Liste os detalhes pessoais e as descrições dos tipos de discursos dos alunos de todos os alunos.","question_toks":["Liste","os","detalhes","pessoais","e","as","descrições","dos","tipos","de","discursos","dos","alunos","de","todos","os","alunos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",12],["table_unit",6]],"conds":[[false,2,[0,[0,1,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,17,false],null]]},"select":[true,[[0,[0,[0,3,false],null]],[0,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT DISTINCT T1.student_details , T3.address_type_description FROM Students AS T1 JOIN Students_Addresses AS T2 ON T1.student_id = T2.student_id JOIN Ref_Address_Types AS T3 ON T2.address_type_code = T3.address_type_code","query_toks":["SELECT","DISTINCT","T1.student_details",",","T3.address_type_description","FROM","Students","AS","T1","JOIN","Students_Addresses","AS","T2","ON","T1.student_id","=","T2.student_id","JOIN","Ref_Address_Types","AS","T3","ON","T2.address_type_code","=","T3.address_type_code"],"query_toks_no_value":["select","distinct","t1",".","student_details",",","t3",".","address_type_description","from","students","as","t1","join","students_addresses","as","t2","on","t1",".","student_id","=","t2",".","student_id","join","ref_address_types","as","t3","on","t2",".","address_type_code","=","t3",".","address_type_code"],"question":"Quais são os detalhes pessoais e as descrições dos tipos de discursos dos alunos de cada aluno?","question_toks":["Quais","são","os","detalhes","pessoais","e","as","descrições","dos","tipos","de","discursos","dos","alunos","de","cada","aluno","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",12],["table_unit",6]],"conds":[[false,2,[0,[0,1,false],null],[0,40,false],null],"and",[false,2,[0,[0,39,false],null],[0,17,false],null]]},"select":[true,[[0,[0,[0,3,false],null]],[0,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.address_details , T3.bio_data FROM Addresses AS T1 JOIN Students_Addresses AS T2 ON T1.address_id = T2.address_id JOIN Students AS T3 ON T2.student_id = T3.student_id","query_toks":["SELECT","T1.address_details",",","T3.bio_data","FROM","Addresses","AS","T1","JOIN","Students_Addresses","AS","T2","ON","T1.address_id","=","T2.address_id","JOIN","Students","AS","T3","ON","T2.student_id","=","T3.student_id"],"query_toks_no_value":["select","t1",".","address_details",",","t3",".","bio_data","from","addresses","as","t1","join","students_addresses","as","t2","on","t1",".","address_id","=","t2",".","address_id","join","students","as","t3","on","t2",".","student_id","=","t3",".","student_id"],"question":"Liste os detalhes dos discursos dos alunos e as informações biográficas dos alunos.","question_toks":["Liste","os","detalhes","dos","discursos","dos","alunos","e","as","informações","biográficas","dos","alunos","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",12],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,38,false],null],"and",[false,2,[0,[0,40,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.address_details , T3.bio_data FROM Addresses AS T1 JOIN Students_Addresses AS T2 ON T1.address_id = T2.address_id JOIN Students AS T3 ON T2.student_id = T3.student_id","query_toks":["SELECT","T1.address_details",",","T3.bio_data","FROM","Addresses","AS","T1","JOIN","Students_Addresses","AS","T2","ON","T1.address_id","=","T2.address_id","JOIN","Students","AS","T3","ON","T2.student_id","=","T3.student_id"],"query_toks_no_value":["select","t1",".","address_details",",","t3",".","bio_data","from","addresses","as","t1","join","students_addresses","as","t2","on","t1",".","address_id","=","t2",".","address_id","join","students","as","t3","on","t2",".","student_id","=","t3",".","student_id"],"question":"Quais são os detalhes dos discursos dos alunos e as informações biográficas de cada aluno?","question_toks":["Quais","são","os","detalhes","dos","discursos","dos","alunos","e","as","informações","biográficas","de","cada","aluno","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",12],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,38,false],null],"and",[false,2,[0,[0,40,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T2.date_of_transcript FROM Students AS T1 JOIN Transcripts AS T2 ON T1.student_id = T2.student_id","query_toks":["SELECT","T1.bio_data",",","T2.date_of_transcript","FROM","Students","AS","T1","JOIN","Transcripts","AS","T2","ON","T1.student_id","=","T2.student_id"],"query_toks_no_value":["select","t1",".","bio_data",",","t2",".","date_of_transcript","from","students","as","t1","join","transcripts","as","t2","on","t1",".","student_id","=","t2",".","student_id"],"question":"Liste os dados biográficos e a data do histórico escolar de todos os alunos.","question_toks":["Liste","os","dados","biográficos","e","a","data","do","histórico","escolar","de","todos","os","alunos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T2.date_of_transcript FROM Students AS T1 JOIN Transcripts AS T2 ON T1.student_id = T2.student_id","query_toks":["SELECT","T1.bio_data",",","T2.date_of_transcript","FROM","Students","AS","T1","JOIN","Transcripts","AS","T2","ON","T1.student_id","=","T2.student_id"],"query_toks_no_value":["select","t1",".","bio_data",",","t2",".","date_of_transcript","from","students","as","t1","join","transcripts","as","t2","on","t1",".","student_id","=","t2",".","student_id"],"question":"Quais são os dados biográficos e a data de emissão do histórico escolar de cada aluno?","question_toks":["Quais","são","os","dados","biográficos","e","a","data","de","emissão","do","histórico","escolar","de","cada","aluno","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(DISTINCT student_id) , behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","DISTINCT","student_id",")",",","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","distinct","student_id",")",",","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value"],"question":"Quantos alunos obtiveram o resultado mais comum nos detalhes de monitoramento comportamental? Também liste os detalhes do resultado.","question_toks":["Quantos","alunos","obtiveram","o","resultado","mais","comum","nos","detalhes","de","monitoramento","comportamental","?","Também","liste","os","detalhes","do","resultado","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,9,true],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(DISTINCT student_id) , behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","DISTINCT","student_id",")",",","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","distinct","student_id",")",",","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o resultado mais comum nos detalhes de monitoramento comportamental. Quais são a contagem e os detalhes desse resultado?","question_toks":["Encontre","o","resultado","mais","comum","nos","detalhes","de","monitoramento","comportamental",".","Quais","são","a","contagem","e","os","detalhes","desse","resultado","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,9,true],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) INTERSECT SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details HAVING count(*) = 3 )","query_toks":["SELECT","T1.bio_data",",","T1.student_details","FROM","Students","AS","T1","JOIN","Behaviour_Monitoring","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.behaviour_monitoring_details","IN","(","SELECT","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","ORDER","BY","count","(","*",")","DESC","LIMIT","1",")","INTERSECT","SELECT","T1.bio_data",",","T1.student_details","FROM","Students","AS","T1","JOIN","Behaviour_Monitoring","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.behaviour_monitoring_details","IN","(","SELECT","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","HAVING","count","(","*",")","=","3",")"],"query_toks_no_value":["select","t1",".","bio_data",",","t1",".","student_details","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value",")","intersect","select","t1",".","bio_data",",","t1",".","student_details","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","having","count","(","*",")","=","value",")"],"question":"Quais alunos não apenas obtiveram o resultado mais comum, mas também obtiveram um resultado obtido por 3 alunos na monitorização do comportamento? Liste os dados biográficos e detalhes do aluno.","question_toks":["Quais","alunos","não","apenas","obtiveram","o","resultado","mais","comum",",","mas","também","obtiveram","um","resultado","obtido","por","3","alunos","na","monitorização","do","comportamento","?","Liste","os","dados","biográficos","e","detalhes","do","aluno","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[[false,2,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) INTERSECT SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details HAVING count(*) = 3 )","query_toks":["SELECT","T1.bio_data",",","T1.student_details","FROM","Students","AS","T1","JOIN","Behaviour_Monitoring","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.behaviour_monitoring_details","IN","(","SELECT","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","ORDER","BY","count","(","*",")","DESC","LIMIT","1",")","INTERSECT","SELECT","T1.bio_data",",","T1.student_details","FROM","Students","AS","T1","JOIN","Behaviour_Monitoring","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.behaviour_monitoring_details","IN","(","SELECT","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","HAVING","count","(","*",")","=","3",")"],"query_toks_no_value":["select","t1",".","bio_data",",","t1",".","student_details","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value",")","intersect","select","t1",".","bio_data",",","t1",".","student_details","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","having","count","(","*",")","=","value",")"],"question":"Encontre os dados biográficos e detalhes dos alunos que obtiveram não apenas o resultado mais comum, mas também um resultado que é obtido por 3 alunos na monitorização do comportamento.","question_toks":["Encontre","os","dados","biográficos","e","detalhes","dos","alunos","que","obtiveram","não","apenas","o","resultado","mais","comum",",","mas","também","um","resultado","que","é","obtido","por","3","alunos","na","monitorização","do","comportamento","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[[false,2,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 ) EXCEPT SELECT T1.bio_data FROM Students AS T1 JOIN Behaviour_Monitoring AS T2 ON T1.student_id = T2.student_id WHERE T2.behaviour_monitoring_details NOT IN ( SELECT behaviour_monitoring_details FROM Behaviour_Monitoring GROUP BY behaviour_monitoring_details ORDER BY count(*) DESC LIMIT 1 )","query_toks":["SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Behaviour_Monitoring","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.behaviour_monitoring_details","IN","(","SELECT","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","ORDER","BY","count","(","*",")","DESC","LIMIT","1",")","EXCEPT","SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Behaviour_Monitoring","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.behaviour_monitoring_details","NOT","IN","(","SELECT","behaviour_monitoring_details","FROM","Behaviour_Monitoring","GROUP","BY","behaviour_monitoring_details","ORDER","BY","count","(","*",")","DESC","LIMIT","1",")"],"query_toks_no_value":["select","t1",".","bio_data","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value",")","except","select","t1",".","bio_data","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","not","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value",")"],"question":"Quais alunos obtiveram apenas o resultado mais comum para todos os seus detalhes de monitoramento de comportamento? Liste as informações biográficas dos alunos.","question_toks":["Quais","alunos","obtiveram","apenas","o","resultado","mais","comum","para","todos","os","seus","detalhes","de","monitoramento","de","comportamento","?","Liste","as","informações","biográficas","dos","alunos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Students_Information_Systems","query":"select t1.bio_data from students as t1 join behaviour_monitoring as t2 on t1.student_id = t2.student_id where t2.behaviour_monitoring_details in ( select behaviour_monitoring_details from behaviour_monitoring group by behaviour_monitoring_details order by count(*) desc limit 1 ) except select t1.bio_data from students as t1 join behaviour_monitoring as t2 on t1.student_id = t2.student_id where t2.behaviour_monitoring_details not in ( select behaviour_monitoring_details from behaviour_monitoring group by behaviour_monitoring_details order by count(*) desc limit 1 )","query_toks":["select","t1.bio_data","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1.student_id","=","t2.student_id","where","t2.behaviour_monitoring_details","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","1",")","except","select","t1.bio_data","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1.student_id","=","t2.student_id","where","t2.behaviour_monitoring_details","not","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","1",")"],"query_toks_no_value":["select","t1",".","bio_data","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value",")","except","select","t1",".","bio_data","from","students","as","t1","join","behaviour_monitoring","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","behaviour_monitoring_details","not","in","(","select","behaviour_monitoring_details","from","behaviour_monitoring","group","by","behaviour_monitoring_details","order","by","count","(","*",")","desc","limit","value",")"],"question":"Qual é a informação biográfica dos alunos que obtiveram o resultado mais comum para os detalhes de monitoramento de comportamento?","question_toks":["Qual","é","a","informação","biográfica","dos","alunos","que","obtiveram","o","resultado","mais","comum","para","os","detalhes","de","monitoramento","de","comportamento","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,10,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T2.event_date FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id","query_toks":["SELECT","T1.bio_data",",","T2.event_date","FROM","Students","AS","T1","JOIN","Student_Events","AS","T2","ON","T1.student_id","=","T2.student_id"],"query_toks_no_value":["select","t1",".","bio_data",",","t2",".","event_date","from","students","as","t1","join","student_events","as","t2","on","t1",".","student_id","=","t2",".","student_id"],"question":"Quais estudantes participaram de algum evento? Liste os dados biográficos dos estudantes e a data do evento.","question_toks":["Quais","estudantes","participaram","de","algum","evento","?","Liste","os","dados","biográficos","dos","estudantes","e","a","data","do","evento","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",8]],"conds":[[false,2,[0,[0,1,false],null],[0,23,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,24,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T2.event_date FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id","query_toks":["SELECT","T1.bio_data",",","T2.event_date","FROM","Students","AS","T1","JOIN","Student_Events","AS","T2","ON","T1.student_id","=","T2.student_id"],"query_toks_no_value":["select","t1",".","bio_data",",","t2",".","event_date","from","students","as","t1","join","student_events","as","t2","on","t1",".","student_id","=","t2",".","student_id"],"question":"Encontre os dados biográficos e a data do evento para os alunos que participaram de quaisquer eventos.","question_toks":["Encontre","os","dados","biográficos","e","a","data","do","evento","para","os","alunos","que","participaram","de","quaisquer","eventos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",8]],"conds":[[false,2,[0,[0,1,false],null],[0,23,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,24,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(*) , T2.event_type_code , T3.event_type_description FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id JOIN Ref_Event_Types AS T3 ON T2.event_type_code = T3.event_type_code GROUP BY T2.event_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","T2.event_type_code",",","T3.event_type_description","FROM","Students","AS","T1","JOIN","Student_Events","AS","T2","ON","T1.student_id","=","T2.student_id","JOIN","Ref_Event_Types","AS","T3","ON","T2.event_type_code","=","T3.event_type_code","GROUP","BY","T2.event_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","t2",".","event_type_code",",","t3",".","event_type_description","from","students","as","t1","join","student_events","as","t2","on","t1",".","student_id","=","t2",".","student_id","join","ref_event_types","as","t3","on","t2",".","event_type_code","=","t3",".","event_type_code","group","by","t2",".","event_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Quantos estudantes participaram do tipo de evento mais comum? Liste o número, o tipo de evento e a descrição.","question_toks":["Quantos","estudantes","participaram","do","tipo","de","evento","mais","comum","?","Liste","o","número",",","o","tipo","de","evento","e","a","descrição","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",8],["table_unit",4]],"conds":[[false,2,[0,[0,1,false],null],[0,23,false],null],"and",[false,2,[0,[0,22,false],null],[0,13,false],null]]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,22,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(*) , T2.event_type_code , T3.event_type_description FROM Students AS T1 JOIN Student_Events AS T2 ON T1.student_id = T2.student_id JOIN Ref_Event_Types AS T3 ON T2.event_type_code = T3.event_type_code GROUP BY T2.event_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","T2.event_type_code",",","T3.event_type_description","FROM","Students","AS","T1","JOIN","Student_Events","AS","T2","ON","T1.student_id","=","T2.student_id","JOIN","Ref_Event_Types","AS","T3","ON","T2.event_type_code","=","T3.event_type_code","GROUP","BY","T2.event_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","t2",".","event_type_code",",","t3",".","event_type_description","from","students","as","t1","join","student_events","as","t2","on","t1",".","student_id","=","t2",".","student_id","join","ref_event_types","as","t3","on","t2",".","event_type_code","=","t3",".","event_type_code","group","by","t2",".","event_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o tipo de evento que mais alunos participaram? Me dê o número de alunos, o código do tipo de evento e a descrição.","question_toks":["Qual","é","o","tipo","de","evento","que","mais","alunos","participaram","?","Me","dê","o","número","de","alunos",",","o","código","do","tipo","de","evento","e","a","descrição","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",8],["table_unit",4]],"conds":[[false,2,[0,[0,1,false],null],[0,23,false],null],"and",[false,2,[0,[0,22,false],null],[0,13,false],null]]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,22,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.achievement_details , T2.achievement_type_description FROM Achievements AS T1 JOIN Ref_Achievement_Type AS T2 ON T1.achievement_type_code = T2.achievement_type_code","query_toks":["SELECT","T1.achievement_details",",","T2.achievement_type_description","FROM","Achievements","AS","T1","JOIN","Ref_Achievement_Type","AS","T2","ON","T1.achievement_type_code","=","T2.achievement_type_code"],"query_toks_no_value":["select","t1",".","achievement_details",",","t2",".","achievement_type_description","from","achievements","as","t1","join","ref_achievement_type","as","t2","on","t1",".","achievement_type_code","=","t2",".","achievement_type_code"],"question":"Como todas as conquistas são descritas? Liste os detalhes da conquista e a descrição do tipo.","question_toks":["Como","todas","as","conquistas","são","descritas","?","Liste","os","detalhes","da","conquista","e","a","descrição","do","tipo","."],"sql":{"from":{"table_units":[["table_unit",14],["table_unit",5]],"conds":[[false,2,[0,[0,51,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,54,false],null]],[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.achievement_details , T2.achievement_type_description FROM Achievements AS T1 JOIN Ref_Achievement_Type AS T2 ON T1.achievement_type_code = T2.achievement_type_code","query_toks":["SELECT","T1.achievement_details",",","T2.achievement_type_description","FROM","Achievements","AS","T1","JOIN","Ref_Achievement_Type","AS","T2","ON","T1.achievement_type_code","=","T2.achievement_type_code"],"query_toks_no_value":["select","t1",".","achievement_details",",","t2",".","achievement_type_description","from","achievements","as","t1","join","ref_achievement_type","as","t2","on","t1",".","achievement_type_code","=","t2",".","achievement_type_code"],"question":"Quais são os detalhes da conquista e a descrição do tipo de cada conquista?","question_toks":["Quais","são","os","detalhes","da","conquista","e","a","descrição","do","tipo","de","cada","conquista","?"],"sql":{"from":{"table_units":[["table_unit",14],["table_unit",5]],"conds":[[false,2,[0,[0,51,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,54,false],null]],[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(DISTINCT T1.teacher_id) FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.student_id NOT IN ( SELECT student_id FROM Achievements )","query_toks":["SELECT","count","(","DISTINCT","T1.teacher_id",")","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","WHERE","T2.student_id","NOT","IN","(","SELECT","student_id","FROM","Achievements",")"],"query_toks_no_value":["select","count","(","distinct","t1",".","teacher_id",")","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","where","t2",".","student_id","not","in","(","select","student_id","from","achievements",")"],"question":"Quantos professores ensinaram um aluno que não ganhou nenhuma conquista?","question_toks":["Quantos","professores","ensinaram","um","aluno","que","não","ganhou","nenhuma","conquista","?"],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[3,[0,[0,26,true],null]]]],"where":[[true,8,[0,[0,34,false],null],{"from":{"table_units":[["table_unit",14]],"conds":[]},"select":[false,[[0,[0,[0,52,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":"cre_Students_Information_Systems","query":"SELECT count(DISTINCT T1.teacher_id) FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.student_id NOT IN ( SELECT student_id FROM Achievements )","query_toks":["SELECT","count","(","DISTINCT","T1.teacher_id",")","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","WHERE","T2.student_id","NOT","IN","(","SELECT","student_id","FROM","Achievements",")"],"query_toks_no_value":["select","count","(","distinct","t1",".","teacher_id",")","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","where","t2",".","student_id","not","in","(","select","student_id","from","achievements",")"],"question":"Conte o número de professores que ensinaram alunos que nunca ganharam uma conquista.","question_toks":["Conte","o","número","de","professores","que","ensinaram","alunos","que","nunca","ganharam","uma","conquista","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null]]},"select":[false,[[3,[0,[0,26,true],null]]]],"where":[[true,8,[0,[0,34,false],null],{"from":{"table_units":[["table_unit",14]],"conds":[]},"select":[false,[[0,[0,[0,52,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":"cre_Students_Information_Systems","query":"SELECT date_of_transcript , transcript_details FROM Transcripts","query_toks":["SELECT","date_of_transcript",",","transcript_details","FROM","Transcripts"],"query_toks_no_value":["select","date_of_transcript",",","transcript_details","from","transcripts"],"question":"Liste a data das transcrições e os detalhes da transcrição.","question_toks":["Liste","a","data","das","transcrições","e","os","detalhes","da","transcrição","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT date_of_transcript , transcript_details FROM Transcripts","query_toks":["SELECT","date_of_transcript",",","transcript_details","FROM","Transcripts"],"query_toks_no_value":["select","date_of_transcript",",","transcript_details","from","transcripts"],"question":"Quais são a data e os detalhes de cada transcrição?","question_toks":["Quais","são","a","data","e","os","detalhes","de","cada","transcrição","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT achievement_type_code , achievement_details , date_achievement FROM Achievements","query_toks":["SELECT","achievement_type_code",",","achievement_details",",","date_achievement","FROM","Achievements"],"query_toks_no_value":["select","achievement_type_code",",","achievement_details",",","date_achievement","from","achievements"],"question":"Liste o código do tipo de conquista, os detalhes da conquista e a data das conquistas.","question_toks":["Liste","o","código","do","tipo","de","conquista",",","os","detalhes","da","conquista","e","a","data","das","conquistas","."],"sql":{"from":{"table_units":[["table_unit",14]],"conds":[]},"select":[false,[[0,[0,[0,51,false],null]],[0,[0,[0,54,false],null]],[0,[0,[0,53,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT achievement_type_code , achievement_details , date_achievement FROM Achievements","query_toks":["SELECT","achievement_type_code",",","achievement_details",",","date_achievement","FROM","Achievements"],"query_toks_no_value":["select","achievement_type_code",",","achievement_details",",","date_achievement","from","achievements"],"question":"Quais são o código do tipo, os detalhes e a data de cada conquista?","question_toks":["Quais","são","o","código","do","tipo",",","os","detalhes","e","a","data","de","cada","conquista","?"],"sql":{"from":{"table_units":[["table_unit",14]],"conds":[]},"select":[false,[[0,[0,[0,51,false],null]],[0,[0,[0,54,false],null]],[0,[0,[0,53,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT datetime_detention_start , datetime_detention_end FROM Detention","query_toks":["SELECT","datetime_detention_start",",","datetime_detention_end","FROM","Detention"],"query_toks_no_value":["select","datetime_detention_start",",","datetime_detention_end","from","detention"],"question":"Mostre o horário de início e o horário de término das detenções.","question_toks":["Mostre","o","horário","de","início","e","o","horário","de","término","das","detenções","."],"sql":{"from":{"table_units":[["table_unit",13]],"conds":[]},"select":[false,[[0,[0,[0,46,false],null]],[0,[0,[0,47,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT datetime_detention_start , datetime_detention_end FROM Detention","query_toks":["SELECT","datetime_detention_start",",","datetime_detention_end","FROM","Detention"],"query_toks_no_value":["select","datetime_detention_start",",","datetime_detention_end","from","detention"],"question":"Quais são o horário de início e o horário de término de cada registro de detenção?","question_toks":["Quais","são","o","horário","de","início","e","o","horário","de","término","de","cada","registro","de","detenção","?"],"sql":{"from":{"table_units":[["table_unit",13]],"conds":[]},"select":[false,[[0,[0,[0,46,false],null]],[0,[0,[0,47,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT bio_data FROM Students WHERE student_details LIKE '%Suite%'","query_toks":["SELECT","bio_data","FROM","Students","WHERE","student_details","LIKE","'","%","Suite","%","'"],"query_toks_no_value":["select","bio_data","from","students","where","student_details","like","value"],"question":"Mostre as informações biográficas dos alunos cujos detalhes incluem a substring 'Suite'.","question_toks":["Mostre","as","informações","biográficas","dos","alunos","cujos","detalhes","incluem","a","substring","'Suite","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,3,false],null],"\"%Suite%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT bio_data FROM Students WHERE student_details LIKE '%Suite%'","query_toks":["SELECT","bio_data","FROM","Students","WHERE","student_details","LIKE","'","%","Suite","%","'"],"query_toks_no_value":["select","bio_data","from","students","where","student_details","like","value"],"question":"Quais alunos têm 'Suite' como uma substring em seus detalhes? Me dê suas informações biográficas.","question_toks":["Quais","alunos","têm","'Suite","'","como","uma","substring","em","seus","detalhes","?","Me","dê","suas","informações","biográficas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,3,false],null],"\"%Suite%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details , T3.student_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id JOIN Students AS T3 ON T2.student_id = T3.student_id","query_toks":["SELECT","T1.teacher_details",",","T3.student_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","JOIN","Students","AS","T3","ON","T2.student_id","=","T3.student_id"],"query_toks_no_value":["select","t1",".","teacher_details",",","t3",".","student_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","join","students","as","t3","on","t2",".","student_id","=","t3",".","student_id"],"question":"Liste os detalhes de todos os pares de professores e alunos que estão na mesma turma.","question_toks":["Liste","os","detalhes","de","todos","os","pares","de","professores","e","alunos","que","estão","na","mesma","turma","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11],["table_unit",0]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null],"and",[false,2,[0,[0,34,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,27,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details , T3.student_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id JOIN Students AS T3 ON T2.student_id = T3.student_id","query_toks":["SELECT","T1.teacher_details",",","T3.student_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","JOIN","Students","AS","T3","ON","T2.student_id","=","T3.student_id"],"query_toks_no_value":["select","t1",".","teacher_details",",","t3",".","student_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","join","students","as","t3","on","t2",".","student_id","=","t3",".","student_id"],"question":"Quais são os pares de professores e alunos que estão na mesma turma? Me dê os pares de seus detalhes.","question_toks":["Quais","são","os","pares","de","professores","e","alunos","que","estão","na","mesma","turma","?","Me","dê","os","pares","de","seus","detalhes","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11],["table_unit",0]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null],"and",[false,2,[0,[0,34,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,27,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(*) , teacher_id FROM Classes GROUP BY teacher_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","teacher_id","FROM","Classes","GROUP","BY","teacher_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","teacher_id","from","classes","group","by","teacher_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quantos cursos os professores ensinam no máximo? Também encontre o id do professor que ensina o maior número.","question_toks":["Quantos","cursos","os","professores","ensinam","no","máximo","?","Também","encontre","o","id","do","professor","que","ensina","o","maior","número","."],"sql":{"from":{"table_units":[["table_unit",11]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,35,false],null]]]],"where":[],"groupBy":[[0,35,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(*) , teacher_id FROM Classes GROUP BY teacher_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","teacher_id","FROM","Classes","GROUP","BY","teacher_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","teacher_id","from","classes","group","by","teacher_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual professor ensina o maior número de cursos? Me dê o id do professor e o número de cursos que ele ou ela ensina.","question_toks":["Qual","professor","ensina","o","maior","número","de","cursos","?","Me","dê","o","id","do","professor","e","o","número","de","cursos","que","ele","ou","ela","ensina","."],"sql":{"from":{"table_units":[["table_unit",11]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,35,false],null]]]],"where":[],"groupBy":[[0,35,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(*) , student_id FROM Classes GROUP BY student_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","student_id","FROM","Classes","GROUP","BY","student_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","student_id","from","classes","group","by","student_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quantos cursos os alunos fazem no máximo? Também encontre o id do aluno que faz mais cursos.","question_toks":["Quantos","cursos","os","alunos","fazem","no","máximo","?","Também","encontre","o","id","do","aluno","que","faz","mais","cursos","."],"sql":{"from":{"table_units":[["table_unit",11]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,34,false],null]]]],"where":[],"groupBy":[[0,34,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(*) , student_id FROM Classes GROUP BY student_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","count","(","*",")",",","student_id","FROM","Classes","GROUP","BY","student_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","count","(","*",")",",","student_id","from","classes","group","by","student_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual estudante está fazendo mais cursos? Me dê o id do estudante e o número de cursos que ele ou ela está fazendo.","question_toks":["Qual","estudante","está","fazendo","mais","cursos","?","Me","dê","o","id","do","estudante","e","o","número","de","cursos","que","ele","ou","ela","está","fazendo","."],"sql":{"from":{"table_units":[["table_unit",11]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,34,false],null]]]],"where":[],"groupBy":[[0,34,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.student_id , T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2","query_toks":["SELECT","T1.student_id",",","T1.student_details","FROM","Students","AS","T1","JOIN","Classes","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id","HAVING","count","(","*",")","=","2"],"query_toks_no_value":["select","t1",".","student_id",",","t1",".","student_details","from","students","as","t1","join","classes","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")","=","value"],"question":"Quais alunos fazem 2 cursos? Liste os ids dos alunos e os detalhes.","question_toks":["Quais","alunos","fazem","2","cursos","?","Liste","os","ids","dos","alunos","e","os","detalhes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",11]],"conds":[[false,2,[0,[0,1,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,2,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.student_id , T1.student_details FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2","query_toks":["SELECT","T1.student_id",",","T1.student_details","FROM","Students","AS","T1","JOIN","Classes","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id","HAVING","count","(","*",")","=","2"],"query_toks_no_value":["select","t1",".","student_id",",","t1",".","student_details","from","students","as","t1","join","classes","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id","having","count","(","*",")","=","value"],"question":"Quais são os ids e detalhes dos alunos que fazem 2 cursos?","question_toks":["Quais","são","os","ids","e","detalhes","dos","alunos","que","fazem","2","cursos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",11]],"conds":[[false,2,[0,[0,1,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,2,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","T1.detention_type_code",",","T2.detention_type_description","FROM","Detention","AS","T1","JOIN","Ref_Detention_Type","AS","T2","ON","T1.detention_type_code","=","T2.detention_type_code","GROUP","BY","T1.detention_type_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","detention_type_code",",","t2",".","detention_type_description","from","detention","as","t1","join","ref_detention_type","as","t2","on","t1",".","detention_type_code","=","t2",".","detention_type_code","group","by","t1",".","detention_type_code","order","by","count","(","*",")","asc","limit","value"],"question":"Qual é o tipo de detenção menos comum? Mostre o código do tipo e a descrição.","question_toks":["Qual","é","o","tipo","de","detenção","menos","comum","?","Mostre","o","código","do","tipo","e","a","descrição","."],"sql":{"from":{"table_units":[["table_unit",13],["table_unit",7]],"conds":[[false,2,[0,[0,44,false],null],[0,19,false],null]]},"select":[false,[[0,[0,[0,44,false],null]],[0,[0,[0,20,false],null]]]],"where":[],"groupBy":[[0,44,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.detention_type_code , T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","T1.detention_type_code",",","T2.detention_type_description","FROM","Detention","AS","T1","JOIN","Ref_Detention_Type","AS","T2","ON","T1.detention_type_code","=","T2.detention_type_code","GROUP","BY","T1.detention_type_code","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","detention_type_code",",","t2",".","detention_type_description","from","detention","as","t1","join","ref_detention_type","as","t2","on","t1",".","detention_type_code","=","t2",".","detention_type_code","group","by","t1",".","detention_type_code","order","by","count","(","*",")","asc","limit","value"],"question":"Me dê o código e a descrição do tipo de detenção menos comum.","question_toks":["Me","dê","o","código","e","a","descrição","do","tipo","de","detenção","menos","comum","."],"sql":{"from":{"table_units":[["table_unit",13],["table_unit",7]],"conds":[[false,2,[0,[0,44,false],null],[0,19,false],null]]},"select":[false,[[0,[0,[0,44,false],null]],[0,[0,[0,20,false],null]]]],"where":[],"groupBy":[[0,44,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id WHERE T2.amount_of_loan > ( SELECT avg(amount_of_loan) FROM Student_Loans )","query_toks":["SELECT","T1.bio_data",",","T1.student_details","FROM","Students","AS","T1","JOIN","Student_Loans","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.amount_of_loan",">","(","SELECT","avg","(","amount_of_loan",")","FROM","Student_Loans",")"],"query_toks_no_value":["select","t1",".","bio_data",",","t1",".","student_details","from","students","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","amount_of_loan",">","(","select","avg","(","amount_of_loan",")","from","student_loans",")"],"question":"Quais estudantes têm um empréstimo estudantil superior à média? Liste os dados biográficos dos estudantes e os detalhes.","question_toks":["Quais","estudantes","têm","um","empréstimo","estudantil","superior","à","média","?","Liste","os","dados","biográficos","dos","estudantes","e","os","detalhes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,31,false],null],{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[5,[0,[0,31,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":"cre_Students_Information_Systems","query":"SELECT T1.bio_data , T1.student_details FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id WHERE T2.amount_of_loan > ( SELECT avg(amount_of_loan) FROM Student_Loans )","query_toks":["SELECT","T1.bio_data",",","T1.student_details","FROM","Students","AS","T1","JOIN","Student_Loans","AS","T2","ON","T1.student_id","=","T2.student_id","WHERE","T2.amount_of_loan",">","(","SELECT","avg","(","amount_of_loan",")","FROM","Student_Loans",")"],"query_toks_no_value":["select","t1",".","bio_data",",","t1",".","student_details","from","students","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id","where","t2",".","amount_of_loan",">","(","select","avg","(","amount_of_loan",")","from","student_loans",")"],"question":"Encontre os dados biográficos e detalhes dos alunos cujo empréstimo estudantil está acima da quantia média.","question_toks":["Encontre","os","dados","biográficos","e","detalhes","dos","alunos","cujo","empréstimo","estudantil","está","acima","da","quantia","média","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,31,false],null],{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[5,[0,[0,31,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":"cre_Students_Information_Systems","query":"SELECT date_of_loan FROM Student_Loans ORDER BY date_of_loan ASC LIMIT 1","query_toks":["SELECT","date_of_loan","FROM","Student_Loans","ORDER","BY","date_of_loan","ASC","LIMIT","1"],"query_toks_no_value":["select","date_of_loan","from","student_loans","order","by","date_of_loan","asc","limit","value"],"question":"Qual foi a data mais antiga de empréstimo?","question_toks":["Qual","foi","a","data","mais","antiga","de","empréstimo","?"],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,30,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,30,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT date_of_loan FROM Student_Loans ORDER BY date_of_loan ASC LIMIT 1","query_toks":["SELECT","date_of_loan","FROM","Student_Loans","ORDER","BY","date_of_loan","ASC","LIMIT","1"],"query_toks_no_value":["select","date_of_loan","from","student_loans","order","by","date_of_loan","asc","limit","value"],"question":"Retorne a data mais antiga de empréstimo no registro.","question_toks":["Retorne","a","data","mais","antiga","de","empréstimo","no","registro","."],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,30,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,30,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan ASC LIMIT 1","query_toks":["SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Student_Loans","AS","T2","ON","T1.student_id","=","T2.student_id","ORDER","BY","T2.amount_of_loan","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","bio_data","from","students","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id","order","by","t2",".","amount_of_loan","asc","limit","value"],"question":"Qual estudante tem o empréstimo com o valor mínimo? Liste as informações biográficas do estudante.","question_toks":["Qual","estudante","tem","o","empréstimo","com","o","valor","mínimo","?","Liste","as","informações","biográficas","do","estudante","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,31,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan ASC LIMIT 1","query_toks":["SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Student_Loans","AS","T2","ON","T1.student_id","=","T2.student_id","ORDER","BY","T2.amount_of_loan","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","bio_data","from","students","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id","order","by","t2",".","amount_of_loan","asc","limit","value"],"question":"Encontre as informações biográficas do estudante com o menor empréstimo estudantil.","question_toks":["Encontre","as","informações","biográficas","do","estudante","com","o","menor","empréstimo","estudantil","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[[false,2,[0,[0,1,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,31,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.date_of_transcript FROM Transcripts AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan DESC LIMIT 1","query_toks":["SELECT","T1.date_of_transcript","FROM","Transcripts","AS","T1","JOIN","Student_Loans","AS","T2","ON","T1.student_id","=","T2.student_id","ORDER","BY","T2.amount_of_loan","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","date_of_transcript","from","transcripts","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id","order","by","t2",".","amount_of_loan","desc","limit","value"],"question":"Quando foi emitido o histórico escolar do aluno com empréstimo de valor máximo?","question_toks":["Quando","foi","emitido","o","histórico","escolar","do","aluno","com","empréstimo","de","valor","máximo","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",10]],"conds":[[false,2,[0,[0,5,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,31,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.date_of_transcript FROM Transcripts AS T1 JOIN Student_Loans AS T2 ON T1.student_id = T2.student_id ORDER BY T2.amount_of_loan DESC LIMIT 1","query_toks":["SELECT","T1.date_of_transcript","FROM","Transcripts","AS","T1","JOIN","Student_Loans","AS","T2","ON","T1.student_id","=","T2.student_id","ORDER","BY","T2.amount_of_loan","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","date_of_transcript","from","transcripts","as","t1","join","student_loans","as","t2","on","t1",".","student_id","=","t2",".","student_id","order","by","t2",".","amount_of_loan","desc","limit","value"],"question":"Qual é a data de emissão do histórico escolar do aluno com o maior valor de empréstimo?","question_toks":["Qual","é","a","data","de","emissão","do","histórico","escolar","do","aluno","com","o","maior","valor","de","empréstimo","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",10]],"conds":[[false,2,[0,[0,5,false],null],[0,29,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,31,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id JOIN Transcripts AS T3 ON T2.student_id = T3.student_id ORDER BY T3.date_of_transcript ASC LIMIT 1","query_toks":["SELECT","T1.teacher_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","JOIN","Transcripts","AS","T3","ON","T2.student_id","=","T3.student_id","ORDER","BY","T3.date_of_transcript","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","teacher_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","join","transcripts","as","t3","on","t2",".","student_id","=","t3",".","student_id","order","by","t3",".","date_of_transcript","asc","limit","value"],"question":"Quais professores ensinaram o aluno com a emissão de histórico escolar mais antiga? Liste os detalhes dos professores.","question_toks":["Quais","professores","ensinaram","o","aluno","com","a","emissão","de","histórico","escolar","mais","antiga","?","Liste","os","detalhes","dos","professores","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11],["table_unit",1]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null],"and",[false,2,[0,[0,34,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.teacher_details FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id = T2.teacher_id JOIN Transcripts AS T3 ON T2.student_id = T3.student_id ORDER BY T3.date_of_transcript ASC LIMIT 1","query_toks":["SELECT","T1.teacher_details","FROM","Teachers","AS","T1","JOIN","Classes","AS","T2","ON","T1.teacher_id","=","T2.teacher_id","JOIN","Transcripts","AS","T3","ON","T2.student_id","=","T3.student_id","ORDER","BY","T3.date_of_transcript","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","teacher_details","from","teachers","as","t1","join","classes","as","t2","on","t1",".","teacher_id","=","t2",".","teacher_id","join","transcripts","as","t3","on","t2",".","student_id","=","t3",".","student_id","order","by","t3",".","date_of_transcript","asc","limit","value"],"question":"Encontre os detalhes dos professores que ensinaram o aluno com a emissão de histórico escolar mais antiga.","question_toks":["Encontre","os","detalhes","dos","professores","que","ensinaram","o","aluno","com","a","emissão","de","histórico","escolar","mais","antiga","."],"sql":{"from":{"table_units":[["table_unit",9],["table_unit",11],["table_unit",1]],"conds":[[false,2,[0,[0,26,false],null],[0,35,false],null],"and",[false,2,[0,[0,34,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"select student_id , sum(amount_of_loan) from student_loans group by student_id","query_toks":["select","student_id",",","sum","(","amount_of_loan",")","from","student_loans","group","by","student_id"],"query_toks_no_value":["select","student_id",",","sum","(","amount_of_loan",")","from","student_loans","group","by","student_id"],"question":"Qual é o total de empréstimo que cada aluno tem? Liste os ids dos alunos e os valores.","question_toks":["Qual","é","o","total","de","empréstimo","que","cada","aluno","tem","?","Liste","os","ids","dos","alunos","e","os","valores","."],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]],[4,[0,[0,31,false],null]]]],"where":[],"groupBy":[[0,29,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT student_id , sum(amount_of_loan) FROM Student_Loans GROUP BY student_id","query_toks":["SELECT","student_id",",","sum","(","amount_of_loan",")","FROM","Student_Loans","GROUP","BY","student_id"],"query_toks_no_value":["select","student_id",",","sum","(","amount_of_loan",")","from","student_loans","group","by","student_id"],"question":"Para cada aluno, encontre o id do aluno e o total do valor do empréstimo que ele ou ela possui.","question_toks":["Para","cada","aluno",",","encontre","o","id","do","aluno","e","o","total","do","valor","do","empréstimo","que","ele","ou","ela","possui","."],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]],[4,[0,[0,31,false],null]]]],"where":[],"groupBy":[[0,29,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.student_id , T1.bio_data , count(*) FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id","query_toks":["SELECT","T1.student_id",",","T1.bio_data",",","count","(","*",")","FROM","Students","AS","T1","JOIN","Classes","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id"],"query_toks_no_value":["select","t1",".","student_id",",","t1",".","bio_data",",","count","(","*",")","from","students","as","t1","join","classes","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id"],"question":"Quantos cursos cada aluno faz? Liste o id do aluno, os dados biográficos do aluno e a contagem de cursos.","question_toks":["Quantos","cursos","cada","aluno","faz","?","Liste","o","id","do","aluno",",","os","dados","biográficos","do","aluno","e","a","contagem","de","cursos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",11]],"conds":[[false,2,[0,[0,1,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.student_id , T1.bio_data , count(*) FROM Students AS T1 JOIN Classes AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id","query_toks":["SELECT","T1.student_id",",","T1.bio_data",",","count","(","*",")","FROM","Students","AS","T1","JOIN","Classes","AS","T2","ON","T1.student_id","=","T2.student_id","GROUP","BY","T1.student_id"],"query_toks_no_value":["select","t1",".","student_id",",","t1",".","bio_data",",","count","(","*",")","from","students","as","t1","join","classes","as","t2","on","t1",".","student_id","=","t2",".","student_id","group","by","t1",".","student_id"],"question":"Para cada aluno, encontre o id do aluno, os dados biográficos do aluno e o número de cursos que ele ou ela está fazendo.","question_toks":["Para","cada","aluno",",","encontre","o","id","do","aluno",",","os","dados","biográficos","do","aluno","e","o","número","de","cursos","que","ele","ou","ela","está","fazendo","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",11]],"conds":[[false,2,[0,[0,1,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(DISTINCT student_id) FROM Detention","query_toks":["SELECT","count","(","DISTINCT","student_id",")","FROM","Detention"],"query_toks_no_value":["select","count","(","distinct","student_id",")","from","detention"],"question":"Quantos estudantes passaram por uma detenção?","question_toks":["Quantos","estudantes","passaram","por","uma","detenção","?"],"sql":{"from":{"table_units":[["table_unit",13]],"conds":[]},"select":[false,[[3,[0,[0,45,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT count(DISTINCT student_id) FROM Detention","query_toks":["SELECT","count","(","DISTINCT","student_id",")","FROM","Detention"],"query_toks_no_value":["select","count","(","distinct","student_id",")","from","detention"],"question":"Conte o número de alunos que têm um registro de detenção.","question_toks":["Conte","o","número","de","alunos","que","têm","um","registro","de","detenção","."],"sql":{"from":{"table_units":[["table_unit",13]],"conds":[]},"select":[false,[[3,[0,[0,45,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.address_type_code , T2.address_type_description FROM Students_Addresses AS T1 JOIN Ref_Address_Types AS T2 WHERE T1.address_type_code = T2.address_type_code GROUP BY T1.address_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.address_type_code",",","T2.address_type_description","FROM","Students_Addresses","AS","T1","JOIN","Ref_Address_Types","AS","T2","WHERE","T1.address_type_code","=","T2.address_type_code","GROUP","BY","T1.address_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","address_type_code",",","t2",".","address_type_description","from","students_addresses","as","t1","join","ref_address_types","as","t2","where","t1",".","address_type_code","=","t2",".","address_type_code","group","by","t1",".","address_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o código e a descrição do tipo de discurso de aluno mais comum?","question_toks":["Qual","é","o","código","e","a","descrição","do","tipo","de","discurso","de","aluno","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",12],["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,39,false],null]],[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,39,false],null],[0,17,false],null]],"groupBy":[[0,39,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.address_type_code , T2.address_type_description FROM Students_Addresses AS T1 JOIN Ref_Address_Types AS T2 WHERE T1.address_type_code = T2.address_type_code GROUP BY T1.address_type_code ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.address_type_code",",","T2.address_type_description","FROM","Students_Addresses","AS","T1","JOIN","Ref_Address_Types","AS","T2","WHERE","T1.address_type_code","=","T2.address_type_code","GROUP","BY","T1.address_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","address_type_code",",","t2",".","address_type_description","from","students_addresses","as","t1","join","ref_address_types","as","t2","where","t1",".","address_type_code","=","t2",".","address_type_code","group","by","t1",".","address_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o tipo de discurso de aluno mais comum? Me dê o código e a descrição do tipo de discurso de aluno.","question_toks":["Qual","é","o","tipo","de","discurso","de","aluno","mais","comum","?","Me","dê","o","código","e","a","descrição","do","tipo","de","discurso","de","aluno","."],"sql":{"from":{"table_units":[["table_unit",12],["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,39,false],null]],[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,39,false],null],[0,17,false],null]],"groupBy":[[0,39,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data FROM Students AS T1 JOIN Student_Events AS T2 WHERE T1.student_id = T2.student_id EXCEPT SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 WHERE T1.student_id = T2.student_id","query_toks":["SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Student_Events","AS","T2","WHERE","T1.student_id","=","T2.student_id","EXCEPT","SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Student_Loans","AS","T2","WHERE","T1.student_id","=","T2.student_id"],"query_toks_no_value":["select","t1",".","bio_data","from","students","as","t1","join","student_events","as","t2","where","t1",".","student_id","=","t2",".","student_id","except","select","t1",".","bio_data","from","students","as","t1","join","student_loans","as","t2","where","t1",".","student_id","=","t2",".","student_id"],"question":"Para aqueles estudantes que passaram por um evento, quais não têm um empréstimo estudantil? Liste os dados biográficos dos estudantes.","question_toks":["Para","aqueles","estudantes","que","passaram","por","um","evento",",","quais","não","têm","um","empréstimo","estudantil","?","Liste","os","dados","biográficos","dos","estudantes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",8]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],[0,29,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],[0,29,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Students_Information_Systems","query":"SELECT T1.bio_data FROM Students AS T1 JOIN Student_Events AS T2 WHERE T1.student_id = T2.student_id EXCEPT SELECT T1.bio_data FROM Students AS T1 JOIN Student_Loans AS T2 WHERE T1.student_id = T2.student_id","query_toks":["SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Student_Events","AS","T2","WHERE","T1.student_id","=","T2.student_id","EXCEPT","SELECT","T1.bio_data","FROM","Students","AS","T1","JOIN","Student_Loans","AS","T2","WHERE","T1.student_id","=","T2.student_id"],"query_toks_no_value":["select","t1",".","bio_data","from","students","as","t1","join","student_events","as","t2","where","t1",".","student_id","=","t2",".","student_id","except","select","t1",".","bio_data","from","students","as","t1","join","student_loans","as","t2","where","t1",".","student_id","=","t2",".","student_id"],"question":"Entre os estudantes que têm um registro de evento, quem não tem um empréstimo estudantil? Retorne os dados biográficos dos estudantes.","question_toks":["Entre","os","estudantes","que","têm","um","registro","de","evento",",","quem","não","tem","um","empréstimo","estudantil","?","Retorne","os","dados","biográficos","dos","estudantes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",8]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],[0,29,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],[0,29,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Students_Information_Systems","query":"SELECT date_from , date_to FROM Students_Addresses WHERE student_id IN ( SELECT student_id FROM Transcripts GROUP BY student_id HAVING count(*) = 2 )","query_toks":["SELECT","date_from",",","date_to","FROM","Students_Addresses","WHERE","student_id","IN","(","SELECT","student_id","FROM","Transcripts","GROUP","BY","student_id","HAVING","count","(","*",")","=","2",")"],"query_toks_no_value":["select","date_from",",","date_to","from","students_addresses","where","student_id","in","(","select","student_id","from","transcripts","group","by","student_id","having","count","(","*",")","=","value",")"],"question":"Liste o horário de início e o horário de término dos discursos dos alunos que têm 2 históricos escolares.","question_toks":["Liste","o","horário","de","início","e","o","horário","de","término","dos","discursos","dos","alunos","que","têm","2","históricos","escolares","."],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,41,false],null]],[0,[0,[0,42,false],null]]]],"where":[[false,8,[0,[0,40,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,2,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT date_from , date_to FROM Students_Addresses WHERE student_id IN ( SELECT student_id FROM Transcripts GROUP BY student_id HAVING count(*) = 2 )","query_toks":["SELECT","date_from",",","date_to","FROM","Students_Addresses","WHERE","student_id","IN","(","SELECT","student_id","FROM","Transcripts","GROUP","BY","student_id","HAVING","count","(","*",")","=","2",")"],"query_toks_no_value":["select","date_from",",","date_to","from","students_addresses","where","student_id","in","(","select","student_id","from","transcripts","group","by","student_id","having","count","(","*",")","=","value",")"],"question":"Quais é o horário de início e o horário de término dos discursos dos alunos que receberam 2 históricos escolares?","question_toks":["Quais","é","o","horário","de","início","e","o","horário","de","término","dos","discursos","dos","alunos","que","receberam","2","históricos","escolares","?"],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,41,false],null]],[0,[0,[0,42,false],null]]]],"where":[[false,8,[0,[0,40,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,2,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT datetime_detention_start FROM Detention","query_toks":["SELECT","datetime_detention_start","FROM","Detention"],"query_toks_no_value":["select","datetime_detention_start","from","detention"],"question":"Quando começaram todas as detenções?","question_toks":["Quando","começaram","todas","as","detenções","?"],"sql":{"from":{"table_units":[["table_unit",13]],"conds":[]},"select":[false,[[0,[0,[0,46,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Students_Information_Systems","query":"SELECT datetime_detention_start FROM Detention","query_toks":["SELECT","datetime_detention_start","FROM","Detention"],"query_toks_no_value":["select","datetime_detention_start","from","detention"],"question":"Me dê a data de início da detenção para todos os registros de detenção.","question_toks":["Me","dê","a","data","de","início","da","detenção","para","todos","os","registros","de","detenção","."],"sql":{"from":{"table_units":[["table_unit",13]],"conds":[]},"select":[false,[[0,[0,[0,46,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT name FROM Author","query_toks":["SELECT","name","FROM","Author"],"query_toks_no_value":["select","name","from","author"],"question":"Liste todos os nomes dos autores.","question_toks":["Liste","todos","os","nomes","dos","autores","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT name FROM Author","query_toks":["SELECT","name","FROM","Author"],"query_toks_no_value":["select","name","from","author"],"question":"Quais são os nomes de todos os autores?","question_toks":["Quais","são","os","nomes","de","todos","os","autores","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT name , address FROM Client","query_toks":["SELECT","name",",","address","FROM","Client"],"query_toks_no_value":["select","name",",","address","from","client"],"question":"Mostre todos os nomes dos Clientes e seus endereços.","question_toks":["Mostre","todos","os","nomes","dos","Clientes","e","seus","endereços","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT name , address FROM Client","query_toks":["SELECT","name",",","address","FROM","Client"],"query_toks_no_value":["select","name",",","address","from","client"],"question":"Quais são os nomes e endereços de todos os clientes?","question_toks":["Quais","são","os","nomes","e","endereços","de","todos","os","clientes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT title , isbn , SalePrice FROM Book","query_toks":["SELECT","title",",","isbn",",","SalePrice","FROM","Book"],"query_toks_no_value":["select","title",",","isbn",",","saleprice","from","book"],"question":"Liste todos os títulos de livros, ISBNs e preços de venda.","question_toks":["Liste","todos","os","títulos","de","livros",",","ISBNs","e","preços","de","venda","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT title , isbn , SalePrice FROM Book","query_toks":["SELECT","title",",","isbn",",","SalePrice","FROM","Book"],"query_toks_no_value":["select","title",",","isbn",",","saleprice","from","book"],"question":"Quais são os títulos, ISBNs e preços de venda de todos os livros?","question_toks":["Quais","são","os","títulos",",","ISBNs","e","preços","de","venda","de","todos","os","livros","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT count(*) FROM Book","query_toks":["SELECT","count","(","*",")","FROM","Book"],"query_toks_no_value":["select","count","(","*",")","from","book"],"question":"Quantos livros temos?","question_toks":["Quantos","livros","temos","?"],"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":"book_1","query":"SELECT count(*) FROM Book","query_toks":["SELECT","count","(","*",")","FROM","Book"],"query_toks_no_value":["select","count","(","*",")","from","book"],"question":"Conte o número de livros.","question_toks":["Conte","o","número","de","livros","."],"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":"book_1","query":"SELECT count(*) FROM Author","query_toks":["SELECT","count","(","*",")","FROM","Author"],"query_toks_no_value":["select","count","(","*",")","from","author"],"question":"Quantos autores existem?","question_toks":["Quantos","autores","existem","?"],"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":"book_1","query":"SELECT count(*) FROM Author","query_toks":["SELECT","count","(","*",")","FROM","Author"],"query_toks_no_value":["select","count","(","*",")","from","author"],"question":"Conte o número de autores.","question_toks":["Conte","o","número","de","autores","."],"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":"book_1","query":"SELECT count(*) FROM Client","query_toks":["SELECT","count","(","*",")","FROM","Client"],"query_toks_no_value":["select","count","(","*",")","from","client"],"question":"Quantos clientes existem?","question_toks":["Quantos","clientes","existem","?"],"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":"book_1","query":"SELECT count(*) FROM Client","query_toks":["SELECT","count","(","*",")","FROM","Client"],"query_toks_no_value":["select","count","(","*",")","from","client"],"question":"Retorne o número de clientes.","question_toks":["Retorne","o","número","de","clientes","."],"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":"book_1","query":"SELECT name , address FROM Client ORDER BY name","query_toks":["SELECT","name",",","address","FROM","Client","ORDER","BY","name"],"query_toks_no_value":["select","name",",","address","from","client","order","by","name"],"question":"Liste os nomes e endereços de todos os clientes em ordem alfabética pelos seus nomes.","question_toks":["Liste","os","nomes","e","endereços","de","todos","os","clientes","em","ordem","alfabética","pelos","seus","nomes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT name , address FROM Client ORDER BY name","query_toks":["SELECT","name",",","address","FROM","Client","ORDER","BY","name"],"query_toks_no_value":["select","name",",","address","from","client","order","by","name"],"question":"Quais são os nomes e endereços de todos os clientes, ordenados alfabeticamente pelo nome?","question_toks":["Quais","são","os","nomes","e","endereços","de","todos","os","clientes",",","ordenados","alfabeticamente","pelo","nome","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T3.title , T1.name FROM Author AS T1 JOIN Author_Book AS T2 ON T2.Author = T1.idAuthor JOIN Book AS T3 ON T2.isbn = T3.isbn","query_toks":["SELECT","T3.title",",","T1.name","FROM","Author","AS","T1","JOIN","Author_Book","AS","T2","ON","T2.Author","=","T1.idAuthor","JOIN","Book","AS","T3","ON","T2.isbn","=","T3.isbn"],"query_toks_no_value":["select","t3",".","title",",","t1",".","name","from","author","as","t1","join","author_book","as","t2","on","t2",".","author","=","t1",".","idauthor","join","book","as","t3","on","t2",".","isbn","=","t3",".","isbn"],"question":"Mostre todos os títulos de livros e os nomes dos autores correspondentes.","question_toks":["Mostre","todos","os","títulos","de","livros","e","os","nomes","dos","autores","correspondentes","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4],["table_unit",3]],"conds":[[false,2,[0,[0,17,false],null],[0,9,false],null],"and",[false,2,[0,[0,16,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T3.title , T1.name FROM Author AS T1 JOIN Author_Book AS T2 ON T2.Author = T1.idAuthor JOIN Book AS T3 ON T2.isbn = T3.isbn","query_toks":["SELECT","T3.title",",","T1.name","FROM","Author","AS","T1","JOIN","Author_Book","AS","T2","ON","T2.Author","=","T1.idAuthor","JOIN","Book","AS","T3","ON","T2.isbn","=","T3.isbn"],"query_toks_no_value":["select","t3",".","title",",","t1",".","name","from","author","as","t1","join","author_book","as","t2","on","t2",".","author","=","t1",".","idauthor","join","book","as","t3","on","t2",".","isbn","=","t3",".","isbn"],"question":"Quais são os nomes de todos os livros e seus autores correspondentes?","question_toks":["Quais","são","os","nomes","de","todos","os","livros","e","seus","autores","correspondentes","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4],["table_unit",3]],"conds":[[false,2,[0,[0,17,false],null],[0,9,false],null],"and",[false,2,[0,[0,16,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.idOrder , T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient","query_toks":["SELECT","T1.idOrder",",","T2.name","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient"],"query_toks_no_value":["select","t1",".","idorder",",","t2",".","name","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient"],"question":"Mostre todos os ids de pedidos e os nomes dos clientes.","question_toks":["Mostre","todos","os","ids","de","pedidos","e","os","nomes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.idOrder , T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient","query_toks":["SELECT","T1.idOrder",",","T2.name","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient"],"query_toks_no_value":["select","t1",".","idorder",",","t2",".","name","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient"],"question":"Quais são os ids de todos os pedidos e os nomes correspondentes dos clientes?","question_toks":["Quais","são","os","ids","de","todos","os","pedidos","e","os","nomes","correspondentes","dos","clientes","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.name , count(*) FROM Author AS T1 JOIN Author_Book AS T2 ON T1.idAuthor = T2.Author GROUP BY T1.idAuthor","query_toks":["SELECT","T1.name",",","count","(","*",")","FROM","Author","AS","T1","JOIN","Author_Book","AS","T2","ON","T1.idAuthor","=","T2.Author","GROUP","BY","T1.idAuthor"],"query_toks_no_value":["select","t1",".","name",",","count","(","*",")","from","author","as","t1","join","author_book","as","t2","on","t1",".","idauthor","=","t2",".","author","group","by","t1",".","idauthor"],"question":"Mostre todos os nomes dos autores e o número de livros que cada um escreveu.","question_toks":["Mostre","todos","os","nomes","dos","autores","e","o","número","de","livros","que","cada","um","escreveu","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,9,false],null],[0,17,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.name , count(*) FROM Author AS T1 JOIN Author_Book AS T2 ON T1.idAuthor = T2.Author GROUP BY T1.idAuthor","query_toks":["SELECT","T1.name",",","count","(","*",")","FROM","Author","AS","T1","JOIN","Author_Book","AS","T2","ON","T1.idAuthor","=","T2.Author","GROUP","BY","T1.idAuthor"],"query_toks_no_value":["select","t1",".","name",",","count","(","*",")","from","author","as","t1","join","author_book","as","t2","on","t1",".","idauthor","=","t2",".","author","group","by","t1",".","idauthor"],"question":"Quais são os nomes de todos os autores e quantos livros cada um escreveu?","question_toks":["Quais","são","os","nomes","de","todos","os","autores","e","quantos","livros","cada","um","escreveu","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,9,false],null],[0,17,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT isbn , count(*) FROM Books_Order GROUP BY isbn","query_toks":["SELECT","isbn",",","count","(","*",")","FROM","Books_Order","GROUP","BY","isbn"],"query_toks_no_value":["select","isbn",",","count","(","*",")","from","books_order","group","by","isbn"],"question":"Mostre todos os isbns dos livros e o número de pedidos para cada um.","question_toks":["Mostre","todos","os","isbns","dos","livros","e","o","número","de","pedidos","para","cada","um","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT isbn , count(*) FROM Books_Order GROUP BY isbn","query_toks":["SELECT","isbn",",","count","(","*",")","FROM","Books_Order","GROUP","BY","isbn"],"query_toks_no_value":["select","isbn",",","count","(","*",")","from","books_order","group","by","isbn"],"question":"Quais são todos os isbns de cada livro e quantas vezes cada um foi pedido?","question_toks":["Quais","são","todos","os","isbns","de","cada","livro","e","quantas","vezes","cada","um","foi","pedido","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT isbn , sum(amount) FROM Books_Order GROUP BY isbn","query_toks":["SELECT","isbn",",","sum","(","amount",")","FROM","Books_Order","GROUP","BY","isbn"],"query_toks_no_value":["select","isbn",",","sum","(","amount",")","from","books_order","group","by","isbn"],"question":"Mostre todos os isbns dos livros e o total de pedidos para cada um.","question_toks":["Mostre","todos","os","isbns","dos","livros","e","o","total","de","pedidos","para","cada","um","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[4,[0,[0,20,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT isbn , sum(amount) FROM Books_Order GROUP BY isbn","query_toks":["SELECT","isbn",",","sum","(","amount",")","FROM","Books_Order","GROUP","BY","isbn"],"query_toks_no_value":["select","isbn",",","sum","(","amount",")","from","books_order","group","by","isbn"],"question":"Quais são os isbns de todos os livros e qual é o total de pedidos para cada um?","question_toks":["Quais","são","os","isbns","de","todos","os","livros","e","qual","é","o","total","de","pedidos","para","cada","um","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[4,[0,[0,20,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.title FROM Books_Order AS T1 JOIN Book AS T2 ON T1.isbn = T2.isbn GROUP BY T1.isbn ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.title","FROM","Books_Order","AS","T1","JOIN","Book","AS","T2","ON","T1.isbn","=","T2.isbn","GROUP","BY","T1.isbn","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title","from","books_order","as","t1","join","book","as","t2","on","t1",".","isbn","=","t2",".","isbn","group","by","t1",".","isbn","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre o título do livro correspondente ao livro com o maior número de pedidos.","question_toks":["Mostre","o","título","do","livro","correspondente","ao","livro","com","o","maior","número","de","pedidos","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.title FROM Books_Order AS T1 JOIN Book AS T2 ON T1.isbn = T2.isbn GROUP BY T1.isbn ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.title","FROM","Books_Order","AS","T1","JOIN","Book","AS","T2","ON","T1.isbn","=","T2.isbn","GROUP","BY","T1.isbn","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title","from","books_order","as","t1","join","book","as","t2","on","t1",".","isbn","=","t2",".","isbn","group","by","t1",".","isbn","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o título do livro que foi pedido o maior número de vezes?","question_toks":["Qual","é","o","título","do","livro","que","foi","pedido","o","maior","número","de","vezes","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.title , T2.PurchasePrice FROM Books_Order AS T1 JOIN BOOk AS T2 ON T1.isbn = T2.isbn GROUP BY T1.isbn ORDER BY sum(amount) DESC LIMIT 1","query_toks":["SELECT","T2.title",",","T2.PurchasePrice","FROM","Books_Order","AS","T1","JOIN","BOOk","AS","T2","ON","T1.isbn","=","T2.isbn","GROUP","BY","T1.isbn","ORDER","BY","sum","(","amount",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title",",","t2",".","purchaseprice","from","books_order","as","t1","join","book","as","t2","on","t1",".","isbn","=","t2",".","isbn","group","by","t1",".","isbn","order","by","sum","(","amount",")","desc","limit","value"],"question":"Mostre o título do livro e o preço de compra do livro que teve a maior quantidade de pedidos.","question_toks":["Mostre","o","título","do","livro","e","o","preço","de","compra","do","livro","que","teve","a","maior","quantidade","de","pedidos","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["desc",[[0,[4,20,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.title , T2.PurchasePrice FROM Books_Order AS T1 JOIN BOOk AS T2 ON T1.isbn = T2.isbn GROUP BY T1.isbn ORDER BY sum(amount) DESC LIMIT 1","query_toks":["SELECT","T2.title",",","T2.PurchasePrice","FROM","Books_Order","AS","T1","JOIN","BOOk","AS","T2","ON","T1.isbn","=","T2.isbn","GROUP","BY","T1.isbn","ORDER","BY","sum","(","amount",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title",",","t2",".","purchaseprice","from","books_order","as","t1","join","book","as","t2","on","t1",".","isbn","=","t2",".","isbn","group","by","t1",".","isbn","order","by","sum","(","amount",")","desc","limit","value"],"question":"Qual é o título e o preço de compra do livro que tem o maior valor total de pedidos?","question_toks":["Qual","é","o","título","e","o","preço","de","compra","do","livro","que","tem","o","maior","valor","total","de","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["desc",[[0,[4,20,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT DISTINCT T1.title FROM book AS T1 JOIN books_order AS T2 ON T1.isbn = T2.isbn","query_toks":["SELECT","DISTINCT","T1.title","FROM","book","AS","T1","JOIN","books_order","AS","T2","ON","T1.isbn","=","T2.isbn"],"query_toks_no_value":["select","distinct","t1",".","title","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn"],"question":"Mostre os títulos dos livros que foram pedidos.","question_toks":["Mostre","os","títulos","dos","livros","que","foram","pedidos","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[true,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT DISTINCT T1.title FROM book AS T1 JOIN books_order AS T2 ON T1.isbn = T2.isbn","query_toks":["SELECT","DISTINCT","T1.title","FROM","book","AS","T1","JOIN","books_order","AS","T2","ON","T1.isbn","=","T2.isbn"],"query_toks_no_value":["select","distinct","t1",".","title","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn"],"question":"Quais são os diferentes títulos de livros que foram pedidos no passado?","question_toks":["Quais","são","os","diferentes","títulos","de","livros","que","foram","pedidos","no","passado","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[true,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT DISTINCT T1.name FROM Client AS T1 JOIN Orders AS T2 ON T1.idClient = T2.idClient","query_toks":["SELECT","DISTINCT","T1.name","FROM","Client","AS","T1","JOIN","Orders","AS","T2","ON","T1.idClient","=","T2.idClient"],"query_toks_no_value":["select","distinct","t1",".","name","from","client","as","t1","join","orders","as","t2","on","t1",".","idclient","=","t2",".","idclient"],"question":"Mostre os nomes dos clientes que fizeram pelo menos um pedido.","question_toks":["Mostre","os","nomes","dos","clientes","que","fizeram","pelo","menos","um","pedido","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT DISTINCT T1.name FROM Client AS T1 JOIN Orders AS T2 ON T1.idClient = T2.idClient","query_toks":["SELECT","DISTINCT","T1.name","FROM","Client","AS","T1","JOIN","Orders","AS","T2","ON","T1.idClient","=","T2.idClient"],"query_toks_no_value":["select","distinct","t1",".","name","from","client","as","t1","join","orders","as","t2","on","t1",".","idclient","=","t2",".","idclient"],"question":"Quais são os nomes dos diferentes clientes que fizeram um pedido?","question_toks":["Quais","são","os","nomes","dos","diferentes","clientes","que","fizeram","um","pedido","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name , count(*) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient GROUP BY T1.idClient","query_toks":["SELECT","T2.name",",","count","(","*",")","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","GROUP","BY","T1.idClient"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","group","by","t1",".","idclient"],"question":"Mostre todos os nomes dos clientes e o número de pedidos que cada um fez.","question_toks":["Mostre","todos","os","nomes","dos","clientes","e","o","número","de","pedidos","que","cada","um","fez","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name , count(*) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient GROUP BY T1.idClient","query_toks":["SELECT","T2.name",",","count","(","*",")","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","GROUP","BY","T1.idClient"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","group","by","t1",".","idclient"],"question":"Quais são os nomes de todos os clientes e quantas vezes cada um deles fez um pedido?","question_toks":["Quais","são","os","nomes","de","todos","os","clientes","e","quantas","vezes","cada","um","deles","fez","um","pedido","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient GROUP BY T1.idClient ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","GROUP","BY","T1.idClient","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","group","by","t1",".","idclient","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do cliente com o maior número de pedidos?","question_toks":["Qual","é","o","nome","do","cliente","com","o","maior","número","de","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient GROUP BY T1.idClient ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","GROUP","BY","T1.idClient","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","group","by","t1",".","idclient","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o nome do cliente que fez mais pedidos.","question_toks":["Dê","o","nome","do","cliente","que","fez","mais","pedidos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name , sum(T3.amount) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient JOIN Books_Order AS T3 ON T3.idOrder = T1.idOrder GROUP BY T1.idClient","query_toks":["SELECT","T2.name",",","sum","(","T3.amount",")","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","JOIN","Books_Order","AS","T3","ON","T3.idOrder","=","T1.idOrder","GROUP","BY","T1.idClient"],"query_toks_no_value":["select","t2",".","name",",","sum","(","t3",".","amount",")","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","join","books_order","as","t3","on","t3",".","idorder","=","t1",".","idorder","group","by","t1",".","idclient"],"question":"Mostre os nomes dos clientes e seus totais de livros pedidos.","question_toks":["Mostre","os","nomes","dos","clientes","e","seus","totais","de","livros","pedidos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,19,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[4,[0,[0,20,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name , sum(T3.amount) FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient JOIN Books_Order AS T3 ON T3.idOrder = T1.idOrder GROUP BY T1.idClient","query_toks":["SELECT","T2.name",",","sum","(","T3.amount",")","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","JOIN","Books_Order","AS","T3","ON","T3.idOrder","=","T1.idOrder","GROUP","BY","T1.idClient"],"query_toks_no_value":["select","t2",".","name",",","sum","(","t3",".","amount",")","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","join","books_order","as","t3","on","t3",".","idorder","=","t1",".","idorder","group","by","t1",".","idclient"],"question":"Quais são os nomes de todos os clientes e o total de livros pedidos por cada um?","question_toks":["Quais","são","os","nomes","de","todos","os","clientes","e","o","total","de","livros","pedidos","por","cada","um","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,19,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[4,[0,[0,20,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient JOIN Books_Order AS T3 ON T3.idOrder = T1.idOrder GROUP BY T1.idClient ORDER BY sum(T3.amount) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","JOIN","Books_Order","AS","T3","ON","T3.idOrder","=","T1.idOrder","GROUP","BY","T1.idClient","ORDER","BY","sum","(","T3.amount",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","join","books_order","as","t3","on","t3",".","idorder","=","t1",".","idorder","group","by","t1",".","idclient","order","by","sum","(","t3",".","amount",")","desc","limit","value"],"question":"Mostre o nome do cliente que tem o maior total de livros pedidos.","question_toks":["Mostre","o","nome","do","cliente","que","tem","o","maior","total","de","livros","pedidos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,19,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[4,20,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.name FROM Orders AS T1 JOIN Client AS T2 ON T1.idClient = T2.idClient JOIN Books_Order AS T3 ON T3.idOrder = T1.idOrder GROUP BY T1.idClient ORDER BY sum(T3.amount) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","Orders","AS","T1","JOIN","Client","AS","T2","ON","T1.idClient","=","T2.idClient","JOIN","Books_Order","AS","T3","ON","T3.idOrder","=","T1.idOrder","GROUP","BY","T1.idClient","ORDER","BY","sum","(","T3.amount",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","orders","as","t1","join","client","as","t2","on","t1",".","idclient","=","t2",".","idclient","join","books_order","as","t3","on","t3",".","idorder","=","t1",".","idorder","group","by","t1",".","idclient","order","by","sum","(","t3",".","amount",")","desc","limit","value"],"question":"Qual é o nome do cliente que pediu a maior quantidade total de livros?","question_toks":["Qual","é","o","nome","do","cliente","que","pediu","a","maior","quantidade","total","de","livros","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",5]],"conds":[[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,19,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[4,20,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT title FROM book EXCEPT SELECT T1.title FROM book AS T1 JOIN books_order AS T2 ON T1.isbn = T2.isbn","query_toks":["SELECT","title","FROM","book","EXCEPT","SELECT","T1.title","FROM","book","AS","T1","JOIN","books_order","AS","T2","ON","T1.isbn","=","T2.isbn"],"query_toks_no_value":["select","title","from","book","except","select","t1",".","title","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn"],"question":"Mostre todos os títulos de livros que não têm pedidos.","question_toks":["Mostre","todos","os","títulos","de","livros","que","não","têm","pedidos","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_1","query":"SELECT title FROM book EXCEPT SELECT T1.title FROM book AS T1 JOIN books_order AS T2 ON T1.isbn = T2.isbn","query_toks":["SELECT","title","FROM","book","EXCEPT","SELECT","T1.title","FROM","book","AS","T1","JOIN","books_order","AS","T2","ON","T1.isbn","=","T2.isbn"],"query_toks_no_value":["select","title","from","book","except","select","t1",".","title","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn"],"question":"Quais são os títulos dos livros que nunca foram pedidos?","question_toks":["Quais","são","os","títulos","dos","livros","que","nunca","foram","pedidos","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_1","query":"SELECT name FROM Client EXCEPT SELECT T1.name FROM Client AS T1 JOIN Orders AS T2 ON T1.idClient = T2.idClient","query_toks":["SELECT","name","FROM","Client","EXCEPT","SELECT","T1.name","FROM","Client","AS","T1","JOIN","Orders","AS","T2","ON","T1.idClient","=","T2.idClient"],"query_toks_no_value":["select","name","from","client","except","select","t1",".","name","from","client","as","t1","join","orders","as","t2","on","t1",".","idclient","=","t2",".","idclient"],"question":"Mostre todos os nomes dos clientes que não fizeram pedidos.","question_toks":["Mostre","todos","os","nomes","dos","clientes","que","não","fizeram","pedidos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_1","query":"SELECT name FROM Client EXCEPT SELECT T1.name FROM Client AS T1 JOIN Orders AS T2 ON T1.idClient = T2.idClient","query_toks":["SELECT","name","FROM","Client","EXCEPT","SELECT","T1.name","FROM","Client","AS","T1","JOIN","Orders","AS","T2","ON","T1.idClient","=","T2.idClient"],"query_toks_no_value":["select","name","from","client","except","select","t1",".","name","from","client","as","t1","join","orders","as","t2","on","t1",".","idclient","=","t2",".","idclient"],"question":"Quais são os nomes dos clientes que nunca fizeram um pedido?","question_toks":["Quais","são","os","nomes","dos","clientes","que","nunca","fizeram","um","pedido","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_1","query":"SELECT max(saleprice) , min(saleprice) FROM Book","query_toks":["SELECT","max","(","saleprice",")",",","min","(","saleprice",")","FROM","Book"],"query_toks_no_value":["select","max","(","saleprice",")",",","min","(","saleprice",")","from","book"],"question":"Qual é o preço de venda máximo e o preço de venda mínimo?","question_toks":["Qual","é","o","preço","de","venda","máximo","e","o","preço","de","venda","mínimo","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[1,[0,[0,15,false],null]],[2,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT max(saleprice) , min(saleprice) FROM Book","query_toks":["SELECT","max","(","saleprice",")",",","min","(","saleprice",")","FROM","Book"],"query_toks_no_value":["select","max","(","saleprice",")",",","min","(","saleprice",")","from","book"],"question":"Dê o preço de venda máximo e mínimo dos livros.","question_toks":["Dê","o","preço","de","venda","máximo","e","mínimo","dos","livros","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[1,[0,[0,15,false],null]],[2,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT avg(purchaseprice) , avg(saleprice) FROM Book","query_toks":["SELECT","avg","(","purchaseprice",")",",","avg","(","saleprice",")","FROM","Book"],"query_toks_no_value":["select","avg","(","purchaseprice",")",",","avg","(","saleprice",")","from","book"],"question":"Qual é o preço médio de compra e o preço médio de venda?","question_toks":["Qual","é","o","preço","médio","de","compra","e","o","preço","médio","de","venda","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[5,[0,[0,14,false],null]],[5,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT avg(purchaseprice) , avg(saleprice) FROM Book","query_toks":["SELECT","avg","(","purchaseprice",")",",","avg","(","saleprice",")","FROM","Book"],"query_toks_no_value":["select","avg","(","purchaseprice",")",",","avg","(","saleprice",")","from","book"],"question":"Dê o preço médio de compra e o preço médio de venda dos livros.","question_toks":["Dê","o","preço","médio","de","compra","e","o","preço","médio","de","venda","dos","livros","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[5,[0,[0,14,false],null]],[5,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT max(saleprice - purchaseprice) FROM Book","query_toks":["SELECT","max","(","saleprice","-","purchaseprice",")","FROM","Book"],"query_toks_no_value":["select","max","(","saleprice","-","purchaseprice",")","from","book"],"question":"Qual é a diferença máxima entre o preço de venda e o preço de compra?","question_toks":["Qual","é","a","diferença","máxima","entre","o","preço","de","venda","e","o","preço","de","compra","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[1,[1,[0,15,false],[0,14,false]]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT max(saleprice - purchaseprice) FROM Book","query_toks":["SELECT","max","(","saleprice","-","purchaseprice",")","FROM","Book"],"query_toks_no_value":["select","max","(","saleprice","-","purchaseprice",")","from","book"],"question":"Retorne a maior diferença entre o preço de venda e o preço de compra.","question_toks":["Retorne","a","maior","diferença","entre","o","preço","de","venda","e","o","preço","de","compra","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[1,[1,[0,15,false],[0,14,false]]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT title FROM book WHERE saleprice > (SELECT avg(saleprice) FROM book)","query_toks":["SELECT","title","FROM","book","WHERE","saleprice",">","(","SELECT","avg","(","saleprice",")","FROM","book",")"],"query_toks_no_value":["select","title","from","book","where","saleprice",">","(","select","avg","(","saleprice",")","from","book",")"],"question":"Liste todos os títulos de livros que têm preços de venda superiores à média.","question_toks":["Liste","todos","os","títulos","de","livros","que","têm","preços","de","venda","superiores","à","média","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,3,[0,[0,15,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[5,[0,[0,15,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":"book_1","query":"SELECT title FROM book WHERE saleprice > (SELECT avg(saleprice) FROM book)","query_toks":["SELECT","title","FROM","book","WHERE","saleprice",">","(","SELECT","avg","(","saleprice",")","FROM","book",")"],"query_toks_no_value":["select","title","from","book","where","saleprice",">","(","select","avg","(","saleprice",")","from","book",")"],"question":"Quais são os títulos dos livros com preços de venda acima do preço médio de venda de todos os livros?","question_toks":["Quais","são","os","títulos","dos","livros","com","preços","de","venda","acima","do","preço","médio","de","venda","de","todos","os","livros","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,3,[0,[0,15,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[5,[0,[0,15,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":"book_1","query":"select title from book order by saleprice asc limit 1","query_toks":["select","title","from","book","order","by","saleprice","asc","limit","1"],"query_toks_no_value":["select","title","from","book","order","by","saleprice","asc","limit","value"],"question":"Liste todos os títulos de livros que têm o menor preço de venda.","question_toks":["Liste","todos","os","títulos","de","livros","que","têm","o","menor","preço","de","venda","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"select title from book order by saleprice asc limit 1","query_toks":["select","title","from","book","order","by","saleprice","asc","limit","1"],"query_toks_no_value":["select","title","from","book","order","by","saleprice","asc","limit","value"],"question":"Quais são os títulos dos livros que têm um preço de venda igual ao menor preço de venda entre todos os livros?","question_toks":["Quais","são","os","títulos","dos","livros","que","têm","um","preço","de","venda","igual","ao","menor","preço","de","venda","entre","todos","os","livros","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"select title from book order by purchaseprice desc limit 1","query_toks":["select","title","from","book","order","by","purchaseprice","desc","limit","1"],"query_toks_no_value":["select","title","from","book","order","by","purchaseprice","desc","limit","value"],"question":"Liste todos os títulos de livros que têm os maiores preços de compra.","question_toks":["Liste","todos","os","títulos","de","livros","que","têm","os","maiores","preços","de","compra","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"select title from book order by purchaseprice desc limit 1","query_toks":["select","title","from","book","order","by","purchaseprice","desc","limit","1"],"query_toks_no_value":["select","title","from","book","order","by","purchaseprice","desc","limit","value"],"question":"Quais são os títulos dos livros com o maior preço de compra entre todos os livros?","question_toks":["Quais","são","os","títulos","dos","livros","com","o","maior","preço","de","compra","entre","todos","os","livros","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT avg(saleprice) FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"George Orwell\"","query_toks":["SELECT","avg","(","saleprice",")","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","George","Orwell","''"],"query_toks_no_value":["select","avg","(","saleprice",")","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value"],"question":"Qual é o preço médio de venda dos livros escritos por George Orwell?","question_toks":["Qual","é","o","preço","médio","de","venda","dos","livros","escritos","por","George","Orwell","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[5,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"George Orwell\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT avg(saleprice) FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"George Orwell\"","query_toks":["SELECT","avg","(","saleprice",")","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","George","Orwell","''"],"query_toks_no_value":["select","avg","(","saleprice",")","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value"],"question":"Dê o preço médio de venda dos livros escritos por George Orwell.","question_toks":["Dê","o","preço","médio","de","venda","dos","livros","escritos","por","George","Orwell","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[5,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"George Orwell\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT saleprice FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"Plato\"","query_toks":["SELECT","saleprice","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","Plato","''"],"query_toks_no_value":["select","saleprice","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value"],"question":"Quais são os preços de venda dos livros escritos por Plato?","question_toks":["Quais","são","os","preços","de","venda","dos","livros","escritos","por","Plato","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Plato\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT saleprice FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"Plato\"","query_toks":["SELECT","saleprice","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","Plato","''"],"query_toks_no_value":["select","saleprice","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value"],"question":"Retorne os preços de venda dos livros escritos por Plato.","question_toks":["Retorne","os","preços","de","venda","dos","livros","escritos","por","Plato","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Plato\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"George Orwell\" ORDER BY T1.saleprice LIMIT 1","query_toks":["SELECT","T1.title","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","George","Orwell","''","ORDER","BY","T1.saleprice","LIMIT","1"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value","order","by","t1",".","saleprice","limit","value"],"question":"Qual é o título do livro escrito por George Orwell que tem o menor preço de venda?","question_toks":["Qual","é","o","título","do","livro","escrito","por","George","Orwell","que","tem","o","menor","preço","de","venda","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"George Orwell\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"George Orwell\" ORDER BY T1.saleprice LIMIT 1","query_toks":["SELECT","T1.title","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","George","Orwell","''","ORDER","BY","T1.saleprice","LIMIT","1"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value","order","by","t1",".","saleprice","limit","value"],"question":"Dê o título do livro de George Orwell que tem o menor preço de venda.","question_toks":["Dê","o","título","do","livro","de","George","Orwell","que","tem","o","menor","preço","de","venda","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"George Orwell\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"Plato\" AND T1.saleprice < (SELECT avg(saleprice) FROM Book)","query_toks":["SELECT","T1.title","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","Plato","''","AND","T1.saleprice","<","(","SELECT","avg","(","saleprice",")","FROM","Book",")"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value","and","t1",".","saleprice","<","(","select","avg","(","saleprice",")","from","book",")"],"question":"Qual é o título do livro escrito por Plato que tem preço inferior à média de preço de venda de todos os livros?","question_toks":["Qual","é","o","título","do","livro","escrito","por","Plato","que","tem","preço","inferior","à","média","de","preço","de","venda","de","todos","os","livros","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Plato\"",null],"and",[false,4,[0,[0,15,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[5,[0,[0,15,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":"book_1","query":"SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name = \"Plato\" AND T1.saleprice < (SELECT avg(saleprice) FROM Book)","query_toks":["SELECT","T1.title","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","=","``","Plato","''","AND","T1.saleprice","<","(","SELECT","avg","(","saleprice",")","FROM","Book",")"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","=","value","and","t1",".","saleprice","<","(","select","avg","(","saleprice",")","from","book",")"],"question":"Dê os títulos dos livros escritos por Plato que têm um preço de venda inferior à média dos preços de venda de todos os livros.","question_toks":["Dê","os","títulos","dos","livros","escritos","por","Plato","que","têm","um","preço","de","venda","inferior","à","média","dos","preços","de","venda","de","todos","os","livros","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Plato\"",null],"and",[false,4,[0,[0,15,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[5,[0,[0,15,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":"book_1","query":"SELECT T3.name FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T1.title = \"Pride and Prejudice\"","query_toks":["SELECT","T3.name","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T1.title","=","``","Pride","and","Prejudice","''"],"query_toks_no_value":["select","t3",".","name","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t1",".","title","=","value"],"question":"Quem é o autor do livro \"Pride and Prejudice\"?","question_toks":["Quem","é","o","autor","do","livro","``","Pride","and","Prejudice","''","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T3.name FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T1.title = \"Pride and Prejudice\"","query_toks":["SELECT","T3.name","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T1.title","=","``","Pride","and","Prejudice","''"],"query_toks_no_value":["select","t3",".","name","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t1",".","title","=","value"],"question":"Dê o nome do autor que escreveu o livro intitulado Pride and Prejudice.","question_toks":["Dê","o","nome","do","autor","que","escreveu","o","livro","intitulado","Pride","and","Prejudice","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name LIKE \"%Plato%\"","query_toks":["SELECT","T1.title","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","LIKE","``","%","Plato","%","''"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","like","value"],"question":"Liste os títulos de todos os livros publicados por um autor cujo nome contém a string 'Plato'?","question_toks":["Liste","os","títulos","de","todos","os","livros","publicados","por","um","autor","cujo","nome","contém","a","string","'Plato","'","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,10,false],null],"\"%Plato%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T1.title FROM Book AS T1 JOIN Author_book AS T2 ON T1.isbn = T2.isbn JOIN Author AS T3 ON T2.Author = T3.idAuthor WHERE T3.name LIKE \"%Plato%\"","query_toks":["SELECT","T1.title","FROM","Book","AS","T1","JOIN","Author_book","AS","T2","ON","T1.isbn","=","T2.isbn","JOIN","Author","AS","T3","ON","T2.Author","=","T3.idAuthor","WHERE","T3.name","LIKE","``","%","Plato","%","''"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","author_book","as","t2","on","t1",".","isbn","=","t2",".","isbn","join","author","as","t3","on","t2",".","author","=","t3",".","idauthor","where","t3",".","name","like","value"],"question":"Quais são os títulos de todos os livros escritos por um autor com um nome que contém Plato?","question_toks":["Quais","são","os","títulos","de","todos","os","livros","escritos","por","um","autor","com","um","nome","que","contém","Plato","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,10,false],null],"\"%Plato%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT count(*) FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = \"Pride and Prejudice\"","query_toks":["SELECT","count","(","*",")","FROM","Book","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.isbn","=","T2.isbn","WHERE","T1.title","=","``","Pride","and","Prejudice","''"],"query_toks_no_value":["select","count","(","*",")","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn","where","t1",".","title","=","value"],"question":"Conte quantos pedidos temos para \"Pride and Prejudice\".","question_toks":["Conte","quantos","pedidos","temos","para","``","Pride","and","Prejudice","''","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT count(*) FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = \"Pride and Prejudice\"","query_toks":["SELECT","count","(","*",")","FROM","Book","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.isbn","=","T2.isbn","WHERE","T1.title","=","``","Pride","and","Prejudice","''"],"query_toks_no_value":["select","count","(","*",")","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn","where","t1",".","title","=","value"],"question":"Retorne o número de pedidos recebidos para Pride and Prejudice.","question_toks":["Retorne","o","número","de","pedidos","recebidos","para","Pride","and","Prejudice","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = \"Pride and Prejudice\" INTERSECT SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = \"The Little Prince\"","query_toks":["SELECT","idOrder","FROM","Book","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.isbn","=","T2.isbn","WHERE","T1.title","=","``","Pride","and","Prejudice","''","INTERSECT","SELECT","idOrder","FROM","Book","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.isbn","=","T2.isbn","WHERE","T1.title","=","``","The","Little","Prince","''"],"query_toks_no_value":["select","idorder","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn","where","t1",".","title","=","value","intersect","select","idorder","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn","where","t1",".","title","=","value"],"question":"Mostre os ids dos pedidos que incluem tanto \"Pride and Prejudice\" quanto \"The Little Prince\".","question_toks":["Mostre","os","ids","dos","pedidos","que","incluem","tanto","``","Pride","and","Prejudice","''","quanto","``","The","Little","Prince","''","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"The Little Prince\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_1","query":"SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = \"Pride and Prejudice\" INTERSECT SELECT idOrder FROM Book AS T1 JOIN Books_Order AS T2 ON T1.isbn = T2.isbn WHERE T1.title = \"The Little Prince\"","query_toks":["SELECT","idOrder","FROM","Book","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.isbn","=","T2.isbn","WHERE","T1.title","=","``","Pride","and","Prejudice","''","INTERSECT","SELECT","idOrder","FROM","Book","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.isbn","=","T2.isbn","WHERE","T1.title","=","``","The","Little","Prince","''"],"query_toks_no_value":["select","idorder","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn","where","t1",".","title","=","value","intersect","select","idorder","from","book","as","t1","join","books_order","as","t2","on","t1",".","isbn","=","t2",".","isbn","where","t1",".","title","=","value"],"question":"Quais são os ids dos pedidos que incluem tanto Pride and Prejudice quanto The Little Prince?","question_toks":["Quais","são","os","ids","dos","pedidos","que","incluem","tanto","Pride","and","Prejudice","quanto","The","Little","Prince","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"The Little Prince\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient WHERE T3.name = \"Peter Doe\" INTERSECT SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient WHERE T3.name = \"James Smith\"","query_toks":["SELECT","T2.isbn","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","WHERE","T3.name","=","``","Peter","Doe","''","INTERSECT","SELECT","T2.isbn","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","WHERE","T3.name","=","``","James","Smith","''"],"query_toks_no_value":["select","t2",".","isbn","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","where","t3",".","name","=","value","intersect","select","t2",".","isbn","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","where","t3",".","name","=","value"],"question":"Mostre todos os isbns dos livros que foram pedidos tanto pelo cliente Peter Doe quanto pelo cliente James Smith.","question_toks":["Mostre","todos","os","isbns","dos","livros","que","foram","pedidos","tanto","pelo","cliente","Peter","Doe","quanto","pelo","cliente","James","Smith","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Peter Doe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"James Smith\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient WHERE T3.name = \"Peter Doe\" INTERSECT SELECT T2.isbn FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient WHERE T3.name = \"James Smith\"","query_toks":["SELECT","T2.isbn","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","WHERE","T3.name","=","``","Peter","Doe","''","INTERSECT","SELECT","T2.isbn","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","WHERE","T3.name","=","``","James","Smith","''"],"query_toks_no_value":["select","t2",".","isbn","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","where","t3",".","name","=","value","intersect","select","t2",".","isbn","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","where","t3",".","name","=","value"],"question":"Quais são os isbns dos livros pedidos por ambos os clientes chamados Peter Doe e James Smith?","question_toks":["Quais","são","os","isbns","dos","livros","pedidos","por","ambos","os","clientes","chamados","Peter","Doe","e","James","Smith","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Peter Doe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"James Smith\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T4.title FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient JOIN book AS T4 ON T2.ISBN = T4.isbn WHERE T3.name = \"Peter Doe\" EXCEPT SELECT T4.title FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient JOIN book AS T4 ON T2.ISBN = T4.isbn WHERE T3.name = \"James Smith\"","query_toks":["SELECT","T4.title","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","JOIN","book","AS","T4","ON","T2.ISBN","=","T4.isbn","WHERE","T3.name","=","``","Peter","Doe","''","EXCEPT","SELECT","T4.title","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","JOIN","book","AS","T4","ON","T2.ISBN","=","T4.isbn","WHERE","T3.name","=","``","James","Smith","''"],"query_toks_no_value":["select","t4",".","title","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","join","book","as","t4","on","t2",".","isbn","=","t4",".","isbn","where","t3",".","name","=","value","except","select","t4",".","title","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","join","book","as","t4","on","t2",".","isbn","=","t4",".","isbn","where","t3",".","name","=","value"],"question":"Encontre o título dos livros que foram pedidos pelo cliente Peter Doe, mas não pelo cliente James Smith.","question_toks":["Encontre","o","título","dos","livros","que","foram","pedidos","pelo","cliente","Peter","Doe",",","mas","não","pelo","cliente","James","Smith","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Peter Doe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"James Smith\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_1","query":"SELECT T4.title FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient JOIN book AS T4 ON T2.ISBN = T4.isbn WHERE T3.name = \"Peter Doe\" EXCEPT SELECT T4.title FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient JOIN book AS T4 ON T2.ISBN = T4.isbn WHERE T3.name = \"James Smith\"","query_toks":["SELECT","T4.title","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","JOIN","book","AS","T4","ON","T2.ISBN","=","T4.isbn","WHERE","T3.name","=","``","Peter","Doe","''","EXCEPT","SELECT","T4.title","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","JOIN","book","AS","T4","ON","T2.ISBN","=","T4.isbn","WHERE","T3.name","=","``","James","Smith","''"],"query_toks_no_value":["select","t4",".","title","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","join","book","as","t4","on","t2",".","isbn","=","t4",".","isbn","where","t3",".","name","=","value","except","select","t4",".","title","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","join","book","as","t4","on","t2",".","isbn","=","t4",".","isbn","where","t3",".","name","=","value"],"question":"Quais são os títulos dos livros que o cliente Peter Doe pediu, mas o cliente James Smith não?","question_toks":["Quais","são","os","títulos","dos","livros","que","o","cliente","Peter","Doe","pediu",",","mas","o","cliente","James","Smith","não","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Peter Doe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"James Smith\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_1","query":"SELECT T3.name FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient JOIN Book AS T4 ON T4.isbn = T2.isbn WHERE T4.title = \"Pride and Prejudice\"","query_toks":["SELECT","T3.name","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","JOIN","Book","AS","T4","ON","T4.isbn","=","T2.isbn","WHERE","T4.title","=","``","Pride","and","Prejudice","''"],"query_toks_no_value":["select","t3",".","name","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","join","book","as","t4","on","t4",".","isbn","=","t2",".","isbn","where","t4",".","title","=","value"],"question":"Mostre todos os nomes dos clientes que têm pedidos para \"Pride and Prejudice\".","question_toks":["Mostre","todos","os","nomes","dos","clientes","que","têm","pedidos","para","``","Pride","and","Prejudice","''","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_1","query":"SELECT T3.name FROM Orders AS T1 JOIN Books_Order AS T2 ON T1.idOrder = T2.idOrder JOIN Client AS T3 ON T1.idClient = T3.idClient JOIN Book AS T4 ON T4.isbn = T2.isbn WHERE T4.title = \"Pride and Prejudice\"","query_toks":["SELECT","T3.name","FROM","Orders","AS","T1","JOIN","Books_Order","AS","T2","ON","T1.idOrder","=","T2.idOrder","JOIN","Client","AS","T3","ON","T1.idClient","=","T3.idClient","JOIN","Book","AS","T4","ON","T4.isbn","=","T2.isbn","WHERE","T4.title","=","``","Pride","and","Prejudice","''"],"query_toks_no_value":["select","t3",".","name","from","orders","as","t1","join","books_order","as","t2","on","t1",".","idorder","=","t2",".","idorder","join","client","as","t3","on","t1",".","idclient","=","t3",".","idclient","join","book","as","t4","on","t4",".","isbn","=","t2",".","isbn","where","t4",".","title","=","value"],"question":"Quais são os nomes dos clientes que encomendaram Pride and Prejudice?","question_toks":["Quais","são","os","nomes","dos","clientes","que","encomendaram","Pride","and","Prejudice","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",5],["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,5,false],null],[0,19,false],null],"and",[false,2,[0,[0,6,false],null],[0,1,false],null],"and",[false,2,[0,[0,11,false],null],[0,18,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Pride and Prejudice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT count(*) FROM book","query_toks":["SELECT","count","(","*",")","FROM","book"],"query_toks_no_value":["select","count","(","*",")","from","book"],"question":"Quantos livros existem?","question_toks":["Quantos","livros","existem","?"],"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":"book_review","query":"SELECT Title FROM book ORDER BY Title ASC","query_toks":["SELECT","Title","FROM","book","ORDER","BY","Title","ASC"],"query_toks_no_value":["select","title","from","book","order","by","title","asc"],"question":"Liste os títulos dos livros em ordem alfabética ascendente.","question_toks":["Liste","os","títulos","dos","livros","em","ordem","alfabética","ascendente","."],"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":"book_review","query":"SELECT Title FROM book ORDER BY Pages DESC","query_toks":["SELECT","Title","FROM","book","ORDER","BY","Pages","DESC"],"query_toks_no_value":["select","title","from","book","order","by","pages","desc"],"question":"Liste os títulos dos livros em ordem decrescente de páginas.","question_toks":["Liste","os","títulos","dos","livros","em","ordem","decrescente","de","páginas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT TYPE , Release FROM book","query_toks":["SELECT","TYPE",",","Release","FROM","book"],"query_toks_no_value":["select","type",",","release","from","book"],"question":"Quais são os tipos e as datas de lançamento dos livros?","question_toks":["Quais","são","os","tipos","e","as","datas","de","lançamento","dos","livros","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT max(Chapters) , min(Chapters) FROM book","query_toks":["SELECT","max","(","Chapters",")",",","min","(","Chapters",")","FROM","book"],"query_toks_no_value":["select","max","(","chapters",")",",","min","(","chapters",")","from","book"],"question":"Quais são o número máximo e mínimo de capítulos para cada livro?","question_toks":["Quais","são","o","número","máximo","e","mínimo","de","capítulos","para","cada","livro","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,5,false],null]],[2,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT Title FROM book WHERE TYPE != \"Poet\"","query_toks":["SELECT","Title","FROM","book","WHERE","TYPE","!","=","``","Poet","''"],"query_toks_no_value":["select","title","from","book","where","type","!","=","value"],"question":"Quais são os títulos dos livros que não são \"Poet\"?","question_toks":["Quais","são","os","títulos","dos","livros","que","não","são","``","Poet","''","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,7,[0,[0,3,false],null],"\"Poet\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT avg(Rating) FROM review","query_toks":["SELECT","avg","(","Rating",")","FROM","review"],"query_toks_no_value":["select","avg","(","rating",")","from","review"],"question":"Qual é a classificação média nas avaliações?","question_toks":["Qual","é","a","classificação","média","nas","avaliações","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT T1.Title , T2.Rating FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID","query_toks":["SELECT","T1.Title",",","T2.Rating","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID"],"query_toks_no_value":["select","t1",".","title",",","t2",".","rating","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id"],"question":"Quais são os títulos e as classificações dos livros?","question_toks":["Quais","são","os","títulos","e","as","classificações","dos","livros","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT T2.Rating FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T1.Chapters DESC LIMIT 1","query_toks":["SELECT","T2.Rating","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID","ORDER","BY","T1.Chapters","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","rating","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id","order","by","t1",".","chapters","desc","limit","value"],"question":"Qual é a classificação do livro com o maior número de capítulos?","question_toks":["Qual","é","a","classificação","do","livro","com","o","maior","número","de","capítulos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,5,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT T2.Rank FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T1.Pages ASC LIMIT 1","query_toks":["SELECT","T2.Rank","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID","ORDER","BY","T1.Pages","ASC","LIMIT","1"],"query_toks_no_value":["select","t2",".","rank","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id","order","by","t1",".","pages","asc","limit","value"],"question":"Qual é a classificação do livro com o menor número de páginas?","question_toks":["Qual","é","a","classificação","do","livro","com","o","menor","número","de","páginas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT T1.Title FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Rank LIMIT 1","query_toks":["SELECT","T1.Title","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID","ORDER","BY","T2.Rank","LIMIT","1"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id","order","by","t2",".","rank","limit","value"],"question":"Qual é o título do livro com a maior classificação na resenha?","question_toks":["Qual","é","o","título","do","livro","com","a","maior","classificação","na","resenha","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT avg(T2.Readers_in_Million) FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID WHERE T1.Type = \"Novel\"","query_toks":["SELECT","avg","(","T2.Readers_in_Million",")","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID","WHERE","T1.Type","=","``","Novel","''"],"query_toks_no_value":["select","avg","(","t2",".","readers_in_million",")","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id","where","t1",".","type","=","value"],"question":"Qual é a média do número de leitores para livros do tipo \"Novel\"?","question_toks":["Qual","é","a","média","do","número","de","leitores","para","livros","do","tipo","``","Novel","''","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Novel\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT TYPE , COUNT(*) FROM book GROUP BY TYPE","query_toks":["SELECT","TYPE",",","COUNT","(","*",")","FROM","book","GROUP","BY","TYPE"],"query_toks_no_value":["select","type",",","count","(","*",")","from","book","group","by","type"],"question":"Para cada tipo de livro, retorne o tipo e o número de livros desse tipo.","question_toks":["Para","cada","tipo","de","livro",",","retorne","o","tipo","e","o","número","de","livros","desse","tipo","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT TYPE FROM book GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","TYPE","FROM","book","GROUP","BY","TYPE","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","type","from","book","group","by","type","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o tipo mais comum de livros?","question_toks":["Qual","é","o","tipo","mais","comum","de","livros","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT TYPE FROM book GROUP BY TYPE HAVING COUNT(*) >= 3","query_toks":["SELECT","TYPE","FROM","book","GROUP","BY","TYPE","HAVING","COUNT","(","*",")",">","=","3"],"query_toks_no_value":["select","type","from","book","group","by","type","having","count","(","*",")",">","=","value"],"question":"Quais são os tipos de livros que têm pelo menos três livros pertencentes a eles?","question_toks":["Quais","são","os","tipos","de","livros","que","têm","pelo","menos","três","livros","pertencentes","a","eles","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT T1.Title FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Rating ASC","query_toks":["SELECT","T1.Title","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID","ORDER","BY","T2.Rating","ASC"],"query_toks_no_value":["select","t1",".","title","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id","order","by","t2",".","rating","asc"],"question":"Liste os títulos dos livros em ordem crescente das avaliações na resenha.","question_toks":["Liste","os","títulos","dos","livros","em","ordem","crescente","das","avaliações","na","resenha","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,10,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT T1.Title , T1.audio FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Readers_in_Million DESC","query_toks":["SELECT","T1.Title",",","T1.audio","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID","ORDER","BY","T2.Readers_in_Million","DESC"],"query_toks_no_value":["select","t1",".","title",",","t1",".","audio","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id","order","by","t2",".","readers_in_million","desc"],"question":"Liste o título e a duração do áudio de todos os livros em ordem decrescente do número de leitores.","question_toks":["Liste","o","título","e","a","duração","do","áudio","de","todos","os","livros","em","ordem","decrescente","do","número","de","leitores","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT count(*) FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM review)","query_toks":["SELECT","count","(","*",")","FROM","book","WHERE","Book_ID","NOT","IN","(","SELECT","Book_ID","FROM","review",")"],"query_toks_no_value":["select","count","(","*",")","from","book","where","book_id","not","in","(","select","book_id","from","review",")"],"question":"Conte quantos livros não têm resenhas.","question_toks":["Conte","quantos","livros","não","têm","resenhas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT TYPE FROM book WHERE Chapters > 75 INTERSECT SELECT TYPE FROM book WHERE Chapters < 50","query_toks":["SELECT","TYPE","FROM","book","WHERE","Chapters",">","75","INTERSECT","SELECT","TYPE","FROM","book","WHERE","Chapters","<","50"],"query_toks_no_value":["select","type","from","book","where","chapters",">","value","intersect","select","type","from","book","where","chapters","<","value"],"question":"Mostre os tipos de livros que têm tanto livros com mais de 75 capítulos quanto livros com menos de 50 capítulos.","question_toks":["Mostre","os","tipos","de","livros","que","têm","tanto","livros","com","mais","de","75","capítulos","quanto","livros","com","menos","de","50","capítulos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,5,false],null],75.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,4,[0,[0,5,false],null],50.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_review","query":"SELECT count(DISTINCT TYPE) FROM book","query_toks":["SELECT","count","(","DISTINCT","TYPE",")","FROM","book"],"query_toks_no_value":["select","count","(","distinct","type",")","from","book"],"question":"Quantos tipos distintos de livros existem?","question_toks":["Quantos","tipos","distintos","de","livros","existem","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,3,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_review","query":"SELECT TYPE , title FROM book EXCEPT SELECT T1.type , T1.title FROM book AS T1 JOIN review AS T2 ON T1.Book_ID = T2.Book_ID;","query_toks":["SELECT","TYPE",",","title","FROM","book","EXCEPT","SELECT","T1.type",",","T1.title","FROM","book","AS","T1","JOIN","review","AS","T2","ON","T1.Book_ID","=","T2.Book_ID",";"],"query_toks_no_value":["select","type",",","title","from","book","except","select","t1",".","type",",","t1",".","title","from","book","as","t1","join","review","as","t2","on","t1",".","book_id","=","t2",".","book_id"],"question":"Quais são o tipo e o título dos livros que não foram avaliados?","question_toks":["Quais","são","o","tipo","e","o","título","dos","livros","que","não","foram","avaliados","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,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,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"restaurant_bills","query":"SELECT count(*) FROM customer","query_toks":["SELECT","count","(","*",")","FROM","customer"],"query_toks_no_value":["select","count","(","*",")","from","customer"],"question":"Conte quantos clientes existem.","question_toks":["Conte","quantos","clientes","existem","."],"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":"restaurant_bills","query":"SELECT count(*) FROM customer","query_toks":["SELECT","count","(","*",")","FROM","customer"],"query_toks_no_value":["select","count","(","*",")","from","customer"],"question":"Conte o número de clientes.","question_toks":["Conte","o","número","de","clientes","."],"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":"restaurant_bills","query":"SELECT Name FROM customer ORDER BY Level_of_Membership ASC","query_toks":["SELECT","Name","FROM","customer","ORDER","BY","Level_of_Membership","ASC"],"query_toks_no_value":["select","name","from","customer","order","by","level_of_membership","asc"],"question":"Liste os nomes dos clientes em ordem ascendente de nível de afiliação.","question_toks":["Liste","os","nomes","dos","clientes","em","ordem","ascendente","de","nível","de","afiliação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Name FROM customer ORDER BY Level_of_Membership ASC","query_toks":["SELECT","Name","FROM","customer","ORDER","BY","Level_of_Membership","ASC"],"query_toks_no_value":["select","name","from","customer","order","by","level_of_membership","asc"],"question":"Ordene todos os clientes pelo nível de afiliação em ordem crescente e retorne os nomes dos clientes.","question_toks":["Ordene","todos","os","clientes","pelo","nível","de","afiliação","em","ordem","crescente","e","retorne","os","nomes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality , Card_Credit FROM customer","query_toks":["SELECT","Nationality",",","Card_Credit","FROM","customer"],"query_toks_no_value":["select","nationality",",","card_credit","from","customer"],"question":"Quais são as nacionalidades e os créditos de cartão dos clientes?","question_toks":["Quais","são","as","nacionalidades","e","os","créditos","de","cartão","dos","clientes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality , Card_Credit FROM customer","query_toks":["SELECT","Nationality",",","Card_Credit","FROM","customer"],"query_toks_no_value":["select","nationality",",","card_credit","from","customer"],"question":"Encontre a nacionalidade e o cartão de crédito de cada cliente.","question_toks":["Encontre","a","nacionalidade","e","o","cartão","de","crédito","de","cada","cliente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Name FROM customer WHERE Nationality = \"England\" OR Nationality = \"Australia\"","query_toks":["SELECT","Name","FROM","customer","WHERE","Nationality","=","``","England","''","OR","Nationality","=","``","Australia","''"],"query_toks_no_value":["select","name","from","customer","where","nationality","=","value","or","nationality","=","value"],"question":"Mostre os nomes dos clientes com nacionalidade \"England\" ou \"Australia\".","question_toks":["Mostre","os","nomes","dos","clientes","com","nacionalidade","``","England","''","ou","``","Australia","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"England\"",null],"or",[false,2,[0,[0,3,false],null],"\"Australia\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Name FROM customer WHERE Nationality = \"England\" OR Nationality = \"Australia\"","query_toks":["SELECT","Name","FROM","customer","WHERE","Nationality","=","``","England","''","OR","Nationality","=","``","Australia","''"],"query_toks_no_value":["select","name","from","customer","where","nationality","=","value","or","nationality","=","value"],"question":"Quais clientes têm nacionalidade \"England\" ou \"Australia\"? Me dê seus nomes.","question_toks":["Quais","clientes","têm","nacionalidade","``","England","''","ou","``","Australia","''","?","Me","dê","seus","nomes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"England\"",null],"or",[false,2,[0,[0,3,false],null],"\"Australia\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT avg(Card_Credit) FROM customer WHERE Level_of_Membership > 1","query_toks":["SELECT","avg","(","Card_Credit",")","FROM","customer","WHERE","Level_of_Membership",">","1"],"query_toks_no_value":["select","avg","(","card_credit",")","from","customer","where","level_of_membership",">","value"],"question":"Qual é a média de crédito do cartão dos clientes com nível de afiliação superior a 1?","question_toks":["Qual","é","a","média","de","crédito","do","cartão","dos","clientes","com","nível","de","afiliação","superior","a","1","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,5,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT avg(Card_Credit) FROM customer WHERE Level_of_Membership > 1","query_toks":["SELECT","avg","(","Card_Credit",")","FROM","customer","WHERE","Level_of_Membership",">","1"],"query_toks_no_value":["select","avg","(","card_credit",")","from","customer","where","level_of_membership",">","value"],"question":"Encontre a média do crédito do cartão dos clientes cujo nível de afiliação é superior a 1.","question_toks":["Encontre","a","média","do","crédito","do","cartão","dos","clientes","cujo","nível","de","afiliação","é","superior","a","1","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,5,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Card_Credit FROM customer ORDER BY Level_of_Membership DESC LIMIT 1","query_toks":["SELECT","Card_Credit","FROM","customer","ORDER","BY","Level_of_Membership","DESC","LIMIT","1"],"query_toks_no_value":["select","card_credit","from","customer","order","by","level_of_membership","desc","limit","value"],"question":"Qual é o crédito do cartão do cliente com o nível de afiliação mais alto?","question_toks":["Qual","é","o","crédito","do","cartão","do","cliente","com","o","nível","de","afiliação","mais","alto","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,5,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Card_Credit FROM customer ORDER BY Level_of_Membership DESC LIMIT 1","query_toks":["SELECT","Card_Credit","FROM","customer","ORDER","BY","Level_of_Membership","DESC","LIMIT","1"],"query_toks_no_value":["select","card_credit","from","customer","order","by","level_of_membership","desc","limit","value"],"question":"Encontre o cliente com o nível de afiliação mais alto e retorne o crédito do cartão dele ou dela.","question_toks":["Encontre","o","cliente","com","o","nível","de","afiliação","mais","alto","e","retorne","o","crédito","do","cartão","dele","ou","dela","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,5,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality , COUNT(*) FROM customer GROUP BY Nationality","query_toks":["SELECT","Nationality",",","COUNT","(","*",")","FROM","customer","GROUP","BY","Nationality"],"query_toks_no_value":["select","nationality",",","count","(","*",")","from","customer","group","by","nationality"],"question":"Mostre as diferentes nacionalidades dos clientes, junto com o número de clientes de cada nacionalidade.","question_toks":["Mostre","as","diferentes","nacionalidades","dos","clientes",",","junto","com","o","número","de","clientes","de","cada","nacionalidade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality , COUNT(*) FROM customer GROUP BY Nationality","query_toks":["SELECT","Nationality",",","COUNT","(","*",")","FROM","customer","GROUP","BY","Nationality"],"query_toks_no_value":["select","nationality",",","count","(","*",")","from","customer","group","by","nationality"],"question":"Quantos clientes estão associados a cada nacionalidade? Liste a nacionalidade e o número de clientes.","question_toks":["Quantos","clientes","estão","associados","a","cada","nacionalidade","?","Liste","a","nacionalidade","e","o","número","de","clientes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality FROM customer GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Nationality","FROM","customer","GROUP","BY","Nationality","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","nationality","from","customer","group","by","nationality","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre a nacionalidade mais comum dos clientes.","question_toks":["Mostre","a","nacionalidade","mais","comum","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality FROM customer GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Nationality","FROM","customer","GROUP","BY","Nationality","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","nationality","from","customer","group","by","nationality","order","by","count","(","*",")","desc","limit","value"],"question":"Qual nacionalidade tem o maior número de clientes?","question_toks":["Qual","nacionalidade","tem","o","maior","número","de","clientes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality FROM customer WHERE Card_Credit < 50 INTERSECT SELECT Nationality FROM customer WHERE Card_Credit > 75","query_toks":["SELECT","Nationality","FROM","customer","WHERE","Card_Credit","<","50","INTERSECT","SELECT","Nationality","FROM","customer","WHERE","Card_Credit",">","75"],"query_toks_no_value":["select","nationality","from","customer","where","card_credit","<","value","intersect","select","nationality","from","customer","where","card_credit",">","value"],"question":"Mostre as nações que têm tanto clientes com crédito de cartão menor que 50 quanto clientes com crédito de cartão maior que 75.","question_toks":["Mostre","as","nações","que","têm","tanto","clientes","com","crédito","de","cartão","menor","que","50","quanto","clientes","com","crédito","de","cartão","maior","que","75","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,4,[0,[0,4,false],null],50.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],75.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT Nationality FROM customer WHERE Card_Credit < 50 INTERSECT SELECT Nationality FROM customer WHERE Card_Credit > 75","query_toks":["SELECT","Nationality","FROM","customer","WHERE","Card_Credit","<","50","INTERSECT","SELECT","Nationality","FROM","customer","WHERE","Card_Credit",">","75"],"query_toks_no_value":["select","nationality","from","customer","where","card_credit","<","value","intersect","select","nationality","from","customer","where","card_credit",">","value"],"question":"Quais nações têm clientes com crédito de cartão acima de 50 e clientes com crédito de cartão abaixo de 75?","question_toks":["Quais","nações","têm","clientes","com","crédito","de","cartão","acima","de","50","e","clientes","com","crédito","de","cartão","abaixo","de","75","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,4,[0,[0,4,false],null],50.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],75.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT T1.Name , T2.Dish_Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID = T2.Customer_ID","query_toks":["SELECT","T1.Name",",","T2.Dish_Name","FROM","customer","AS","T1","JOIN","customer_order","AS","T2","ON","T1.Customer_ID","=","T2.Customer_ID"],"query_toks_no_value":["select","t1",".","name",",","t2",".","dish_name","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id"],"question":"Mostre os nomes dos clientes e os nomes dos pratos que eles pedem.","question_toks":["Mostre","os","nomes","dos","clientes","e","os","nomes","dos","pratos","que","eles","pedem","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT T1.Name , T2.Dish_Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID = T2.Customer_ID","query_toks":["SELECT","T1.Name",",","T2.Dish_Name","FROM","customer","AS","T1","JOIN","customer_order","AS","T2","ON","T1.Customer_ID","=","T2.Customer_ID"],"query_toks_no_value":["select","t1",".","name",",","t2",".","dish_name","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id"],"question":"Para cada pedido, retorne o nome do cliente e o nome do prato.","question_toks":["Para","cada","pedido",",","retorne","o","nome","do","cliente","e","o","nome","do","prato","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT T1.Name , T2.Dish_Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID = T2.Customer_ID ORDER BY T2.Quantity DESC","query_toks":["SELECT","T1.Name",",","T2.Dish_Name","FROM","customer","AS","T1","JOIN","customer_order","AS","T2","ON","T1.Customer_ID","=","T2.Customer_ID","ORDER","BY","T2.Quantity","DESC"],"query_toks_no_value":["select","t1",".","name",",","t2",".","dish_name","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","order","by","t2",".","quantity","desc"],"question":"Mostre os nomes dos clientes e os nomes dos pratos que eles pedem, em ordem decrescente da quantidade do prato.","question_toks":["Mostre","os","nomes","dos","clientes","e","os","nomes","dos","pratos","que","eles","pedem",",","em","ordem","decrescente","da","quantidade","do","prato","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,13,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT T1.Name , T2.Dish_Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID = T2.Customer_ID ORDER BY T2.Quantity DESC","query_toks":["SELECT","T1.Name",",","T2.Dish_Name","FROM","customer","AS","T1","JOIN","customer_order","AS","T2","ON","T1.Customer_ID","=","T2.Customer_ID","ORDER","BY","T2.Quantity","DESC"],"query_toks_no_value":["select","t1",".","name",",","t2",".","dish_name","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","order","by","t2",".","quantity","desc"],"question":"Para cada pedido, encontre o nome do cliente e o nome do prato. Ordene o resultado em ordem decrescente da quantidade do prato.","question_toks":["Para","cada","pedido",",","encontre","o","nome","do","cliente","e","o","nome","do","prato",".","Ordene","o","resultado","em","ordem","decrescente","da","quantidade","do","prato","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,13,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT T1.Name , sum(T2.Quantity) FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Name","query_toks":["SELECT","T1.Name",",","sum","(","T2.Quantity",")","FROM","customer","AS","T1","JOIN","customer_order","AS","T2","ON","T1.Customer_ID","=","T2.Customer_ID","GROUP","BY","T1.Name"],"query_toks_no_value":["select","t1",".","name",",","sum","(","t2",".","quantity",")","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","name"],"question":"Mostre o nome de cada cliente e as quantidades totais de pratos pedidos por esse cliente.","question_toks":["Mostre","o","nome","de","cada","cliente","e","as","quantidades","totais","de","pratos","pedidos","por","esse","cliente","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[4,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"select t1.name , sum(t2.quantity) from customer as t1 join customer_order as t2 on t1.customer_id = t2.customer_id group by t1.name","query_toks":["select","t1.name",",","sum","(","t2.quantity",")","from","customer","as","t1","join","customer_order","as","t2","on","t1.customer_id","=","t2.customer_id","group","by","t1.name"],"query_toks_no_value":["select","t1",".","name",",","sum","(","t2",".","quantity",")","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","name"],"question":"Qual é a quantidade total de pratos pedidos por cada cliente? Liste o nome do cliente e a quantidade total.","question_toks":["Qual","é","a","quantidade","total","de","pratos","pedidos","por","cada","cliente","?","Liste","o","nome","do","cliente","e","a","quantidade","total","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[4,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT T1.Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Name HAVING sum(T2.Quantity) > 1","query_toks":["SELECT","T1.Name","FROM","customer","AS","T1","JOIN","customer_order","AS","T2","ON","T1.Customer_ID","=","T2.Customer_ID","GROUP","BY","T1.Name","HAVING","sum","(","T2.Quantity",")",">","1"],"query_toks_no_value":["select","t1",".","name","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","name","having","sum","(","t2",".","quantity",")",">","value"],"question":"Mostre os clientes com a quantidade total de pedidos maior que 1.","question_toks":["Mostre","os","clientes","com","a","quantidade","total","de","pedidos","maior","que","1","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,3,[0,[4,13,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT T1.Name FROM customer AS T1 JOIN customer_order AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Name HAVING sum(T2.Quantity) > 1","query_toks":["SELECT","T1.Name","FROM","customer","AS","T1","JOIN","customer_order","AS","T2","ON","T1.Customer_ID","=","T2.Customer_ID","GROUP","BY","T1.Name","HAVING","sum","(","T2.Quantity",")",">","1"],"query_toks_no_value":["select","t1",".","name","from","customer","as","t1","join","customer_order","as","t2","on","t1",".","customer_id","=","t2",".","customer_id","group","by","t1",".","name","having","sum","(","t2",".","quantity",")",">","value"],"question":"Quais clientes têm a quantidade total de pedidos maior que 1? Me dê os nomes dos clientes.","question_toks":["Quais","clientes","têm","a","quantidade","total","de","pedidos","maior","que","1","?","Me","dê","os","nomes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,3,[0,[4,13,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT DISTINCT Manager FROM branch","query_toks":["SELECT","DISTINCT","Manager","FROM","branch"],"query_toks_no_value":["select","distinct","manager","from","branch"],"question":"Mostre os gerentes distintos das filiais.","question_toks":["Mostre","os","gerentes","distintos","das","filiais","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT DISTINCT Manager FROM branch","query_toks":["SELECT","DISTINCT","Manager","FROM","branch"],"query_toks_no_value":["select","distinct","manager","from","branch"],"question":"Quem são os gerentes distintos das filiais?","question_toks":["Quem","são","os","gerentes","distintos","das","filiais","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"restaurant_bills","query":"SELECT name FROM customer WHERE Customer_ID NOT IN (SELECT Customer_ID FROM customer_order)","query_toks":["SELECT","name","FROM","customer","WHERE","Customer_ID","NOT","IN","(","SELECT","Customer_ID","FROM","customer_order",")"],"query_toks_no_value":["select","name","from","customer","where","customer_id","not","in","(","select","customer_id","from","customer_order",")"],"question":"Liste os nomes dos clientes que não têm nenhum pedido.","question_toks":["Liste","os","nomes","dos","clientes","que","não","têm","nenhum","pedido","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,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":"restaurant_bills","query":"SELECT name FROM customer WHERE Customer_ID NOT IN (SELECT Customer_ID FROM customer_order)","query_toks":["SELECT","name","FROM","customer","WHERE","Customer_ID","NOT","IN","(","SELECT","Customer_ID","FROM","customer_order",")"],"query_toks_no_value":["select","name","from","customer","where","customer_id","not","in","(","select","customer_id","from","customer_order",")"],"question":"Quais clientes não têm nenhum pedido? Me dê os nomes dos clientes.","question_toks":["Quais","clientes","não","têm","nenhum","pedido","?","Me","dê","os","nomes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,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":"club_leader","query":"SELECT count(*) FROM member","query_toks":["SELECT","count","(","*",")","FROM","member"],"query_toks_no_value":["select","count","(","*",")","from","member"],"question":"Quantos membros existem?","question_toks":["Quantos","membros","existem","?"],"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":"club_leader","query":"SELECT Name FROM member ORDER BY Age ASC","query_toks":["SELECT","Name","FROM","member","ORDER","BY","Age","ASC"],"query_toks_no_value":["select","name","from","member","order","by","age","asc"],"question":"Liste os nomes dos membros em ordem crescente de idade.","question_toks":["Liste","os","nomes","dos","membros","em","ordem","crescente","de","idade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT Name , Nationality FROM member","query_toks":["SELECT","Name",",","Nationality","FROM","member"],"query_toks_no_value":["select","name",",","nationality","from","member"],"question":"Quais são os nomes e nacionalidades dos membros?","question_toks":["Quais","são","os","nomes","e","nacionalidades","dos","membros","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"select name from member where nationality != \"england\"","query_toks":["select","name","from","member","where","nationality","!=","\"england\""],"query_toks_no_value":["select","name","from","member","where","nationality","!","=","value"],"question":"Liste os nomes dos membros cuja nacionalidade não é \"England\".","question_toks":["Liste","os","nomes","dos","membros","cuja","nacionalidade","não","é","``","England","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,7,[0,[0,3,false],null],"\"england\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT Name FROM member WHERE Age = 19 OR Age = 20","query_toks":["SELECT","Name","FROM","member","WHERE","Age","=","19","OR","Age","=","20"],"query_toks_no_value":["select","name","from","member","where","age","=","value","or","age","=","value"],"question":"Mostre os nomes dos membros cuja idade é 19 ou 20.","question_toks":["Mostre","os","nomes","dos","membros","cuja","idade","é","19","ou","20","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,4,false],null],19.0,null],"or",[false,2,[0,[0,4,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT Name FROM member ORDER BY Age DESC LIMIT 1","query_toks":["SELECT","Name","FROM","member","ORDER","BY","Age","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","member","order","by","age","desc","limit","value"],"question":"Qual é o nome do membro mais velho?","question_toks":["Qual","é","o","nome","do","membro","mais","velho","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT Nationality , COUNT(*) FROM member GROUP BY Nationality","query_toks":["SELECT","Nationality",",","COUNT","(","*",")","FROM","member","GROUP","BY","Nationality"],"query_toks_no_value":["select","nationality",",","count","(","*",")","from","member","group","by","nationality"],"question":"Mostre as diferentes nacionalidades junto com o número de membros de cada nacionalidade.","question_toks":["Mostre","as","diferentes","nacionalidades","junto","com","o","número","de","membros","de","cada","nacionalidade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT Nationality , COUNT(*) FROM member GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Nationality",",","COUNT","(","*",")","FROM","member","GROUP","BY","Nationality","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","nationality",",","count","(","*",")","from","member","group","by","nationality","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre a nacionalidade mais comum dos membros.","question_toks":["Mostre","a","nacionalidade","mais","comum","dos","membros","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT Nationality FROM member GROUP BY Nationality HAVING COUNT(*) >= 2","query_toks":["SELECT","Nationality","FROM","member","GROUP","BY","Nationality","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","nationality","from","member","group","by","nationality","having","count","(","*",")",">","=","value"],"question":"Mostre as nações que têm pelo menos dois membros.","question_toks":["Mostre","as","nações","que","têm","pelo","menos","dois","membros","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT T3.Name , T2.Club_Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID = T2.Club_ID JOIN member AS T3 ON T1.Member_ID = T3.Member_ID","query_toks":["SELECT","T3.Name",",","T2.Club_Name","FROM","club_leader","AS","T1","JOIN","club","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","JOIN","member","AS","T3","ON","T1.Member_ID","=","T3.Member_ID"],"query_toks_no_value":["select","t3",".","name",",","t2",".","club_name","from","club_leader","as","t1","join","club","as","t2","on","t1",".","club_id","=","t2",".","club_id","join","member","as","t3","on","t1",".","member_id","=","t3",".","member_id"],"question":"Mostre os nomes dos líderes de clube e os nomes dos clubes que eles se juntaram.","question_toks":["Mostre","os","nomes","dos","líderes","de","clube","e","os","nomes","dos","clubes","que","eles","se","juntaram","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,5,false],null],"and",[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT T3.Name , T2.Club_Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID = T2.Club_ID JOIN member AS T3 ON T1.Member_ID = T3.Member_ID WHERE T2.Overall_Ranking < 100","query_toks":["SELECT","T3.Name",",","T2.Club_Name","FROM","club_leader","AS","T1","JOIN","club","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","JOIN","member","AS","T3","ON","T1.Member_ID","=","T3.Member_ID","WHERE","T2.Overall_Ranking","<","100"],"query_toks_no_value":["select","t3",".","name",",","t2",".","club_name","from","club_leader","as","t1","join","club","as","t2","on","t1",".","club_id","=","t2",".","club_id","join","member","as","t3","on","t1",".","member_id","=","t3",".","member_id","where","t2",".","overall_ranking","<","value"],"question":"Mostre os nomes dos líderes de clubes com classificação geral superior a 100.","question_toks":["Mostre","os","nomes","dos","líderes","de","clubes","com","classificação","geral","superior","a","100","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,5,false],null],"and",[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,8,false],null]]]],"where":[[false,4,[0,[0,6,false],null],100.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT T3.Name , T2.Club_Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID = T2.Club_ID JOIN member AS T3 ON T1.Member_ID = T3.Member_ID WHERE T1.Year_Join < 2018","query_toks":["SELECT","T3.Name",",","T2.Club_Name","FROM","club_leader","AS","T1","JOIN","club","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","JOIN","member","AS","T3","ON","T1.Member_ID","=","T3.Member_ID","WHERE","T1.Year_Join","<","2018"],"query_toks_no_value":["select","t3",".","name",",","t2",".","club_name","from","club_leader","as","t1","join","club","as","t2","on","t1",".","club_id","=","t2",".","club_id","join","member","as","t3","on","t1",".","member_id","=","t3",".","member_id","where","t1",".","year_join","<","value"],"question":"Mostre os nomes dos líderes de clube que se juntaram ao seu clube antes de 2018.","question_toks":["Mostre","os","nomes","dos","líderes","de","clube","que","se","juntaram","ao","seu","clube","antes","de","2018","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,5,false],null],"and",[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,8,false],null]]]],"where":[[false,4,[0,[0,11,false],null],2018.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT T3.Name FROM club_leader AS T1 JOIN club AS T2 ON T1.Club_ID = T2.Club_ID JOIN member AS T3 ON T1.Member_ID = T3.Member_ID WHERE T2.Club_Name = \"Houston\"","query_toks":["SELECT","T3.Name","FROM","club_leader","AS","T1","JOIN","club","AS","T2","ON","T1.Club_ID","=","T2.Club_ID","JOIN","member","AS","T3","ON","T1.Member_ID","=","T3.Member_ID","WHERE","T2.Club_Name","=","``","Houston","''"],"query_toks_no_value":["select","t3",".","name","from","club_leader","as","t1","join","club","as","t2","on","t1",".","club_id","=","t2",".","club_id","join","member","as","t3","on","t1",".","member_id","=","t3",".","member_id","where","t2",".","club_name","=","value"],"question":"Mostre o nome do líder do clube chamado \"Houston\".","question_toks":["Mostre","o","nome","do","líder","do","clube","chamado","``","Houston","''","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,5,false],null],"and",[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"Houston\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM club_leader)","query_toks":["SELECT","Name","FROM","member","WHERE","Member_ID","NOT","IN","(","SELECT","Member_ID","FROM","club_leader",")"],"query_toks_no_value":["select","name","from","member","where","member_id","not","in","(","select","member_id","from","club_leader",")"],"question":"Liste os nomes dos membros que não são líderes de clube.","question_toks":["Liste","os","nomes","dos","membros","que","não","são","líderes","de","clube","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,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":"club_leader","query":"SELECT Nationality FROM member WHERE Age > 22 INTERSECT SELECT Nationality FROM member WHERE Age < 19","query_toks":["SELECT","Nationality","FROM","member","WHERE","Age",">","22","INTERSECT","SELECT","Nationality","FROM","member","WHERE","Age","<","19"],"query_toks_no_value":["select","nationality","from","member","where","age",">","value","intersect","select","nationality","from","member","where","age","<","value"],"question":"Mostre as nações que têm membros com mais de 22 anos e membros com menos de 19 anos.","question_toks":["Mostre","as","nações","que","têm","membros","com","mais","de","22","anos","e","membros","com","menos","de","19","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],22.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,4,[0,[0,4,false],null],19.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT avg(T2.age) FROM club_leader AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id","query_toks":["SELECT","avg","(","T2.age",")","FROM","club_leader","AS","T1","JOIN","member","AS","T2","ON","T1.member_id","=","T2.member_id"],"query_toks_no_value":["select","avg","(","t2",".","age",")","from","club_leader","as","t1","join","member","as","t2","on","t1",".","member_id","=","t2",".","member_id"],"question":"Qual é a idade média de todos os líderes do clube?","question_toks":["Qual","é","a","idade","média","de","todos","os","líderes","do","clube","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"club_leader","query":"SELECT club_name FROM club WHERE club_name LIKE '%state%'","query_toks":["SELECT","club_name","FROM","club","WHERE","club_name","LIKE","'","%","state","%","'"],"query_toks_no_value":["select","club_name","from","club","where","club_name","like","value"],"question":"Qual nome de clube contém a string 'state'?","question_toks":["Qual","nome","de","clube","contém","a","string","'state","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,9,[0,[0,8,false],null],"\"%state%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Subset_Name FROM Collection_Subsets;","query_toks":["SELECT","Collection_Subset_Name","FROM","Collection_Subsets",";"],"query_toks_no_value":["select","collection_subset_name","from","collection_subsets"],"question":"Liste todos os subconjuntos de coleções. Liste os nomes dos subconjuntos.","question_toks":["Liste","todos","os","subconjuntos","de","coleções",".","Liste","os","nomes","dos","subconjuntos","."],"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":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Subset_Name FROM Collection_Subsets;","query_toks":["SELECT","Collection_Subset_Name","FROM","Collection_Subsets",";"],"query_toks_no_value":["select","collection_subset_name","from","collection_subsets"],"question":"Quais são os nomes dos subconjuntos de coleção?","question_toks":["Quais","são","os","nomes","dos","subconjuntos","de","coleção","?"],"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":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collecrtion_Subset_Details FROM Collection_Subsets WHERE Collection_Subset_Name = \"Top collection\";","query_toks":["SELECT","Collecrtion_Subset_Details","FROM","Collection_Subsets","WHERE","Collection_Subset_Name","=","``","Top","collection","''",";"],"query_toks_no_value":["select","collecrtion_subset_details","from","collection_subsets","where","collection_subset_name","=","value"],"question":"Qual é o detalhe do subconjunto de coleção com o nome 'Top collection'?","question_toks":["Qual","é","o","detalhe","do","subconjunto","de","coleção","com","o","nome","'Top","collection","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Top collection\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collecrtion_Subset_Details FROM Collection_Subsets WHERE Collection_Subset_Name = \"Top collection\";","query_toks":["SELECT","Collecrtion_Subset_Details","FROM","Collection_Subsets","WHERE","Collection_Subset_Name","=","``","Top","collection","''",";"],"query_toks_no_value":["select","collecrtion_subset_details","from","collection_subsets","where","collection_subset_name","=","value"],"question":"Quais detalhes da coleção existem no subconjunto chamado 'Top collection'?","question_toks":["Quais","detalhes","da","coleção","existem","no","subconjunto","chamado","'Top","collection","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Top collection\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Subset_Name FROM Document_Subsets;","query_toks":["SELECT","Document_Subset_Name","FROM","Document_Subsets",";"],"query_toks_no_value":["select","document_subset_name","from","document_subsets"],"question":"Liste todos os subconjuntos de documentos. Liste o nome do subconjunto.","question_toks":["Liste","todos","os","subconjuntos","de","documentos",".","Liste","o","nome","do","subconjunto","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Subset_Name FROM Document_Subsets;","query_toks":["SELECT","Document_Subset_Name","FROM","Document_Subsets",";"],"query_toks_no_value":["select","document_subset_name","from","document_subsets"],"question":"Quais são os nomes dos subconjuntos de documentos?","question_toks":["Quais","são","os","nomes","dos","subconjuntos","de","documentos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Subset_Details FROM Document_Subsets WHERE Document_Subset_Name = \"Best for 2000\";","query_toks":["SELECT","Document_Subset_Details","FROM","Document_Subsets","WHERE","Document_Subset_Name","=","``","Best","for","2000","''",";"],"query_toks_no_value":["select","document_subset_details","from","document_subsets","where","document_subset_name","=","value"],"question":"Qual é o detalhe do subconjunto de documentos com o nome 'Best for 2000'?","question_toks":["Qual","é","o","detalhe","do","subconjunto","de","documentos","com","o","nome","'Best","for","2000","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Subset_Details FROM Document_Subsets WHERE Document_Subset_Name = \"Best for 2000\";","query_toks":["SELECT","Document_Subset_Details","FROM","Document_Subsets","WHERE","Document_Subset_Name","=","``","Best","for","2000","''",";"],"query_toks_no_value":["select","document_subset_details","from","document_subsets","where","document_subset_name","=","value"],"question":"Quais são os detalhes dos subconjuntos de documentos que têm o nome 'Best for 2000'?","question_toks":["Quais","são","os","detalhes","dos","subconjuntos","de","documentos","que","têm","o","nome","'Best","for","2000","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Object_ID FROM Document_Objects;","query_toks":["SELECT","Document_Object_ID","FROM","Document_Objects",";"],"query_toks_no_value":["select","document_object_id","from","document_objects"],"question":"Liste o id dos documentos de todos os documentos.","question_toks":["Liste","o","id","dos","documentos","de","todos","os","documentos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Object_ID FROM Document_Objects;","query_toks":["SELECT","Document_Object_ID","FROM","Document_Objects",";"],"query_toks_no_value":["select","document_object_id","from","document_objects"],"question":"Qual é o id do objeto dos objetos de documento?","question_toks":["Qual","é","o","id","do","objeto","dos","objetos","de","documento","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Parent_Document_Object_ID FROM Document_Objects WHERE OWNER = 'Marlin'","query_toks":["SELECT","Parent_Document_Object_ID","FROM","Document_Objects","WHERE","OWNER","=","'Marlin","'"],"query_toks_no_value":["select","parent_document_object_id","from","document_objects","where","owner","=","value"],"question":"Qual é o documento pai do documento de propriedade de Marlin? Liste o id do documento.","question_toks":["Qual","é","o","documento","pai","do","documento","de","propriedade","de","Marlin","?","Liste","o","id","do","documento","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Marlin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Parent_Document_Object_ID FROM Document_Objects WHERE OWNER = 'Marlin'","query_toks":["SELECT","Parent_Document_Object_ID","FROM","Document_Objects","WHERE","OWNER","=","'Marlin","'"],"query_toks_no_value":["select","parent_document_object_id","from","document_objects","where","owner","=","value"],"question":"Quais são os ids dos objetos de documento pertencentes a Marlin?","question_toks":["Quais","são","os","ids","dos","objetos","de","documento","pertencentes","a","Marlin","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Marlin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT OWNER FROM Document_Objects WHERE Description = 'Braeden Collection'","query_toks":["SELECT","OWNER","FROM","Document_Objects","WHERE","Description","=","'Braeden","Collection","'"],"query_toks_no_value":["select","owner","from","document_objects","where","description","=","value"],"question":"Qual é o proprietário do documento com a descrição 'Braeden Collection'?","question_toks":["Qual","é","o","proprietário","do","documento","com","a","descrição","'Braeden","Collection","'","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Braeden Collection\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT OWNER FROM Document_Objects WHERE Description = 'Braeden Collection'","query_toks":["SELECT","OWNER","FROM","Document_Objects","WHERE","Description","=","'Braeden","Collection","'"],"query_toks_no_value":["select","owner","from","document_objects","where","description","=","value"],"question":"Quais são os proprietários dos objetos de documento descritos como 'Braeden Collection'?","question_toks":["Quais","são","os","proprietários","dos","objetos","de","documento","descritos","como","'Braeden","Collection","'","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Braeden Collection\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Owner FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID WHERE T1.Owner = 'Marlin'","query_toks":["SELECT","T2.Owner","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","WHERE","T1.Owner","=","'Marlin","'"],"query_toks_no_value":["select","t2",".","owner","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","where","t1",".","owner","=","value"],"question":"Qual é o proprietário do documento pai do documento pertencente a 'Marlin'?","question_toks":["Qual","é","o","proprietário","do","documento","pai","do","documento","pertencente","a","'Marlin","'","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Marlin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Owner FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID WHERE T1.Owner = 'Marlin'","query_toks":["SELECT","T2.Owner","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","WHERE","T1.Owner","=","'Marlin","'"],"query_toks_no_value":["select","t2",".","owner","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","where","t1",".","owner","=","value"],"question":"Quem é o proprietário do documento pai de todos os documentos onde 'Marlin' é o proprietário?","question_toks":["Quem","é","o","proprietário","do","documento","pai","de","todos","os","documentos","onde","'Marlin","'","é","o","proprietário","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Marlin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T2.Description FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID","query_toks":["SELECT","DISTINCT","T2.Description","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID"],"query_toks_no_value":["select","distinct","t2",".","description","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id"],"question":"Quais são as diferentes descrições de todos os documentos pai?","question_toks":["Quais","são","as","diferentes","descrições","de","todos","os","documentos","pai","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T2.Description FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID","query_toks":["SELECT","DISTINCT","T2.Description","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID"],"query_toks_no_value":["select","distinct","t2",".","description","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id"],"question":"Qual é a descrição única de cada documento pai?","question_toks":["Qual","é","a","descrição","única","de","cada","documento","pai","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) FROM Document_Objects WHERE OWNER = \"Marlin\";","query_toks":["SELECT","count","(","*",")","FROM","Document_Objects","WHERE","OWNER","=","``","Marlin","''",";"],"query_toks_no_value":["select","count","(","*",")","from","document_objects","where","owner","=","value"],"question":"Quantos documentos pertencem a Marlin?","question_toks":["Quantos","documentos","pertencem","a","Marlin","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Marlin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) FROM Document_Objects WHERE OWNER = \"Marlin\";","query_toks":["SELECT","count","(","*",")","FROM","Document_Objects","WHERE","OWNER","=","``","Marlin","''",";"],"query_toks_no_value":["select","count","(","*",")","from","document_objects","where","owner","=","value"],"question":"Qual é a contagem de documentos pertencentes a Marlin?","question_toks":["Qual","é","a","contagem","de","documentos","pertencentes","a","Marlin","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Marlin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Object_ID FROM Document_Objects EXCEPT SELECT Parent_Document_Object_ID FROM Document_Objects","query_toks":["SELECT","Document_Object_ID","FROM","Document_Objects","EXCEPT","SELECT","Parent_Document_Object_ID","FROM","Document_Objects"],"query_toks_no_value":["select","document_object_id","from","document_objects","except","select","parent_document_object_id","from","document_objects"],"question":"Liste todos os ids de documentos que não são pais de outros documentos.","question_toks":["Liste","todos","os","ids","de","documentos","que","não","são","pais","de","outros","documentos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"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":null}}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Object_ID FROM Document_Objects EXCEPT SELECT Parent_Document_Object_ID FROM Document_Objects","query_toks":["SELECT","Document_Object_ID","FROM","Document_Objects","EXCEPT","SELECT","Parent_Document_Object_ID","FROM","Document_Objects"],"query_toks_no_value":["select","document_object_id","from","document_objects","except","select","parent_document_object_id","from","document_objects"],"question":"Quais são os ids dos documentos que não são documentos pai?","question_toks":["Quais","são","os","ids","dos","documentos","que","não","são","documentos","pai","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"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":null}}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID , count(*) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID;","query_toks":["SELECT","T2.Document_Object_ID",",","count","(","*",")","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","GROUP","BY","T2.Document_Object_ID",";"],"query_toks_no_value":["select","t2",".","document_object_id",",","count","(","*",")","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","group","by","t2",".","document_object_id"],"question":"Quantos documentos filhos cada documento pai possui? Liste o id do documento e o número.","question_toks":["Quantos","documentos","filhos","cada","documento","pai","possui","?","Liste","o","id","do","documento","e","o","número","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID , count(*) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID;","query_toks":["SELECT","T2.Document_Object_ID",",","count","(","*",")","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","GROUP","BY","T2.Document_Object_ID",";"],"query_toks_no_value":["select","t2",".","document_object_id",",","count","(","*",")","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","group","by","t2",".","document_object_id"],"question":"Qual é o número de documentos filhos para cada documento pai e quais são os ids dos documentos pais?","question_toks":["Qual","é","o","número","de","documentos","filhos","para","cada","documento","pai","e","quais","são","os","ids","dos","documentos","pais","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Name FROM Collections;","query_toks":["SELECT","Collection_Name","FROM","Collections",";"],"query_toks_no_value":["select","collection_name","from","collections"],"question":"Liste o nome de todas as coleções.","question_toks":["Liste","o","nome","de","todas","as","coleções","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Name FROM Collections;","query_toks":["SELECT","Collection_Name","FROM","Collections",";"],"query_toks_no_value":["select","collection_name","from","collections"],"question":"Quais são os nomes das coleções?","question_toks":["Quais","são","os","nomes","das","coleções","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Description FROM Collections WHERE Collection_Name = \"Best\";","query_toks":["SELECT","Collection_Description","FROM","Collections","WHERE","Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","collection_description","from","collections","where","collection_name","=","value"],"question":"Qual é a descrição da coleção chamada Best?","question_toks":["Qual","é","a","descrição","da","coleção","chamada","Best","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Description FROM Collections WHERE Collection_Name = \"Best\";","query_toks":["SELECT","Collection_Description","FROM","Collections","WHERE","Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","collection_description","from","collections","where","collection_name","=","value"],"question":"Quais são as descrições das coleções que têm o nome de 'Best'?","question_toks":["Quais","são","as","descrições","das","coleções","que","têm","o","nome","de","'Best","'","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Nice\";","query_toks":["SELECT","T2.Collection_Name","FROM","Collections","AS","T1","JOIN","Collections","AS","T2","ON","T1.Parent_Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Nice","''",";"],"query_toks_no_value":["select","t2",".","collection_name","from","collections","as","t1","join","collections","as","t2","on","t1",".","parent_collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value"],"question":"Qual é o nome da coleção pai da coleção chamada Nice?","question_toks":["Qual","é","o","nome","da","coleção","pai","da","coleção","chamada","Nice","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,13,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Nice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Nice\";","query_toks":["SELECT","T2.Collection_Name","FROM","Collections","AS","T1","JOIN","Collections","AS","T2","ON","T1.Parent_Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Nice","''",";"],"query_toks_no_value":["select","t2",".","collection_name","from","collections","as","t1","join","collections","as","t2","on","t1",".","parent_collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value"],"question":"Quais são os nomes de todas as coleções pai da coleção chamada Nice?","question_toks":["Quais","são","os","nomes","de","todas","as","coleções","pai","da","coleção","chamada","Nice","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,13,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Nice\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Name FROM Collections EXCEPT SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID;","query_toks":["SELECT","Collection_Name","FROM","Collections","EXCEPT","SELECT","T2.Collection_Name","FROM","Collections","AS","T1","JOIN","Collections","AS","T2","ON","T1.Parent_Collection_ID","=","T2.Collection_ID",";"],"query_toks_no_value":["select","collection_name","from","collections","except","select","t2",".","collection_name","from","collections","as","t1","join","collections","as","t2","on","t1",".","parent_collection_id","=","t2",".","collection_id"],"question":"Qual coleção não é a coleção pai de outra coleção? Liste o nome da coleção.","question_toks":["Qual","coleção","não","é","a","coleção","pai","de","outra","coleção","?","Liste","o","nome","da","coleção","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,13,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Doc_and_collections","query":"SELECT Collection_Name FROM Collections EXCEPT SELECT T2.Collection_Name FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID;","query_toks":["SELECT","Collection_Name","FROM","Collections","EXCEPT","SELECT","T2.Collection_Name","FROM","Collections","AS","T1","JOIN","Collections","AS","T2","ON","T1.Parent_Collection_ID","=","T2.Collection_ID",";"],"query_toks_no_value":["select","collection_name","from","collections","except","select","t2",".","collection_name","from","collections","as","t1","join","collections","as","t2","on","t1",".","parent_collection_id","=","t2",".","collection_id"],"question":"Quais são os nomes das coleções que não são pais de outras coleções?","question_toks":["Quais","são","os","nomes","das","coleções","que","não","são","pais","de","outras","coleções","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,13,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID HAVING count(*) > 1;","query_toks":["SELECT","T2.Document_Object_ID","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","GROUP","BY","T2.Document_Object_ID","HAVING","count","(","*",")",">","1",";"],"query_toks_no_value":["select","t2",".","document_object_id","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","group","by","t2",".","document_object_id","having","count","(","*",")",">","value"],"question":"Liste os documentos que têm mais de um filho. Liste o id do documento.","question_toks":["Liste","os","documentos","que","têm","mais","de","um","filho",".","Liste","o","id","do","documento","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID HAVING count(*) > 1;","query_toks":["SELECT","T2.Document_Object_ID","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","GROUP","BY","T2.Document_Object_ID","HAVING","count","(","*",")",">","1",";"],"query_toks_no_value":["select","t2",".","document_object_id","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","group","by","t2",".","document_object_id","having","count","(","*",")",">","value"],"question":"Quais são os ids dos documentos que têm mais de um filho?","question_toks":["Quais","são","os","ids","dos","documentos","que","têm","mais","de","um","filho","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID WHERE T2.Collection_Name = \"Best\";","query_toks":["SELECT","count","(","*",")","FROM","Collections","AS","T1","JOIN","Collections","AS","T2","ON","T1.Parent_Collection_ID","=","T2.Collection_ID","WHERE","T2.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","count","(","*",")","from","collections","as","t1","join","collections","as","t2","on","t1",".","parent_collection_id","=","t2",".","collection_id","where","t2",".","collection_name","=","value"],"question":"Quantas coleções filhas a coleção chamada Best tem?","question_toks":["Quantas","coleções","filhas","a","coleção","chamada","Best","tem","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,13,false],null],[0,12,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) FROM Collections AS T1 JOIN Collections AS T2 ON T1.Parent_Collection_ID = T2.Collection_ID WHERE T2.Collection_Name = \"Best\";","query_toks":["SELECT","count","(","*",")","FROM","Collections","AS","T1","JOIN","Collections","AS","T2","ON","T1.Parent_Collection_ID","=","T2.Collection_ID","WHERE","T2.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","count","(","*",")","from","collections","as","t1","join","collections","as","t2","on","t1",".","parent_collection_id","=","t2",".","collection_id","where","t2",".","collection_name","=","value"],"question":"Qual é o número de coleções filhas pertencentes à coleção chamada Best?","question_toks":["Qual","é","o","número","de","coleções","filhas","pertencentes","à","coleção","chamada","Best","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,13,false],null],[0,12,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select t1.document_object_id from document_subset_members as t1 join document_objects as t2 on t1.document_object_id = t2.document_object_id where t2.owner = 'ransom'","query_toks":["select","t1.document_object_id","from","document_subset_members","as","t1","join","document_objects","as","t2","on","t1.document_object_id","=","t2.document_object_id","where","t2.owner","=","\"ransom\""],"query_toks_no_value":["select","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_objects","as","t2","on","t1",".","document_object_id","=","t2",".","document_object_id","where","t2",".","owner","=","value"],"question":"Liste todos os documentos que estão relacionados a documentos pertencentes a Ransom. Liste o id dos documentos.","question_toks":["Liste","todos","os","documentos","que","estão","relacionados","a","documentos","pertencentes","a","Ransom",".","Liste","o","id","dos","documentos","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2]],"conds":[[false,2,[0,[0,18,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"ransom\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select t1.document_object_id from document_subset_members as t1 join document_objects as t2 on t1.document_object_id = t2.document_object_id where t2.owner = 'ransom'","query_toks":["select","t1.document_object_id","from","document_subset_members","as","t1","join","document_objects","as","t2","on","t1.document_object_id","=","t2.document_object_id","where","t2.owner","=","\"ransom\""],"query_toks_no_value":["select","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_objects","as","t2","on","t1",".","document_object_id","=","t2",".","document_object_id","where","t2",".","owner","=","value"],"question":"Quais são os ids dos objetos de documento relacionados ao documento de propriedade de Ransom?","question_toks":["Quais","são","os","ids","dos","objetos","de","documento","relacionados","ao","documento","de","propriedade","de","Ransom","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2]],"conds":[[false,2,[0,[0,18,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"ransom\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Collection_Subset_ID , T1.Collection_Subset_Name , count(*) FROM Collection_Subsets AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Collection_Subset_ID = T2.Collection_Subset_ID GROUP BY T2.Collection_Subset_ID;","query_toks":["SELECT","T2.Collection_Subset_ID",",","T1.Collection_Subset_Name",",","count","(","*",")","FROM","Collection_Subsets","AS","T1","JOIN","Collection_Subset_Members","AS","T2","ON","T1.Collection_Subset_ID","=","T2.Collection_Subset_ID","GROUP","BY","T2.Collection_Subset_ID",";"],"query_toks_no_value":["select","t2",".","collection_subset_id",",","t1",".","collection_subset_name",",","count","(","*",")","from","collection_subsets","as","t1","join","collection_subset_members","as","t2","on","t1",".","collection_subset_id","=","t2",".","collection_subset_id","group","by","t2",".","collection_subset_id"],"question":"Liste o id do subconjunto de coleção, o nome e o número de coleções em cada subconjunto.","question_toks":["Liste","o","id","do","subconjunto","de","coleção",",","o","nome","e","o","número","de","coleções","em","cada","subconjunto","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",6]],"conds":[[false,2,[0,[0,4,false],null],[0,23,false],null]]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Collection_Subset_ID , T1.Collection_Subset_Name , count(*) FROM Collection_Subsets AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Collection_Subset_ID = T2.Collection_Subset_ID GROUP BY T2.Collection_Subset_ID;","query_toks":["SELECT","T2.Collection_Subset_ID",",","T1.Collection_Subset_Name",",","count","(","*",")","FROM","Collection_Subsets","AS","T1","JOIN","Collection_Subset_Members","AS","T2","ON","T1.Collection_Subset_ID","=","T2.Collection_Subset_ID","GROUP","BY","T2.Collection_Subset_ID",";"],"query_toks_no_value":["select","t2",".","collection_subset_id",",","t1",".","collection_subset_name",",","count","(","*",")","from","collection_subsets","as","t1","join","collection_subset_members","as","t2","on","t1",".","collection_subset_id","=","t2",".","collection_subset_id","group","by","t2",".","collection_subset_id"],"question":"Quais são os ids dos subconjuntos de coleção, nomes e número de coleções para cada subconjunto?","question_toks":["Quais","são","os","ids","dos","subconjuntos","de","coleção",",","nomes","e","número","de","coleções","para","cada","subconjunto","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",6]],"conds":[[false,2,[0,[0,4,false],null],[0,23,false],null]]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID , count(*) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T2.Document_Object_ID",",","count","(","*",")","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","GROUP","BY","T2.Document_Object_ID","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t2",".","document_object_id",",","count","(","*",")","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","group","by","t2",".","document_object_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual documento tem mais filhos? Liste o id do documento e o número de filhos.","question_toks":["Qual","documento","tem","mais","filhos","?","Liste","o","id","do","documento","e","o","número","de","filhos","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID , count(*) FROM Document_Objects AS T1 JOIN Document_Objects AS T2 ON T1.Parent_Document_Object_ID = T2.Document_Object_ID GROUP BY T2.Document_Object_ID ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T2.Document_Object_ID",",","count","(","*",")","FROM","Document_Objects","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Parent_Document_Object_ID","=","T2.Document_Object_ID","GROUP","BY","T2.Document_Object_ID","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t2",".","document_object_id",",","count","(","*",")","from","document_objects","as","t1","join","document_objects","as","t2","on","t1",".","parent_document_object_id","=","t2",".","document_object_id","group","by","t2",".","document_object_id","order","by","count","(","*",")","desc","limit","value"],"question":"Para cada id de objeto de documento, quantos filhos eles têm?","question_toks":["Para","cada","id","de","objeto","de","documento",",","quantos","filhos","eles","têm","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Object_ID , count(*) FROM Document_Subset_Members GROUP BY Document_Object_ID ORDER BY count(*) ASC LIMIT 1;","query_toks":["SELECT","Document_Object_ID",",","count","(","*",")","FROM","Document_Subset_Members","GROUP","BY","Document_Object_ID","ORDER","BY","count","(","*",")","ASC","LIMIT","1",";"],"query_toks_no_value":["select","document_object_id",",","count","(","*",")","from","document_subset_members","group","by","document_object_id","order","by","count","(","*",")","asc","limit","value"],"question":"Qual documento tem o menor número de documentos relacionados? Liste o id do documento e o número de documentos relacionados.","question_toks":["Qual","documento","tem","o","menor","número","de","documentos","relacionados","?","Liste","o","id","do","documento","e","o","número","de","documentos","relacionados","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select document_object_id , count(*) from document_subset_members group by document_object_id order by count(*) asc limit 1;","query_toks":["select","document_object_id",",","count","(","*",")","from","document_subset_members","group","by","document_object_id","order","by","count","(","*",")","asc","limit","1",";"],"query_toks_no_value":["select","document_object_id",",","count","(","*",")","from","document_subset_members","group","by","document_object_id","order","by","count","(","*",")","asc","limit","value"],"question":"Qual é o id do objeto do documento com o menor número de documentos?","question_toks":["Qual","é","o","id","do","objeto","do","documento","com","o","menor","número","de","documentos","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select document_object_id , count(*) from document_subset_members group by document_object_id having count(*) between 2 and 4;","query_toks":["select","document_object_id",",","count","(","*",")","from","document_subset_members","group","by","document_object_id","having","count","(","*",")","between","2","and","4",";"],"query_toks_no_value":["select","document_object_id",",","count","(","*",")","from","document_subset_members","group","by","document_object_id","having","count","(","*",")","between","value","and","value"],"question":"Qual documento tem entre 2 e 4 documentos? Liste o id do documento e o número de documentos relacionados.","question_toks":["Qual","documento","tem","entre","2","e","4","documentos","?","Liste","o","id","do","documento","e","o","número","de","documentos","relacionados","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[[false,1,[0,[3,0,false],null],2.0,4.0]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT Document_Object_ID , count(*) FROM Document_Subset_Members GROUP BY Document_Object_ID HAVING count(*) BETWEEN 2 AND 4;","query_toks":["SELECT","Document_Object_ID",",","count","(","*",")","FROM","Document_Subset_Members","GROUP","BY","Document_Object_ID","HAVING","count","(","*",")","BETWEEN","2","AND","4",";"],"query_toks_no_value":["select","document_object_id",",","count","(","*",")","from","document_subset_members","group","by","document_object_id","having","count","(","*",")","between","value","and","value"],"question":"Quais são os ids dos documentos que têm entre 2 e 4 documentos relacionados e quantos itens relacionados existem?","question_toks":["Quais","são","os","ids","dos","documentos","que","têm","entre","2","e","4","documentos","relacionados","e","quantos","itens","relacionados","existem","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,18,false]],"having":[[false,1,[0,[3,0,false],null],2.0,4.0]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT OWNER FROM Document_Subset_Members AS T1 JOIN Document_Objects AS T2 ON T1.Related_Document_Object_ID = T2.Document_Object_ID WHERE T2.Owner = 'Braeden';","query_toks":["SELECT","DISTINCT","OWNER","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Related_Document_Object_ID","=","T2.Document_Object_ID","WHERE","T2.Owner","=","'Braeden","'",";"],"query_toks_no_value":["select","distinct","owner","from","document_subset_members","as","t1","join","document_objects","as","t2","on","t1",".","related_document_object_id","=","t2",".","document_object_id","where","t2",".","owner","=","value"],"question":"Liste todos os proprietários de documentos que estão relacionados a documentos pertencentes a Braeden.","question_toks":["Liste","todos","os","proprietários","de","documentos","que","estão","relacionados","a","documentos","pertencentes","a","Braeden","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,7,false],null]]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Braeden\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT OWNER FROM Document_Subset_Members AS T1 JOIN Document_Objects AS T2 ON T1.Related_Document_Object_ID = T2.Document_Object_ID WHERE T2.Owner = 'Braeden';","query_toks":["SELECT","DISTINCT","OWNER","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Objects","AS","T2","ON","T1.Related_Document_Object_ID","=","T2.Document_Object_ID","WHERE","T2.Owner","=","'Braeden","'",";"],"query_toks_no_value":["select","distinct","owner","from","document_subset_members","as","t1","join","document_objects","as","t2","on","t1",".","related_document_object_id","=","t2",".","document_object_id","where","t2",".","owner","=","value"],"question":"Quais são os diferentes proprietários de documentos que estão relacionados aos documentos de propriedade de Braeden?","question_toks":["Quais","são","os","diferentes","proprietários","de","documentos","que","estão","relacionados","aos","documentos","de","propriedade","de","Braeden","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,7,false],null]]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Braeden\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Subset_Name FROM Document_Subsets AS T1 JOIN Document_Subset_Members AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID JOIN Document_Objects AS T3 ON T2.Document_Object_ID = T3.Document_Object_ID WHERE T3.owner = 'Braeden'","query_toks":["SELECT","DISTINCT","T1.Document_Subset_Name","FROM","Document_Subsets","AS","T1","JOIN","Document_Subset_Members","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","JOIN","Document_Objects","AS","T3","ON","T2.Document_Object_ID","=","T3.Document_Object_ID","WHERE","T3.owner","=","'Braeden","'"],"query_toks_no_value":["select","distinct","t1",".","document_subset_name","from","document_subsets","as","t1","join","document_subset_members","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","join","document_objects","as","t3","on","t2",".","document_object_id","=","t3",".","document_object_id","where","t3",".","owner","=","value"],"question":"Qual subconjunto único o documento de propriedade de Braeden pertence? Liste o nome do subconjunto.","question_toks":["Qual","subconjunto","único","o","documento","de","propriedade","de","Braeden","pertence","?","Liste","o","nome","do","subconjunto","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null],"and",[false,2,[0,[0,18,false],null],[0,7,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Braeden\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Subset_Name FROM Document_Subsets AS T1 JOIN Document_Subset_Members AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID JOIN Document_Objects AS T3 ON T2.Document_Object_ID = T3.Document_Object_ID WHERE T3.owner = 'Braeden'","query_toks":["SELECT","DISTINCT","T1.Document_Subset_Name","FROM","Document_Subsets","AS","T1","JOIN","Document_Subset_Members","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","JOIN","Document_Objects","AS","T3","ON","T2.Document_Object_ID","=","T3.Document_Object_ID","WHERE","T3.owner","=","'Braeden","'"],"query_toks_no_value":["select","distinct","t1",".","document_subset_name","from","document_subsets","as","t1","join","document_subset_members","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","join","document_objects","as","t3","on","t2",".","document_object_id","=","t3",".","document_object_id","where","t3",".","owner","=","value"],"question":"Quais são os diferentes nomes de subconjuntos de todos os documentos pertencentes a Braeden?","question_toks":["Quais","são","os","diferentes","nomes","de","subconjuntos","de","todos","os","documentos","pertencentes","a","Braeden","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",5],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null],"and",[false,2,[0,[0,18,false],null],[0,7,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Braeden\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T1.Document_Subset_ID , T2.Document_Subset_Name , count(DISTINCT T1.Document_Object_ID) FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID GROUP BY T1.Document_Subset_ID;","query_toks":["SELECT","T1.Document_Subset_ID",",","T2.Document_Subset_Name",",","count","(","DISTINCT","T1.Document_Object_ID",")","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","GROUP","BY","T1.Document_Subset_ID",";"],"query_toks_no_value":["select","t1",".","document_subset_id",",","t2",".","document_subset_name",",","count","(","distinct","t1",".","document_object_id",")","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","group","by","t1",".","document_subset_id"],"question":"Liste o id do subconjunto, o nome e o número de documentos diferentes em cada subconjunto.","question_toks":["Liste","o","id","do","subconjunto",",","o","nome","e","o","número","de","documentos","diferentes","em","cada","subconjunto","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,20,false],null]],[0,[0,[0,2,false],null]],[3,[0,[0,18,true],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T1.Document_Subset_ID , T2.Document_Subset_Name , count(DISTINCT T1.Document_Object_ID) FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID GROUP BY T1.Document_Subset_ID;","query_toks":["SELECT","T1.Document_Subset_ID",",","T2.Document_Subset_Name",",","count","(","DISTINCT","T1.Document_Object_ID",")","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","GROUP","BY","T1.Document_Subset_ID",";"],"query_toks_no_value":["select","t1",".","document_subset_id",",","t2",".","document_subset_name",",","count","(","distinct","t1",".","document_object_id",")","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","group","by","t1",".","document_subset_id"],"question":"Qual é o id do subconjunto, nome e número de documentos diferentes para cada subconjunto?","question_toks":["Qual","é","o","id","do","subconjunto",",","nome","e","número","de","documentos","diferentes","para","cada","subconjunto","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,20,false],null]],[0,[0,[0,2,false],null]],[3,[0,[0,18,true],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select t1.document_subset_id , t2.document_subset_name , count(distinct t1.document_object_id) from document_subset_members as t1 join document_subsets as t2 on t1.document_subset_id = t2.document_subset_id group by t1.document_subset_id order by count(*) desc limit 1;","query_toks":["select","t1.document_subset_id",",","t2.document_subset_name",",","count","(","distinct","t1.document_object_id",")","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1.document_subset_id","=","t2.document_subset_id","group","by","t1.document_subset_id","order","by","count","(","*",")","desc","limit","1",";"],"query_toks_no_value":["select","t1",".","document_subset_id",",","t2",".","document_subset_name",",","count","(","distinct","t1",".","document_object_id",")","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","group","by","t1",".","document_subset_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual subconjunto de documentos possui o maior número de documentos distintos? Liste o id do subconjunto, o nome e o número de documentos.","question_toks":["Qual","subconjunto","de","documentos","possui","o","maior","número","de","documentos","distintos","?","Liste","o","id","do","subconjunto",",","o","nome","e","o","número","de","documentos","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,20,false],null]],[0,[0,[0,2,false],null]],[3,[0,[0,18,true],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select t1.document_subset_id , t2.document_subset_name , count(distinct t1.document_object_id) from document_subset_members as t1 join document_subsets as t2 on t1.document_subset_id = t2.document_subset_id group by t1.document_subset_id order by count(*) desc limit 1;","query_toks":["select","t1.document_subset_id",",","t2.document_subset_name",",","count","(","distinct","t1.document_object_id",")","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1.document_subset_id","=","t2.document_subset_id","group","by","t1.document_subset_id","order","by","count","(","*",")","desc","limit","1",";"],"query_toks_no_value":["select","t1",".","document_subset_id",",","t2",".","document_subset_name",",","count","(","distinct","t1",".","document_object_id",")","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","group","by","t1",".","document_subset_id","order","by","count","(","*",")","desc","limit","value"],"question":"Para o subconjunto de documentos com o maior número de documentos diferentes, quais são os ids e nomes do subconjunto, bem como o número de documentos?","question_toks":["Para","o","subconjunto","de","documentos","com","o","maior","número","de","documentos","diferentes",",","quais","são","os","ids","e","nomes","do","subconjunto",",","bem","como","o","número","de","documentos","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,20,false],null]],[0,[0,[0,2,false],null]],[3,[0,[0,18,true],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID WHERE T2.Document_Subset_Name = \"Best for 2000\";","query_toks":["SELECT","DISTINCT","T1.Document_Object_ID","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","WHERE","T2.Document_Subset_Name","=","``","Best","for","2000","''",";"],"query_toks_no_value":["select","distinct","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","where","t2",".","document_subset_name","=","value"],"question":"Para o subconjunto de documentos chamado 'Best for 2000', liste todos os ids de documentos que estão nesse subconjunto.","question_toks":["Para","o","subconjunto","de","documentos","chamado","'Best","for","2000","'",",","liste","todos","os","ids","de","documentos","que","estão","nesse","subconjunto","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID WHERE T2.Document_Subset_Name = \"Best for 2000\";","query_toks":["SELECT","DISTINCT","T1.Document_Object_ID","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","WHERE","T2.Document_Subset_Name","=","``","Best","for","2000","''",";"],"query_toks_no_value":["select","distinct","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","where","t2",".","document_subset_name","=","value"],"question":"Para o subconjunto de documentos chamado 'Best for 2000', quais são os ids dos documentos nesse subconjunto?","question_toks":["Para","o","subconjunto","de","documentos","chamado","'Best","for","2000","'",",","quais","são","os","ids","dos","documentos","nesse","subconjunto","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T3.Document_Subset_Name , T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subset_Members AS T2 ON T1.Related_Document_Object_ID = T2.Document_Object_ID JOIN Document_Subsets AS T3 ON T2.Document_Subset_ID = T3.Document_Subset_ID","query_toks":["SELECT","DISTINCT","T3.Document_Subset_Name",",","T1.Document_Object_ID","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subset_Members","AS","T2","ON","T1.Related_Document_Object_ID","=","T2.Document_Object_ID","JOIN","Document_Subsets","AS","T3","ON","T2.Document_Subset_ID","=","T3.Document_Subset_ID"],"query_toks_no_value":["select","distinct","t3",".","document_subset_name",",","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subset_members","as","t2","on","t1",".","related_document_object_id","=","t2",".","document_object_id","join","document_subsets","as","t3","on","t2",".","document_subset_id","=","t3",".","document_subset_id"],"question":"Liste todos os subconjuntos de documentos relacionados a cada id de documento. Liste o nome do subconjunto de documentos e o id do documento.","question_toks":["Liste","todos","os","subconjuntos","de","documentos","relacionados","a","cada","id","de","documento",".","Liste","o","nome","do","subconjunto","de","documentos","e","o","id","do","documento","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,18,false],null],"and",[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select distinct t3.document_subset_name , t1.document_object_id from document_subset_members as t1 join document_subset_members as t2 on t1.related_document_object_id = t2.document_object_id join document_subsets as t3 on t2.document_subset_id = t3.document_subset_id","query_toks":["select","distinct","t3.document_subset_name",",","t1.document_object_id","from","document_subset_members","as","t1","join","document_subset_members","as","t2","on","t1.related_document_object_id","=","t2.document_object_id","join","document_subsets","as","t3","on","t2.document_subset_id","=","t3.document_subset_id"],"query_toks_no_value":["select","distinct","t3",".","document_subset_name",",","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subset_members","as","t2","on","t1",".","related_document_object_id","=","t2",".","document_object_id","join","document_subsets","as","t3","on","t2",".","document_subset_id","=","t3",".","document_subset_id"],"question":"Quais são os diferentes subconjuntos de documentos relacionados a cada id de documento, liste o nome do subconjunto de documentos e o id do documento atual?","question_toks":["Quais","são","os","diferentes","subconjuntos","de","documentos","relacionados","a","cada","id","de","documento",",","liste","o","nome","do","subconjunto","de","documentos","e","o","id","do","documento","atual","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,18,false],null],"and",[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"select t1.collection_name from collections as t1 join documents_in_collections as t2 on t1.collection_id = t2.collection_id join document_objects as t3 on t2.document_object_id = t3.document_object_id where t3.owner = 'ransom'","query_toks":["select","t1.collection_name","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1.collection_id","=","t2.collection_id","join","document_objects","as","t3","on","t2.document_object_id","=","t3.document_object_id","where","t3.owner","=","\"ransom\""],"query_toks_no_value":["select","t1",".","collection_name","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","join","document_objects","as","t3","on","t2",".","document_object_id","=","t3",".","document_object_id","where","t3",".","owner","=","value"],"question":"Liste o nome da coleção a que o documento pertencente a 'Ransom' pertence.","question_toks":["Liste","o","nome","da","coleção","a","que","o","documento","pertencente","a","'Ransom","'","pertence","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null],"and",[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"ransom\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T1.Collection_Name FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID JOIN Document_Objects AS T3 ON T2.Document_object_id = T3.Document_object_id WHERE T3.owner = 'Ransom'","query_toks":["SELECT","T1.Collection_Name","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","JOIN","Document_Objects","AS","T3","ON","T2.Document_object_id","=","T3.Document_object_id","WHERE","T3.owner","=","'Ransom","'"],"query_toks_no_value":["select","t1",".","collection_name","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","join","document_objects","as","t3","on","t2",".","document_object_id","=","t3",".","document_object_id","where","t3",".","owner","=","value"],"question":"Qual é o nome da coleção de um documento pertencente a 'Ransom'?","question_toks":["Qual","é","o","nome","da","coleção","de","um","documento","pertencente","a","'Ransom","'","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null],"and",[false,2,[0,[0,16,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Ransom\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) , T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID GROUP BY T2.Document_Object_ID","query_toks":["SELECT","count","(","*",")",",","T2.Document_Object_ID","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","GROUP","BY","T2.Document_Object_ID"],"query_toks_no_value":["select","count","(","*",")",",","t2",".","document_object_id","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","group","by","t2",".","document_object_id"],"question":"Quantas coleções cada documento pertence? Liste a contagem e o id do documento.","question_toks":["Quantas","coleções","cada","documento","pertence","?","Liste","a","contagem","e","o","id","do","documento","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) , T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID GROUP BY T2.Document_Object_ID","query_toks":["SELECT","count","(","*",")",",","T2.Document_Object_ID","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","GROUP","BY","T2.Document_Object_ID"],"query_toks_no_value":["select","count","(","*",")",",","t2",".","document_object_id","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","group","by","t2",".","document_object_id"],"question":"Para cada id de objeto de documento, quantas coleções ele pertence?","question_toks":["Para","cada","id","de","objeto","de","documento",",","quantas","coleções","ele","pertence","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\";","query_toks":["SELECT","count","(","*",")","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","count","(","*",")","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value"],"question":"Quantos documentos a coleção chamada 'Best' possui?","question_toks":["Quantos","documentos","a","coleção","chamada","'Best","'","possui","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(*) FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\";","query_toks":["SELECT","count","(","*",")","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","count","(","*",")","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value"],"question":"Qual é o número de documentos na coleção chamada 'Best'?","question_toks":["Qual","é","o","número","de","documentos","na","coleção","chamada","'Best","'","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\";","query_toks":["SELECT","T2.Document_Object_ID","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","t2",".","document_object_id","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value"],"question":"Liste o id do documento de todos os documentos na coleção chamada Best.","question_toks":["Liste","o","id","do","documento","de","todos","os","documentos","na","coleção","chamada","Best","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\";","query_toks":["SELECT","T2.Document_Object_ID","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","t2",".","document_object_id","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value"],"question":"Qual é o número de ids de objetos de documentos na coleção chamada Best?","question_toks":["Qual","é","o","número","de","ids","de","objetos","de","documentos","na","coleção","chamada","Best","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T1.Collection_Name , T1.Collection_ID , count(*) FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\" GROUP BY T1.Collection_ID ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.Collection_Name",",","T1.Collection_ID",",","count","(","*",")","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''","GROUP","BY","T1.Collection_ID","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","collection_name",",","t1",".","collection_id",",","count","(","*",")","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value","group","by","t1",".","collection_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual coleção tem o maior número de documentos? Liste o nome da coleção, o id e o número de documentos.","question_toks":["Qual","coleção","tem","o","maior","número","de","documentos","?","Liste","o","nome","da","coleção",",","o","id","e","o","número","de","documentos","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,12,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT T1.Collection_Name , T1.Collection_ID , count(*) FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\" GROUP BY T1.Collection_ID ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.Collection_Name",",","T1.Collection_ID",",","count","(","*",")","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''","GROUP","BY","T1.Collection_ID","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","collection_name",",","t1",".","collection_id",",","count","(","*",")","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value","group","by","t1",".","collection_id","order","by","count","(","*",")","desc","limit","value"],"question":"Para cada coleção chamada 'Best', qual é o nome e o id da que tem mais documentos, e quantos documentos ela possui?","question_toks":["Para","cada","coleção","chamada","'Best","'",",","qual","é","o","nome","e","o","id","da","que","tem","mais","documentos",",","e","quantos","documentos","ela","possui","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,12,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID JOIN Documents_in_Collections AS T3 ON T1.Document_Object_ID = T3.Document_Object_ID JOIN Collections AS T4 ON T3.Collection_ID = T4.Collection_ID WHERE T2.Document_Subset_Name = \"Best for 2000\" AND T4.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T1.Document_Object_ID","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","JOIN","Documents_in_Collections","AS","T3","ON","T1.Document_Object_ID","=","T3.Document_Object_ID","JOIN","Collections","AS","T4","ON","T3.Collection_ID","=","T4.Collection_ID","WHERE","T2.Document_Subset_Name","=","``","Best","for","2000","''","AND","T4.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","join","documents_in_collections","as","t3","on","t1",".","document_object_id","=","t3",".","document_object_id","join","collections","as","t4","on","t3",".","collection_id","=","t4",".","collection_id","where","t2",".","document_subset_name","=","value","and","t4",".","collection_name","=","value"],"question":"Liste o id dos documentos que estão no subconjunto de documentos \"Best for 2000\" e na coleção chamada \"Best\".","question_toks":["Liste","o","id","dos","documentos","que","estão","no","subconjunto","de","documentos","``","Best","for","2000","''","e","na","coleção","chamada","``","Best","''","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0],["table_unit",4],["table_unit",3]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null],"and",[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID JOIN Documents_in_Collections AS T3 ON T1.Document_Object_ID = T3.Document_Object_ID JOIN Collections AS T4 ON T3.Collection_ID = T4.Collection_ID WHERE T2.Document_Subset_Name = \"Best for 2000\" AND T4.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T1.Document_Object_ID","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","JOIN","Documents_in_Collections","AS","T3","ON","T1.Document_Object_ID","=","T3.Document_Object_ID","JOIN","Collections","AS","T4","ON","T3.Collection_ID","=","T4.Collection_ID","WHERE","T2.Document_Subset_Name","=","``","Best","for","2000","''","AND","T4.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","join","documents_in_collections","as","t3","on","t1",".","document_object_id","=","t3",".","document_object_id","join","collections","as","t4","on","t3",".","collection_id","=","t4",".","collection_id","where","t2",".","document_subset_name","=","value","and","t4",".","collection_name","=","value"],"question":"Quais são os diferentes ids de objeto de documento no subconjunto chamado 'Best for 2000' e na coleção chamada 'Best'?","question_toks":["Quais","são","os","diferentes","ids","de","objeto","de","documento","no","subconjunto","chamado","'Best","for","2000","'","e","na","coleção","chamada","'Best","'","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0],["table_unit",4],["table_unit",3]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null],"and",[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\" EXCEPT SELECT DISTINCT T3.Document_Object_ID FROM Document_Subset_Members AS T3 JOIN Document_Subsets AS T4 ON T3.Document_Subset_ID = T4.Document_Subset_ID WHERE T4.Document_Subset_Name = \"Best for 2000\"","query_toks":["SELECT","DISTINCT","T2.Document_Object_ID","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''","EXCEPT","SELECT","DISTINCT","T3.Document_Object_ID","FROM","Document_Subset_Members","AS","T3","JOIN","Document_Subsets","AS","T4","ON","T3.Document_Subset_ID","=","T4.Document_Subset_ID","WHERE","T4.Document_Subset_Name","=","``","Best","for","2000","''"],"query_toks_no_value":["select","distinct","t2",".","document_object_id","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value","except","select","distinct","t3",".","document_object_id","from","document_subset_members","as","t3","join","document_subsets","as","t4","on","t3",".","document_subset_id","=","t4",".","document_subset_id","where","t4",".","document_subset_name","=","value"],"question":"Liste os ids dos documentos que estão na coleção chamada Best, mas não no subconjunto de documentos Best for 2000.","question_toks":["Liste","os","ids","dos","documentos","que","estão","na","coleção","chamada","Best",",","mas","não","no","subconjunto","de","documentos","Best","for","2000","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[true,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T2.Document_Object_ID FROM Collections AS T1 JOIN Documents_in_Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T1.Collection_Name = \"Best\" EXCEPT SELECT DISTINCT T3.Document_Object_ID FROM Document_Subset_Members AS T3 JOIN Document_Subsets AS T4 ON T3.Document_Subset_ID = T4.Document_Subset_ID WHERE T4.Document_Subset_Name = \"Best for 2000\"","query_toks":["SELECT","DISTINCT","T2.Document_Object_ID","FROM","Collections","AS","T1","JOIN","Documents_in_Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T1.Collection_Name","=","``","Best","''","EXCEPT","SELECT","DISTINCT","T3.Document_Object_ID","FROM","Document_Subset_Members","AS","T3","JOIN","Document_Subsets","AS","T4","ON","T3.Document_Subset_ID","=","T4.Document_Subset_ID","WHERE","T4.Document_Subset_Name","=","``","Best","for","2000","''"],"query_toks_no_value":["select","distinct","t2",".","document_object_id","from","collections","as","t1","join","documents_in_collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t1",".","collection_name","=","value","except","select","distinct","t3",".","document_object_id","from","document_subset_members","as","t3","join","document_subsets","as","t4","on","t3",".","document_subset_id","=","t4",".","document_subset_id","where","t4",".","document_subset_name","=","value"],"question":"Quais são os diferentes ids de objeto de documento que estão na coleção chamada Best, mas não no subconjunto chamado 'Best for 2000'?","question_toks":["Quais","são","os","diferentes","ids","de","objeto","de","documento","que","estão","na","coleção","chamada","Best",",","mas","não","no","subconjunto","chamado","'Best","for","2000","'","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,17,false],null]]},"select":[true,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",5],["table_unit",0]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID JOIN Documents_in_Collections AS T3 ON T1.Document_Object_ID = T3.Document_Object_ID JOIN Collections AS T4 ON T3.Collection_ID = T4.Collection_ID WHERE T2.Document_Subset_Name = \"Best for 2000\" OR T4.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T1.Document_Object_ID","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","JOIN","Documents_in_Collections","AS","T3","ON","T1.Document_Object_ID","=","T3.Document_Object_ID","JOIN","Collections","AS","T4","ON","T3.Collection_ID","=","T4.Collection_ID","WHERE","T2.Document_Subset_Name","=","``","Best","for","2000","''","OR","T4.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","join","documents_in_collections","as","t3","on","t1",".","document_object_id","=","t3",".","document_object_id","join","collections","as","t4","on","t3",".","collection_id","=","t4",".","collection_id","where","t2",".","document_subset_name","=","value","or","t4",".","collection_name","=","value"],"question":"Liste os ids dos documentos que estão no subconjunto de documentos \"Best for 2000\" ou na coleção chamada \"Best\".","question_toks":["Liste","os","ids","dos","documentos","que","estão","no","subconjunto","de","documentos","``","Best","for","2000","''","ou","na","coleção","chamada","``","Best","''","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0],["table_unit",4],["table_unit",3]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null],"or",[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Document_Object_ID FROM Document_Subset_Members AS T1 JOIN Document_Subsets AS T2 ON T1.Document_Subset_ID = T2.Document_Subset_ID JOIN Documents_in_Collections AS T3 ON T1.Document_Object_ID = T3.Document_Object_ID JOIN Collections AS T4 ON T3.Collection_ID = T4.Collection_ID WHERE T2.Document_Subset_Name = \"Best for 2000\" OR T4.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T1.Document_Object_ID","FROM","Document_Subset_Members","AS","T1","JOIN","Document_Subsets","AS","T2","ON","T1.Document_Subset_ID","=","T2.Document_Subset_ID","JOIN","Documents_in_Collections","AS","T3","ON","T1.Document_Object_ID","=","T3.Document_Object_ID","JOIN","Collections","AS","T4","ON","T3.Collection_ID","=","T4.Collection_ID","WHERE","T2.Document_Subset_Name","=","``","Best","for","2000","''","OR","T4.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t1",".","document_object_id","from","document_subset_members","as","t1","join","document_subsets","as","t2","on","t1",".","document_subset_id","=","t2",".","document_subset_id","join","documents_in_collections","as","t3","on","t1",".","document_object_id","=","t3",".","document_object_id","join","collections","as","t4","on","t3",".","collection_id","=","t4",".","collection_id","where","t2",".","document_subset_name","=","value","or","t4",".","collection_name","=","value"],"question":"Quais são os diferentes ids de documentos que estão no subconjunto chamado 'Best for 2000' ou na coleção chamada 'Best'?","question_toks":["Quais","são","os","diferentes","ids","de","documentos","que","estão","no","subconjunto","chamado","'Best","for","2000","'","ou","na","coleção","chamada","'Best","'","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",0],["table_unit",4],["table_unit",3]],"conds":[[false,2,[0,[0,20,false],null],[0,1,false],null],"and",[false,2,[0,[0,18,false],null],[0,16,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Best for 2000\"",null],"or",[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T4.Collection_Name FROM Collection_Subset_Members AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Related_Collection_ID = T2.Collection_ID JOIN Collections AS T3 ON T1.Collection_ID = T3.Collection_ID JOIN Collections AS T4 ON T2.Collection_ID = T4.Collection_ID WHERE T3.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T4.Collection_Name","FROM","Collection_Subset_Members","AS","T1","JOIN","Collection_Subset_Members","AS","T2","ON","T1.Related_Collection_ID","=","T2.Collection_ID","JOIN","Collections","AS","T3","ON","T1.Collection_ID","=","T3.Collection_ID","JOIN","Collections","AS","T4","ON","T2.Collection_ID","=","T4.Collection_ID","WHERE","T3.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t4",".","collection_name","from","collection_subset_members","as","t1","join","collection_subset_members","as","t2","on","t1",".","related_collection_id","=","t2",".","collection_id","join","collections","as","t3","on","t1",".","collection_id","=","t3",".","collection_id","join","collections","as","t4","on","t2",".","collection_id","=","t4",".","collection_id","where","t3",".","collection_name","=","value"],"question":"Liste todos os nomes das coleções que estão relacionadas à coleção chamada Best.","question_toks":["Liste","todos","os","nomes","das","coleções","que","estão","relacionadas","à","coleção","chamada","Best","."],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",6],["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,22,false],null],[0,21,false],null],"and",[false,2,[0,[0,21,false],null],[0,12,false],null],"and",[false,2,[0,[0,21,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T4.Collection_Name FROM Collection_Subset_Members AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Related_Collection_ID = T2.Collection_ID JOIN Collections AS T3 ON T1.Collection_ID = T3.Collection_ID JOIN Collections AS T4 ON T2.Collection_ID = T4.Collection_ID WHERE T3.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T4.Collection_Name","FROM","Collection_Subset_Members","AS","T1","JOIN","Collection_Subset_Members","AS","T2","ON","T1.Related_Collection_ID","=","T2.Collection_ID","JOIN","Collections","AS","T3","ON","T1.Collection_ID","=","T3.Collection_ID","JOIN","Collections","AS","T4","ON","T2.Collection_ID","=","T4.Collection_ID","WHERE","T3.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t4",".","collection_name","from","collection_subset_members","as","t1","join","collection_subset_members","as","t2","on","t1",".","related_collection_id","=","t2",".","collection_id","join","collections","as","t3","on","t1",".","collection_id","=","t3",".","collection_id","join","collections","as","t4","on","t2",".","collection_id","=","t4",".","collection_id","where","t3",".","collection_name","=","value"],"question":"Quais são os nomes das coleções que estão relacionadas à coleção chamada Best?","question_toks":["Quais","são","os","nomes","das","coleções","que","estão","relacionadas","à","coleção","chamada","Best","?"],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",6],["table_unit",3],["table_unit",3]],"conds":[[false,2,[0,[0,22,false],null],[0,21,false],null],"and",[false,2,[0,[0,21,false],null],[0,12,false],null],"and",[false,2,[0,[0,21,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(DISTINCT T1.Related_Collection_ID) FROM Collection_Subset_Members AS T1 JOIN Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T2.Collection_Name = \"Best\";","query_toks":["SELECT","count","(","DISTINCT","T1.Related_Collection_ID",")","FROM","Collection_Subset_Members","AS","T1","JOIN","Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T2.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","count","(","distinct","t1",".","related_collection_id",")","from","collection_subset_members","as","t1","join","collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t2",".","collection_name","=","value"],"question":"Quantas coleções estão relacionadas à coleção chamada Best?","question_toks":["Quantas","coleções","estão","relacionadas","à","coleção","chamada","Best","?"],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",3]],"conds":[[false,2,[0,[0,21,false],null],[0,12,false],null]]},"select":[false,[[3,[0,[0,22,true],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT count(DISTINCT T1.Related_Collection_ID) FROM Collection_Subset_Members AS T1 JOIN Collections AS T2 ON T1.Collection_ID = T2.Collection_ID WHERE T2.Collection_Name = \"Best\";","query_toks":["SELECT","count","(","DISTINCT","T1.Related_Collection_ID",")","FROM","Collection_Subset_Members","AS","T1","JOIN","Collections","AS","T2","ON","T1.Collection_ID","=","T2.Collection_ID","WHERE","T2.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","count","(","distinct","t1",".","related_collection_id",")","from","collection_subset_members","as","t1","join","collections","as","t2","on","t1",".","collection_id","=","t2",".","collection_id","where","t2",".","collection_name","=","value"],"question":"Quantas coleções diferentes estão relacionadas àquela chamada 'Best'?","question_toks":["Quantas","coleções","diferentes","estão","relacionadas","àquela","chamada","'Best","'","?"],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",3]],"conds":[[false,2,[0,[0,21,false],null],[0,12,false],null]]},"select":[false,[[3,[0,[0,22,true],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Collection_Subset_Name FROM Collection_Subsets AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Collection_Subset_ID = T2.Collection_Subset_ID JOIN Collections AS T3 ON T2.Collection_ID = T3.Collection_ID WHERE T3.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T1.Collection_Subset_Name","FROM","Collection_Subsets","AS","T1","JOIN","Collection_Subset_Members","AS","T2","ON","T1.Collection_Subset_ID","=","T2.Collection_Subset_ID","JOIN","Collections","AS","T3","ON","T2.Collection_ID","=","T3.Collection_ID","WHERE","T3.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t1",".","collection_subset_name","from","collection_subsets","as","t1","join","collection_subset_members","as","t2","on","t1",".","collection_subset_id","=","t2",".","collection_subset_id","join","collections","as","t3","on","t2",".","collection_id","=","t3",".","collection_id","where","t3",".","collection_name","=","value"],"question":"Em qual subconjunto de coleção está o nome da coleção Best? Liste o nome do subconjunto de coleção.","question_toks":["Em","qual","subconjunto","de","coleção","está","o","nome","da","coleção","Best","?","Liste","o","nome","do","subconjunto","de","coleção","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",6],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,23,false],null],"and",[false,2,[0,[0,21,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_and_collections","query":"SELECT DISTINCT T1.Collection_Subset_Name FROM Collection_Subsets AS T1 JOIN Collection_Subset_Members AS T2 ON T1.Collection_Subset_ID = T2.Collection_Subset_ID JOIN Collections AS T3 ON T2.Collection_ID = T3.Collection_ID WHERE T3.Collection_Name = \"Best\";","query_toks":["SELECT","DISTINCT","T1.Collection_Subset_Name","FROM","Collection_Subsets","AS","T1","JOIN","Collection_Subset_Members","AS","T2","ON","T1.Collection_Subset_ID","=","T2.Collection_Subset_ID","JOIN","Collections","AS","T3","ON","T2.Collection_ID","=","T3.Collection_ID","WHERE","T3.Collection_Name","=","``","Best","''",";"],"query_toks_no_value":["select","distinct","t1",".","collection_subset_name","from","collection_subsets","as","t1","join","collection_subset_members","as","t2","on","t1",".","collection_subset_id","=","t2",".","collection_subset_id","join","collections","as","t3","on","t2",".","collection_id","=","t3",".","collection_id","where","t3",".","collection_name","=","value"],"question":"Quais são os subconjuntos de coleção em que a coleção chamada 'Best' está?","question_toks":["Quais","são","os","subconjuntos","de","coleção","em","que","a","coleção","chamada","'Best","'","está","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",6],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,23,false],null],"and",[false,2,[0,[0,21,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"Best\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT count(*) FROM songs WHERE name LIKE \"%Love%\"","query_toks":["SELECT","count","(","*",")","FROM","songs","WHERE","name","LIKE","``","%","Love","%","''"],"query_toks_no_value":["select","count","(","*",")","from","songs","where","name","like","value"],"question":"Conte quantas músicas contêm \"Love\" em seus nomes.","question_toks":["Conte","quantas","músicas","contêm","``","Love","''","em","seus","nomes","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,9,[0,[0,7,false],null],"\"%Love%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT name FROM songs ORDER BY name","query_toks":["SELECT","name","FROM","songs","ORDER","BY","name"],"query_toks_no_value":["select","name","from","songs","order","by","name"],"question":"Liste o nome das músicas em ordem lexicográfica ascendente.","question_toks":["Liste","o","nome","das","músicas","em","ordem","lexicográfica","ascendente","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"select name , language from songs","query_toks":["select","name",",","language","from","songs"],"query_toks_no_value":["select","name",",","language","from","songs"],"question":"Liste os nomes e idiomas das músicas.","question_toks":["Liste","os","nomes","e","idiomas","das","músicas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT max(voice_sound_quality) , min(voice_sound_quality) FROM performance_score","query_toks":["SELECT","max","(","voice_sound_quality",")",",","min","(","voice_sound_quality",")","FROM","performance_score"],"query_toks_no_value":["select","max","(","voice_sound_quality",")",",","min","(","voice_sound_quality",")","from","performance_score"],"question":"Quais são as pontuações máxima e mínima de qualidade de som de voz das performances?","question_toks":["Quais","são","as","pontuações","máxima","e","mínima","de","qualidade","de","som","de","voz","das","performances","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[1,[0,[0,11,false],null]],[2,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT T1.voice_sound_quality , T1.rhythm_tempo , T1.stage_presence FROM performance_score AS T1 JOIN participants AS T2 ON T1.participant_id = T2.id WHERE T2.name = 'Freeway'","query_toks":["SELECT","T1.voice_sound_quality",",","T1.rhythm_tempo",",","T1.stage_presence","FROM","performance_score","AS","T1","JOIN","participants","AS","T2","ON","T1.participant_id","=","T2.id","WHERE","T2.name","=","'Freeway","'"],"query_toks_no_value":["select","t1",".","voice_sound_quality",",","t1",".","rhythm_tempo",",","t1",".","stage_presence","from","performance_score","as","t1","join","participants","as","t2","on","t1",".","participant_id","=","t2",".","id","where","t2",".","name","=","value"],"question":"Quais são as pontuações de qualidade do som da voz, tempo de ritmo e presença de palco realizadas pelo participante chamado 'Freeway'?","question_toks":["Quais","são","as","pontuações","de","qualidade","do","som","da","voz",",","tempo","de","ritmo","e","presença","de","palco","realizadas","pelo","participante","chamado","'Freeway","'","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Freeway\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT id , LANGUAGE , original_artist FROM songs WHERE name != 'Love'","query_toks":["SELECT","id",",","LANGUAGE",",","original_artist","FROM","songs","WHERE","name","!","=","'Love","'"],"query_toks_no_value":["select","id",",","language",",","original_artist","from","songs","where","name","!","=","value"],"question":"Quais são o id, a língua e o artista original das músicas cujo nome não é 'Love'?","question_toks":["Quais","são","o","id",",","a","língua","e","o","artista","original","das","músicas","cujo","nome","não","é","'Love","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,7,[0,[0,7,false],null],"\"Love\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT name , original_artist FROM songs WHERE english_translation = 'All the streets of love'","query_toks":["SELECT","name",",","original_artist","FROM","songs","WHERE","english_translation","=","'All","the","streets","of","love","'"],"query_toks_no_value":["select","name",",","original_artist","from","songs","where","english_translation","=","value"],"question":"Quais são os nomes e os artistas originais da canção cuja tradução em inglês é 'All the streets of love'?","question_toks":["Quais","são","os","nomes","e","os","artistas","originais","da","canção","cuja","tradução","em","inglês","é","'All","the","streets","of","love","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"All the streets of love\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT DISTINCT T2.stage_presence FROM songs AS T1 JOIN performance_score AS T2 ON T1.id = T2.songs_id WHERE T1.language = 'English'","query_toks":["SELECT","DISTINCT","T2.stage_presence","FROM","songs","AS","T1","JOIN","performance_score","AS","T2","ON","T1.id","=","T2.songs_id","WHERE","T1.language","=","'English","'"],"query_toks_no_value":["select","distinct","t2",".","stage_presence","from","songs","as","t1","join","performance_score","as","t2","on","t1",".","id","=","t2",".","songs_id","where","t1",".","language","=","value"],"question":"Quais são as pontuações distintas de presença de palco para todas as músicas que estão no idioma 'English'?","question_toks":["Quais","são","as","pontuações","distintas","de","presença","de","palco","para","todas","as","músicas","que","estão","no","idioma","'English","'","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null]]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT T1.id , T1.Name FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id GROUP BY T1.id HAVING count(*) >= 2","query_toks":["SELECT","T1.id",",","T1.Name","FROM","participants","AS","T1","JOIN","performance_score","AS","T2","ON","T2.participant_id","=","T1.id","GROUP","BY","T1.id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","id",",","t1",".","name","from","participants","as","t1","join","performance_score","as","t2","on","t2",".","participant_id","=","t1",".","id","group","by","t1",".","id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids e nomes dos participantes que se apresentaram em pelo menos duas músicas?","question_toks":["Quais","são","os","ids","e","nomes","dos","participantes","que","se","apresentaram","em","pelo","menos","duas","músicas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT T1.id , T1.Name , T1.popularity FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id GROUP BY T1.id ORDER BY count(*)","query_toks":["SELECT","T1.id",",","T1.Name",",","T1.popularity","FROM","participants","AS","T1","JOIN","performance_score","AS","T2","ON","T2.participant_id","=","T1.id","GROUP","BY","T1.id","ORDER","BY","count","(","*",")"],"query_toks_no_value":["select","t1",".","id",",","t1",".","name",",","t1",".","popularity","from","participants","as","t1","join","performance_score","as","t2","on","t2",".","participant_id","=","t1",".","id","group","by","t1",".","id","order","by","count","(","*",")"],"question":"Quais são os ids, nomes e popularidade dos participantes, ordenados pelo número de músicas que eles performam?","question_toks":["Quais","são","os","ids",",","nomes","e","popularidade","dos","participantes",",","ordenados","pelo","número","de","músicas","que","eles","performam","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT T1.id , T1.name FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id WHERE T2.voice_sound_quality = 5 OR T2.rhythm_tempo = 5","query_toks":["SELECT","T1.id",",","T1.name","FROM","participants","AS","T1","JOIN","performance_score","AS","T2","ON","T2.participant_id","=","T1.id","WHERE","T2.voice_sound_quality","=","5","OR","T2.rhythm_tempo","=","5"],"query_toks_no_value":["select","t1",".","id",",","t1",".","name","from","participants","as","t1","join","performance_score","as","t2","on","t2",".","participant_id","=","t1",".","id","where","t2",".","voice_sound_quality","=","value","or","t2",".","rhythm_tempo","=","value"],"question":"Quais são o id e o nome dos participantes que receberam nota 5 para a qualidade do som ou para o tempo do ritmo?","question_toks":["Quais","são","o","id","e","o","nome","dos","participantes","que","receberam","nota","5","para","a","qualidade","do","som","ou","para","o","tempo","do","ritmo","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],5.0,null],"or",[false,2,[0,[0,12,false],null],5.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT T1.voice_sound_quality FROM performance_score AS T1 JOIN songs AS T2 ON T1.songs_id = T2.id WHERE T2.name = ' The Balkan Girls ' AND T2.language = 'English'","query_toks":["SELECT","T1.voice_sound_quality","FROM","performance_score","AS","T1","JOIN","songs","AS","T2","ON","T1.songs_id","=","T2.id","WHERE","T2.name","=","'","The","Balkan","Girls","'","AND","T2.language","=","'English","'"],"query_toks_no_value":["select","t1",".","voice_sound_quality","from","performance_score","as","t1","join","songs","as","t2","on","t1",".","songs_id","=","t2",".","id","where","t2",".","name","=","value","and","t2",".","language","=","value"],"question":"Quais são as pontuações de qualidade do som vocal recebidas para a música chamada 'The Balkan Girls' na língua 'English'?","question_toks":["Quais","são","as","pontuações","de","qualidade","do","som","vocal","recebidas","para","a","música","chamada","'The","Balkan","Girls","'","na","língua","'English","'","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\" The Balkan Girls \"",null],"and",[false,2,[0,[0,5,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT T1.id , T1.name FROM songs AS T1 JOIN performance_score AS T2 ON T1.id = T2.songs_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.id",",","T1.name","FROM","songs","AS","T1","JOIN","performance_score","AS","T2","ON","T1.id","=","T2.songs_id","GROUP","BY","T1.id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","id",",","t1",".","name","from","songs","as","t1","join","performance_score","as","t2","on","t1",".","id","=","t2",".","songs_id","group","by","t1",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são o id e o nome da canção cantada pelo maior número de participantes?","question_toks":["Quais","são","o","id","e","o","nome","da","canção","cantada","pelo","maior","número","de","participantes","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT count(*) FROM performance_score WHERE stage_presence < 7 OR stage_presence > 9","query_toks":["SELECT","count","(","*",")","FROM","performance_score","WHERE","stage_presence","<","7","OR","stage_presence",">","9"],"query_toks_no_value":["select","count","(","*",")","from","performance_score","where","stage_presence","<","value","or","stage_presence",">","value"],"question":"Conte quantas performances têm uma pontuação de presença no palco menor que 7 ou maior que 9.","question_toks":["Conte","quantas","performances","têm","uma","pontuação","de","presença","no","palco","menor","que","7","ou","maior","que","9","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,13,false],null],7.0,null],"or",[false,3,[0,[0,13,false],null],9.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT count(*) FROM songs WHERE id NOT IN ( SELECT songs_id FROM performance_score );","query_toks":["SELECT","count","(","*",")","FROM","songs","WHERE","id","NOT","IN","(","SELECT","songs_id","FROM","performance_score",")",";"],"query_toks_no_value":["select","count","(","*",")","from","songs","where","id","not","in","(","select","songs_id","from","performance_score",")"],"question":"Quantas músicas listadas não foram performadas?","question_toks":["Quantas","músicas","listadas","não","foram","performadas","?"],"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",2]],"conds":[]},"select":[false,[[0,[0,[0,10,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":"sing_contest","query":"SELECT avg(T2.rhythm_tempo) , T1.language FROM songs AS T1 JOIN performance_score AS T2 ON T2.songs_id = T1.id GROUP BY T1.language","query_toks":["SELECT","avg","(","T2.rhythm_tempo",")",",","T1.language","FROM","songs","AS","T1","JOIN","performance_score","AS","T2","ON","T2.songs_id","=","T1.id","GROUP","BY","T1.language"],"query_toks_no_value":["select","avg","(","t2",".","rhythm_tempo",")",",","t1",".","language","from","songs","as","t1","join","performance_score","as","t2","on","t2",".","songs_id","=","t1",".","id","group","by","t1",".","language"],"question":"Quais são as médias das pontuações de ritmo para as músicas em cada idioma diferente?","question_toks":["Quais","são","as","médias","das","pontuações","de","ritmo","para","as","músicas","em","cada","idioma","diferente","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[5,[0,[0,12,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT DISTINCT T1.name FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id JOIN songs AS T3 ON T3.id = T2.songs_id WHERE T3.language = 'English'","query_toks":["SELECT","DISTINCT","T1.name","FROM","participants","AS","T1","JOIN","performance_score","AS","T2","ON","T2.participant_id","=","T1.id","JOIN","songs","AS","T3","ON","T3.id","=","T2.songs_id","WHERE","T3.language","=","'English","'"],"query_toks_no_value":["select","distinct","t1",".","name","from","participants","as","t1","join","performance_score","as","t2","on","t2",".","participant_id","=","t1",".","id","join","songs","as","t3","on","t3",".","id","=","t2",".","songs_id","where","t3",".","language","=","value"],"question":"Quais são os nomes distintos dos participantes que cantaram uma música em 'English'?","question_toks":["Quais","são","os","nomes","distintos","dos","participantes","que","cantaram","uma","música","em","'English","'","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null],"and",[false,2,[0,[0,4,false],null],[0,10,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT T1.name , T1.popularity FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id JOIN songs AS T3 ON T3.id = T2.songs_id WHERE T3.language = 'Croatian' INTERSECT SELECT T1.name , T1.popularity FROM participants AS T1 JOIN performance_score AS T2 ON T2.participant_id = T1.id JOIN songs AS T3 ON T3.id = T2.songs_id WHERE T3.language = 'English'","query_toks":["SELECT","T1.name",",","T1.popularity","FROM","participants","AS","T1","JOIN","performance_score","AS","T2","ON","T2.participant_id","=","T1.id","JOIN","songs","AS","T3","ON","T3.id","=","T2.songs_id","WHERE","T3.language","=","'Croatian","'","INTERSECT","SELECT","T1.name",",","T1.popularity","FROM","participants","AS","T1","JOIN","performance_score","AS","T2","ON","T2.participant_id","=","T1.id","JOIN","songs","AS","T3","ON","T3.id","=","T2.songs_id","WHERE","T3.language","=","'English","'"],"query_toks_no_value":["select","t1",".","name",",","t1",".","popularity","from","participants","as","t1","join","performance_score","as","t2","on","t2",".","participant_id","=","t1",".","id","join","songs","as","t3","on","t3",".","id","=","t2",".","songs_id","where","t3",".","language","=","value","intersect","select","t1",".","name",",","t1",".","popularity","from","participants","as","t1","join","performance_score","as","t2","on","t2",".","participant_id","=","t1",".","id","join","songs","as","t3","on","t3",".","id","=","t2",".","songs_id","where","t3",".","language","=","value"],"question":"Quais são o nome e a popularidade dos participantes que cantaram uma música tanto em 'Croatian' quanto em 'English'?","question_toks":["Quais","são","o","nome","e","a","popularidade","dos","participantes","que","cantaram","uma","música","tanto","em","'Croatian","'","quanto","em","'English","'","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null],"and",[false,2,[0,[0,4,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Croatian\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,9,false],null],[0,1,false],null],"and",[false,2,[0,[0,4,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"sing_contest","query":"SELECT name FROM songs WHERE name LIKE \"%Is%\"","query_toks":["SELECT","name","FROM","songs","WHERE","name","LIKE","``","%","Is","%","''"],"query_toks_no_value":["select","name","from","songs","where","name","like","value"],"question":"Quais nomes de músicas têm a substring \"Is\"?","question_toks":["Quais","nomes","de","músicas","têm","a","substring","``","Is","''","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,9,[0,[0,7,false],null],"\"%Is%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"sing_contest","query":"select t2.original_artist from performance_score as t1 join songs as t2 on t2.id = t1.songs_id where t1.rhythm_tempo > 5 order by t1.voice_sound_quality desc","query_toks":["select","t2.original_artist","from","performance_score","as","t1","join","songs","as","t2","on","t2.id","=","t1.songs_id","where","t1.rhythm_tempo",">","5","order","by","t1.voice_sound_quality","desc"],"query_toks_no_value":["select","t2",".","original_artist","from","performance_score","as","t1","join","songs","as","t2","on","t2",".","id","=","t1",".","songs_id","where","t1",".","rhythm_tempo",">","value","order","by","t1",".","voice_sound_quality","desc"],"question":"Encontre os artistas originais que cantam músicas com tempo de ritmo acima de 5 e liste os resultados em ordem decrescente de qualidade do som da voz.","question_toks":["Encontre","os","artistas","originais","que","cantam","músicas","com","tempo","de","ritmo","acima","de","5","e","liste","os","resultados","em","ordem","decrescente","de","qualidade","do","som","da","voz","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,12,false],null],5.0,null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT count(*) FROM City","query_toks":["SELECT","count","(","*",")","FROM","City"],"query_toks_no_value":["select","count","(","*",")","from","city"],"question":"Quantas cidades temos?","question_toks":["Quantas","cidades","temos","?"],"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":"address_1","query":"SELECT count(*) FROM City","query_toks":["SELECT","count","(","*",")","FROM","City"],"query_toks_no_value":["select","count","(","*",")","from","city"],"question":"Conte o número de cidades.","question_toks":["Conte","o","número","de","cidades","."],"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":"address_1","query":"select distinct state from city","query_toks":["select","distinct","state","from","city"],"query_toks_no_value":["select","distinct","state","from","city"],"question":"Liste todos os estados diferentes.","question_toks":["Liste","todos","os","estados","diferentes","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT DISTINCT state FROM City","query_toks":["SELECT","DISTINCT","state","FROM","City"],"query_toks_no_value":["select","distinct","state","from","city"],"question":"Quais são todos os estados distintos?","question_toks":["Quais","são","todos","os","estados","distintos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT count(DISTINCT country) FROM City","query_toks":["SELECT","count","(","DISTINCT","country",")","FROM","City"],"query_toks_no_value":["select","count","(","distinct","country",")","from","city"],"question":"Quantos países temos?","question_toks":["Quantos","países","temos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,15,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT count(DISTINCT country) FROM City","query_toks":["SELECT","count","(","DISTINCT","country",")","FROM","City"],"query_toks_no_value":["select","count","(","distinct","country",")","from","city"],"question":"Conte o número de países.","question_toks":["Conte","o","número","de","países","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,15,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city_name , city_code , state , country FROM City","query_toks":["SELECT","city_name",",","city_code",",","state",",","country","FROM","City"],"query_toks_no_value":["select","city_name",",","city_code",",","state",",","country","from","city"],"question":"Mostre nomes, códigos, estados, países de todas as cidades.","question_toks":["Mostre","nomes",",","códigos",",","estados",",","países","de","todas","as","cidades","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city_name , city_code , state , country FROM City","query_toks":["SELECT","city_name",",","city_code",",","state",",","country","FROM","City"],"query_toks_no_value":["select","city_name",",","city_code",",","state",",","country","from","city"],"question":"Quais são os nomes, códigos, estados e países de todas as cidades?","question_toks":["Quais","são","os","nomes",",","códigos",",","estados","e","países","de","todas","as","cidades","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT latitude , longitude FROM City WHERE city_name = \"Baltimore\"","query_toks":["SELECT","latitude",",","longitude","FROM","City","WHERE","city_name","=","``","Baltimore","''"],"query_toks_no_value":["select","latitude",",","longitude","from","city","where","city_name","=","value"],"question":"Qual é a latitude e a longitude de Baltimore?","question_toks":["Qual","é","a","latitude","e","a","longitude","de","Baltimore","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Baltimore\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT latitude , longitude FROM City WHERE city_name = \"Baltimore\"","query_toks":["SELECT","latitude",",","longitude","FROM","City","WHERE","city_name","=","``","Baltimore","''"],"query_toks_no_value":["select","latitude",",","longitude","from","city","where","city_name","=","value"],"question":"Quais são a latitude e a longitude correspondentes a Baltimore?","question_toks":["Quais","são","a","latitude","e","a","longitude","correspondentes","a","Baltimore","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Baltimore\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city_name FROM City WHERE state = \"PA\"","query_toks":["SELECT","city_name","FROM","City","WHERE","state","=","``","PA","''"],"query_toks_no_value":["select","city_name","from","city","where","state","=","value"],"question":"Mostre os nomes de todas as cidades no estado PA.","question_toks":["Mostre","os","nomes","de","todas","as","cidades","no","estado","PA","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"PA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city_name FROM City WHERE state = \"PA\"","query_toks":["SELECT","city_name","FROM","City","WHERE","state","=","``","PA","''"],"query_toks_no_value":["select","city_name","from","city","where","state","=","value"],"question":"Quais são os nomes de todas as cidades em PA?","question_toks":["Quais","são","os","nomes","de","todas","as","cidades","em","PA","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"PA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT count(*) FROM City WHERE country = \"CANADA\"","query_toks":["SELECT","count","(","*",")","FROM","City","WHERE","country","=","``","CANADA","''"],"query_toks_no_value":["select","count","(","*",")","from","city","where","country","=","value"],"question":"Quantas cidades existem no Canadá?","question_toks":["Quantas","cidades","existem","no","Canadá","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"CANADA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT count(*) FROM City WHERE country = \"CANADA\"","query_toks":["SELECT","count","(","*",")","FROM","City","WHERE","country","=","``","CANADA","''"],"query_toks_no_value":["select","count","(","*",")","from","city","where","country","=","value"],"question":"Conte o número de cidades no Canadá.","question_toks":["Conte","o","número","de","cidades","no","Canadá","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"CANADA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city_name FROM City WHERE country = \"USA\" ORDER BY latitude","query_toks":["SELECT","city_name","FROM","City","WHERE","country","=","``","USA","''","ORDER","BY","latitude"],"query_toks_no_value":["select","city_name","from","city","where","country","=","value","order","by","latitude"],"question":"Mostre os nomes de todas as cidades dos EUA ordenados pela latitude.","question_toks":["Mostre","os","nomes","de","todas","as","cidades","dos","EUA","ordenados","pela","latitude","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,16,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city_name FROM City WHERE country = \"USA\" ORDER BY latitude","query_toks":["SELECT","city_name","FROM","City","WHERE","country","=","``","USA","''","ORDER","BY","latitude"],"query_toks_no_value":["select","city_name","from","city","where","country","=","value","order","by","latitude"],"question":"Quais são todos os nomes das cidades para cidades nos EUA, ordenados pela latitude?","question_toks":["Quais","são","todos","os","nomes","das","cidades","para","cidades","nos","EUA",",","ordenados","pela","latitude","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,16,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state , count(*) FROM City GROUP BY state","query_toks":["SELECT","state",",","count","(","*",")","FROM","City","GROUP","BY","state"],"query_toks_no_value":["select","state",",","count","(","*",")","from","city","group","by","state"],"question":"Mostre todos os estados e o número de cidades em cada estado.","question_toks":["Mostre","todos","os","estados","e","o","número","de","cidades","em","cada","estado","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state , count(*) FROM City GROUP BY state","query_toks":["SELECT","state",",","count","(","*",")","FROM","City","GROUP","BY","state"],"query_toks_no_value":["select","state",",","count","(","*",")","from","city","group","by","state"],"question":"Quantas cidades há em cada estado?","question_toks":["Quantas","cidades","há","em","cada","estado","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"select country , count(*) from city group by country","query_toks":["select","country",",","count","(","*",")","from","city","group","by","country"],"query_toks_no_value":["select","country",",","count","(","*",")","from","city","group","by","country"],"question":"Mostre todos os países e o número de cidades em cada um.","question_toks":["Mostre","todos","os","países","e","o","número","de","cidades","em","cada","um","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT country , count(*) FROM City GROUP BY country","query_toks":["SELECT","country",",","count","(","*",")","FROM","City","GROUP","BY","country"],"query_toks_no_value":["select","country",",","count","(","*",")","from","city","group","by","country"],"question":"Quantas cidades há em cada país?","question_toks":["Quantas","cidades","há","em","cada","país","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state FROM City GROUP BY state HAVING count(*) >= 2","query_toks":["SELECT","state","FROM","City","GROUP","BY","state","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","state","from","city","group","by","state","having","count","(","*",")",">","=","value"],"question":"Liste todos os estados com pelo menos duas cidades.","question_toks":["Liste","todos","os","estados","com","pelo","menos","duas","cidades","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state FROM City GROUP BY state HAVING count(*) >= 2","query_toks":["SELECT","state","FROM","City","GROUP","BY","state","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","state","from","city","group","by","state","having","count","(","*",")",">","=","value"],"question":"Quais estados têm pelo menos duas cidades?","question_toks":["Quais","estados","têm","pelo","menos","duas","cidades","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state FROM City GROUP BY state ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","state","FROM","City","GROUP","BY","state","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","state","from","city","group","by","state","order","by","count","(","*",")","desc","limit","value"],"question":"Qual estado tem o maior número de cidades?","question_toks":["Qual","estado","tem","o","maior","número","de","cidades","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state FROM City GROUP BY state ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","state","FROM","City","GROUP","BY","state","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","state","from","city","group","by","state","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o estado que tem mais cidades.","question_toks":["Dê","o","estado","que","tem","mais","cidades","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT country FROM City GROUP BY country ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","country","FROM","City","GROUP","BY","country","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","country","from","city","group","by","country","order","by","count","(","*",")","asc","limit","value"],"question":"Qual país tem o menor número de cidades?","question_toks":["Qual","país","tem","o","menor","número","de","cidades","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT country FROM City GROUP BY country ORDER BY count(*) ASC LIMIT 1","query_toks":["SELECT","country","FROM","City","GROUP","BY","country","ORDER","BY","count","(","*",")","ASC","LIMIT","1"],"query_toks_no_value":["select","country","from","city","group","by","country","order","by","count","(","*",")","asc","limit","value"],"question":"Dê o país com o menor número de cidades.","question_toks":["Dê","o","país","com","o","menor","número","de","cidades","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T2.Fname , T2.Lname FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.state = \"MD\"","query_toks":["SELECT","T2.Fname",",","T2.Lname","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.state","=","``","MD","''"],"query_toks_no_value":["select","t2",".","fname",",","t2",".","lname","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","state","=","value"],"question":"Mostre o primeiro nome e o sobrenome dos estudantes que vivem no estado MD.","question_toks":["Mostre","o","primeiro","nome","e","o","sobrenome","dos","estudantes","que","vivem","no","estado","MD","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"MD\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T2.Fname , T2.Lname FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.state = \"MD\"","query_toks":["SELECT","T2.Fname",",","T2.Lname","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.state","=","``","MD","''"],"query_toks_no_value":["select","t2",".","fname",",","t2",".","lname","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","state","=","value"],"question":"Quais são os nomes completos dos estudantes que vivem em MD?","question_toks":["Quais","são","os","nomes","completos","dos","estudantes","que","vivem","em","MD","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"MD\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.country = \"CHINA\"","query_toks":["SELECT","count","(","*",")","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.country","=","``","CHINA","''"],"query_toks_no_value":["select","count","(","*",")","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","country","=","value"],"question":"Conte quantos estudantes vivem na China.","question_toks":["Conte","quantos","estudantes","vivem","na","China","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"CHINA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.country = \"CHINA\"","query_toks":["SELECT","count","(","*",")","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.country","=","``","CHINA","''"],"query_toks_no_value":["select","count","(","*",")","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","country","=","value"],"question":"Conte o número de estudantes que vivem na China.","question_toks":["Conte","o","número","de","estudantes","que","vivem","na","China","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"CHINA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T2.Fname , T2.Major FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.city_name = \"Baltimore\"","query_toks":["SELECT","T2.Fname",",","T2.Major","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.city_name","=","``","Baltimore","''"],"query_toks_no_value":["select","t2",".","fname",",","t2",".","major","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","city_name","=","value"],"question":"Retorne o primeiro nome e o curso dos estudantes que vivem em Baltimore.","question_toks":["Retorne","o","primeiro","nome","e","o","curso","dos","estudantes","que","vivem","em","Baltimore","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Baltimore\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T2.Fname , T2.Major FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.city_name = \"Baltimore\"","query_toks":["SELECT","T2.Fname",",","T2.Major","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.city_name","=","``","Baltimore","''"],"query_toks_no_value":["select","t2",".","fname",",","t2",".","major","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","city_name","=","value"],"question":"Quais são os primeiros nomes e os cursos dos estudantes que vivem em Baltimore?","question_toks":["Quais","são","os","primeiros","nomes","e","os","cursos","dos","estudantes","que","vivem","em","Baltimore","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Baltimore\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.country , count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.country","query_toks":["SELECT","T1.country",",","count","(","*",")","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.country"],"query_toks_no_value":["select","t1",".","country",",","count","(","*",")","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","country"],"question":"Mostre o número de estudantes vivendo em cada país.","question_toks":["Mostre","o","número","de","estudantes","vivendo","em","cada","país","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,15,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.country , count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.country","query_toks":["SELECT","T1.country",",","count","(","*",")","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.country"],"query_toks_no_value":["select","t1",".","country",",","count","(","*",")","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","country"],"question":"Conte quantos estudantes vivem em cada país.","question_toks":["Conte","quantos","estudantes","vivem","em","cada","país","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,15,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.city_name , count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.city_code","query_toks":["SELECT","T1.city_name",",","count","(","*",")","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.city_code"],"query_toks_no_value":["select","t1",".","city_name",",","count","(","*",")","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","city_code"],"question":"Encontre o número de estudantes que vivem em cada cidade.","question_toks":["Encontre","o","número","de","estudantes","que","vivem","em","cada","cidade","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.city_name , count(*) FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.city_code","query_toks":["SELECT","T1.city_name",",","count","(","*",")","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.city_code"],"query_toks_no_value":["select","t1",".","city_name",",","count","(","*",")","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","city_code"],"question":"Quantos estudantes vivem em cada cidade?","question_toks":["Quantos","estudantes","vivem","em","cada","cidade","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.state","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.state","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","state","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","state","order","by","count","(","*",")","desc","limit","value"],"question":"Qual estado tem o maior número de estudantes?","question_toks":["Qual","estado","tem","o","maior","número","de","estudantes","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.state","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.state","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","state","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","state","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o estado que tem mais estudantes.","question_toks":["Dê","o","estado","que","tem","mais","estudantes","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.country FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.country ORDER BY count(*) LIMIT 1","query_toks":["SELECT","T1.country","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.country","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","t1",".","country","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","country","order","by","count","(","*",")","limit","value"],"question":"Qual país tem o menor número de estudantes?","question_toks":["Qual","país","tem","o","menor","número","de","estudantes","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.country FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.country ORDER BY count(*) LIMIT 1","query_toks":["SELECT","T1.country","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.country","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","t1",".","country","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","country","order","by","count","(","*",")","limit","value"],"question":"Dê o país com o menor número de estudantes.","question_toks":["Dê","o","país","com","o","menor","número","de","estudantes","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.city_name FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.city_code HAVING count(*) >= 3","query_toks":["SELECT","T1.city_name","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.city_code","HAVING","count","(","*",")",">","=","3"],"query_toks_no_value":["select","t1",".","city_name","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","city_code","having","count","(","*",")",">","=","value"],"question":"Mostre os nomes de todas as cidades onde pelo menos três estudantes moram.","question_toks":["Mostre","os","nomes","de","todas","as","cidades","onde","pelo","menos","três","estudantes","moram","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.city_name FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.city_code HAVING count(*) >= 3","query_toks":["SELECT","T1.city_name","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.city_code","HAVING","count","(","*",")",">","=","3"],"query_toks_no_value":["select","t1",".","city_name","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","city_code","having","count","(","*",")",">","=","value"],"question":"Quais são os nomes das cidades com pelo menos três estudantes?","question_toks":["Quais","são","os","nomes","das","cidades","com","pelo","menos","três","estudantes","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state HAVING count(*) > 5","query_toks":["SELECT","T1.state","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.state","HAVING","count","(","*",")",">","5"],"query_toks_no_value":["select","t1",".","state","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","state","having","count","(","*",")",">","value"],"question":"Mostre todos os estados onde mais de 5 estudantes vivem.","question_toks":["Mostre","todos","os","estados","onde","mais","de","5","estudantes","vivem","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,3,[0,[3,0,false],null],5.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T1.state FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code GROUP BY T1.state HAVING count(*) > 5","query_toks":["SELECT","T1.state","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","GROUP","BY","T1.state","HAVING","count","(","*",")",">","5"],"query_toks_no_value":["select","t1",".","state","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","group","by","t1",".","state","having","count","(","*",")",">","value"],"question":"Quais são os estados com mais de 5 estudantes?","question_toks":["Quais","são","os","estados","com","mais","de","5","estudantes","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,3,[0,[3,0,false],null],5.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT StuID FROM Student EXCEPT SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE country = \"USA\"","query_toks":["SELECT","StuID","FROM","Student","EXCEPT","SELECT","StuID","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","country","=","``","USA","''"],"query_toks_no_value":["select","stuid","from","student","except","select","stuid","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","country","=","value"],"question":"Mostre os ids de todos os estudantes que não moram nos USA.","question_toks":["Mostre","os","ids","de","todos","os","estudantes","que","não","moram","nos","USA","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"address_1","query":"SELECT StuID FROM Student EXCEPT SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE country = \"USA\"","query_toks":["SELECT","StuID","FROM","Student","EXCEPT","SELECT","StuID","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","country","=","``","USA","''"],"query_toks_no_value":["select","stuid","from","student","except","select","stuid","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","country","=","value"],"question":"Quais são os IDs dos estudantes que não moram nos USA?","question_toks":["Quais","são","os","IDs","dos","estudantes","que","não","moram","nos","USA","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"address_1","query":"SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.state = \"PA\" AND T2.sex = 'F'","query_toks":["SELECT","StuID","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.state","=","``","PA","''","AND","T2.sex","=","'F","'"],"query_toks_no_value":["select","stuid","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","state","=","value","and","t2",".","sex","=","value"],"question":"Mostre os ids de todas as estudantes (sexo é F) que vivem no estado PA.","question_toks":["Mostre","os","ids","de","todas","as","estudantes","(","sexo","é","F",")","que","vivem","no","estado","PA","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"PA\"",null],"and",[false,2,[0,[0,5,false],null],"\"F\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T1.state = \"PA\" AND T2.sex = 'F'","query_toks":["SELECT","StuID","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.state","=","``","PA","''","AND","T2.sex","=","'F","'"],"query_toks_no_value":["select","stuid","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","state","=","value","and","t2",".","sex","=","value"],"question":"Quais são os ids dos alunos para alunas no estado da PA?","question_toks":["Quais","são","os","ids","dos","alunos","para","alunas","no","estado","da","PA","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"PA\"",null],"and",[false,2,[0,[0,5,false],null],"\"F\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T2.sex = 'M' AND T1.country != \"USA\"","query_toks":["SELECT","StuID","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T2.sex","=","'M","'","AND","T1.country","!","=","``","USA","''"],"query_toks_no_value":["select","stuid","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t2",".","sex","=","value","and","t1",".","country","!","=","value"],"question":"Mostre os ids de todos os estudantes do sexo masculino que vivem fora dos USA.","question_toks":["Mostre","os","ids","de","todos","os","estudantes","do","sexo","masculino","que","vivem","fora","dos","USA","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"M\"",null],"and",[false,7,[0,[0,15,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT StuID FROM City AS T1 JOIN Student AS T2 ON T1.city_code = T2.city_code WHERE T2.sex = 'M' AND T1.country != \"USA\"","query_toks":["SELECT","StuID","FROM","City","AS","T1","JOIN","Student","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T2.sex","=","'M","'","AND","T1.country","!","=","``","USA","''"],"query_toks_no_value":["select","stuid","from","city","as","t1","join","student","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t2",".","sex","=","value","and","t1",".","country","!","=","value"],"question":"Quais são os ids dos estudantes do sexo masculino que não estão nos USA?","question_toks":["Quais","são","os","ids","dos","estudantes","do","sexo","masculino","que","não","estão","nos","USA","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"M\"",null],"and",[false,7,[0,[0,15,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT distance FROM Direct_distance WHERE city1_code = \"BAL\" AND city2_code = \"CHI\"","query_toks":["SELECT","distance","FROM","Direct_distance","WHERE","city1_code","=","``","BAL","''","AND","city2_code","=","``","CHI","''"],"query_toks_no_value":["select","distance","from","direct_distance","where","city1_code","=","value","and","city2_code","=","value"],"question":"Qual é a distância entre BAL e CHI?","question_toks":["Qual","é","a","distância","entre","BAL","e","CHI","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"BAL\"",null],"and",[false,2,[0,[0,10,false],null],"\"CHI\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT distance FROM Direct_distance WHERE city1_code = \"BAL\" AND city2_code = \"CHI\"","query_toks":["SELECT","distance","FROM","Direct_distance","WHERE","city1_code","=","``","BAL","''","AND","city2_code","=","``","CHI","''"],"query_toks_no_value":["select","distance","from","direct_distance","where","city1_code","=","value","and","city2_code","=","value"],"question":"Dê a distância entre BAL e CHI?","question_toks":["Dê","a","distância","entre","BAL","e","CHI","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"BAL\"",null],"and",[false,2,[0,[0,10,false],null],"\"CHI\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT distance FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = \"Boston\" AND T3.city_name = \"Newark\"","query_toks":["SELECT","distance","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","City","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.city_name","=","``","Boston","''","AND","T3.city_name","=","``","Newark","''"],"query_toks_no_value":["select","distance","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","city","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","city_name","=","value","and","t3",".","city_name","=","value"],"question":"Me mostre a distância entre Boston e Newark.","question_toks":["Me","mostre","a","distância","entre","Boston","e","Newark","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null],"and",[false,2,[0,[0,10,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Boston\"",null],"and",[false,2,[0,[0,13,false],null],"\"Newark\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT distance FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = \"Boston\" AND T3.city_name = \"Newark\"","query_toks":["SELECT","distance","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","City","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.city_name","=","``","Boston","''","AND","T3.city_name","=","``","Newark","''"],"query_toks_no_value":["select","distance","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","city","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","city_name","=","value","and","t3",".","city_name","=","value"],"question":"Qual é a distância entre Boston e Newark?","question_toks":["Qual","é","a","distância","entre","Boston","e","Newark","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null],"and",[false,2,[0,[0,10,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Boston\"",null],"and",[false,2,[0,[0,13,false],null],"\"Newark\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT avg(distance) , min(distance) , max(distance) FROM Direct_distance","query_toks":["SELECT","avg","(","distance",")",",","min","(","distance",")",",","max","(","distance",")","FROM","Direct_distance"],"query_toks_no_value":["select","avg","(","distance",")",",","min","(","distance",")",",","max","(","distance",")","from","direct_distance"],"question":"Qual é a distância média, mínima e máxima entre duas cidades?","question_toks":["Qual","é","a","distância","média",",","mínima","e","máxima","entre","duas","cidades","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,false],null]],[2,[0,[0,11,false],null]],[1,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT avg(distance) , min(distance) , max(distance) FROM Direct_distance","query_toks":["SELECT","avg","(","distance",")",",","min","(","distance",")",",","max","(","distance",")","FROM","Direct_distance"],"query_toks_no_value":["select","avg","(","distance",")",",","min","(","distance",")",",","max","(","distance",")","from","direct_distance"],"question":"Dê as distâncias média, mínima e máxima entre duas cidades.","question_toks":["Dê","as","distâncias","média",",","mínima","e","máxima","entre","duas","cidades","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,false],null]],[2,[0,[0,11,false],null]],[1,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city1_code , city2_code FROM Direct_distance ORDER BY distance DESC LIMIT 1","query_toks":["SELECT","city1_code",",","city2_code","FROM","Direct_distance","ORDER","BY","distance","DESC","LIMIT","1"],"query_toks_no_value":["select","city1_code",",","city2_code","from","direct_distance","order","by","distance","desc","limit","value"],"question":"Mostre o código da cidade das duas cidades com a maior distância entre sí.","question_toks":["Mostre","o","código","da","cidade","das","duas","cidades","com","a","maior","distância","entre","sí","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city1_code , city2_code FROM Direct_distance ORDER BY distance DESC LIMIT 1","query_toks":["SELECT","city1_code",",","city2_code","FROM","Direct_distance","ORDER","BY","distance","DESC","LIMIT","1"],"query_toks_no_value":["select","city1_code",",","city2_code","from","direct_distance","order","by","distance","desc","limit","value"],"question":"Quais são os códigos das cidades com a maior distância?","question_toks":["Quais","são","os","códigos","das","cidades","com","a","maior","distância","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city1_code , city2_code FROM Direct_distance WHERE distance > (SELECT avg(distance) FROM Direct_distance)","query_toks":["SELECT","city1_code",",","city2_code","FROM","Direct_distance","WHERE","distance",">","(","SELECT","avg","(","distance",")","FROM","Direct_distance",")"],"query_toks_no_value":["select","city1_code",",","city2_code","from","direct_distance","where","distance",">","(","select","avg","(","distance",")","from","direct_distance",")"],"question":"Mostre o código da cidade de duas cidades com uma distância maior que a média.","question_toks":["Mostre","o","código","da","cidade","de","duas","cidades","com","uma","distância","maior","que","a","média","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,3,[0,[0,11,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,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":"address_1","query":"SELECT city1_code , city2_code FROM Direct_distance WHERE distance > (SELECT avg(distance) FROM Direct_distance)","query_toks":["SELECT","city1_code",",","city2_code","FROM","Direct_distance","WHERE","distance",">","(","SELECT","avg","(","distance",")","FROM","Direct_distance",")"],"query_toks_no_value":["select","city1_code",",","city2_code","from","direct_distance","where","distance",">","(","select","avg","(","distance",")","from","direct_distance",")"],"question":"Quais são os códigos das cidades com distância maior que a média?","question_toks":["Quais","são","os","códigos","das","cidades","com","distância","maior","que","a","média","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,3,[0,[0,11,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,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":"address_1","query":"SELECT city1_code , city2_code FROM Direct_distance WHERE distance < 1000","query_toks":["SELECT","city1_code",",","city2_code","FROM","Direct_distance","WHERE","distance","<","1000"],"query_toks_no_value":["select","city1_code",",","city2_code","from","direct_distance","where","distance","<","value"],"question":"Mostre o código da cidade de duas cidades com uma distância menor que 1000.","question_toks":["Mostre","o","código","da","cidade","de","duas","cidades","com","uma","distância","menor","que","1000","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,4,[0,[0,11,false],null],1000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city1_code , city2_code FROM Direct_distance WHERE distance < 1000","query_toks":["SELECT","city1_code",",","city2_code","FROM","Direct_distance","WHERE","distance","<","1000"],"query_toks_no_value":["select","city1_code",",","city2_code","from","direct_distance","where","distance","<","value"],"question":"Quais são os códigos das cidades correspondentes às cidades com distâncias menores que 1000?","question_toks":["Quais","são","os","códigos","das","cidades","correspondentes","às","cidades","com","distâncias","menores","que","1000","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,4,[0,[0,11,false],null],1000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT sum(distance) FROM Direct_distance WHERE city1_code = \"BAL\"","query_toks":["SELECT","sum","(","distance",")","FROM","Direct_distance","WHERE","city1_code","=","``","BAL","''"],"query_toks_no_value":["select","sum","(","distance",")","from","direct_distance","where","city1_code","=","value"],"question":"Qual é a distância total entre a cidade BAL e todas as outras cidades?","question_toks":["Qual","é","a","distância","total","entre","a","cidade","BAL","e","todas","as","outras","cidades","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[4,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"BAL\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT sum(distance) FROM Direct_distance WHERE city1_code = \"BAL\"","query_toks":["SELECT","sum","(","distance",")","FROM","Direct_distance","WHERE","city1_code","=","``","BAL","''"],"query_toks_no_value":["select","sum","(","distance",")","from","direct_distance","where","city1_code","=","value"],"question":"Qual é a soma das distâncias entre BAL e outras cidades?","question_toks":["Qual","é","a","soma","das","distâncias","entre","BAL","e","outras","cidades","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[4,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"BAL\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code WHERE T2.city_name = \"Boston\"","query_toks":["SELECT","avg","(","distance",")","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","WHERE","T2.city_name","=","``","Boston","''"],"query_toks_no_value":["select","avg","(","distance",")","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","where","t2",".","city_name","=","value"],"question":"Qual é a distância média entre Boston e todas as outras cidades?","question_toks":["Qual","é","a","distância","média","entre","Boston","e","todas","as","outras","cidades","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null]]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Boston\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code WHERE T2.city_name = \"Boston\"","query_toks":["SELECT","avg","(","distance",")","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","WHERE","T2.city_name","=","``","Boston","''"],"query_toks_no_value":["select","avg","(","distance",")","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","where","t2",".","city_name","=","value"],"question":"Dê a distância média entre Boston e outras cidades.","question_toks":["Dê","a","distância","média","entre","Boston","e","outras","cidades","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null]]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Boston\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = \"Chicago\" ORDER BY distance LIMIT 1","query_toks":["SELECT","T3.city_name","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","City","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.city_name","=","``","Chicago","''","ORDER","BY","distance","LIMIT","1"],"query_toks_no_value":["select","t3",".","city_name","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","city","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","city_name","=","value","order","by","distance","limit","value"],"question":"Qual é o nome da cidade mais próxima de Chicago?","question_toks":["Qual","é","o","nome","da","cidade","mais","próxima","de","Chicago","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null],"and",[false,2,[0,[0,10,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = \"Chicago\" ORDER BY distance LIMIT 1","query_toks":["SELECT","T3.city_name","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","City","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.city_name","=","``","Chicago","''","ORDER","BY","distance","LIMIT","1"],"query_toks_no_value":["select","t3",".","city_name","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","city","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","city_name","=","value","order","by","distance","limit","value"],"question":"Dê o nome da cidade mais próxima de Chicago.","question_toks":["Dê","o","nome","da","cidade","mais","próxima","de","Chicago","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null],"and",[false,2,[0,[0,10,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = \"Boston\" ORDER BY distance DESC LIMIT 1","query_toks":["SELECT","T3.city_name","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","City","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.city_name","=","``","Boston","''","ORDER","BY","distance","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","city_name","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","city","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","city_name","=","value","order","by","distance","desc","limit","value"],"question":"Qual é o nome da cidade mais distante de Boston?","question_toks":["Qual","é","o","nome","da","cidade","mais","distante","de","Boston","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null],"and",[false,2,[0,[0,10,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Boston\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T3.city_name FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code JOIN City AS T3 ON T1.city2_code = T3.city_code WHERE T2.city_name = \"Boston\" ORDER BY distance DESC LIMIT 1","query_toks":["SELECT","T3.city_name","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","City","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.city_name","=","``","Boston","''","ORDER","BY","distance","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","city_name","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","city","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","city_name","=","value","order","by","distance","desc","limit","value"],"question":"Dê o nome da cidade com a maior distância de Boston.","question_toks":["Dê","o","nome","da","cidade","com","a","maior","distância","de","Boston","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null],"and",[false,2,[0,[0,10,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Boston\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city1_code , sum(distance) FROM Direct_distance GROUP BY city1_code","query_toks":["SELECT","city1_code",",","sum","(","distance",")","FROM","Direct_distance","GROUP","BY","city1_code"],"query_toks_no_value":["select","city1_code",",","sum","(","distance",")","from","direct_distance","group","by","city1_code"],"question":"Mostre todos os códigos de cidade e a distância total para todas as outras cidades.","question_toks":["Mostre","todos","os","códigos","de","cidade","e","a","distância","total","para","todas","as","outras","cidades","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[4,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT city1_code , sum(distance) FROM Direct_distance GROUP BY city1_code","query_toks":["SELECT","city1_code",",","sum","(","distance",")","FROM","Direct_distance","GROUP","BY","city1_code"],"query_toks_no_value":["select","city1_code",",","sum","(","distance",")","from","direct_distance","group","by","city1_code"],"question":"Para cada cidade, qual é o código da cidade e a soma das distâncias de cada uma?","question_toks":["Para","cada","cidade",",","qual","é","o","código","da","cidade","e","a","soma","das","distâncias","de","cada","uma","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[4,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T2.city_name , avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code GROUP BY T1.city1_code","query_toks":["SELECT","T2.city_name",",","avg","(","distance",")","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","GROUP","BY","T1.city1_code"],"query_toks_no_value":["select","t2",".","city_name",",","avg","(","distance",")","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","group","by","t1",".","city1_code"],"question":"Mostre todos os nomes das cidades e a distância média para todas as outras cidades.","question_toks":["Mostre","todos","os","nomes","das","cidades","e","a","distância","média","para","todas","as","outras","cidades","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[5,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T2.city_name , avg(distance) FROM Direct_distance AS T1 JOIN City AS T2 ON T1.city1_code = T2.city_code GROUP BY T1.city1_code","query_toks":["SELECT","T2.city_name",",","avg","(","distance",")","FROM","Direct_distance","AS","T1","JOIN","City","AS","T2","ON","T1.city1_code","=","T2.city_code","GROUP","BY","T1.city1_code"],"query_toks_no_value":["select","t2",".","city_name",",","avg","(","distance",")","from","direct_distance","as","t1","join","city","as","t2","on","t1",".","city1_code","=","t2",".","city_code","group","by","t1",".","city1_code"],"question":"Quais são os nomes das cidades e as distâncias médias de cada cidade?","question_toks":["Quais","são","os","nomes","das","cidades","e","as","distâncias","médias","de","cada","cidade","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,9,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[5,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT distance FROM Direct_distance AS T1 JOIN Student AS T2 ON T1.city1_code = T2.city_code JOIN Student AS T3 ON T1.city2_code = T3.city_code WHERE T2.Fname = \"Linda\" AND T2.Lname = \"Smith\" AND T3.Fname = \"Tracy\" AND T3.Lname = \"Kim\"","query_toks":["SELECT","distance","FROM","Direct_distance","AS","T1","JOIN","Student","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","Student","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.Fname","=","``","Linda","''","AND","T2.Lname","=","``","Smith","''","AND","T3.Fname","=","``","Tracy","''","AND","T3.Lname","=","``","Kim","''"],"query_toks_no_value":["select","distance","from","direct_distance","as","t1","join","student","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","student","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","fname","=","value","and","t2",".","lname","=","value","and","t3",".","fname","=","value","and","t3",".","lname","=","value"],"question":"Qual a distância em que Linda (primeiro nome) Smith (sobrenome) e Tracy (primeiro nome) Kim (sobrenome) vivem?","question_toks":["Qual","a","distância","em","que","Linda","(","primeiro","nome",")","Smith","(","sobrenome",")","e","Tracy","(","primeiro","nome",")","Kim","(","sobrenome",")","vivem","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Linda\"",null],"and",[false,2,[0,[0,2,false],null],"\"Smith\"",null],"and",[false,2,[0,[0,3,false],null],"\"Tracy\"",null],"and",[false,2,[0,[0,2,false],null],"\"Kim\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT distance FROM Direct_distance AS T1 JOIN Student AS T2 ON T1.city1_code = T2.city_code JOIN Student AS T3 ON T1.city2_code = T3.city_code WHERE T2.Fname = \"Linda\" AND T2.Lname = \"Smith\" AND T3.Fname = \"Tracy\" AND T3.Lname = \"Kim\"","query_toks":["SELECT","distance","FROM","Direct_distance","AS","T1","JOIN","Student","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","Student","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.Fname","=","``","Linda","''","AND","T2.Lname","=","``","Smith","''","AND","T3.Fname","=","``","Tracy","''","AND","T3.Lname","=","``","Kim","''"],"query_toks_no_value":["select","distance","from","direct_distance","as","t1","join","student","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","student","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","fname","=","value","and","t2",".","lname","=","value","and","t3",".","fname","=","value","and","t3",".","lname","=","value"],"question":"Qual é a distância entre as cidades onde Linda Smith e Tracy Kim vivem?","question_toks":["Qual","é","a","distância","entre","as","cidades","onde","Linda","Smith","e","Tracy","Kim","vivem","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Linda\"",null],"and",[false,2,[0,[0,2,false],null],"\"Smith\"",null],"and",[false,2,[0,[0,3,false],null],"\"Tracy\"",null],"and",[false,2,[0,[0,2,false],null],"\"Kim\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T3.Fname , T3.Lname FROM Direct_distance AS T1 JOIN Student AS T2 ON T1.city1_code = T2.city_code JOIN Student AS T3 ON T1.city2_code = T3.city_code WHERE T2.Fname = \"Linda\" AND T2.Lname = \"Smith\" ORDER BY distance DESC LIMIT 1","query_toks":["SELECT","T3.Fname",",","T3.Lname","FROM","Direct_distance","AS","T1","JOIN","Student","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","Student","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.Fname","=","``","Linda","''","AND","T2.Lname","=","``","Smith","''","ORDER","BY","distance","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","fname",",","t3",".","lname","from","direct_distance","as","t1","join","student","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","student","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","fname","=","value","and","t2",".","lname","=","value","order","by","distance","desc","limit","value"],"question":"Qual é o primeiro nome e o sobrenome do estudante que mora mais longe de Linda Smith?","question_toks":["Qual","é","o","primeiro","nome","e","o","sobrenome","do","estudante","que","mora","mais","longe","de","Linda","Smith","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Linda\"",null],"and",[false,2,[0,[0,2,false],null],"\"Smith\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT T3.Fname , T3.Lname FROM Direct_distance AS T1 JOIN Student AS T2 ON T1.city1_code = T2.city_code JOIN Student AS T3 ON T1.city2_code = T3.city_code WHERE T2.Fname = \"Linda\" AND T2.Lname = \"Smith\" ORDER BY distance DESC LIMIT 1","query_toks":["SELECT","T3.Fname",",","T3.Lname","FROM","Direct_distance","AS","T1","JOIN","Student","AS","T2","ON","T1.city1_code","=","T2.city_code","JOIN","Student","AS","T3","ON","T1.city2_code","=","T3.city_code","WHERE","T2.Fname","=","``","Linda","''","AND","T2.Lname","=","``","Smith","''","ORDER","BY","distance","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","fname",",","t3",".","lname","from","direct_distance","as","t1","join","student","as","t2","on","t1",".","city1_code","=","t2",".","city_code","join","student","as","t3","on","t1",".","city2_code","=","t3",".","city_code","where","t2",".","fname","=","value","and","t2",".","lname","=","value","order","by","distance","desc","limit","value"],"question":"Qual é o nome completo do estudante que mora mais longe de Linda Smith?","question_toks":["Qual","é","o","nome","completo","do","estudante","que","mora","mais","longe","de","Linda","Smith","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Linda\"",null],"and",[false,2,[0,[0,2,false],null],"\"Smith\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state FROM Student AS T1 JOIN City AS T2 ON T1.city_code = T2.city_code WHERE T1.Fname = \"Linda\"","query_toks":["SELECT","state","FROM","Student","AS","T1","JOIN","City","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.Fname","=","``","Linda","''"],"query_toks_no_value":["select","state","from","student","as","t1","join","city","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","fname","=","value"],"question":"Em qual estado vive a estudante cujo primeiro nome é Linda?","question_toks":["Em","qual","estado","vive","a","estudante","cujo","primeiro","nome","é","Linda","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Linda\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"address_1","query":"SELECT state FROM Student AS T1 JOIN City AS T2 ON T1.city_code = T2.city_code WHERE T1.Fname = \"Linda\"","query_toks":["SELECT","state","FROM","Student","AS","T1","JOIN","City","AS","T2","ON","T1.city_code","=","T2.city_code","WHERE","T1.Fname","=","``","Linda","''"],"query_toks_no_value":["select","state","from","student","as","t1","join","city","as","t2","on","t1",".","city_code","=","t2",".","city_code","where","t1",".","fname","=","value"],"question":"Dê o estado em que a estudante com o primeiro nome Linda mora.","question_toks":["Dê","o","estado","em","que","a","estudante","com","o","primeiro","nome","Linda","mora","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Linda\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT * FROM Sailors WHERE age > 30","query_toks":["SELECT","*","FROM","Sailors","WHERE","age",">","30"],"query_toks_no_value":["select","*","from","sailors","where","age",">","value"],"question":"Retorne todos os detalhes dos marinheiros que têm mais de 30 anos.","question_toks":["Retorne","todos","os","detalhes","dos","marinheiros","que","têm","mais","de","30","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,4,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT * FROM Sailors WHERE age > 30","query_toks":["SELECT","*","FROM","Sailors","WHERE","age",">","30"],"query_toks_no_value":["select","*","from","sailors","where","age",">","value"],"question":"O que você pode me dizer sobre os marinheiros que têm mais de 30 anos?","question_toks":["O","que","você","pode","me","dizer","sobre","os","marinheiros","que","têm","mais","de","30","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,4,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name , age FROM Sailors WHERE age < 30","query_toks":["SELECT","name",",","age","FROM","Sailors","WHERE","age","<","30"],"query_toks_no_value":["select","name",",","age","from","sailors","where","age","<","value"],"question":"Retorne o nome e a idade dos marinheiros que têm menos de 30 anos.","question_toks":["Retorne","o","nome","e","a","idade","dos","marinheiros","que","têm","menos","de","30","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,4,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name , age FROM Sailors WHERE age < 30","query_toks":["SELECT","name",",","age","FROM","Sailors","WHERE","age","<","30"],"query_toks_no_value":["select","name",",","age","from","sailors","where","age","<","value"],"question":"Qual é o nome e a idade de cada marinheiro que é mais jovem que 30 anos?","question_toks":["Qual","é","o","nome","e","a","idade","de","cada","marinheiro","que","é","mais","jovem","que","30","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,4,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT bid FROM Reserves WHERE sid = 1","query_toks":["SELECT","DISTINCT","bid","FROM","Reserves","WHERE","sid","=","1"],"query_toks_no_value":["select","distinct","bid","from","reserves","where","sid","=","value"],"question":"Encontre os barcos reservados pelo marinheiro com id 1.","question_toks":["Encontre","os","barcos","reservados","pelo","marinheiro","com","id","1","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,8,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT bid FROM Reserves WHERE sid = 1","query_toks":["SELECT","DISTINCT","bid","FROM","Reserves","WHERE","sid","=","1"],"query_toks_no_value":["select","distinct","bid","from","reserves","where","sid","=","value"],"question":"Quais são os diferentes ids de barcos reservados pelo marinheiro cujo id é 1?","question_toks":["Quais","são","os","diferentes","ids","de","barcos","reservados","pelo","marinheiro","cujo","id","é","1","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,8,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T2.bid = 102","query_toks":["SELECT","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","WHERE","T2.bid","=","102"],"query_toks_no_value":["select","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","where","t2",".","bid","=","value"],"question":"Quem reservou o barco 102?","question_toks":["Quem","reservou","o","barco","102","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],102.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T2.bid = 102","query_toks":["SELECT","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","WHERE","T2.bid","=","102"],"query_toks_no_value":["select","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","where","t2",".","bid","=","value"],"question":"Qual é o nome do marinheiro que reservou o barco 102?","question_toks":["Qual","é","o","nome","do","marinheiro","que","reservou","o","barco","102","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],102.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT bid FROM Reserves","query_toks":["SELECT","DISTINCT","bid","FROM","Reserves"],"query_toks_no_value":["select","distinct","bid","from","reserves"],"question":"Retorne os ids de barco únicos (bid) de todos os barcos reservados.","question_toks":["Retorne","os","ids","de","barco","únicos","(","bid",")","de","todos","os","barcos","reservados","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT bid FROM Reserves","query_toks":["SELECT","DISTINCT","bid","FROM","Reserves"],"query_toks_no_value":["select","distinct","bid","from","reserves"],"question":"Quais são os ids de todos os barcos que estão reservados por alguém?","question_toks":["Quais","são","os","ids","de","todos","os","barcos","que","estão","reservados","por","alguém","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name FROM Sailors WHERE name LIKE '%e%'","query_toks":["SELECT","name","FROM","Sailors","WHERE","name","LIKE","'","%","e","%","'"],"query_toks_no_value":["select","name","from","sailors","where","name","like","value"],"question":"Qual é o nome dos marinheiros cujos nomes contêm a letra e?","question_toks":["Qual","é","o","nome","dos","marinheiros","cujos","nomes","contêm","a","letra","e","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%e%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name FROM Sailors WHERE name LIKE '%e%'","query_toks":["SELECT","name","FROM","Sailors","WHERE","name","LIKE","'","%","e","%","'"],"query_toks_no_value":["select","name","from","sailors","where","name","like","value"],"question":"Qual é o nome de cada marinheiro cujo nome contém a letra e?","question_toks":["Qual","é","o","nome","de","cada","marinheiro","cujo","nome","contém","a","letra","e","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%e%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT sid FROM Sailors WHERE age > (SELECT min(age) FROM Sailors);","query_toks":["SELECT","DISTINCT","sid","FROM","Sailors","WHERE","age",">","(","SELECT","min","(","age",")","FROM","Sailors",")",";"],"query_toks_no_value":["select","distinct","sid","from","sailors","where","age",">","(","select","min","(","age",")","from","sailors",")"],"question":"Retorne os ids únicos dos marinheiros que são mais velhos do que qualquer marinheiro.","question_toks":["Retorne","os","ids","únicos","dos","marinheiros","que","são","mais","velhos","do","que","qualquer","marinheiro","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,4,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":"boat_1","query":"SELECT DISTINCT sid FROM Sailors WHERE age > (SELECT min(age) FROM Sailors);","query_toks":["SELECT","DISTINCT","sid","FROM","Sailors","WHERE","age",">","(","SELECT","min","(","age",")","FROM","Sailors",")",";"],"query_toks_no_value":["select","distinct","sid","from","sailors","where","age",">","(","select","min","(","age",")","from","sailors",")"],"question":"Qual é o id diferente de cada marinheiro que não é o mais jovem?","question_toks":["Qual","é","o","id","diferente","de","cada","marinheiro","que","não","é","o","mais","jovem","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,4,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":"boat_1","query":"SELECT DISTINCT name FROM Sailors WHERE age > (SELECT min(age) FROM Sailors WHERE rating > 7);","query_toks":["SELECT","DISTINCT","name","FROM","Sailors","WHERE","age",">","(","SELECT","min","(","age",")","FROM","Sailors","WHERE","rating",">","7",")",";"],"query_toks_no_value":["select","distinct","name","from","sailors","where","age",">","(","select","min","(","age",")","from","sailors","where","rating",">","value",")"],"question":"Retorne os nomes únicos dos marinheiros que são mais velhos do que qualquer marinheiro cuja classificação é maior que 7.","question_toks":["Retorne","os","nomes","únicos","dos","marinheiros","que","são","mais","velhos","do","que","qualquer","marinheiro","cuja","classificação","é","maior","que","7","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,3,false],null],7.0,null]],"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":"boat_1","query":"SELECT DISTINCT name FROM Sailors WHERE age > (SELECT min(age) FROM Sailors WHERE rating > 7);","query_toks":["SELECT","DISTINCT","name","FROM","Sailors","WHERE","age",">","(","SELECT","min","(","age",")","FROM","Sailors","WHERE","rating",">","7",")",";"],"query_toks_no_value":["select","distinct","name","from","sailors","where","age",">","(","select","min","(","age",")","from","sailors","where","rating",">","value",")"],"question":"Quais são os nomes diferentes de marinheiros que são mais velhos do que algum outro marinheiro com uma classificação maior que 7?","question_toks":["Quais","são","os","nomes","diferentes","de","marinheiros","que","são","mais","velhos","do","que","algum","outro","marinheiro","com","uma","classificação","maior","que","7","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,3,false],null],7.0,null]],"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":"boat_1","query":"SELECT DISTINCT T1.name , T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid","query_toks":["SELECT","DISTINCT","T1.name",",","T1.sid","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid"],"query_toks_no_value":["select","distinct","t1",".","name",",","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid"],"question":"Encontre o nome e o id dos marinheiros que reservaram pelo menos um barco.","question_toks":["Encontre","o","nome","e","o","id","dos","marinheiros","que","reservaram","pelo","menos","um","barco","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T1.name , T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid","query_toks":["SELECT","DISTINCT","T1.name",",","T1.sid","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid"],"query_toks_no_value":["select","distinct","t1",".","name",",","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid"],"question":"Qual é o nome e o id de cada marinheiro que reservou um ou mais barcos?","question_toks":["Qual","é","o","nome","e","o","id","de","cada","marinheiro","que","reservou","um","ou","mais","barcos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T1.name , T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid GROUP BY T2.sid HAVING COUNT(*) > 1","query_toks":["SELECT","DISTINCT","T1.name",",","T1.sid","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","GROUP","BY","T2.sid","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","distinct","t1",".","name",",","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","group","by","t2",".","sid","having","count","(","*",")",">","value"],"question":"Encontre o id e o nome dos marinheiros que reservaram mais de um barco.","question_toks":["Encontre","o","id","e","o","nome","dos","marinheiros","que","reservaram","mais","de","um","barco","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"select distinct t1.name , t1.sid from sailors as t1 join reserves as t2 on t1.sid = t2.sid group by t2.sid having count(*) >= 2","query_toks":["select","distinct","t1.name",",","t1.sid","from","sailors","as","t1","join","reserves","as","t2","on","t1.sid","=","t2.sid","group","by","t2.sid","having","count","(","*",")",">=","2"],"query_toks_no_value":["select","distinct","t1",".","name",",","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","group","by","t2",".","sid","having","count","(","*",")",">","=","value"],"question":"Quais são os nomes diferentes dos marinheiros que reservaram dois ou mais barcos?","question_toks":["Quais","são","os","nomes","diferentes","dos","marinheiros","que","reservaram","dois","ou","mais","barcos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = 'red' OR T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","WHERE","T1.color","=","'red","'","OR","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","where","t1",".","color","=","value","or","t1",".","color","=","value"],"question":"Encontre o id dos Marinheiros (sid) que reservaram um barco vermelho ou azul.","question_toks":["Encontre","o","id","dos","Marinheiros","(","sid",")","que","reservaram","um","barco","vermelho","ou","azul","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null],"or",[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = 'red' OR T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","WHERE","T1.color","=","'red","'","OR","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","where","t1",".","color","=","value","or","t1",".","color","=","value"],"question":"Quais são os sids dos marinheiros que reservaram barcos vermelhos ou azuis?","question_toks":["Quais","são","os","sids","dos","marinheiros","que","reservaram","barcos","vermelhos","ou","azuis","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null],"or",[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = 'red' OR T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid",",","T3.name","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","JOIN","Sailors","AS","T3","ON","T2.sid","=","T3.sid","WHERE","T1.color","=","'red","'","OR","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid",",","t3",".","name","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","join","sailors","as","t3","on","t2",".","sid","=","t3",".","sid","where","t1",".","color","=","value","or","t1",".","color","=","value"],"question":"Encontre o nome e o id dos Marinheiros (sid) que reservaram um barco vermelho ou azul.","question_toks":["Encontre","o","nome","e","o","id","dos","Marinheiros","(","sid",")","que","reservaram","um","barco","vermelho","ou","azul","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null],"and",[false,2,[0,[0,8,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null],"or",[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = 'red' OR T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid",",","T3.name","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","JOIN","Sailors","AS","T3","ON","T2.sid","=","T3.sid","WHERE","T1.color","=","'red","'","OR","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid",",","t3",".","name","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","join","sailors","as","t3","on","t2",".","sid","=","t3",".","sid","where","t1",".","color","=","value","or","t1",".","color","=","value"],"question":"Quais são os nomes e ids dos marinheiros que reservaram barcos vermelhos ou azuis?","question_toks":["Quais","são","os","nomes","e","ids","dos","marinheiros","que","reservaram","barcos","vermelhos","ou","azuis","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null],"and",[false,2,[0,[0,8,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null],"or",[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = 'red' INTERSECT SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","WHERE","T1.color","=","'red","'","INTERSECT","SELECT","DISTINCT","T2.sid","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","WHERE","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","where","t1",".","color","=","value","intersect","select","distinct","t2",".","sid","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","where","t1",".","color","=","value"],"question":"Encontre o id dos Marinheiros (sid) que reservaram barcos vermelhos e azuis.","question_toks":["Encontre","o","id","dos","Marinheiros","(","sid",")","que","reservaram","barcos","vermelhos","e","azuis","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = 'red' INTERSECT SELECT DISTINCT T2.sid FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid WHERE T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","WHERE","T1.color","=","'red","'","INTERSECT","SELECT","DISTINCT","T2.sid","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","WHERE","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","where","t1",".","color","=","value","intersect","select","distinct","t2",".","sid","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","where","t1",".","color","=","value"],"question":"Quais são os ids dos marinheiros que reservaram barcos vermelhos e azuis?","question_toks":["Quais","são","os","ids","dos","marinheiros","que","reservaram","barcos","vermelhos","e","azuis","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = 'red' INTERSECT SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid",",","T3.name","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","JOIN","Sailors","AS","T3","ON","T2.sid","=","T3.sid","WHERE","T1.color","=","'red","'","INTERSECT","SELECT","DISTINCT","T2.sid",",","T3.name","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","JOIN","Sailors","AS","T3","ON","T2.sid","=","T3.sid","WHERE","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid",",","t3",".","name","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","join","sailors","as","t3","on","t2",".","sid","=","t3",".","sid","where","t1",".","color","=","value","intersect","select","distinct","t2",".","sid",",","t3",".","name","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","join","sailors","as","t3","on","t2",".","sid","=","t3",".","sid","where","t1",".","color","=","value"],"question":"Encontre o nome e o id dos marinheiros (sid) que reservaram barcos vermelhos e azuis.","question_toks":["Encontre","o","nome","e","o","id","dos","marinheiros","(","sid",")","que","reservaram","barcos","vermelhos","e","azuis","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null],"and",[false,2,[0,[0,8,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null],"and",[false,2,[0,[0,8,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = 'red' INTERSECT SELECT DISTINCT T2.sid , T3.name FROM Boats AS T1 JOIN Reserves AS T2 ON T1.bid = T2.bid JOIN Sailors AS T3 ON T2.sid = T3.sid WHERE T1.color = \"blue\"","query_toks":["SELECT","DISTINCT","T2.sid",",","T3.name","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","JOIN","Sailors","AS","T3","ON","T2.sid","=","T3.sid","WHERE","T1.color","=","'red","'","INTERSECT","SELECT","DISTINCT","T2.sid",",","T3.name","FROM","Boats","AS","T1","JOIN","Reserves","AS","T2","ON","T1.bid","=","T2.bid","JOIN","Sailors","AS","T3","ON","T2.sid","=","T3.sid","WHERE","T1.color","=","``","blue","''"],"query_toks_no_value":["select","distinct","t2",".","sid",",","t3",".","name","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","join","sailors","as","t3","on","t2",".","sid","=","t3",".","sid","where","t1",".","color","=","value","intersect","select","distinct","t2",".","sid",",","t3",".","name","from","boats","as","t1","join","reserves","as","t2","on","t1",".","bid","=","t2",".","bid","join","sailors","as","t3","on","t2",".","sid","=","t3",".","sid","where","t1",".","color","=","value"],"question":"Quais são os nomes e ids dos marinheiros que reservaram barcos vermelhos e azuis?","question_toks":["Quais","são","os","nomes","e","ids","dos","marinheiros","que","reservaram","barcos","vermelhos","e","azuis","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null],"and",[false,2,[0,[0,8,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,5,false],null],[0,9,false],null],"and",[false,2,[0,[0,8,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,8,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"blue\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT sid FROM Sailors EXCEPT SELECT sid FROM Reserves","query_toks":["SELECT","sid","FROM","Sailors","EXCEPT","SELECT","sid","FROM","Reserves"],"query_toks_no_value":["select","sid","from","sailors","except","select","sid","from","reserves"],"question":"Quais são os ids dos marinheiros que não reservaram um barco?","question_toks":["Quais","são","os","ids","dos","marinheiros","que","não","reservaram","um","barco","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"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":null}}},{"db_id":"boat_1","query":"SELECT sid FROM Sailors EXCEPT SELECT sid FROM Reserves","query_toks":["SELECT","sid","FROM","Sailors","EXCEPT","SELECT","sid","FROM","Reserves"],"query_toks_no_value":["select","sid","from","sailors","except","select","sid","from","reserves"],"question":"Quais são os ids dos marinheiros que não reservaram um barco?","question_toks":["Quais","são","os","ids","dos","marinheiros","que","não","reservaram","um","barco","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"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":null}}},{"db_id":"boat_1","query":"SELECT sid , name FROM Sailors EXCEPT SELECT T1.sid , T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid","query_toks":["SELECT","sid",",","name","FROM","Sailors","EXCEPT","SELECT","T1.sid",",","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid"],"query_toks_no_value":["select","sid",",","name","from","sailors","except","select","t1",".","sid",",","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid"],"question":"Qual é o nome e o id dos marinheiros que não têm uma reserva de um barco?","question_toks":["Qual","é","o","nome","e","o","id","dos","marinheiros","que","não","têm","uma","reserva","de","um","barco","?"],"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":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"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":"boat_1","query":"SELECT sid , name FROM Sailors EXCEPT SELECT T1.sid , T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid","query_toks":["SELECT","sid",",","name","FROM","Sailors","EXCEPT","SELECT","T1.sid",",","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid"],"query_toks_no_value":["select","sid",",","name","from","sailors","except","select","t1",".","sid",",","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid"],"question":"Quais são os nomes e IDs de todos os marinheiros que não têm reservas de barcos?","question_toks":["Quais","são","os","nomes","e","IDs","de","todos","os","marinheiros","que","não","têm","reservas","de","barcos","?"],"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":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"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":"boat_1","query":"SELECT sid FROM Sailors EXCEPT SELECT T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid","query_toks":["SELECT","sid","FROM","Sailors","EXCEPT","SELECT","T1.sid","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid"],"query_toks_no_value":["select","sid","from","sailors","except","select","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid"],"question":"Encontre o id dos marinheiros que não têm uma reserva de um barco.","question_toks":["Encontre","o","id","dos","marinheiros","que","não","têm","uma","reserva","de","um","barco","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"boat_1","query":"SELECT sid FROM Sailors EXCEPT SELECT T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid","query_toks":["SELECT","sid","FROM","Sailors","EXCEPT","SELECT","T1.sid","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid"],"query_toks_no_value":["select","sid","from","sailors","except","select","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid"],"question":"Qual é o id dos marinheiros que não têm reservas de barco?","question_toks":["Qual","é","o","id","dos","marinheiros","que","não","têm","reservas","de","barco","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"boat_1","query":"SELECT DISTINCT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T2.bid = 103","query_toks":["SELECT","DISTINCT","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","WHERE","T2.bid","=","103"],"query_toks_no_value":["select","distinct","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","where","t2",".","bid","=","value"],"question":"Qual é o nome dos marinheiros que reservaram o barco com id 103?","question_toks":["Qual","é","o","nome","dos","marinheiros","que","reservaram","o","barco","com","id","103","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],103.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T2.bid = 103","query_toks":["SELECT","DISTINCT","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","WHERE","T2.bid","=","103"],"query_toks_no_value":["select","distinct","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","where","t2",".","bid","=","value"],"question":"Encontre o nome dos marinheiros que reservaram o barco com id 103.","question_toks":["Encontre","o","nome","dos","marinheiros","que","reservaram","o","barco","com","id","103","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],103.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name FROM Sailors WHERE rating > (SELECT min(rating) FROM Sailors WHERE name = 'Luis')","query_toks":["SELECT","name","FROM","Sailors","WHERE","rating",">","(","SELECT","min","(","rating",")","FROM","Sailors","WHERE","name","=","'Luis","'",")"],"query_toks_no_value":["select","name","from","sailors","where","rating",">","(","select","min","(","rating",")","from","sailors","where","name","=","value",")"],"question":"Qual é o nome de todos os marinheiros cuja classificação é superior à de qualquer marinheiro chamado Luis?","question_toks":["Qual","é","o","nome","de","todos","os","marinheiros","cuja","classificação","é","superior","à","de","qualquer","marinheiro","chamado","Luis","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Luis\"",null]],"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":"boat_1","query":"SELECT name FROM Sailors WHERE rating > (SELECT min(rating) FROM Sailors WHERE name = 'Luis')","query_toks":["SELECT","name","FROM","Sailors","WHERE","rating",">","(","SELECT","min","(","rating",")","FROM","Sailors","WHERE","name","=","'Luis","'",")"],"query_toks_no_value":["select","name","from","sailors","where","rating",">","(","select","min","(","rating",")","from","sailors","where","name","=","value",")"],"question":"Quais são os nomes dos marinheiros, aqueles cuja classificação é maior do que a de qualquer marinheiro chamado Luis?","question_toks":["Quais","são","os","nomes","dos","marinheiros",",","aqueles","cuja","classificação","é","maior","do","que","a","de","qualquer","marinheiro","chamado","Luis","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Luis\"",null]],"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":"boat_1","query":"SELECT name FROM Sailors WHERE rating > (SELECT max(rating) FROM Sailors WHERE name = 'Luis')","query_toks":["SELECT","name","FROM","Sailors","WHERE","rating",">","(","SELECT","max","(","rating",")","FROM","Sailors","WHERE","name","=","'Luis","'",")"],"query_toks_no_value":["select","name","from","sailors","where","rating",">","(","select","max","(","rating",")","from","sailors","where","name","=","value",")"],"question":"Qual é o nome de todos os marinheiros cuja classificação é maior do que a de todos os marinheiros chamados Luis?","question_toks":["Qual","é","o","nome","de","todos","os","marinheiros","cuja","classificação","é","maior","do","que","a","de","todos","os","marinheiros","chamados","Luis","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Luis\"",null]],"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":"boat_1","query":"SELECT name FROM Sailors WHERE rating > (SELECT max(rating) FROM Sailors WHERE name = 'Luis')","query_toks":["SELECT","name","FROM","Sailors","WHERE","rating",">","(","SELECT","max","(","rating",")","FROM","Sailors","WHERE","name","=","'Luis","'",")"],"query_toks_no_value":["select","name","from","sailors","where","rating",">","(","select","max","(","rating",")","from","sailors","where","name","=","value",")"],"question":"Quais são os nomes de todos os marinheiros com uma classificação superior a de todos os marinheiros chamados Luis?","question_toks":["Quais","são","os","nomes","de","todos","os","marinheiros","com","uma","classificação","superior","a","de","todos","os","marinheiros","chamados","Luis","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Luis\"",null]],"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":"boat_1","query":"SELECT DISTINCT T1.name , T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T1.rating > 2","query_toks":["SELECT","DISTINCT","T1.name",",","T1.sid","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","WHERE","T1.rating",">","2"],"query_toks_no_value":["select","distinct","t1",".","name",",","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","where","t1",".","rating",">","value"],"question":"Qual é o nome e o id de cada marinheiro que tem uma classificação maior que 2 e reservou um barco?","question_toks":["Qual","é","o","nome","e","o","id","de","cada","marinheiro","que","tem","uma","classificação","maior","que","2","e","reservou","um","barco","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,3,false],null],2.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT DISTINCT T1.name , T1.sid FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid WHERE T1.rating > 2","query_toks":["SELECT","DISTINCT","T1.name",",","T1.sid","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","WHERE","T1.rating",">","2"],"query_toks_no_value":["select","distinct","t1",".","name",",","t1",".","sid","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","where","t1",".","rating",">","value"],"question":"Quais são os nomes e ids de todos os marinheiros que têm uma classificação de pelo menos 3 e reservaram um barco?","question_toks":["Quais","são","os","nomes","e","ids","de","todos","os","marinheiros","que","têm","uma","classificação","de","pelo","menos","3","e","reservaram","um","barco","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,3,false],null],2.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name , age FROM Sailors WHERE age = ( SELECT max(age) FROM Sailors )","query_toks":["SELECT","name",",","age","FROM","Sailors","WHERE","age","=","(","SELECT","max","(","age",")","FROM","Sailors",")"],"query_toks_no_value":["select","name",",","age","from","sailors","where","age","=","(","select","max","(","age",")","from","sailors",")"],"question":"Encontre o nome e a idade do marinheiro mais velho.","question_toks":["Encontre","o","nome","e","a","idade","do","marinheiro","mais","velho","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,4,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":"boat_1","query":"SELECT name , age FROM Sailors WHERE age = ( SELECT max(age) FROM Sailors )","query_toks":["SELECT","name",",","age","FROM","Sailors","WHERE","age","=","(","SELECT","max","(","age",")","FROM","Sailors",")"],"query_toks_no_value":["select","name",",","age","from","sailors","where","age","=","(","select","max","(","age",")","from","sailors",")"],"question":"Qual é o nome e a idade do marinheiro com a idade máxima?","question_toks":["Qual","é","o","nome","e","a","idade","do","marinheiro","com","a","idade","máxima","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,4,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":"boat_1","query":"SELECT COUNT(*) FROM Sailors","query_toks":["SELECT","COUNT","(","*",")","FROM","Sailors"],"query_toks_no_value":["select","count","(","*",")","from","sailors"],"question":"Quantos marinheiros no total?","question_toks":["Quantos","marinheiros","no","total","?"],"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":"boat_1","query":"SELECT COUNT(*) FROM Sailors","query_toks":["SELECT","COUNT","(","*",")","FROM","Sailors"],"query_toks_no_value":["select","count","(","*",")","from","sailors"],"question":"Conte quantos marinheiros existem.","question_toks":["Conte","quantos","marinheiros","existem","."],"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":"boat_1","query":"SELECT AVG(age) FROM Sailors WHERE rating = 7","query_toks":["SELECT","AVG","(","age",")","FROM","Sailors","WHERE","rating","=","7"],"query_toks_no_value":["select","avg","(","age",")","from","sailors","where","rating","=","value"],"question":"Qual é a idade média dos marinheiros cuja classificação é 7?","question_toks":["Qual","é","a","idade","média","dos","marinheiros","cuja","classificação","é","7","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,3,false],null],7.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT AVG(age) FROM Sailors WHERE rating = 7","query_toks":["SELECT","AVG","(","age",")","FROM","Sailors","WHERE","rating","=","7"],"query_toks_no_value":["select","avg","(","age",")","from","sailors","where","rating","=","value"],"question":"Qual é a idade média de todos os marinheiros que têm uma classificação de 7?","question_toks":["Qual","é","a","idade","média","de","todos","os","marinheiros","que","têm","uma","classificação","de","7","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,3,false],null],7.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"select count(*) from sailors where name like 'd%'","query_toks":["select","count","(","*",")","from","sailors","where","name","like","\"d%\""],"query_toks_no_value":["select","count","(","*",")","from","sailors","where","name","like","value"],"question":"Conte quantos marinheiros têm o nome que começa com a letra D.","question_toks":["Conte","quantos","marinheiros","têm","o","nome","que","começa","com","a","letra","D","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"d%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"select count(*) from sailors where name like 'd%'","query_toks":["select","count","(","*",")","from","sailors","where","name","like","\"d%\""],"query_toks_no_value":["select","count","(","*",")","from","sailors","where","name","like","value"],"question":"Qual é a contagem dos marinheiros cujo nome começa com a letra D?","question_toks":["Qual","é","a","contagem","dos","marinheiros","cujo","nome","começa","com","a","letra","D","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"d%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT AVG(rating) , MAX(age) FROM Sailors","query_toks":["SELECT","AVG","(","rating",")",",","MAX","(","age",")","FROM","Sailors"],"query_toks_no_value":["select","avg","(","rating",")",",","max","(","age",")","from","sailors"],"question":"Quais são a média de avaliação e a idade máxima de todos os marinheiros?","question_toks":["Quais","são","a","média","de","avaliação","e","a","idade","máxima","de","todos","os","marinheiros","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[1,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT AVG(rating) , MAX(age) FROM Sailors","query_toks":["SELECT","AVG","(","rating",")",",","MAX","(","age",")","FROM","Sailors"],"query_toks_no_value":["select","avg","(","rating",")",",","max","(","age",")","from","sailors"],"question":"Encontre a média das avaliações e a maior idade dos marinheiros.","question_toks":["Encontre","a","média","das","avaliações","e","a","maior","idade","dos","marinheiros","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[1,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves GROUP BY bid","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","GROUP","BY","bid"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","group","by","bid"],"question":"Encontre o número de reservas para cada barco.","question_toks":["Encontre","o","número","de","reservas","para","cada","barco","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves GROUP BY bid","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","GROUP","BY","bid"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","group","by","bid"],"question":"Quantas reservas existem para cada barco?","question_toks":["Quantas","reservas","existem","para","cada","barco","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves GROUP BY bid HAVING bid > 50","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","GROUP","BY","bid","HAVING","bid",">","50"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","group","by","bid","having","bid",">","value"],"question":"Encontre o número de reservas para cada barco com id maior que 50.","question_toks":["Encontre","o","número","de","reservas","para","cada","barco","com","id","maior","que","50","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[[false,3,[0,[0,9,false],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves GROUP BY bid HAVING bid > 50","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","GROUP","BY","bid","HAVING","bid",">","50"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","group","by","bid","having","bid",">","value"],"question":"Quantas reservas existem para cada barco com um id maior que 50?","question_toks":["Quantas","reservas","existem","para","cada","barco","com","um","id","maior","que","50","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[[false,3,[0,[0,9,false],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves GROUP BY bid HAVING count(*) > 1","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","GROUP","BY","bid","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","group","by","bid","having","count","(","*",")",">","value"],"question":"Encontre o número de reservas para cada barco com mais de 1 reserva.","question_toks":["Encontre","o","número","de","reservas","para","cada","barco","com","mais","de","1","reserva","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves GROUP BY bid HAVING count(*) > 1","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","GROUP","BY","bid","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","group","by","bid","having","count","(","*",")",">","value"],"question":"Quantas reservas existem para cada barco que já tem mais de 1 reserva?","question_toks":["Quantas","reservas","existem","para","cada","barco","que","já","tem","mais","de","1","reserva","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,9,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves WHERE sid > 1 GROUP BY bid","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","WHERE","sid",">","1","GROUP","BY","bid"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","where","sid",">","value","group","by","bid"],"question":"Encontre o número de reservas por marinheiros com id maior que 1 para cada barco.","question_toks":["Encontre","o","número","de","reservas","por","marinheiros","com","id","maior","que","1","para","cada","barco","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1.0,null]],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT bid , count(*) FROM Reserves WHERE sid > 1 GROUP BY bid","query_toks":["SELECT","bid",",","count","(","*",")","FROM","Reserves","WHERE","sid",">","1","GROUP","BY","bid"],"query_toks_no_value":["select","bid",",","count","(","*",")","from","reserves","where","sid",">","value","group","by","bid"],"question":"Quantas reservas para cada barco os marinheiros com um id maior que 1 fizeram?","question_toks":["Quantas","reservas","para","cada","barco","os","marinheiros","com","um","id","maior","que","1","fizeram","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1.0,null]],"groupBy":[[0,9,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T1.rating , avg(T1.age) FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.color = 'red' GROUP BY T1.rating","query_toks":["SELECT","T1.rating",",","avg","(","T1.age",")","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T3.color","=","'red","'","GROUP","BY","T1.rating"],"query_toks_no_value":["select","t1",".","rating",",","avg","(","t1",".","age",")","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t3",".","color","=","value","group","by","t1",".","rating"],"question":"Qual é a classificação e a idade média dos marinheiros que reservaram um barco vermelho agrupados por classificação?","question_toks":["Qual","é","a","classificação","e","a","idade","média","dos","marinheiros","que","reservaram","um","barco","vermelho","agrupados","por","classificação","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T1.rating , avg(T1.age) FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.color = 'red' GROUP BY T1.rating","query_toks":["SELECT","T1.rating",",","avg","(","T1.age",")","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T3.color","=","'red","'","GROUP","BY","T1.rating"],"query_toks_no_value":["select","t1",".","rating",",","avg","(","t1",".","age",")","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t3",".","color","=","value","group","by","t1",".","rating"],"question":"Quais são a classificação e a idade média dos marinheiros que reservaram barcos vermelhos para cada classificação?","question_toks":["Quais","são","a","classificação","e","a","idade","média","dos","marinheiros","que","reservaram","barcos","vermelhos","para","cada","classificação","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name , rating , age FROM Sailors ORDER BY rating , age","query_toks":["SELECT","name",",","rating",",","age","FROM","Sailors","ORDER","BY","rating",",","age"],"query_toks_no_value":["select","name",",","rating",",","age","from","sailors","order","by","rating",",","age"],"question":"Encontre o nome, a classificação e a idade de todos os marinheiros ordenados por classificação e idade.","question_toks":["Encontre","o","nome",",","a","classificação","e","a","idade","de","todos","os","marinheiros","ordenados","por","classificação","e","idade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null],[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name , rating , age FROM Sailors ORDER BY rating , age","query_toks":["SELECT","name",",","rating",",","age","FROM","Sailors","ORDER","BY","rating",",","age"],"query_toks_no_value":["select","name",",","rating",",","age","from","sailors","order","by","rating",",","age"],"question":"Qual é o nome, a classificação e a idade de cada marinheiro? E ordene-os por classificação e idade.","question_toks":["Qual","é","o","nome",",","a","classificação","e","a","idade","de","cada","marinheiro","?","E","ordene-os","por","classificação","e","idade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null],[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT count(*) FROM Boats","query_toks":["SELECT","count","(","*",")","FROM","Boats"],"query_toks_no_value":["select","count","(","*",")","from","boats"],"question":"Encontre o número total de barcos.","question_toks":["Encontre","o","número","total","de","barcos","."],"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":"boat_1","query":"SELECT count(*) FROM Boats","query_toks":["SELECT","count","(","*",")","FROM","Boats"],"query_toks_no_value":["select","count","(","*",")","from","boats"],"question":"Quantos barcos existem?","question_toks":["Quantos","barcos","existem","?"],"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":"boat_1","query":"SELECT count(*) FROM Boats WHERE color = 'red'","query_toks":["SELECT","count","(","*",")","FROM","Boats","WHERE","color","=","'red","'"],"query_toks_no_value":["select","count","(","*",")","from","boats","where","color","=","value"],"question":"Quantos barcos são vermelhos?","question_toks":["Quantos","barcos","são","vermelhos","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT count(*) FROM Boats WHERE color = 'red'","query_toks":["SELECT","count","(","*",")","FROM","Boats","WHERE","color","=","'red","'"],"query_toks_no_value":["select","count","(","*",")","from","boats","where","color","=","value"],"question":"Quantos barcos vermelhos existem?","question_toks":["Quantos","barcos","vermelhos","existem","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T3.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T1.age BETWEEN 20 AND 30","query_toks":["SELECT","T3.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T1.age","BETWEEN","20","AND","30"],"query_toks_no_value":["select","t3",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t1",".","age","between","value","and","value"],"question":"Encontre os nomes dos barcos reservados por marinheiros cuja idade está entre 20 e 30 anos.","question_toks":["Encontre","os","nomes","dos","barcos","reservados","por","marinheiros","cuja","idade","está","entre","20","e","30","anos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,1,[0,[0,4,false],null],20.0,30.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T3.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T1.age BETWEEN 20 AND 30","query_toks":["SELECT","T3.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T1.age","BETWEEN","20","AND","30"],"query_toks_no_value":["select","t3",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t1",".","age","between","value","and","value"],"question":"Quais são os nomes dos barcos reservados por pessoas entre 20 e 30 anos?","question_toks":["Quais","são","os","nomes","dos","barcos","reservados","por","pessoas","entre","20","e","30","anos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,1,[0,[0,4,false],null],20.0,30.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name FROM Sailors WHERE rating > (SELECT max(T1.rating) FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.color = 'red')","query_toks":["SELECT","name","FROM","Sailors","WHERE","rating",">","(","SELECT","max","(","T1.rating",")","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T3.color","=","'red","'",")"],"query_toks_no_value":["select","name","from","sailors","where","rating",">","(","select","max","(","t1",".","rating",")","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t3",".","color","=","value",")"],"question":"Encontre os nomes dos marinheiros cujo rating é maior do que o rating de todos os marinheiros que reservaram um barco vermelho.","question_toks":["Encontre","os","nomes","dos","marinheiros","cujo","rating","é","maior","do","que","o","rating","de","todos","os","marinheiros","que","reservaram","um","barco","vermelho","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[1,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"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":"boat_1","query":"SELECT name FROM Sailors WHERE rating > (SELECT max(T1.rating) FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.color = 'red')","query_toks":["SELECT","name","FROM","Sailors","WHERE","rating",">","(","SELECT","max","(","T1.rating",")","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T3.color","=","'red","'",")"],"query_toks_no_value":["select","name","from","sailors","where","rating",">","(","select","max","(","t1",".","rating",")","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t3",".","color","=","value",")"],"question":"Quais são os nomes dos marinheiros cujo rating é maior do que o rating de todos os marinheiros que reservaram um barco vermelho?","question_toks":["Quais","são","os","nomes","dos","marinheiros","cujo","rating","é","maior","do","que","o","rating","de","todos","os","marinheiros","que","reservaram","um","barco","vermelho","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[1,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"red\"",null]],"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":"boat_1","query":"SELECT max(rating) FROM Sailors","query_toks":["SELECT","max","(","rating",")","FROM","Sailors"],"query_toks_no_value":["select","max","(","rating",")","from","sailors"],"question":"Qual é a maior classificação entre os marinheiros?","question_toks":["Qual","é","a","maior","classificação","entre","os","marinheiros","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT max(rating) FROM Sailors","query_toks":["SELECT","max","(","rating",")","FROM","Sailors"],"query_toks_no_value":["select","max","(","rating",")","from","sailors"],"question":"Qual é a classificação máxima para os marinheiros?","question_toks":["Qual","é","a","classificação","máxima","para","os","marinheiros","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.name = 'Melon'","query_toks":["SELECT","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T3.name","=","'Melon","'"],"query_toks_no_value":["select","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t3",".","name","=","value"],"question":"Encontre os nomes dos marinheiros que reservaram o barco com o nome Melon.","question_toks":["Encontre","os","nomes","dos","marinheiros","que","reservaram","o","barco","com","o","nome","Melon","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Melon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT T1.name FROM Sailors AS T1 JOIN Reserves AS T2 ON T1.sid = T2.sid JOIN Boats AS T3 ON T3.bid = T2.bid WHERE T3.name = 'Melon'","query_toks":["SELECT","T1.name","FROM","Sailors","AS","T1","JOIN","Reserves","AS","T2","ON","T1.sid","=","T2.sid","JOIN","Boats","AS","T3","ON","T3.bid","=","T2.bid","WHERE","T3.name","=","'Melon","'"],"query_toks_no_value":["select","t1",".","name","from","sailors","as","t1","join","reserves","as","t2","on","t1",".","sid","=","t2",".","sid","join","boats","as","t3","on","t3",".","bid","=","t2",".","bid","where","t3",".","name","=","value"],"question":"Quais são os nomes dos marinheiros que reservaram um barco com o nome Melon?","question_toks":["Quais","são","os","nomes","dos","marinheiros","que","reservaram","um","barco","com","o","nome","Melon","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,8,false],null],"and",[false,2,[0,[0,5,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Melon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name , age FROM Sailors ORDER BY rating DESC","query_toks":["SELECT","name",",","age","FROM","Sailors","ORDER","BY","rating","DESC"],"query_toks_no_value":["select","name",",","age","from","sailors","order","by","rating","desc"],"question":"Liste os nomes e idades de todos os marinheiros ordenados pela classificação em ordem decrescente.","question_toks":["Liste","os","nomes","e","idades","de","todos","os","marinheiros","ordenados","pela","classificação","em","ordem","decrescente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"boat_1","query":"SELECT name , age FROM Sailors ORDER BY rating DESC","query_toks":["SELECT","name",",","age","FROM","Sailors","ORDER","BY","rating","DESC"],"query_toks_no_value":["select","name",",","age","from","sailors","order","by","rating","desc"],"question":"Quais são os nomes e idades de todos os marinheiros ordenados por classificação decrescente?","question_toks":["Quais","são","os","nomes","e","idades","de","todos","os","marinheiros","ordenados","por","classificação","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT model FROM headphone ORDER BY price DESC LIMIT 1","query_toks":["SELECT","model","FROM","headphone","ORDER","BY","price","DESC","LIMIT","1"],"query_toks_no_value":["select","model","from","headphone","order","by","price","desc","limit","value"],"question":"Encontre o modelo do fone de ouvido mais caro.","question_toks":["Encontre","o","modelo","do","fone","de","ouvido","mais","caro","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT model FROM headphone ORDER BY price DESC LIMIT 1","query_toks":["SELECT","model","FROM","headphone","ORDER","BY","price","DESC","LIMIT","1"],"query_toks_no_value":["select","model","from","headphone","order","by","price","desc","limit","value"],"question":"Qual modelo de fone de ouvido tem o preço mais alto?","question_toks":["Qual","modelo","de","fone","de","ouvido","tem","o","preço","mais","alto","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT DISTINCT model FROM headphone ORDER BY model","query_toks":["SELECT","DISTINCT","model","FROM","headphone","ORDER","BY","model"],"query_toks_no_value":["select","distinct","model","from","headphone","order","by","model"],"question":"Liste todos os diferentes modelos de fones de ouvido em ordem alfabética.","question_toks":["Liste","todos","os","diferentes","modelos","de","fones","de","ouvido","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[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":"headphone_store","query":"SELECT DISTINCT model FROM headphone ORDER BY model","query_toks":["SELECT","DISTINCT","model","FROM","headphone","ORDER","BY","model"],"query_toks_no_value":["select","distinct","model","from","headphone","order","by","model"],"question":"Retorne a lista de modelos de fones de ouvido distintos ordenados alfabeticamente.","question_toks":["Retorne","a","lista","de","modelos","de","fones","de","ouvido","distintos","ordenados","alfabeticamente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[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":"headphone_store","query":"SELECT CLASS FROM headphone GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","CLASS","FROM","headphone","GROUP","BY","CLASS","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","class","from","headphone","group","by","class","order","by","count","(","*",")","desc","limit","value"],"question":"Qual classe de fones de ouvido é a mais comum?","question_toks":["Qual","classe","de","fones","de","ouvido","é","a","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT CLASS FROM headphone GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","CLASS","FROM","headphone","GROUP","BY","CLASS","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","class","from","headphone","group","by","class","order","by","count","(","*",")","desc","limit","value"],"question":"Qual classe de fones de ouvido contém mais fones de ouvido?","question_toks":["Qual","classe","de","fones","de","ouvido","contém","mais","fones","de","ouvido","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT CLASS FROM headphone GROUP BY CLASS HAVING count(*) > 2","query_toks":["SELECT","CLASS","FROM","headphone","GROUP","BY","CLASS","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","class","from","headphone","group","by","class","having","count","(","*",")",">","value"],"question":"Qual classe de fones de ouvido tem mais de dois fones de ouvido?","question_toks":["Qual","classe","de","fones","de","ouvido","tem","mais","de","dois","fones","de","ouvido","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT CLASS FROM headphone GROUP BY CLASS HAVING count(*) > 2","query_toks":["SELECT","CLASS","FROM","headphone","GROUP","BY","CLASS","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","class","from","headphone","group","by","class","having","count","(","*",")",">","value"],"question":"Encontre a classe de fones de ouvido que não contém mais de dois fones de ouvido.","question_toks":["Encontre","a","classe","de","fones","de","ouvido","que","não","contém","mais","de","dois","fones","de","ouvido","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(*) , CLASS FROM headphone WHERE price > 200 GROUP BY CLASS","query_toks":["SELECT","count","(","*",")",",","CLASS","FROM","headphone","WHERE","price",">","200","GROUP","BY","CLASS"],"query_toks_no_value":["select","count","(","*",")",",","class","from","headphone","where","price",">","value","group","by","class"],"question":"Encontre o número de fones de ouvido com preço superior a 200 para cada classe.","question_toks":["Encontre","o","número","de","fones","de","ouvido","com","preço","superior","a","200","para","cada","classe","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,7,false],null],200.0,null]],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(*) , CLASS FROM headphone WHERE price > 200 GROUP BY CLASS","query_toks":["SELECT","count","(","*",")",",","CLASS","FROM","headphone","WHERE","price",">","200","GROUP","BY","CLASS"],"query_toks_no_value":["select","count","(","*",")",",","class","from","headphone","where","price",">","value","group","by","class"],"question":"Quantos fones de ouvido custam mais de 200 para cada classe de fone de ouvido?","question_toks":["Quantos","fones","de","ouvido","custam","mais","de","200","para","cada","classe","de","fone","de","ouvido","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,7,false],null],200.0,null]],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(DISTINCT earpads) FROM headphone","query_toks":["SELECT","count","(","DISTINCT","earpads",")","FROM","headphone"],"query_toks_no_value":["select","count","(","distinct","earpads",")","from","headphone"],"question":"Quantos tipos diferentes de earpads existem?","question_toks":["Quantos","tipos","diferentes","de","earpads","existem","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,6,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(DISTINCT earpads) FROM headphone","query_toks":["SELECT","count","(","DISTINCT","earpads",")","FROM","headphone"],"query_toks_no_value":["select","count","(","distinct","earpads",")","from","headphone"],"question":"Conte o número de diferentes earpads de ouvido.","question_toks":["Conte","o","número","de","diferentes","earpads","de","ouvido","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,6,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT earpads FROM headphone GROUP BY earpads ORDER BY count(*) DESC LIMIT 2","query_toks":["SELECT","earpads","FROM","headphone","GROUP","BY","earpads","ORDER","BY","count","(","*",")","DESC","LIMIT","2"],"query_toks_no_value":["select","earpads","from","headphone","group","by","earpads","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre os 2 earpads que são mais utilizados.","question_toks":["Encontre","os","2","earpads","que","são","mais","utilizados","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":2,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT earpads FROM headphone GROUP BY earpads ORDER BY count(*) DESC LIMIT 2","query_toks":["SELECT","earpads","FROM","headphone","GROUP","BY","earpads","ORDER","BY","count","(","*",")","DESC","LIMIT","2"],"query_toks_no_value":["select","earpads","from","headphone","group","by","earpads","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os 2 principais earpads em termos do número de fones de ouvido que os utilizam?","question_toks":["Quais","são","os","2","principais","earpads","em","termos","do","número","de","fones","de","ouvido","que","os","utilizam","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":2,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT model , CLASS , construction FROM headphone ORDER BY price LIMIT 1","query_toks":["SELECT","model",",","CLASS",",","construction","FROM","headphone","ORDER","BY","price","LIMIT","1"],"query_toks_no_value":["select","model",",","class",",","construction","from","headphone","order","by","price","limit","value"],"question":"Quais são o modelo, a classe e a construção do fone de ouvido mais barato?","question_toks":["Quais","são","o","modelo",",","a","classe","e","a","construção","do","fone","de","ouvido","mais","barato","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT model , CLASS , construction FROM headphone ORDER BY price LIMIT 1","query_toks":["SELECT","model",",","CLASS",",","construction","FROM","headphone","ORDER","BY","price","LIMIT","1"],"query_toks_no_value":["select","model",",","class",",","construction","from","headphone","order","by","price","limit","value"],"question":"Encontre o modelo, a classe e a construção do fone de ouvido com o menor preço.","question_toks":["Encontre","o","modelo",",","a","classe","e","a","construção","do","fone","de","ouvido","com","o","menor","preço","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT construction , avg(price) FROM headphone GROUP BY construction","query_toks":["SELECT","construction",",","avg","(","price",")","FROM","headphone","GROUP","BY","construction"],"query_toks_no_value":["select","construction",",","avg","(","price",")","from","headphone","group","by","construction"],"question":"Encontre o preço médio para cada tipo de construção de fones de ouvido.","question_toks":["Encontre","o","preço","médio","para","cada","tipo","de","construção","de","fones","de","ouvido","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[5,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT construction , avg(price) FROM headphone GROUP BY construction","query_toks":["SELECT","construction",",","avg","(","price",")","FROM","headphone","GROUP","BY","construction"],"query_toks_no_value":["select","construction",",","avg","(","price",")","from","headphone","group","by","construction"],"question":"Qual é o preço médio dos fones de ouvido para cada tipo de construção?","question_toks":["Qual","é","o","preço","médio","dos","fones","de","ouvido","para","cada","tipo","de","construção","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[5,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT CLASS FROM headphone WHERE earpads = 'Bowls' INTERSECT SELECT CLASS FROM headphone WHERE earpads = 'Comfort Pads'","query_toks":["SELECT","CLASS","FROM","headphone","WHERE","earpads","=","'Bowls","'","INTERSECT","SELECT","CLASS","FROM","headphone","WHERE","earpads","=","'Comfort","Pads","'"],"query_toks_no_value":["select","class","from","headphone","where","earpads","=","value","intersect","select","class","from","headphone","where","earpads","=","value"],"question":"Quais classes de fones de ouvido têm tanto fones com earpads \"Bowls\" quanto fones com earpads \"Comfort Pads\"?","question_toks":["Quais","classes","de","fones","de","ouvido","têm","tanto","fones","com","earpads","``","Bowls","''","quanto","fones","com","earpads","``","Comfort","Pads","''","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Bowls\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Comfort Pads\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT CLASS FROM headphone WHERE earpads = 'Bowls' INTERSECT SELECT CLASS FROM headphone WHERE earpads = 'Comfort Pads'","query_toks":["SELECT","CLASS","FROM","headphone","WHERE","earpads","=","'Bowls","'","INTERSECT","SELECT","CLASS","FROM","headphone","WHERE","earpads","=","'Comfort","Pads","'"],"query_toks_no_value":["select","class","from","headphone","where","earpads","=","value","intersect","select","class","from","headphone","where","earpads","=","value"],"question":"Encontre as classes de fones de ouvido que contêm tanto fones com earpads \"Bowls\" quanto fones com earpads \"Comfort Pads\".","question_toks":["Encontre","as","classes","de","fones","de","ouvido","que","contêm","tanto","fones","com","earpads","``","Bowls","''","quanto","fones","com","earpads","``","Comfort","Pads","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Bowls\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Comfort Pads\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT earpads FROM headphone EXCEPT SELECT earpads FROM headphone WHERE construction = 'Plastic'","query_toks":["SELECT","earpads","FROM","headphone","EXCEPT","SELECT","earpads","FROM","headphone","WHERE","construction","=","'Plastic","'"],"query_toks_no_value":["select","earpads","from","headphone","except","select","earpads","from","headphone","where","construction","=","value"],"question":"Quais earpads nunca usam construção em plástico?","question_toks":["Quais","earpads","nunca","usam","construção","em","plástico","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Plastic\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"headphone_store","query":"SELECT earpads FROM headphone EXCEPT SELECT earpads FROM headphone WHERE construction = 'Plastic'","query_toks":["SELECT","earpads","FROM","headphone","EXCEPT","SELECT","earpads","FROM","headphone","WHERE","construction","=","'Plastic","'"],"query_toks_no_value":["select","earpads","from","headphone","except","select","earpads","from","headphone","where","construction","=","value"],"question":"Encontre todos os earpads que não utilizam construção em plástico.","question_toks":["Encontre","todos","os","earpads","que","não","utilizam","construção","em","plástico","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Plastic\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"headphone_store","query":"SELECT model FROM headphone WHERE price < (SELECT avg(price) FROM headphone)","query_toks":["SELECT","model","FROM","headphone","WHERE","price","<","(","SELECT","avg","(","price",")","FROM","headphone",")"],"query_toks_no_value":["select","model","from","headphone","where","price","<","(","select","avg","(","price",")","from","headphone",")"],"question":"Encontre os modelos de fones de ouvido cujo preço está abaixo do preço médio.","question_toks":["Encontre","os","modelos","de","fones","de","ouvido","cujo","preço","está","abaixo","do","preço","médio","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"headphone_store","query":"SELECT model FROM headphone WHERE price < (SELECT avg(price) FROM headphone)","query_toks":["SELECT","model","FROM","headphone","WHERE","price","<","(","SELECT","avg","(","price",")","FROM","headphone",")"],"query_toks_no_value":["select","model","from","headphone","where","price","<","(","select","avg","(","price",")","from","headphone",")"],"question":"Quais são os modelos de fones de ouvido que custam menos do que o preço médio?","question_toks":["Quais","são","os","modelos","de","fones","de","ouvido","que","custam","menos","do","que","o","preço","médio","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"headphone_store","query":"SELECT name FROM store ORDER BY date_opened","query_toks":["SELECT","name","FROM","store","ORDER","BY","date_opened"],"query_toks_no_value":["select","name","from","store","order","by","date_opened"],"question":"Ordene todos os nomes das lojas pela data de abertura da loja.","question_toks":["Ordene","todos","os","nomes","das","lojas","pela","data","de","abertura","da","loja","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT name FROM store ORDER BY date_opened","query_toks":["SELECT","name","FROM","store","ORDER","BY","date_opened"],"query_toks_no_value":["select","name","from","store","order","by","date_opened"],"question":"Me dê uma lista de nomes de lojas, ordenada pela data de abertura da loja.","question_toks":["Me","dê","uma","lista","de","nomes","de","lojas",",","ordenada","pela","data","de","abertura","da","loja","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT name , parking FROM store WHERE neighborhood = 'Tarzana'","query_toks":["SELECT","name",",","parking","FROM","store","WHERE","neighborhood","=","'Tarzana","'"],"query_toks_no_value":["select","name",",","parking","from","store","where","neighborhood","=","value"],"question":"Liste o nome e as informações de estacionamento das lojas no bairro Tarzana.","question_toks":["Liste","o","nome","e","as","informações","de","estacionamento","das","lojas","no","bairro","Tarzana","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Tarzana\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT name , parking FROM store WHERE neighborhood = 'Tarzana'","query_toks":["SELECT","name",",","parking","FROM","store","WHERE","neighborhood","=","'Tarzana","'"],"query_toks_no_value":["select","name",",","parking","from","store","where","neighborhood","=","value"],"question":"Quais lojas estão localizadas no bairro \"Tarzana\"? Retorne seus nomes e informações de estacionamento.","question_toks":["Quais","lojas","estão","localizadas","no","bairro","``","Tarzana","''","?","Retorne","seus","nomes","e","informações","de","estacionamento","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"Tarzana\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(DISTINCT neighborhood) FROM store","query_toks":["SELECT","count","(","DISTINCT","neighborhood",")","FROM","store"],"query_toks_no_value":["select","count","(","distinct","neighborhood",")","from","store"],"question":"Quantos bairros diferentes existem para todas as lojas?","question_toks":["Quantos","bairros","diferentes","existem","para","todas","as","lojas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,10,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(DISTINCT neighborhood) FROM store","query_toks":["SELECT","count","(","DISTINCT","neighborhood",")","FROM","store"],"query_toks_no_value":["select","count","(","distinct","neighborhood",")","from","store"],"question":"Conte o número de bairros distintos onde as lojas estão localizadas.","question_toks":["Conte","o","número","de","bairros","distintos","onde","as","lojas","estão","localizadas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,10,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(*) , neighborhood FROM store GROUP BY neighborhood","query_toks":["SELECT","count","(","*",")",",","neighborhood","FROM","store","GROUP","BY","neighborhood"],"query_toks_no_value":["select","count","(","*",")",",","neighborhood","from","store","group","by","neighborhood"],"question":"Encontre o número de lojas em cada bairro.","question_toks":["Encontre","o","número","de","lojas","em","cada","bairro","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT count(*) , neighborhood FROM store GROUP BY neighborhood","query_toks":["SELECT","count","(","*",")",",","neighborhood","FROM","store","GROUP","BY","neighborhood"],"query_toks_no_value":["select","count","(","*",")",",","neighborhood","from","store","group","by","neighborhood"],"question":"Quantas lojas existem em cada bairro?","question_toks":["Quantas","lojas","existem","em","cada","bairro","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT t1.name , sum(t2.quantity) FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id GROUP BY t2.store_id ORDER BY sum(t2.quantity) DESC LIMIT 1","query_toks":["SELECT","t1.name",",","sum","(","t2.quantity",")","FROM","store","AS","t1","JOIN","stock","AS","t2","ON","t1.store_id","=","t2.store_id","GROUP","BY","t2.store_id","ORDER","BY","sum","(","t2.quantity",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name",",","sum","(","t2",".","quantity",")","from","store","as","t1","join","stock","as","t2","on","t1",".","store_id","=","t2",".","store_id","group","by","t2",".","store_id","order","by","sum","(","t2",".","quantity",")","desc","limit","value"],"question":"Encontre o nome da loja que tem mais fones de ouvido em estoque. Liste também o número de fones de ouvido.","question_toks":["Encontre","o","nome","da","loja","que","tem","mais","fones","de","ouvido","em","estoque",".","Liste","também","o","número","de","fones","de","ouvido","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[4,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":["desc",[[0,[4,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT t1.name , sum(t2.quantity) FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id GROUP BY t2.store_id ORDER BY sum(t2.quantity) DESC LIMIT 1","query_toks":["SELECT","t1.name",",","sum","(","t2.quantity",")","FROM","store","AS","t1","JOIN","stock","AS","t2","ON","t1.store_id","=","t2.store_id","GROUP","BY","t2.store_id","ORDER","BY","sum","(","t2.quantity",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name",",","sum","(","t2",".","quantity",")","from","store","as","t1","join","stock","as","t2","on","t1",".","store_id","=","t2",".","store_id","group","by","t2",".","store_id","order","by","sum","(","t2",".","quantity",")","desc","limit","value"],"question":"Qual loja tem os fones de ouvido em estoque? Me dê o nome da loja e a quantidade total.","question_toks":["Qual","loja","tem","os","fones","de","ouvido","em","estoque","?","Me","dê","o","nome","da","loja","e","a","quantidade","total","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[4,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":["desc",[[0,[4,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT name FROM store WHERE store_id NOT IN (SELECT store_id FROM stock)","query_toks":["SELECT","name","FROM","store","WHERE","store_id","NOT","IN","(","SELECT","store_id","FROM","stock",")"],"query_toks_no_value":["select","name","from","store","where","store_id","not","in","(","select","store_id","from","stock",")"],"question":"Encontre o nome das lojas que não têm fones de ouvido em estoque.","question_toks":["Encontre","o","nome","das","lojas","que","não","têm","fones","de","ouvido","em","estoque","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"headphone_store","query":"SELECT name FROM store WHERE store_id NOT IN (SELECT store_id FROM stock)","query_toks":["SELECT","name","FROM","store","WHERE","store_id","NOT","IN","(","SELECT","store_id","FROM","stock",")"],"query_toks_no_value":["select","name","from","store","where","store_id","not","in","(","select","store_id","from","stock",")"],"question":"Quais lojas não têm fones de ouvido em estoque? Me dê os nomes das lojas.","question_toks":["Quais","lojas","não","têm","fones","de","ouvido","em","estoque","?","Me","dê","os","nomes","das","lojas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[true,8,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"headphone_store","query":"SELECT model FROM headphone WHERE headphone_id NOT IN (SELECT headphone_id FROM stock)","query_toks":["SELECT","model","FROM","headphone","WHERE","headphone_id","NOT","IN","(","SELECT","headphone_id","FROM","stock",")"],"query_toks_no_value":["select","model","from","headphone","where","headphone_id","not","in","(","select","headphone_id","from","stock",")"],"question":"Quais modelos de fones de ouvido não têm estoque em nenhuma loja?","question_toks":["Quais","modelos","de","fones","de","ouvido","não","têm","estoque","em","nenhuma","loja","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,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":"headphone_store","query":"SELECT model FROM headphone WHERE headphone_id NOT IN (SELECT headphone_id FROM stock)","query_toks":["SELECT","model","FROM","headphone","WHERE","headphone_id","NOT","IN","(","SELECT","headphone_id","FROM","stock",")"],"query_toks_no_value":["select","model","from","headphone","where","headphone_id","not","in","(","select","headphone_id","from","stock",")"],"question":"Encontre os modelos de fones de ouvido que não estão em estoque em nenhuma loja.","question_toks":["Encontre","os","modelos","de","fones","de","ouvido","que","não","estão","em","estoque","em","nenhuma","loja","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,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":"headphone_store","query":"SELECT t1.model FROM headphone AS t1 JOIN stock AS t2 ON t1.headphone_id = t2.headphone_id GROUP BY t1.model ORDER BY sum(t2.quantity) DESC LIMIT 1","query_toks":["SELECT","t1.model","FROM","headphone","AS","t1","JOIN","stock","AS","t2","ON","t1.headphone_id","=","t2.headphone_id","GROUP","BY","t1.model","ORDER","BY","sum","(","t2.quantity",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","model","from","headphone","as","t1","join","stock","as","t2","on","t1",".","headphone_id","=","t2",".","headphone_id","group","by","t1",".","model","order","by","sum","(","t2",".","quantity",")","desc","limit","value"],"question":"Qual modelo de fone de ouvido tem a maior quantidade de estoque em todas as lojas?","question_toks":["Qual","modelo","de","fone","de","ouvido","tem","a","maior","quantidade","de","estoque","em","todas","as","lojas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[4,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT t1.model FROM headphone AS t1 JOIN stock AS t2 ON t1.headphone_id = t2.headphone_id GROUP BY t1.model ORDER BY sum(t2.quantity) DESC LIMIT 1","query_toks":["SELECT","t1.model","FROM","headphone","AS","t1","JOIN","stock","AS","t2","ON","t1.headphone_id","=","t2.headphone_id","GROUP","BY","t1.model","ORDER","BY","sum","(","t2.quantity",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","model","from","headphone","as","t1","join","stock","as","t2","on","t1",".","headphone_id","=","t2",".","headphone_id","group","by","t1",".","model","order","by","sum","(","t2",".","quantity",")","desc","limit","value"],"question":"Encontre o modelo de headphone cuja quantidade total em estoque é a maior.","question_toks":["Encontre","o","modelo","de","headphone","cuja","quantidade","total","em","estoque","é","a","maior","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[4,15,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT sum(t2.quantity) FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id WHERE t1.name = 'Woodman'","query_toks":["SELECT","sum","(","t2.quantity",")","FROM","store","AS","t1","JOIN","stock","AS","t2","ON","t1.store_id","=","t2.store_id","WHERE","t1.name","=","'Woodman","'"],"query_toks_no_value":["select","sum","(","t2",".","quantity",")","from","store","as","t1","join","stock","as","t2","on","t1",".","store_id","=","t2",".","store_id","where","t1",".","name","=","value"],"question":"Quantos fones de ouvido estão armazenados na loja Woodman?","question_toks":["Quantos","fones","de","ouvido","estão","armazenados","na","loja","Woodman","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,13,false],null]]},"select":[false,[[4,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Woodman\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT sum(t2.quantity) FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id WHERE t1.name = 'Woodman'","query_toks":["SELECT","sum","(","t2.quantity",")","FROM","store","AS","t1","JOIN","stock","AS","t2","ON","t1.store_id","=","t2.store_id","WHERE","t1.name","=","'Woodman","'"],"query_toks_no_value":["select","sum","(","t2",".","quantity",")","from","store","as","t1","join","stock","as","t2","on","t1",".","store_id","=","t2",".","store_id","where","t1",".","name","=","value"],"question":"Encontre a quantidade total de fones de ouvido armazenados na loja Woodman.","question_toks":["Encontre","a","quantidade","total","de","fones","de","ouvido","armazenados","na","loja","Woodman","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,13,false],null]]},"select":[false,[[4,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Woodman\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"headphone_store","query":"SELECT Neighborhood FROM store EXCEPT SELECT t1.Neighborhood FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id","query_toks":["SELECT","Neighborhood","FROM","store","EXCEPT","SELECT","t1.Neighborhood","FROM","store","AS","t1","JOIN","stock","AS","t2","ON","t1.store_id","=","t2.store_id"],"query_toks_no_value":["select","neighborhood","from","store","except","select","t1",".","neighborhood","from","store","as","t1","join","stock","as","t2","on","t1",".","store_id","=","t2",".","store_id"],"question":"Qual bairro não tem nenhum fone de ouvido em estoque?","question_toks":["Qual","bairro","não","tem","nenhum","fone","de","ouvido","em","estoque","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"headphone_store","query":"SELECT Neighborhood FROM store EXCEPT SELECT t1.Neighborhood FROM store AS t1 JOIN stock AS t2 ON t1.store_id = t2.store_id","query_toks":["SELECT","Neighborhood","FROM","store","EXCEPT","SELECT","t1.Neighborhood","FROM","store","AS","t1","JOIN","stock","AS","t2","ON","t1.store_id","=","t2.store_id"],"query_toks_no_value":["select","neighborhood","from","store","except","select","t1",".","neighborhood","from","store","as","t1","join","stock","as","t2","on","t1",".","store_id","=","t2",".","store_id"],"question":"Encontre o bairro onde não há fones de ouvido em estoque.","question_toks":["Encontre","o","bairro","onde","não","há","fones","de","ouvido","em","estoque","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,8,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"aan_1","query":"SELECT count(*) FROM Author","query_toks":["SELECT","count","(","*",")","FROM","Author"],"query_toks_no_value":["select","count","(","*",")","from","author"],"question":"Quantos autores temos?","question_toks":["Quantos","autores","temos","?"],"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":"aan_1","query":"SELECT count(*) FROM Author","query_toks":["SELECT","count","(","*",")","FROM","Author"],"query_toks_no_value":["select","count","(","*",")","from","author"],"question":"Conte o número de autores.","question_toks":["Conte","o","número","de","autores","."],"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":"aan_1","query":"SELECT count(*) FROM Paper","query_toks":["SELECT","count","(","*",")","FROM","Paper"],"query_toks_no_value":["select","count","(","*",")","from","paper"],"question":"Conte quantos artigos temos.","question_toks":["Conte","quantos","artigos","temos","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Paper","query_toks":["SELECT","count","(","*",")","FROM","Paper"],"query_toks_no_value":["select","count","(","*",")","from","paper"],"question":"Conte o número de artigos.","question_toks":["Conte","o","número","de","artigos","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Affiliation","query_toks":["SELECT","count","(","*",")","FROM","Affiliation"],"query_toks_no_value":["select","count","(","*",")","from","affiliation"],"question":"Quantas afiliações temos?","question_toks":["Quantas","afiliações","temos","?"],"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":"aan_1","query":"SELECT count(*) FROM Affiliation","query_toks":["SELECT","count","(","*",")","FROM","Affiliation"],"query_toks_no_value":["select","count","(","*",")","from","affiliation"],"question":"Conte o número de afiliações.","question_toks":["Conte","o","número","de","afiliações","."],"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":"aan_1","query":"SELECT count(*) FROM Paper WHERE venue = \"NAACL\" AND YEAR = 2000","query_toks":["SELECT","count","(","*",")","FROM","Paper","WHERE","venue","=","``","NAACL","''","AND","YEAR","=","2000"],"query_toks_no_value":["select","count","(","*",")","from","paper","where","venue","=","value","and","year","=","value"],"question":"Quantos artigos nós temos na NAACL 2000?","question_toks":["Quantos","artigos","nós","temos","na","NAACL","2000","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"NAACL\"",null],"and",[false,2,[0,[0,15,false],null],2000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Paper WHERE venue = \"NAACL\" AND YEAR = 2000","query_toks":["SELECT","count","(","*",")","FROM","Paper","WHERE","venue","=","``","NAACL","''","AND","YEAR","=","2000"],"query_toks_no_value":["select","count","(","*",")","from","paper","where","venue","=","value","and","year","=","value"],"question":"Conte o número de artigos na NAACL 2000.","question_toks":["Conte","o","número","de","artigos","na","NAACL","2000","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"NAACL\"",null],"and",[false,2,[0,[0,15,false],null],2000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name LIKE \"Columbia University\" AND T1.year = 2009","query_toks":["SELECT","count","(","DISTINCT","T1.paper_id",")","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","LIKE","``","Columbia","University","''","AND","T1.year","=","2009"],"query_toks_no_value":["select","count","(","distinct","t1",".","paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","like","value","and","t1",".","year","=","value"],"question":"Quantos artigos foram publicados no ano de 2009 pela Columbia University?","question_toks":["Quantos","artigos","foram","publicados","no","ano","de","2009","pela","Columbia","University","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"Columbia University\"",null],"and",[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name LIKE \"Columbia University\" AND T1.year = 2009","query_toks":["SELECT","count","(","DISTINCT","T1.paper_id",")","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","LIKE","``","Columbia","University","''","AND","T1.year","=","2009"],"query_toks_no_value":["select","count","(","distinct","t1",".","paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","like","value","and","t1",".","year","=","value"],"question":"Conte o número de artigos publicados pela Columbia University em 2009.","question_toks":["Conte","o","número","de","artigos","publicados","pela","Columbia","University","em","2009","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"Columbia University\"",null],"and",[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT DISTINCT name , address FROM Affiliation","query_toks":["SELECT","DISTINCT","name",",","address","FROM","Affiliation"],"query_toks_no_value":["select","distinct","name",",","address","from","affiliation"],"question":"Liste nomes e endereços de todas as afiliações.","question_toks":["Liste","nomes","e","endereços","de","todas","as","afiliações","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT DISTINCT name , address FROM Affiliation","query_toks":["SELECT","DISTINCT","name",",","address","FROM","Affiliation"],"query_toks_no_value":["select","distinct","name",",","address","from","affiliation"],"question":"Quais são os nomes e endereços de todas as afiliações?","question_toks":["Quais","são","os","nomes","e","endereços","de","todas","as","afiliações","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT DISTINCT venue , YEAR FROM paper ORDER BY YEAR","query_toks":["SELECT","DISTINCT","venue",",","YEAR","FROM","paper","ORDER","BY","YEAR"],"query_toks_no_value":["select","distinct","venue",",","year","from","paper","order","by","year"],"question":"Liste todos os locais de publicação e anos dos artigos ordenados por ano.","question_toks":["Liste","todos","os","locais","de","publicação","e","anos","dos","artigos","ordenados","por","ano","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT DISTINCT venue , YEAR FROM paper ORDER BY YEAR","query_toks":["SELECT","DISTINCT","venue",",","YEAR","FROM","paper","ORDER","BY","YEAR"],"query_toks_no_value":["select","distinct","venue",",","year","from","paper","order","by","year"],"question":"Quais são os locais de publicação distintos para os artigos, ordenados por ano?","question_toks":["Quais","são","os","locais","de","publicação","distintos","para","os","artigos",",","ordenados","por","ano","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT DISTINCT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name = \"Harvard University\"","query_toks":["SELECT","DISTINCT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","=","``","Harvard","University","''"],"query_toks_no_value":["select","distinct","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","=","value"],"question":"Encontre os títulos e ids dos artigos de trabalhos escritos pela Harvard University.","question_toks":["Encontre","os","títulos","e","ids","dos","artigos","de","trabalhos","escritos","pela","Harvard","University","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Harvard University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT DISTINCT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name = \"Harvard University\"","query_toks":["SELECT","DISTINCT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","=","``","Harvard","University","''"],"query_toks_no_value":["select","distinct","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","=","value"],"question":"Quais são os títulos e os ids dos artigos escritos em afiliação com a Harvard University?","question_toks":["Quais","são","os","títulos","e","os","ids","dos","artigos","escritos","em","afiliação","com","a","Harvard","University","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Harvard University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T3.author_id = T2.author_id WHERE T3.name LIKE \"%Mckeown%\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T3.author_id","=","T2.author_id","WHERE","T3.name","LIKE","``","%","Mckeown","%","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t3",".","author_id","=","t2",".","author_id","where","t3",".","name","like","value"],"question":"Encontre todos os artigos com títulos e IDs de artigos escritos por Mckeown.","question_toks":["Encontre","todos","os","artigos","com","títulos","e","IDs","de","artigos","escritos","por","Mckeown","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T3.author_id = T2.author_id WHERE T3.name LIKE \"%Mckeown%\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T3.author_id","=","T2.author_id","WHERE","T3.name","LIKE","``","%","Mckeown","%","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t3",".","author_id","=","t2",".","author_id","where","t3",".","name","like","value"],"question":"Quais são os títulos e os ids dos artigos escritos por Mckeown?","question_toks":["Quais","são","os","títulos","e","os","ids","dos","artigos","escritos","por","Mckeown","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name LIKE \"Stanford University\" INTERSECT SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name LIKE \"Columbia University\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","LIKE","``","Stanford","University","''","INTERSECT","SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","LIKE","``","Columbia","University","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","like","value","intersect","select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","like","value"],"question":"Encontre todos os artigos com títulos e IDs de artigos colaborados pela Stanford University e pela Columbia University.","question_toks":["Encontre","todos","os","artigos","com","títulos","e","IDs","de","artigos","colaborados","pela","Stanford","University","e","pela","Columbia","University","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"Stanford University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"Columbia University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name LIKE \"Stanford University\" INTERSECT SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T3.name LIKE \"Columbia University\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","LIKE","``","Stanford","University","''","INTERSECT","SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T3.name","LIKE","``","Columbia","University","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","like","value","intersect","select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","like","value"],"question":"Quais são os títulos e os IDs dos artigos que estavam afiliados tanto à Stanford University quanto à Columbia University?","question_toks":["Quais","são","os","títulos","e","os","IDs","dos","artigos","que","estavam","afiliados","tanto","à","Stanford","University","quanto","à","Columbia","University","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"Stanford University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"Columbia University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Mckeown , Kathleen%\" INTERSECT SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Rambow , Owen%\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Mckeown",",","Kathleen","%","''","INTERSECT","SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Rambow",",","Owen","%","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value","intersect","select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value"],"question":"Encontre todos os artigos com títulos e IDs de artigos co-autorados por Mckeown, Kathleen e Rambow, Owen.","question_toks":["Encontre","todos","os","artigos","com","títulos","e","IDs","de","artigos","co-autorados","por","Mckeown",",","Kathleen","e","Rambow",",","Owen","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown , Kathleen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Rambow , Owen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Mckeown , Kathleen%\" INTERSECT SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Rambow , Owen%\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Mckeown",",","Kathleen","%","''","INTERSECT","SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Rambow",",","Owen","%","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value","intersect","select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value"],"question":"Quais são os títulos e os ids dos artigos co-autores por Mckeown, Kathleen e Rambow, Owen?","question_toks":["Quais","são","os","títulos","e","os","ids","dos","artigos","co-autores","por","Mckeown",",","Kathleen","e","Rambow",",","Owen","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown , Kathleen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Rambow , Owen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Mckeown%\" EXCEPT SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Rambow%\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Mckeown","%","''","EXCEPT","SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Rambow","%","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value","except","select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value"],"question":"Encontre os títulos e IDs dos artigos que têm Mckeown, mas não Rambow na lista de autores.","question_toks":["Encontre","os","títulos","e","IDs","dos","artigos","que","têm","Mckeown",",","mas","não","Rambow","na","lista","de","autores","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Rambow%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"aan_1","query":"SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Mckeown%\" EXCEPT SELECT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Rambow%\"","query_toks":["SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Mckeown","%","''","EXCEPT","SELECT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Rambow","%","''"],"query_toks_no_value":["select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value","except","select","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value"],"question":"Quais são os títulos e ids de artigos que têm Mckeown como autor, mas não Rambow?","question_toks":["Quais","são","os","títulos","e","ids","de","artigos","que","têm","Mckeown","como","autor",",","mas","não","Rambow","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Rambow%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"aan_1","query":"SELECT DISTINCT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Mckeown , Kathleen%\" OR T3.name LIKE \"%Rambow , Owen%\"","query_toks":["SELECT","DISTINCT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Mckeown",",","Kathleen","%","''","OR","T3.name","LIKE","``","%","Rambow",",","Owen","%","''"],"query_toks_no_value":["select","distinct","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value","or","t3",".","name","like","value"],"question":"Encontre os títulos e IDs dos artigos que têm Mckeown, Kathleen ou Rambow, Owen na lista de autores.","question_toks":["Encontre","os","títulos","e","IDs","dos","artigos","que","têm","Mckeown",",","Kathleen","ou","Rambow",",","Owen","na","lista","de","autores","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown , Kathleen%\"",null],"or",[false,9,[0,[0,5,false],null],"\"%Rambow , Owen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT DISTINCT T1.title , T1.paper_id FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id WHERE T3.name LIKE \"%Mckeown , Kathleen%\" OR T3.name LIKE \"%Rambow , Owen%\"","query_toks":["SELECT","DISTINCT","T1.title",",","T1.paper_id","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","WHERE","T3.name","LIKE","``","%","Mckeown",",","Kathleen","%","''","OR","T3.name","LIKE","``","%","Rambow",",","Owen","%","''"],"query_toks_no_value":["select","distinct","t1",".","title",",","t1",".","paper_id","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","like","value","or","t3",".","name","like","value"],"question":"Quais são os títulos e os ids dos artigos que têm Mckeown, Kathleen ou Rambow, Owen em sua lista de autores?","question_toks":["Quais","são","os","títulos","e","os","ids","dos","artigos","que","têm","Mckeown",",","Kathleen","ou","Rambow",",","Owen","em","sua","lista","de","autores","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,13,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%Mckeown , Kathleen%\"",null],"or",[false,9,[0,[0,5,false],null],"\"%Rambow , Owen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name , count(*) FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id ORDER BY count(*) DESC","query_toks":["SELECT","T1.name",",","count","(","*",")","FROM","Author","AS","T1","JOIN","Author_list","AS","T2","ON","T1.author_id","=","T2.author_id","GROUP","BY","T1.author_id","ORDER","BY","count","(","*",")","DESC"],"query_toks_no_value":["select","t1",".","name",",","count","(","*",")","from","author","as","t1","join","author_list","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t1",".","author_id","order","by","count","(","*",")","desc"],"question":"Liste os nomes de todos os autores e o número de artigos deles em ordem decrescente pelo número de artigos.","question_toks":["Liste","os","nomes","de","todos","os","autores","e","o","número","de","artigos","deles","em","ordem","decrescente","pelo","número","de","artigos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name , count(*) FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id ORDER BY count(*) DESC","query_toks":["SELECT","T1.name",",","count","(","*",")","FROM","Author","AS","T1","JOIN","Author_list","AS","T2","ON","T1.author_id","=","T2.author_id","GROUP","BY","T1.author_id","ORDER","BY","count","(","*",")","DESC"],"query_toks_no_value":["select","t1",".","name",",","count","(","*",")","from","author","as","t1","join","author_list","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t1",".","author_id","order","by","count","(","*",")","desc"],"question":"Quantos artigos cada autor publicou, ordenados pelo número de artigos?","question_toks":["Quantos","artigos","cada","autor","publicou",",","ordenados","pelo","número","de","artigos","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id GROUP BY T1.affiliation_id ORDER BY count(*) DESC","query_toks":["SELECT","T1.name","FROM","Affiliation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.affiliation_id","=","T2.affiliation_id","GROUP","BY","T1.affiliation_id","ORDER","BY","count","(","*",")","DESC"],"query_toks_no_value":["select","t1",".","name","from","affiliation","as","t1","join","author_list","as","t2","on","t1",".","affiliation_id","=","t2",".","affiliation_id","group","by","t1",".","affiliation_id","order","by","count","(","*",")","desc"],"question":"Liste todas as afiliações com o número de artigos ordenado em ordem ascendente.","question_toks":["Liste","todas","as","afiliações","com","o","número","de","artigos","ordenado","em","ordem","ascendente","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id GROUP BY T1.affiliation_id ORDER BY count(*) DESC","query_toks":["SELECT","T1.name","FROM","Affiliation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.affiliation_id","=","T2.affiliation_id","GROUP","BY","T1.affiliation_id","ORDER","BY","count","(","*",")","DESC"],"query_toks_no_value":["select","t1",".","name","from","affiliation","as","t1","join","author_list","as","t2","on","t1",".","affiliation_id","=","t2",".","affiliation_id","group","by","t1",".","affiliation_id","order","by","count","(","*",")","desc"],"question":"Quais são os nomes de todas as afiliações, ordenados pelo número de artigos?","question_toks":["Quais","são","os","nomes","de","todas","as","afiliações",",","ordenados","pelo","número","de","artigos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id HAVING count(*) > 50","query_toks":["SELECT","T1.name","FROM","Author","AS","T1","JOIN","Author_list","AS","T2","ON","T1.author_id","=","T2.author_id","GROUP","BY","T1.author_id","HAVING","count","(","*",")",">","50"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","author_list","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t1",".","author_id","having","count","(","*",")",">","value"],"question":"Liste os nomes de todos os autores que têm mais de 50 artigos.","question_toks":["Liste","os","nomes","de","todos","os","autores","que","têm","mais","de","50","artigos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[[false,3,[0,[3,0,false],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id HAVING count(*) > 50","query_toks":["SELECT","T1.name","FROM","Author","AS","T1","JOIN","Author_list","AS","T2","ON","T1.author_id","=","T2.author_id","GROUP","BY","T1.author_id","HAVING","count","(","*",")",">","50"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","author_list","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t1",".","author_id","having","count","(","*",")",">","value"],"question":"Quais são os nomes de todos os autores que têm mais de 50 artigos?","question_toks":["Quais","são","os","nomes","de","todos","os","autores","que","têm","mais","de","50","artigos","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[[false,3,[0,[3,0,false],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id HAVING count(*) = 1","query_toks":["SELECT","T1.name","FROM","Author","AS","T1","JOIN","Author_list","AS","T2","ON","T1.author_id","=","T2.author_id","GROUP","BY","T1.author_id","HAVING","count","(","*",")","=","1"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","author_list","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t1",".","author_id","having","count","(","*",")","=","value"],"question":"Liste os nomes de todos os autores que têm apenas 1 artigo.","question_toks":["Liste","os","nomes","de","todos","os","autores","que","têm","apenas","1","artigo","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name FROM Author AS T1 JOIN Author_list AS T2 ON T1.author_id = T2.author_id GROUP BY T1.author_id HAVING count(*) = 1","query_toks":["SELECT","T1.name","FROM","Author","AS","T1","JOIN","Author_list","AS","T2","ON","T1.author_id","=","T2.author_id","GROUP","BY","T1.author_id","HAVING","count","(","*",")","=","1"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","author_list","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t1",".","author_id","having","count","(","*",")","=","value"],"question":"Quais são os nomes dos autores que têm exatamente 1 artigo?","question_toks":["Quais","são","os","nomes","dos","autores","que","têm","exatamente","1","artigo","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT venue , YEAR FROM paper GROUP BY venue , YEAR ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","venue",",","YEAR","FROM","paper","GROUP","BY","venue",",","YEAR","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","venue",",","year","from","paper","group","by","venue",",","year","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o local de publicação e o ano com o maior número de publicações?","question_toks":["Qual","é","o","local","de","publicação","e","o","ano","com","o","maior","número","de","publicações","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,14,false],[0,15,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT venue , YEAR FROM paper GROUP BY venue , YEAR ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","venue",",","YEAR","FROM","paper","GROUP","BY","venue",",","YEAR","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","venue",",","year","from","paper","group","by","venue",",","year","order","by","count","(","*",")","desc","limit","value"],"question":"Qual foi o local de publicação e o ano com mais publicações?","question_toks":["Qual","foi","o","local","de","publicação","e","o","ano","com","mais","publicações","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,14,false],[0,15,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT venue FROM paper GROUP BY venue ORDER BY count(*) LIMIT 1","query_toks":["SELECT","venue","FROM","paper","GROUP","BY","venue","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","venue","from","paper","group","by","venue","order","by","count","(","*",")","limit","value"],"question":"Qual é o local de publicação com o menor número de publicações?","question_toks":["Qual","é","o","local","de","publicação","com","o","menor","número","de","publicações","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT venue FROM paper GROUP BY venue ORDER BY count(*) LIMIT 1","query_toks":["SELECT","venue","FROM","paper","GROUP","BY","venue","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","venue","from","paper","group","by","venue","order","by","count","(","*",")","limit","value"],"question":"Qual local de publicação tem o menor número de publicações?","question_toks":["Qual","local","de","publicação","tem","o","menor","número","de","publicações","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Citation WHERE cited_paper_id = \"A00-1002\"","query_toks":["SELECT","count","(","*",")","FROM","Citation","WHERE","cited_paper_id","=","``","A00-1002","''"],"query_toks_no_value":["select","count","(","*",")","from","citation","where","cited_paper_id","=","value"],"question":"Quantos artigos citam o artigo com id A00-1002?","question_toks":["Quantos","artigos","citam","o","artigo","com","id","A00-1002","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"A00-1002\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Citation WHERE cited_paper_id = \"A00-1002\"","query_toks":["SELECT","count","(","*",")","FROM","Citation","WHERE","cited_paper_id","=","``","A00-1002","''"],"query_toks_no_value":["select","count","(","*",")","from","citation","where","cited_paper_id","=","value"],"question":"Conte o número de artigos que citaram um artigo com o id A00-1002.","question_toks":["Conte","o","número","de","artigos","que","citaram","um","artigo","com","o","id","A00-1002","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"A00-1002\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Citation WHERE paper_id = \"D12-1027\"","query_toks":["SELECT","count","(","*",")","FROM","Citation","WHERE","paper_id","=","``","D12-1027","''"],"query_toks_no_value":["select","count","(","*",")","from","citation","where","paper_id","=","value"],"question":"Quantos artigos de referência o artigo com id D12-1027 possui?","question_toks":["Quantos","artigos","de","referência","o","artigo","com","id","D12-1027","possui","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"D12-1027\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Citation WHERE paper_id = \"D12-1027\"","query_toks":["SELECT","count","(","*",")","FROM","Citation","WHERE","paper_id","=","``","D12-1027","''"],"query_toks_no_value":["select","count","(","*",")","from","citation","where","paper_id","=","value"],"question":"Conte o número de referências que o artigo com id D12-1027 possui.","question_toks":["Conte","o","número","de","referências","que","o","artigo","com","id","D12-1027","possui","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,10,false],null],"\"D12-1027\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","paper_id",",","count","(","*",")","FROM","Citation","GROUP","BY","cited_paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","paper_id",",","count","(","*",")","from","citation","group","by","cited_paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id e o número de citações do artigo mais citado?","question_toks":["Qual","é","o","id","e","o","número","de","citações","do","artigo","mais","citado","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","paper_id",",","count","(","*",")","FROM","Citation","GROUP","BY","cited_paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","paper_id",",","count","(","*",")","from","citation","group","by","cited_paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o id e o número de citações do artigo mais citado.","question_toks":["Dê","o","id","e","o","número","de","citações","do","artigo","mais","citado","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T2.paper_id = T1.paper_id GROUP BY T1.paper_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.title","FROM","Citation","AS","T1","JOIN","Paper","AS","T2","ON","T2.paper_id","=","T1.paper_id","GROUP","BY","T1.paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title","from","citation","as","t1","join","paper","as","t2","on","t2",".","paper_id","=","t1",".","paper_id","group","by","t1",".","paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o título do artigo que cita o maior número de artigos.","question_toks":["Dê","o","título","do","artigo","que","cita","o","maior","número","de","artigos","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T2.paper_id = T1.paper_id GROUP BY T1.paper_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.title","FROM","Citation","AS","T1","JOIN","Paper","AS","T2","ON","T2.paper_id","=","T1.paper_id","GROUP","BY","T1.paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title","from","citation","as","t1","join","paper","as","t2","on","t2",".","paper_id","=","t1",".","paper_id","group","by","t1",".","paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o título do artigo que cita o maior número de outros artigos?","question_toks":["Qual","é","o","título","do","artigo","que","cita","o","maior","número","de","outros","artigos","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 10","query_toks":["SELECT","paper_id",",","count","(","*",")","FROM","Citation","GROUP","BY","cited_paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","10"],"query_toks_no_value":["select","paper_id",",","count","(","*",")","from","citation","group","by","cited_paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Liste os 10 artigos mais citados e seus números de citações.","question_toks":["Liste","os","10","artigos","mais","citados","e","seus","números","de","citações","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":10,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 10","query_toks":["SELECT","paper_id",",","count","(","*",")","FROM","Citation","GROUP","BY","cited_paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","10"],"query_toks_no_value":["select","paper_id",",","count","(","*",")","from","citation","group","by","cited_paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os 10 artigos mais citados e quantas citações cada um teve?","question_toks":["Quais","são","os","10","artigos","mais","citados","e","quantas","citações","cada","um","teve","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":10,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count(*) from citation as t1 join author_list as t2 on t1.cited_paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1.cited_paper_id","=","t2.paper_id","join","author","as","t3","on","t2.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Quantas citações Mckeown, Kathleen tem?","question_toks":["Quantas","citações","Mckeown",",","Kathleen","tem","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count(*) from citation as t1 join author_list as t2 on t1.cited_paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1.cited_paper_id","=","t2.paper_id","join","author","as","t3","on","t2.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Conte o número de citações que Mckeown, Kathleen tem.","question_toks":["Conte","o","número","de","citações","que","Mckeown",",","Kathleen","tem","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count(*) from citation as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","author","as","t3","on","t2.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Quantos artigos Mckeown, Kathleen cita?","question_toks":["Quantos","artigos","Mckeown",",","Kathleen","cita","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count(*) from citation as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","author","as","t3","on","t2.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Conte o número de artigos que Mckeown, Kathleen citou.","question_toks":["Conte","o","número","de","artigos","que","Mckeown",",","Kathleen","citou","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T3.name , count(*) FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T3.name",",","count","(","*",")","FROM","Citation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.cited_paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","GROUP","BY","T2.author_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","name",",","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome e o número de citações do autor que tem mais citações entre todos os autores.","question_toks":["Encontre","o","nome","e","o","número","de","citações","do","autor","que","tem","mais","citações","entre","todos","os","autores","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T3.name , count(*) FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T3.name",",","count","(","*",")","FROM","Citation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.cited_paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T2.author_id","=","T3.author_id","GROUP","BY","T2.author_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","name",",","count","(","*",")","from","citation","as","t1","join","author_list","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome e o número de citações do autor com o maior número de citações entre os autores?","question_toks":["Qual","é","o","nome","e","o","número","de","citações","do","autor","com","o","maior","número","de","citações","entre","os","autores","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,5,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","distinct","t1.venue",",","t1.year","from","paper","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","author","as","t3","on","t2.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","distinct","t1",".","venue",",","t1",".","year","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Quais são os locais de publicação e anos em que Mckeown, Kathleen teve artigos?","question_toks":["Quais","são","os","locais","de","publicação","e","anos","em","que","Mckeown",",","Kathleen","teve","artigos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","distinct","t1.venue",",","t1.year","from","paper","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","author","as","t3","on","t2.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","distinct","t1",".","venue",",","t1",".","year","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t2",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Quais locais de publicação e anos Mckeown, Kathleen teve artigos?","question_toks":["Quais","locais","de","publicação","e","anos","Mckeown",",","Kathleen","teve","artigos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t3.name = \"columbia university\"","query_toks":["select","distinct","t1.venue",",","t1.year","from","paper","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","affiliation","as","t3","on","t2.affiliation_id","=","t3.affiliation_id","where","t3.name","=","\"columbia university\""],"query_toks_no_value":["select","distinct","t1",".","venue",",","t1",".","year","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","=","value"],"question":"Quais são os locais de publicação e anos em que a Columbia University teve artigos?","question_toks":["Quais","são","os","locais","de","publicação","e","anos","em","que","a","Columbia","University","teve","artigos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"columbia university\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t3.name = \"columbia university\"","query_toks":["select","distinct","t1.venue",",","t1.year","from","paper","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","affiliation","as","t3","on","t2.affiliation_id","=","t3.affiliation_id","where","t3.name","=","\"columbia university\""],"query_toks_no_value":["select","distinct","t1",".","venue",",","t1",".","year","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t3",".","name","=","value"],"question":"Quais locais de publicação e anos a Columbia University teve artigos?","question_toks":["Quais","locais","de","publicação","e","anos","a","Columbia","University","teve","artigos","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"columbia university\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T3.author_id = T2.author_id WHERE T1.year = 2009 GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T3.name","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T3.author_id","=","T2.author_id","WHERE","T1.year","=","2009","GROUP","BY","T2.author_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","name","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t3",".","author_id","=","t2",".","author_id","where","t1",".","year","=","value","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual autor teve mais artigos no ano de 2009?","question_toks":["Qual","autor","teve","mais","artigos","no","ano","de","2009","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T3.author_id = T2.author_id WHERE T1.year = 2009 GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T3.name","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Author","AS","T3","ON","T3.author_id","=","T2.author_id","WHERE","T1.year","=","2009","GROUP","BY","T2.author_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t3",".","name","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","author","as","t3","on","t3",".","author_id","=","t2",".","author_id","where","t1",".","year","=","value","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do autor com mais artigos em 2009?","question_toks":["Qual","é","o","nome","do","autor","com","mais","artigos","em","2009","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,4,false],null],[0,8,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year = 2009 GROUP BY T2.affiliation_id ORDER BY count(*) DESC LIMIT 3","query_toks":["SELECT","T3.name","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T1.year","=","2009","GROUP","BY","T2.affiliation_id","ORDER","BY","count","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","t3",".","name","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t1",".","year","=","value","group","by","t2",".","affiliation_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os nomes das 3 principais afiliações que têm mais artigos no ano de 2009?","question_toks":["Quais","são","os","nomes","das","3","principais","afiliações","que","têm","mais","artigos","no","ano","de","2009","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[[0,9,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year = 2009 GROUP BY T2.affiliation_id ORDER BY count(*) DESC LIMIT 3","query_toks":["SELECT","T3.name","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T1.year","=","2009","GROUP","BY","T2.affiliation_id","ORDER","BY","count","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","t3",".","name","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t1",".","year","=","value","group","by","t2",".","affiliation_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais 3 afiliações tiveram mais artigos em 2009?","question_toks":["Quais","3","afiliações","tiveram","mais","artigos","em","2009","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[[0,9,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count(distinct t1.paper_id) from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t1.year <= 2009 and t3.name = \"columbia university\"","query_toks":["select","count","(","distinct","t1.paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","affiliation","as","t3","on","t2.affiliation_id","=","t3.affiliation_id","where","t1.year","<=","2009","and","t3.name","=","\"columbia university\""],"query_toks_no_value":["select","count","(","distinct","t1",".","paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t1",".","year","<","=","value","and","t3",".","name","=","value"],"question":"Quantos artigos a Columbia University tem em ou antes de 2009?","question_toks":["Quantos","artigos","a","Columbia","University","tem","em","ou","antes","de","2009","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,6,[0,[0,15,false],null],2009.0,null],"and",[false,2,[0,[0,2,false],null],"\"columbia university\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count(distinct t1.paper_id) from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t1.year <= 2009 and t3.name = \"columbia university\"","query_toks":["select","count","(","distinct","t1.paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","join","affiliation","as","t3","on","t2.affiliation_id","=","t3.affiliation_id","where","t1.year","<=","2009","and","t3.name","=","\"columbia university\""],"query_toks_no_value":["select","count","(","distinct","t1",".","paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t1",".","year","<","=","value","and","t3",".","name","=","value"],"question":"Conte o número de artigos que a Columbia University teve durante ou antes de 2009.","question_toks":["Conte","o","número","de","artigos","que","a","Columbia","University","teve","durante","ou","antes","de","2009","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,6,[0,[0,15,false],null],2009.0,null],"and",[false,2,[0,[0,2,false],null],"\"columbia university\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year >= 2000 AND T1.year <= 2009 AND T3.name LIKE \"Stanford University\"","query_toks":["SELECT","count","(","DISTINCT","T1.paper_id",")","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T1.year",">","=","2000","AND","T1.year","<","=","2009","AND","T3.name","LIKE","``","Stanford","University","''"],"query_toks_no_value":["select","count","(","distinct","t1",".","paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t1",".","year",">","=","value","and","t1",".","year","<","=","value","and","t3",".","name","like","value"],"question":"Quantos artigos a Stanford University tem entre 2000 e 2009?","question_toks":["Quantos","artigos","a","Stanford","University","tem","entre","2000","e","2009","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,5,[0,[0,15,false],null],2000.0,null],"and",[false,6,[0,[0,15,false],null],2009.0,null],"and",[false,9,[0,[0,2,false],null],"\"Stanford University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year >= 2000 AND T1.year <= 2009 AND T3.name LIKE \"Stanford University\"","query_toks":["SELECT","count","(","DISTINCT","T1.paper_id",")","FROM","Paper","AS","T1","JOIN","Author_list","AS","T2","ON","T1.paper_id","=","T2.paper_id","JOIN","Affiliation","AS","T3","ON","T2.affiliation_id","=","T3.affiliation_id","WHERE","T1.year",">","=","2000","AND","T1.year","<","=","2009","AND","T3.name","LIKE","``","Stanford","University","''"],"query_toks_no_value":["select","count","(","distinct","t1",".","paper_id",")","from","paper","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","join","affiliation","as","t3","on","t2",".","affiliation_id","=","t3",".","affiliation_id","where","t1",".","year",">","=","value","and","t1",".","year","<","=","value","and","t3",".","name","like","value"],"question":"Conte o número de artigos que a Stanford University teve entre 2000 e 2009.","question_toks":["Conte","o","número","de","artigos","que","a","Stanford","University","teve","entre","2000","e","2009","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,7,false],null],"and",[false,2,[0,[0,9,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,12,true],null]]]],"where":[[false,5,[0,[0,15,false],null],2000.0,null],"and",[false,6,[0,[0,15,false],null],2009.0,null],"and",[false,9,[0,[0,2,false],null],"\"Stanford University\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T2.title FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.title","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","GROUP","BY","T2.paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","group","by","t2",".","paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o título do artigo que tem o maior número de autores?","question_toks":["Qual","é","o","título","do","artigo","que","tem","o","maior","número","de","autores","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T2.title FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.title","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","GROUP","BY","T2.paper_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","title","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","group","by","t2",".","paper_id","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o título do artigo com mais autores.","question_toks":["Dê","o","título","do","artigo","com","mais","autores","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count (distinct t2.author_id) from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","count","(","distinct","t2.author_id",")","from","author_list","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","and","t1.author_id","!=","t2.author_id","join","author","as","t3","on","t1.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","count","(","distinct","t2",".","author_id",")","from","author_list","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","and","t1",".","author_id","!","=","t2",".","author_id","join","author","as","t3","on","t1",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Quantos colaboradores Mckeown , Kathleen teve?","question_toks":["Quantos","colaboradores","Mckeown",",","Kathleen","teve","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,7,false],null],[0,7,false],null],"and",[false,7,[0,[0,8,false],null],[0,8,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,8,true],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select count (distinct t2.author_id) from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id where t3.name = \"mckeown , kathleen\"","query_toks":["select","count","(","distinct","t2.author_id",")","from","author_list","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","and","t1.author_id","!=","t2.author_id","join","author","as","t3","on","t1.author_id","=","t3.author_id","where","t3.name","=","\"mckeown , kathleen\""],"query_toks_no_value":["select","count","(","distinct","t2",".","author_id",")","from","author_list","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","and","t1",".","author_id","!","=","t2",".","author_id","join","author","as","t3","on","t1",".","author_id","=","t3",".","author_id","where","t3",".","name","=","value"],"question":"Conte o número de colaboradores que Mckeown , Kathleen teve.","question_toks":["Conte","o","número","de","colaboradores","que","Mckeown",",","Kathleen","teve","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,7,false],null],[0,7,false],null],"and",[false,7,[0,[0,8,false],null],[0,8,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,8,true],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select t4.name from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id join author as t4 on t2.author_id = t4.author_id where t3.name = \"mckeown , kathleen\" group by t2.author_id order by count(*) desc limit 1","query_toks":["select","t4.name","from","author_list","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","and","t1.author_id","!=","t2.author_id","join","author","as","t3","on","t1.author_id","=","t3.author_id","join","author","as","t4","on","t2.author_id","=","t4.author_id","where","t3.name","=","\"mckeown , kathleen\"","group","by","t2.author_id","order","by","count","(","*",")","desc","limit","1"],"query_toks_no_value":["select","t4",".","name","from","author_list","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","and","t1",".","author_id","!","=","t2",".","author_id","join","author","as","t3","on","t1",".","author_id","=","t3",".","author_id","join","author","as","t4","on","t2",".","author_id","=","t4",".","author_id","where","t3",".","name","=","value","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quem tem mais artigos co-autores com Mckeown , Kathleen?","question_toks":["Quem","tem","mais","artigos","co-autores","com","Mckeown",",","Kathleen","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2],["table_unit",1],["table_unit",1]],"conds":[[false,2,[0,[0,7,false],null],[0,7,false],null],"and",[false,7,[0,[0,8,false],null],[0,8,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"select t4.name from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id join author as t4 on t2.author_id = t4.author_id where t3.name = \"mckeown , kathleen\" group by t2.author_id order by count(*) desc limit 1","query_toks":["select","t4.name","from","author_list","as","t1","join","author_list","as","t2","on","t1.paper_id","=","t2.paper_id","and","t1.author_id","!=","t2.author_id","join","author","as","t3","on","t1.author_id","=","t3.author_id","join","author","as","t4","on","t2.author_id","=","t4.author_id","where","t3.name","=","\"mckeown , kathleen\"","group","by","t2.author_id","order","by","count","(","*",")","desc","limit","1"],"query_toks_no_value":["select","t4",".","name","from","author_list","as","t1","join","author_list","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","and","t1",".","author_id","!","=","t2",".","author_id","join","author","as","t3","on","t1",".","author_id","=","t3",".","author_id","join","author","as","t4","on","t2",".","author_id","=","t4",".","author_id","where","t3",".","name","=","value","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do autor que co-autorizou mais artigos com Mckeown , Kathleen?","question_toks":["Qual","é","o","nome","do","autor","que","co-autorizou","mais","artigos","com","Mckeown",",","Kathleen","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",2],["table_unit",1],["table_unit",1]],"conds":[[false,2,[0,[0,7,false],null],[0,7,false],null],"and",[false,7,[0,[0,8,false],null],[0,8,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null],"and",[false,2,[0,[0,8,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"mckeown , kathleen\"",null]],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT paper_id FROM Paper WHERE title LIKE \"%translation%\"","query_toks":["SELECT","paper_id","FROM","Paper","WHERE","title","LIKE","``","%","translation","%","''"],"query_toks_no_value":["select","paper_id","from","paper","where","title","like","value"],"question":"Encontre o id dos artigos cujo título contém a palavra-chave 'translation'.","question_toks":["Encontre","o","id","dos","artigos","cujo","título","contém","a","palavra-chave","'translation","'","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,13,false],null],"\"%translation%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT paper_id FROM Paper WHERE title LIKE \"%translation%\"","query_toks":["SELECT","paper_id","FROM","Paper","WHERE","title","LIKE","``","%","translation","%","''"],"query_toks_no_value":["select","paper_id","from","paper","where","title","like","value"],"question":"Quais são os ids dos artigos com títulos contendo 'translation'?","question_toks":["Quais","são","os","ids","dos","artigos","com","títulos","contendo","'translation","'","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,9,[0,[0,13,false],null],"\"%translation%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation)","query_toks":["SELECT","paper_id",",","title","FROM","Paper","WHERE","paper_id","NOT","IN","(","SELECT","cited_paper_id","FROM","Citation",")"],"query_toks_no_value":["select","paper_id",",","title","from","paper","where","paper_id","not","in","(","select","cited_paper_id","from","citation",")"],"question":"Encontre o id e o título dos artigos que nunca foram citados por outros.","question_toks":["Encontre","o","id","e","o","título","dos","artigos","que","nunca","foram","citados","por","outros","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]]]],"where":[[true,8,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,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":"aan_1","query":"SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation)","query_toks":["SELECT","paper_id",",","title","FROM","Paper","WHERE","paper_id","NOT","IN","(","SELECT","cited_paper_id","FROM","Citation",")"],"query_toks_no_value":["select","paper_id",",","title","from","paper","where","paper_id","not","in","(","select","cited_paper_id","from","citation",")"],"question":"Quais são os ids e títulos dos artigos que nunca foram citados?","question_toks":["Quais","são","os","ids","e","títulos","dos","artigos","que","nunca","foram","citados","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]]]],"where":[[true,8,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,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":"aan_1","query":"SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id WHERE T1.address LIKE \"%China%\" GROUP BY T1.affiliation_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.name","FROM","Affiliation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.affiliation_id","=","T2.affiliation_id","WHERE","T1.address","LIKE","``","%","China","%","''","GROUP","BY","T1.affiliation_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name","from","affiliation","as","t1","join","author_list","as","t2","on","t1",".","affiliation_id","=","t2",".","affiliation_id","where","t1",".","address","like","value","group","by","t1",".","affiliation_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome da afiliação cujo endereço contém 'China' e publica o maior número de artigos.","question_toks":["Encontre","o","nome","da","afiliação","cujo","endereço","contém","'China","'","e","publica","o","maior","número","de","artigos","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,3,false],null],"\"%China%\"",null]],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id WHERE T1.address LIKE \"%China%\" GROUP BY T1.affiliation_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.name","FROM","Affiliation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.affiliation_id","=","T2.affiliation_id","WHERE","T1.address","LIKE","``","%","China","%","''","GROUP","BY","T1.affiliation_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name","from","affiliation","as","t1","join","author_list","as","t2","on","t1",".","affiliation_id","=","t2",".","affiliation_id","where","t1",".","address","like","value","group","by","t1",".","affiliation_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome da afiliação que publica o maior número de artigos entre aquelas cujo endereço contém 'China'?","question_toks":["Qual","é","o","nome","da","afiliação","que","publica","o","maior","número","de","artigos","entre","aquelas","cujo","endereço","contém","'China","'","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,3,false],null],"\"%China%\"",null]],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) , venue , YEAR FROM Paper GROUP BY venue , YEAR","query_toks":["SELECT","count","(","*",")",",","venue",",","YEAR","FROM","Paper","GROUP","BY","venue",",","YEAR"],"query_toks_no_value":["select","count","(","*",")",",","venue",",","year","from","paper","group","by","venue",",","year"],"question":"Encontre o número de artigos publicados em diferentes conferências a cada ano.","question_toks":["Encontre","o","número","de","artigos","publicados","em","diferentes","conferências","a","cada","ano","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,14,false],[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) , venue , YEAR FROM Paper GROUP BY venue , YEAR","query_toks":["SELECT","count","(","*",")",",","venue",",","YEAR","FROM","Paper","GROUP","BY","venue",",","YEAR"],"query_toks_no_value":["select","count","(","*",")",",","venue",",","year","from","paper","group","by","venue",",","year"],"question":"Conte quantos artigos são publicados em cada local de publicação em cada ano.","question_toks":["Conte","quantos","artigos","são","publicados","em","cada","local","de","publicação","em","cada","ano","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,14,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[[0,14,false],[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(DISTINCT T2.paper_id) , T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id GROUP BY T1.affiliation_id","query_toks":["SELECT","count","(","DISTINCT","T2.paper_id",")",",","T1.name","FROM","Affiliation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.affiliation_id","=","T2.affiliation_id","GROUP","BY","T1.affiliation_id"],"query_toks_no_value":["select","count","(","distinct","t2",".","paper_id",")",",","t1",".","name","from","affiliation","as","t1","join","author_list","as","t2","on","t1",".","affiliation_id","=","t2",".","affiliation_id","group","by","t1",".","affiliation_id"],"question":"Encontre o número total de artigos para cada afiliação.","question_toks":["Encontre","o","número","total","de","artigos","para","cada","afiliação","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[3,[0,[0,7,true],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(DISTINCT T2.paper_id) , T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id GROUP BY T1.affiliation_id","query_toks":["SELECT","count","(","DISTINCT","T2.paper_id",")",",","T1.name","FROM","Affiliation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.affiliation_id","=","T2.affiliation_id","GROUP","BY","T1.affiliation_id"],"query_toks_no_value":["select","count","(","distinct","t2",".","paper_id",")",",","t1",".","name","from","affiliation","as","t1","join","author_list","as","t2","on","t1",".","affiliation_id","=","t2",".","affiliation_id","group","by","t1",".","affiliation_id"],"question":"Quantos artigos cada afiliação publicou?","question_toks":["Quantos","artigos","cada","afiliação","publicou","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[3,[0,[0,7,true],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(*) > 50","query_toks":["SELECT","T2.title","FROM","Citation","AS","T1","JOIN","Paper","AS","T2","ON","T1.cited_paper_id","=","T2.paper_id","GROUP","BY","T1.cited_paper_id","HAVING","count","(","*",")",">","50"],"query_toks_no_value":["select","t2",".","title","from","citation","as","t1","join","paper","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","group","by","t1",".","cited_paper_id","having","count","(","*",")",">","value"],"question":"Encontre os títulos dos artigos que têm mais de 50 citações.","question_toks":["Encontre","os","títulos","dos","artigos","que","têm","mais","de","50","citações","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,11,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,3,[0,[3,0,false],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(*) > 50","query_toks":["SELECT","T2.title","FROM","Citation","AS","T1","JOIN","Paper","AS","T2","ON","T1.cited_paper_id","=","T2.paper_id","GROUP","BY","T1.cited_paper_id","HAVING","count","(","*",")",">","50"],"query_toks_no_value":["select","t2",".","title","from","citation","as","t1","join","paper","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","group","by","t1",".","cited_paper_id","having","count","(","*",")",">","value"],"question":"Quais são os títulos dos artigos com mais de 50 citações?","question_toks":["Quais","são","os","títulos","dos","artigos","com","mais","de","50","citações","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",4]],"conds":[[false,2,[0,[0,11,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,3,[0,[3,0,false],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Author WHERE Author_id NOT IN ( SELECT T2.author_id FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(DISTINCT T1.paper_id) > 50)","query_toks":["SELECT","count","(","*",")","FROM","Author","WHERE","Author_id","NOT","IN","(","SELECT","T2.author_id","FROM","Citation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.cited_paper_id","=","T2.paper_id","GROUP","BY","T1.cited_paper_id","HAVING","count","(","DISTINCT","T1.paper_id",")",">","50",")"],"query_toks_no_value":["select","count","(","*",")","from","author","where","author_id","not","in","(","select","t2",".","author_id","from","citation","as","t1","join","author_list","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","group","by","t1",".","cited_paper_id","having","count","(","distinct","t1",".","paper_id",")",">","value",")"],"question":"Encontre o número de autores que não publicaram nenhum artigo que foi citado mais de 50 vezes.","question_toks":["Encontre","o","número","de","autores","que","não","publicaram","nenhum","artigo","que","foi","citado","mais","de","50","vezes","."],"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",3],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,3,[0,[3,10,true],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT count(*) FROM Author WHERE Author_id NOT IN ( SELECT T2.author_id FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(DISTINCT T1.paper_id) > 50)","query_toks":["SELECT","count","(","*",")","FROM","Author","WHERE","Author_id","NOT","IN","(","SELECT","T2.author_id","FROM","Citation","AS","T1","JOIN","Author_list","AS","T2","ON","T1.cited_paper_id","=","T2.paper_id","GROUP","BY","T1.cited_paper_id","HAVING","count","(","DISTINCT","T1.paper_id",")",">","50",")"],"query_toks_no_value":["select","count","(","*",")","from","author","where","author_id","not","in","(","select","t2",".","author_id","from","citation","as","t1","join","author_list","as","t2","on","t1",".","cited_paper_id","=","t2",".","paper_id","group","by","t1",".","cited_paper_id","having","count","(","distinct","t1",".","paper_id",")",">","value",")"],"question":"Quantos autores não publicaram um artigo com mais de 50 citações?","question_toks":["Quantos","autores","não","publicaram","um","artigo","com","mais","de","50","citações","?"],"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",3],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,3,[0,[3,10,true],null],50.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT name FROM Author WHERE author_id IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = \"ACL\" AND T2.year = 2009 INTERSECT SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = \"NAACL\" AND T2.year = 2009)","query_toks":["SELECT","name","FROM","Author","WHERE","author_id","IN","(","SELECT","T1.author_id","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","WHERE","T2.venue","=","``","ACL","''","AND","T2.year","=","2009","INTERSECT","SELECT","T1.author_id","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","WHERE","T2.venue","=","``","NAACL","''","AND","T2.year","=","2009",")"],"query_toks_no_value":["select","name","from","author","where","author_id","in","(","select","t1",".","author_id","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","where","t2",".","venue","=","value","and","t2",".","year","=","value","intersect","select","t1",".","author_id","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","where","t2",".","venue","=","value","and","t2",".","year","=","value",")"],"question":"Encontre os nomes dos autores que publicaram algum artigo na NAACL e na ACL no ano de 2009.","question_toks":["Encontre","os","nomes","dos","autores","que","publicaram","algum","artigo","na","NAACL","e","na","ACL","no","ano","de","2009","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,8,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"ACL\"",null],"and",[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"NAACL\"",null],"and",[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT name FROM Author WHERE author_id IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = \"ACL\" AND T2.year = 2009 INTERSECT SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = \"NAACL\" AND T2.year = 2009)","query_toks":["SELECT","name","FROM","Author","WHERE","author_id","IN","(","SELECT","T1.author_id","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","WHERE","T2.venue","=","``","ACL","''","AND","T2.year","=","2009","INTERSECT","SELECT","T1.author_id","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","WHERE","T2.venue","=","``","NAACL","''","AND","T2.year","=","2009",")"],"query_toks_no_value":["select","name","from","author","where","author_id","in","(","select","t1",".","author_id","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","where","t2",".","venue","=","value","and","t2",".","year","=","value","intersect","select","t1",".","author_id","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","where","t2",".","venue","=","value","and","t2",".","year","=","value",")"],"question":"Quais são os nomes dos autores que publicaram tanto na NAACL quanto na ACL em 2009?","question_toks":["Quais","são","os","nomes","dos","autores","que","publicaram","tanto","na","NAACL","quanto","na","ACL","em","2009","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,8,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"ACL\"",null],"and",[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"NAACL\"",null],"and",[false,2,[0,[0,15,false],null],2009.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"aan_1","query":"SELECT name FROM Author WHERE author_id NOT IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = \"ACL\")","query_toks":["SELECT","name","FROM","Author","WHERE","author_id","NOT","IN","(","SELECT","T1.author_id","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","WHERE","T2.venue","=","``","ACL","''",")"],"query_toks_no_value":["select","name","from","author","where","author_id","not","in","(","select","t1",".","author_id","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","where","t2",".","venue","=","value",")"],"question":"Encontre o nome dos autores que nunca publicaram um artigo na ACL.","question_toks":["Encontre","o","nome","dos","autores","que","nunca","publicaram","um","artigo","na","ACL","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[true,8,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"ACL\"",null]],"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":"aan_1","query":"SELECT name FROM Author WHERE author_id NOT IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = \"ACL\")","query_toks":["SELECT","name","FROM","Author","WHERE","author_id","NOT","IN","(","SELECT","T1.author_id","FROM","Author_list","AS","T1","JOIN","Paper","AS","T2","ON","T1.paper_id","=","T2.paper_id","WHERE","T2.venue","=","``","ACL","''",")"],"query_toks_no_value":["select","name","from","author","where","author_id","not","in","(","select","t1",".","author_id","from","author_list","as","t1","join","paper","as","t2","on","t1",".","paper_id","=","t2",".","paper_id","where","t2",".","venue","=","value",")"],"question":"Quais são os nomes dos autores que não publicaram um artigo na ACL?","question_toks":["Quais","são","os","nomes","dos","autores","que","não","publicaram","um","artigo","na","ACL","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[true,8,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,7,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,14,false],null],"\"ACL\"",null]],"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":"conference","query":"SELECT count(*) FROM conference","query_toks":["SELECT","count","(","*",")","FROM","conference"],"query_toks_no_value":["select","count","(","*",")","from","conference"],"question":"Quantas conferências existem?","question_toks":["Quantas","conferências","existem","?"],"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":"conference","query":"SELECT count(*) FROM conference","query_toks":["SELECT","count","(","*",")","FROM","conference"],"query_toks_no_value":["select","count","(","*",")","from","conference"],"question":"Qual é o número total de conferências?","question_toks":["Qual","é","o","número","total","de","conferências","?"],"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":"conference","query":"SELECT DISTINCT conference_name FROM conference","query_toks":["SELECT","DISTINCT","conference_name","FROM","conference"],"query_toks_no_value":["select","distinct","conference_name","from","conference"],"question":"Liste todos os nomes de conferências distintos.","question_toks":["Liste","todos","os","nomes","de","conferências","distintos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT DISTINCT conference_name FROM conference","query_toks":["SELECT","DISTINCT","conference_name","FROM","conference"],"query_toks_no_value":["select","distinct","conference_name","from","conference"],"question":"Quais são os diferentes nomes de conferências?","question_toks":["Quais","são","os","diferentes","nomes","de","conferências","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT conference_name , YEAR , LOCATION FROM conference","query_toks":["SELECT","conference_name",",","YEAR",",","LOCATION","FROM","conference"],"query_toks_no_value":["select","conference_name",",","year",",","location","from","conference"],"question":"Liste todos os nomes de conferências, ano e localização.","question_toks":["Liste","todos","os","nomes","de","conferências",",","ano","e","localização","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT conference_name , YEAR , LOCATION FROM conference","query_toks":["SELECT","conference_name",",","YEAR",",","LOCATION","FROM","conference"],"query_toks_no_value":["select","conference_name",",","year",",","location","from","conference"],"question":"Quais são os nomes, anos e locais de todas as conferências?","question_toks":["Quais","são","os","nomes",",","anos","e","locais","de","todas","as","conferências","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT conference_name , count(*) FROM conference GROUP BY conference_name","query_toks":["SELECT","conference_name",",","count","(","*",")","FROM","conference","GROUP","BY","conference_name"],"query_toks_no_value":["select","conference_name",",","count","(","*",")","from","conference","group","by","conference_name"],"question":"Mostre todos os nomes das conferências e o número de vezes que cada conferência ocorreu.","question_toks":["Mostre","todos","os","nomes","das","conferências","e","o","número","de","vezes","que","cada","conferência","ocorreu","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT conference_name , count(*) FROM conference GROUP BY conference_name","query_toks":["SELECT","conference_name",",","count","(","*",")","FROM","conference","GROUP","BY","conference_name"],"query_toks_no_value":["select","conference_name",",","count","(","*",")","from","conference","group","by","conference_name"],"question":"Para cada nome de conferência, quantas vezes ocorreu?","question_toks":["Para","cada","nome","de","conferência",",","quantas","vezes","ocorreu","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT YEAR , count(*) FROM conference GROUP BY YEAR","query_toks":["SELECT","YEAR",",","count","(","*",")","FROM","conference","GROUP","BY","YEAR"],"query_toks_no_value":["select","year",",","count","(","*",")","from","conference","group","by","year"],"question":"Mostre todos os anos e o número de conferências em cada ano.","question_toks":["Mostre","todos","os","anos","e","o","número","de","conferências","em","cada","ano","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT YEAR , count(*) FROM conference GROUP BY YEAR","query_toks":["SELECT","YEAR",",","count","(","*",")","FROM","conference","GROUP","BY","YEAR"],"query_toks_no_value":["select","year",",","count","(","*",")","from","conference","group","by","year"],"question":"Quantas conferências ocorrem a cada ano?","question_toks":["Quantas","conferências","ocorrem","a","cada","ano","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1","query_toks":["SELECT","YEAR","FROM","conference","GROUP","BY","YEAR","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","year","from","conference","group","by","year","order","by","count","(","*",")","limit","value"],"question":"Qual ano tem o menor número de conferências?","question_toks":["Qual","ano","tem","o","menor","número","de","conferências","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1","query_toks":["SELECT","YEAR","FROM","conference","GROUP","BY","YEAR","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","year","from","conference","group","by","year","order","by","count","(","*",")","limit","value"],"question":"Em que ano houve menos conferências?","question_toks":["Em","que","ano","houve","menos","conferências","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*) >= 2","query_toks":["SELECT","LOCATION","FROM","conference","GROUP","BY","LOCATION","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","location","from","conference","group","by","location","having","count","(","*",")",">","=","value"],"question":"Mostre todos os locais onde pelo menos duas conferências estão localizadas.","question_toks":["Mostre","todos","os","locais","onde","pelo","menos","duas","conferências","estão","localizadas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*) >= 2","query_toks":["SELECT","LOCATION","FROM","conference","GROUP","BY","LOCATION","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","location","from","conference","group","by","location","having","count","(","*",")",">","=","value"],"question":"Quais são todos os locais que sediaram pelo menos duas conferências?","question_toks":["Quais","são","todos","os","locais","que","sediaram","pelo","menos","duas","conferências","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT institution_name , LOCATION , founded FROM institution","query_toks":["SELECT","institution_name",",","LOCATION",",","founded","FROM","institution"],"query_toks_no_value":["select","institution_name",",","location",",","founded","from","institution"],"question":"Mostre o nome da instituição, a localização e o ano de fundação de todas as instituições.","question_toks":["Mostre","o","nome","da","instituição",",","a","localização","e","o","ano","de","fundação","de","todas","as","instituições","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT institution_name , LOCATION , founded FROM institution","query_toks":["SELECT","institution_name",",","LOCATION",",","founded","FROM","institution"],"query_toks_no_value":["select","institution_name",",","location",",","founded","from","institution"],"question":"Quais são os nomes, locais e anos de fundação de todas as instituições?","question_toks":["Quais","são","os","nomes",",","locais","e","anos","de","fundação","de","todas","as","instituições","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900","query_toks":["SELECT","count","(","*",")","FROM","institution","WHERE","founded","BETWEEN","1850","AND","1900"],"query_toks_no_value":["select","count","(","*",")","from","institution","where","founded","between","value","and","value"],"question":"Conte quantas instituições foram fundadas entre 1850 e 1900.","question_toks":["Conte","quantas","instituições","foram","fundadas","entre","1850","e","1900","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,1,[0,[0,8,false],null],1850.0,1900.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900","query_toks":["SELECT","count","(","*",")","FROM","institution","WHERE","founded","BETWEEN","1850","AND","1900"],"query_toks_no_value":["select","count","(","*",")","from","institution","where","founded","between","value","and","value"],"question":"Quantas instituições foram fundadas entre 1850 e 1900?","question_toks":["Quantas","instituições","foram","fundadas","entre","1850","e","1900","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,1,[0,[0,8,false],null],1850.0,1900.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT institution_name , LOCATION FROM institution ORDER BY founded DESC LIMIT 1","query_toks":["SELECT","institution_name",",","LOCATION","FROM","institution","ORDER","BY","founded","DESC","LIMIT","1"],"query_toks_no_value":["select","institution_name",",","location","from","institution","order","by","founded","desc","limit","value"],"question":"Mostre o nome da instituição e a localização da instituição que foi fundada mais recentemente.","question_toks":["Mostre","o","nome","da","instituição","e","a","localização","da","instituição","que","foi","fundada","mais","recentemente","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT institution_name , LOCATION FROM institution ORDER BY founded DESC LIMIT 1","query_toks":["SELECT","institution_name",",","LOCATION","FROM","institution","ORDER","BY","founded","DESC","LIMIT","1"],"query_toks_no_value":["select","institution_name",",","location","from","institution","order","by","founded","desc","limit","value"],"question":"Quais são os nomes e locais da instituição mais recentemente fundada?","question_toks":["Quais","são","os","nomes","e","locais","da","instituição","mais","recentemente","fundada","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.institution_name , count(*) FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1800 GROUP BY T2.institution_id","query_toks":["SELECT","T1.institution_name",",","count","(","*",")","FROM","institution","AS","T1","JOIN","staff","AS","T2","ON","T1.institution_id","=","T2.institution_id","WHERE","T1.founded",">","1800","GROUP","BY","T2.institution_id"],"query_toks_no_value":["select","t1",".","institution_name",",","count","(","*",")","from","institution","as","t1","join","staff","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t1",".","founded",">","value","group","by","t2",".","institution_id"],"question":"Mostre o nome da instituição e o número de funcionários para cada instituição fundada após 1800.","question_toks":["Mostre","o","nome","da","instituição","e","o","número","de","funcionários","para","cada","instituição","fundada","após","1800","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1800.0,null]],"groupBy":[[0,13,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"select t1.institution_name , count(*) from institution as t1 join staff as t2 on t1.institution_id = t2.institution_id where t1.founded > 1800 group by t2.institution_id","query_toks":["select","t1.institution_name",",","count","(","*",")","from","institution","as","t1","join","staff","as","t2","on","t1.institution_id","=","t2.institution_id","where","t1.founded",">","1800","group","by","t2.institution_id"],"query_toks_no_value":["select","t1",".","institution_name",",","count","(","*",")","from","institution","as","t1","join","staff","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t1",".","founded",">","value","group","by","t2",".","institution_id"],"question":"Para cada id de instituição, quantos membros da equipe cada instituição tem que foi fundada após 1800? Retorne seus nomes.","question_toks":["Para","cada","id","de","instituição",",","quantos","membros","da","equipe","cada","instituição","tem","que","foi","fundada","após","1800","?","Retorne","seus","nomes","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1800.0,null]],"groupBy":[[0,13,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff)","query_toks":["SELECT","institution_name","FROM","institution","WHERE","institution_id","NOT","IN","(","SELECT","institution_id","FROM","staff",")"],"query_toks_no_value":["select","institution_name","from","institution","where","institution_id","not","in","(","select","institution_id","from","staff",")"],"question":"Mostre o nome da instituição que não possui funcionários em nosso registro.","question_toks":["Mostre","o","nome","da","instituição","que","não","possui","funcionários","em","nosso","registro","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[true,8,[0,[0,5,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"conference","query":"SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff)","query_toks":["SELECT","institution_name","FROM","institution","WHERE","institution_id","NOT","IN","(","SELECT","institution_id","FROM","staff",")"],"query_toks_no_value":["select","institution_name","from","institution","where","institution_id","not","in","(","select","institution_id","from","staff",")"],"question":"Qual é o nome da instituição sem funcionários nos registros?","question_toks":["Qual","é","o","nome","da","instituição","sem","funcionários","nos","registros","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[true,8,[0,[0,5,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"conference","query":"SELECT name FROM staff WHERE age > (SELECT avg(age) FROM staff)","query_toks":["SELECT","name","FROM","staff","WHERE","age",">","(","SELECT","avg","(","age",")","FROM","staff",")"],"query_toks_no_value":["select","name","from","staff","where","age",">","(","select","avg","(","age",")","from","staff",")"],"question":"Mostre todos os nomes dos funcionários que estão acima da idade média.","question_toks":["Mostre","todos","os","nomes","dos","funcionários","que","estão","acima","da","idade","média","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,3,[0,[0,11,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,11,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":"conference","query":"SELECT name FROM staff WHERE age > (SELECT avg(age) FROM staff)","query_toks":["SELECT","name","FROM","staff","WHERE","age",">","(","SELECT","avg","(","age",")","FROM","staff",")"],"query_toks_no_value":["select","name","from","staff","where","age",">","(","select","avg","(","age",")","from","staff",")"],"question":"Quais são os nomes de todos os membros da equipe que são mais velhos que a média?","question_toks":["Quais","são","os","nomes","de","todos","os","membros","da","equipe","que","são","mais","velhos","que","a","média","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,3,[0,[0,11,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,11,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":"conference","query":"SELECT max(age) , min(age) FROM staff","query_toks":["SELECT","max","(","age",")",",","min","(","age",")","FROM","staff"],"query_toks_no_value":["select","max","(","age",")",",","min","(","age",")","from","staff"],"question":"Qual é a idade máxima e mínima de todos os funcionários dos Estados Unidos?","question_toks":["Qual","é","a","idade","máxima","e","mínima","de","todos","os","funcionários","dos","Estados","Unidos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[1,[0,[0,11,false],null]],[2,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT max(age) , min(age) FROM staff","query_toks":["SELECT","max","(","age",")",",","min","(","age",")","FROM","staff"],"query_toks_no_value":["select","max","(","age",")",",","min","(","age",")","from","staff"],"question":"Quais são as idades máxima e mínima de todos os funcionários?","question_toks":["Quais","são","as","idades","máxima","e","mínima","de","todos","os","funcionários","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[1,[0,[0,11,false],null]],[2,[0,[0,11,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id = T3.staff_id WHERE T3.nationality = \"Canada\"","query_toks":["SELECT","T1.conference_name","FROM","conference","AS","T1","JOIN","conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","JOIN","staff","AS","T3","ON","T2.staff_id","=","T3.staff_id","WHERE","T3.nationality","=","``","Canada","''"],"query_toks_no_value":["select","t1",".","conference_name","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","join","staff","as","t3","on","t2",".","staff_id","=","t3",".","staff_id","where","t3",".","nationality","=","value"],"question":"Mostre todos os nomes das conferências que o pessoal do Canadá participa.","question_toks":["Mostre","todos","os","nomes","das","conferências","que","o","pessoal","do","Canadá","participa","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null],"and",[false,2,[0,[0,15,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Canada\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id = T3.staff_id WHERE T3.nationality = \"Canada\"","query_toks":["SELECT","T1.conference_name","FROM","conference","AS","T1","JOIN","conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","JOIN","staff","AS","T3","ON","T2.staff_id","=","T3.staff_id","WHERE","T3.nationality","=","``","Canada","''"],"query_toks_no_value":["select","t1",".","conference_name","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","join","staff","as","t3","on","t2",".","staff_id","=","t3",".","staff_id","where","t3",".","nationality","=","value"],"question":"Quais são os nomes de todas as conferências que têm funcionários do Canadá participando?","question_toks":["Quais","são","os","nomes","de","todas","as","conferências","que","têm","funcionários","do","Canadá","participando","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null],"and",[false,2,[0,[0,15,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Canada\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Speaker' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Sponsor'","query_toks":["SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","ON","T1.staff_id","=","T2.staff_id","WHERE","T2.role","=","'Speaker","'","INTERSECT","SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","ON","T1.staff_id","=","T2.staff_id","WHERE","T2.role","=","'Sponsor","'"],"query_toks_no_value":["select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","on","t1",".","staff_id","=","t2",".","staff_id","where","t2",".","role","=","value","intersect","select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","on","t1",".","staff_id","=","t2",".","staff_id","where","t2",".","role","=","value"],"question":"Mostre todos os nomes dos funcionários que foram tanto palestrantes quanto patrocinadores em alguma conferência.","question_toks":["Mostre","todos","os","nomes","dos","funcionários","que","foram","tanto","palestrantes","quanto","patrocinadores","em","alguma","conferência","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Speaker\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Sponsor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Speaker' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Sponsor'","query_toks":["SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","ON","T1.staff_id","=","T2.staff_id","WHERE","T2.role","=","'Speaker","'","INTERSECT","SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","ON","T1.staff_id","=","T2.staff_id","WHERE","T2.role","=","'Sponsor","'"],"query_toks_no_value":["select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","on","t1",".","staff_id","=","t2",".","staff_id","where","t2",".","role","=","value","intersect","select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","on","t1",".","staff_id","=","t2",".","staff_id","where","t2",".","role","=","value"],"question":"Quais são os nomes dos funcionários que foram tanto palestrantes quanto patrocinadores em alguma conferência?","question_toks":["Quais","são","os","nomes","dos","funcionários","que","foram","tanto","palestrantes","quanto","patrocinadores","em","alguma","conferência","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Speaker\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Sponsor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'ACL' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'Naccl'","query_toks":["SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","JOIN","Conference","AS","T3","ON","T1.staff_id","=","T2.staff_id","AND","T2.conference_id","=","T3.conference_id","WHERE","T3.Conference_name","=","'ACL","'","INTERSECT","SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","JOIN","conference","AS","T3","ON","T1.staff_id","=","T2.staff_id","AND","T2.conference_id","=","T3.conference_id","WHERE","T3.Conference_name","=","'Naccl","'"],"query_toks_no_value":["select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","join","conference","as","t3","on","t1",".","staff_id","=","t2",".","staff_id","and","t2",".","conference_id","=","t3",".","conference_id","where","t3",".","conference_name","=","value","intersect","select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","join","conference","as","t3","on","t1",".","staff_id","=","t2",".","staff_id","and","t2",".","conference_id","=","t3",".","conference_id","where","t3",".","conference_name","=","value"],"question":"Mostre todos os nomes que estiveram tanto na ACL quanto na Naccl.","question_toks":["Mostre","todos","os","nomes","que","estiveram","tanto","na","ACL","quanto","na","Naccl","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"ACL\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Naccl\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'ACL' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'Naccl'","query_toks":["SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","JOIN","Conference","AS","T3","ON","T1.staff_id","=","T2.staff_id","AND","T2.conference_id","=","T3.conference_id","WHERE","T3.Conference_name","=","'ACL","'","INTERSECT","SELECT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","JOIN","conference","AS","T3","ON","T1.staff_id","=","T2.staff_id","AND","T2.conference_id","=","T3.conference_id","WHERE","T3.Conference_name","=","'Naccl","'"],"query_toks_no_value":["select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","join","conference","as","t3","on","t1",".","staff_id","=","t2",".","staff_id","and","t2",".","conference_id","=","t3",".","conference_id","where","t3",".","conference_name","=","value","intersect","select","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","join","conference","as","t3","on","t1",".","staff_id","=","t2",".","staff_id","and","t2",".","conference_id","=","t3",".","conference_id","where","t3",".","conference_name","=","value"],"question":"Quais são os nomes de todos que participaram das conferências ACL e NACCL?","question_toks":["Quais","são","os","nomes","de","todos","que","participaram","das","conferências","ACL","e","NACCL","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"ACL\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Naccl\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"conference","query":"SELECT DISTINCT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.year = 2003 OR T3.year = 2004","query_toks":["SELECT","DISTINCT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","JOIN","Conference","AS","T3","ON","T1.staff_id","=","T2.staff_id","AND","T2.conference_id","=","T3.conference_id","WHERE","T3.year","=","2003","OR","T3.year","=","2004"],"query_toks_no_value":["select","distinct","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","join","conference","as","t3","on","t1",".","staff_id","=","t2",".","staff_id","and","t2",".","conference_id","=","t3",".","conference_id","where","t3",".","year","=","value","or","t3",".","year","=","value"],"question":"Mostre todos os nomes dos funcionários que participaram de uma conferência em 2003 ou 2004.","question_toks":["Mostre","todos","os","nomes","dos","funcionários","que","participaram","de","uma","conferência","em","2003","ou","2004","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,3,false],null],2003.0,null],"or",[false,2,[0,[0,3,false],null],2004.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT DISTINCT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.year = 2003 OR T3.year = 2004","query_toks":["SELECT","DISTINCT","T1.name","FROM","staff","AS","T1","JOIN","conference_participation","AS","T2","JOIN","Conference","AS","T3","ON","T1.staff_id","=","T2.staff_id","AND","T2.conference_id","=","T3.conference_id","WHERE","T3.year","=","2003","OR","T3.year","=","2004"],"query_toks_no_value":["select","distinct","t1",".","name","from","staff","as","t1","join","conference_participation","as","t2","join","conference","as","t3","on","t1",".","staff_id","=","t2",".","staff_id","and","t2",".","conference_id","=","t3",".","conference_id","where","t3",".","year","=","value","or","t3",".","year","=","value"],"question":"Quais são os nomes dos funcionários que participaram de conferências entre 2003 ou 2004?","question_toks":["Quais","são","os","nomes","dos","funcionários","que","participaram","de","conferências","entre","2003","ou","2004","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,9,false],null],[0,15,false],null],"and",[false,2,[0,[0,14,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,3,false],null],2003.0,null],"or",[false,2,[0,[0,3,false],null],2004.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.conference_name , T1.year , count(*) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id","query_toks":["SELECT","T1.conference_name",",","T1.year",",","count","(","*",")","FROM","Conference","AS","T1","JOIN","Conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","GROUP","BY","T2.conference_id"],"query_toks_no_value":["select","t1",".","conference_name",",","t1",".","year",",","count","(","*",")","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","group","by","t2",".","conference_id"],"question":"Mostre o nome da conferência, o ano e o número de participantes para cada conferência.","question_toks":["Mostre","o","nome","da","conferência",",","o","ano","e","o","número","de","participantes","para","cada","conferência","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.conference_name , T1.year , count(*) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id","query_toks":["SELECT","T1.conference_name",",","T1.year",",","count","(","*",")","FROM","Conference","AS","T1","JOIN","Conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","GROUP","BY","T2.conference_id"],"query_toks_no_value":["select","t1",".","conference_name",",","t1",".","year",",","count","(","*",")","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","group","by","t2",".","conference_id"],"question":"Para cada id de conferência, quais são seus nomes, ano e número de participantes?","question_toks":["Para","cada","id","de","conferência",",","quais","são","seus","nomes",",","ano","e","número","de","participantes","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2","query_toks":["SELECT","T1.conference_name","FROM","Conference","AS","T1","JOIN","Conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","GROUP","BY","T2.conference_id","ORDER","BY","count","(","*",")","DESC","LIMIT","2"],"query_toks_no_value":["select","t1",".","conference_name","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","group","by","t2",".","conference_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome das conferências que têm os 2 maiores números de participantes.","question_toks":["Encontre","o","nome","das","conferências","que","têm","os","2","maiores","números","de","participantes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":2,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2","query_toks":["SELECT","T1.conference_name","FROM","Conference","AS","T1","JOIN","Conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","GROUP","BY","T2.conference_id","ORDER","BY","count","(","*",")","DESC","LIMIT","2"],"query_toks_no_value":["select","t1",".","conference_name","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","group","by","t2",".","conference_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os nomes das conferências que têm as 2 maiores quantidades de pessoas participando?","question_toks":["Quais","são","os","nomes","das","conferências","que","têm","as","2","maiores","quantidades","de","pessoas","participando","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":2,"intersect":null,"union":null,"except":null}},{"db_id":"conference","query":"SELECT name , nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id WHERE T1.Conference_Name = \"ACL\")","query_toks":["SELECT","name",",","nationality","FROM","staff","WHERE","staff_id","NOT","IN","(","SELECT","T2.staff_id","FROM","Conference","AS","T1","JOIN","Conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","WHERE","T1.Conference_Name","=","``","ACL","''",")"],"query_toks_no_value":["select","name",",","nationality","from","staff","where","staff_id","not","in","(","select","t2",".","staff_id","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","where","t1",".","conference_name","=","value",")"],"question":"Encontre o nome e a nacionalidade das pessoas que não participaram de nenhuma conferência ACL.","question_toks":["Encontre","o","nome","e","a","nacionalidade","das","pessoas","que","não","participaram","de","nenhuma","conferência","ACL","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[[true,8,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"ACL\"",null]],"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":"conference","query":"SELECT name , nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id WHERE T1.Conference_Name = \"ACL\")","query_toks":["SELECT","name",",","nationality","FROM","staff","WHERE","staff_id","NOT","IN","(","SELECT","T2.staff_id","FROM","Conference","AS","T1","JOIN","Conference_participation","AS","T2","ON","T1.conference_id","=","T2.conference_id","WHERE","T1.Conference_Name","=","``","ACL","''",")"],"query_toks_no_value":["select","name",",","nationality","from","staff","where","staff_id","not","in","(","select","t2",".","staff_id","from","conference","as","t1","join","conference_participation","as","t2","on","t1",".","conference_id","=","t2",".","conference_id","where","t1",".","conference_name","=","value",")"],"question":"Quais são os nomes e nacionalidades das pessoas que não participaram de nenhuma conferência ACL?","question_toks":["Quais","são","os","nomes","e","nacionalidades","das","pessoas","que","não","participaram","de","nenhuma","conferência","ACL","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[[true,8,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"ACL\"",null]],"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":"conference","query":"SELECT T1.Institution_Name , T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id = T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id = T4.conference_id WHERE T3.year = 2004)","query_toks":["SELECT","T1.Institution_Name",",","T1.location","FROM","institution","AS","T1","JOIN","staff","AS","T2","ON","T1.institution_id","=","T2.institution_id","WHERE","T2.staff_id","NOT","IN","(","SELECT","T4.staff_id","FROM","Conference","AS","T3","JOIN","Conference_participation","AS","T4","ON","T3.conference_id","=","T4.conference_id","WHERE","T3.year","=","2004",")"],"query_toks_no_value":["select","t1",".","institution_name",",","t1",".","location","from","institution","as","t1","join","staff","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t2",".","staff_id","not","in","(","select","t4",".","staff_id","from","conference","as","t3","join","conference_participation","as","t4","on","t3",".","conference_id","=","t4",".","conference_id","where","t3",".","year","=","value",")"],"question":"Encontre o nome e a localização das universidades que não tiveram nenhum funcionário participando de conferências em 2004.","question_toks":["Encontre","o","nome","e","a","localização","das","universidades","que","não","tiveram","nenhum","funcionário","participando","de","conferências","em","2004","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]]]],"where":[[true,8,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,3,false],null],2004.0,null]],"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":"conference","query":"SELECT T1.Institution_Name , T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id = T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id = T4.conference_id WHERE T3.year = 2004)","query_toks":["SELECT","T1.Institution_Name",",","T1.location","FROM","institution","AS","T1","JOIN","staff","AS","T2","ON","T1.institution_id","=","T2.institution_id","WHERE","T2.staff_id","NOT","IN","(","SELECT","T4.staff_id","FROM","Conference","AS","T3","JOIN","Conference_participation","AS","T4","ON","T3.conference_id","=","T4.conference_id","WHERE","T3.year","=","2004",")"],"query_toks_no_value":["select","t1",".","institution_name",",","t1",".","location","from","institution","as","t1","join","staff","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t2",".","staff_id","not","in","(","select","t4",".","staff_id","from","conference","as","t3","join","conference_participation","as","t4","on","t3",".","conference_id","=","t4",".","conference_id","where","t3",".","year","=","value",")"],"question":"Quais são os nomes e locais das universidades que não tiveram nenhum funcionário participando de conferências em 2004?","question_toks":["Quais","são","os","nomes","e","locais","das","universidades","que","não","tiveram","nenhum","funcionário","participando","de","conferências","em","2004","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]]]],"where":[[true,8,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,3,false],null],2004.0,null]],"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":"pilot_1","query":"SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1","query_toks":["SELECT","pilot_name","FROM","PilotSkills","ORDER","BY","age","DESC","LIMIT","1"],"query_toks_no_value":["select","pilot_name","from","pilotskills","order","by","age","desc","limit","value"],"question":"Qual é o nome do piloto mais velho?","question_toks":["Qual","é","o","nome","do","piloto","mais","velho","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1","query_toks":["SELECT","pilot_name","FROM","PilotSkills","ORDER","BY","age","DESC","LIMIT","1"],"query_toks_no_value":["select","pilot_name","from","pilotskills","order","by","age","desc","limit","value"],"question":"Retorne o nome do piloto mais velho.","question_toks":["Retorne","o","nome","do","piloto","mais","velho","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM PilotSkills WHERE age < (SELECT avg(age) FROM PilotSkills) ORDER BY age","query_toks":["SELECT","pilot_name","FROM","PilotSkills","WHERE","age","<","(","SELECT","avg","(","age",")","FROM","PilotSkills",")","ORDER","BY","age"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age","<","(","select","avg","(","age",")","from","pilotskills",")","order","by","age"],"question":"Quais são os nomes dos pilotos cuja idade é abaixo da idade média, ordenados por idade?","question_toks":["Quais","são","os","nomes","dos","pilotos","cuja","idade","é","abaixo","da","idade","média",",","ordenados","por","idade","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,4,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM PilotSkills WHERE age < (SELECT avg(age) FROM PilotSkills) ORDER BY age","query_toks":["SELECT","pilot_name","FROM","PilotSkills","WHERE","age","<","(","SELECT","avg","(","age",")","FROM","PilotSkills",")","ORDER","BY","age"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age","<","(","select","avg","(","age",")","from","pilotskills",")","order","by","age"],"question":"Retorne os nomes dos pilotos que são mais jovens que a média, ordenados por idade em ordem crescente.","question_toks":["Retorne","os","nomes","dos","pilotos","que","são","mais","jovens","que","a","média",",","ordenados","por","idade","em","ordem","crescente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,4,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT * FROM PilotSkills WHERE age < 30","query_toks":["SELECT","*","FROM","PilotSkills","WHERE","age","<","30"],"query_toks_no_value":["select","*","from","pilotskills","where","age","<","value"],"question":"Encontre todas as informações sobre os pilotos cuja idade é menor que 30.","question_toks":["Encontre","todas","as","informações","sobre","os","pilotos","cuja","idade","é","menor","que","30","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"select * from pilotskills where age < 30","query_toks":["select","*","from","pilotskills","where","age","<","30"],"query_toks_no_value":["select","*","from","pilotskills","where","age","<","value"],"question":"Quais são todas as informações sobre pilotos que têm menos de 30 anos?","question_toks":["Quais","são","todas","as","informações","sobre","pilotos","que","têm","menos","de","30","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM PilotSkills WHERE age < 35 AND plane_name = 'Piper Cub'","query_toks":["SELECT","pilot_name","FROM","PilotSkills","WHERE","age","<","35","AND","plane_name","=","'Piper","Cub","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age","<","value","and","plane_name","=","value"],"question":"Encontre os nomes de todos os pilotos que têm um avião chamado Piper Cub e que têm menos de 35 anos.","question_toks":["Encontre","os","nomes","de","todos","os","pilotos","que","têm","um","avião","chamado","Piper","Cub","e","que","têm","menos","de","35","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,4,[0,[0,3,false],null],35.0,null],"and",[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM PilotSkills WHERE age < 35 AND plane_name = 'Piper Cub'","query_toks":["SELECT","pilot_name","FROM","PilotSkills","WHERE","age","<","35","AND","plane_name","=","'Piper","Cub","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age","<","value","and","plane_name","=","value"],"question":"Quais são os nomes dos pilotos que têm menos de 35 anos e possuem um avião chamado Piper Cub?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","têm","menos","de","35","anos","e","possuem","um","avião","chamado","Piper","Cub","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,4,[0,[0,3,false],null],35.0,null],"and",[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT LOCATION FROM hangar WHERE plane_name = 'F-14 Fighter'","query_toks":["SELECT","LOCATION","FROM","hangar","WHERE","plane_name","=","'F-14","Fighter","'"],"query_toks_no_value":["select","location","from","hangar","where","plane_name","=","value"],"question":"Onde está localizado o avião F-14 Fighter?","question_toks":["Onde","está","localizado","o","avião","F-14","Fighter","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"F-14 Fighter\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT LOCATION FROM hangar WHERE plane_name = 'F-14 Fighter'","query_toks":["SELECT","LOCATION","FROM","hangar","WHERE","plane_name","=","'F-14","Fighter","'"],"query_toks_no_value":["select","location","from","hangar","where","plane_name","=","value"],"question":"Retorne a localização do hangar em que o F-14 Fighter está localizado.","question_toks":["Retorne","a","localização","do","hangar","em","que","o","F-14","Fighter","está","localizado","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"F-14 Fighter\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(DISTINCT LOCATION) FROM hangar","query_toks":["SELECT","count","(","DISTINCT","LOCATION",")","FROM","hangar"],"query_toks_no_value":["select","count","(","distinct","location",")","from","hangar"],"question":"Quantos lugares diferentes têm algum avião?","question_toks":["Quantos","lugares","diferentes","têm","algum","avião","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(DISTINCT LOCATION) FROM hangar","query_toks":["SELECT","count","(","DISTINCT","LOCATION",")","FROM","hangar"],"query_toks_no_value":["select","count","(","distinct","location",")","from","hangar"],"question":"Conte o número de locais diferentes de hangares.","question_toks":["Conte","o","número","de","locais","diferentes","de","hangares","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills WHERE pilot_name = 'Jones' AND age = 32","query_toks":["SELECT","plane_name","FROM","pilotskills","WHERE","pilot_name","=","'Jones","'","AND","age","=","32"],"query_toks_no_value":["select","plane_name","from","pilotskills","where","pilot_name","=","value","and","age","=","value"],"question":"Qual avião o piloto Jones, com 32 anos, possui?","question_toks":["Qual","avião","o","piloto","Jones",",","com","32","anos",",","possui","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Jones\"",null],"and",[false,2,[0,[0,3,false],null],32.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills WHERE pilot_name = 'Jones' AND age = 32","query_toks":["SELECT","plane_name","FROM","pilotskills","WHERE","pilot_name","=","'Jones","'","AND","age","=","32"],"query_toks_no_value":["select","plane_name","from","pilotskills","where","pilot_name","=","value","and","age","=","value"],"question":"Quais são os nomes dos aviões que o piloto Jones, que tem 32 anos, possui?","question_toks":["Quais","são","os","nomes","dos","aviões","que","o","piloto","Jones",",","que","tem","32","anos",",","possui","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Jones\"",null],"and",[false,2,[0,[0,3,false],null],32.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) FROM pilotskills WHERE age > 40","query_toks":["SELECT","count","(","*",")","FROM","pilotskills","WHERE","age",">","40"],"query_toks_no_value":["select","count","(","*",")","from","pilotskills","where","age",">","value"],"question":"Quantos pilotos têm mais de 40 anos?","question_toks":["Quantos","pilotos","têm","mais","de","40","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,3,false],null],40.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) FROM pilotskills WHERE age > 40","query_toks":["SELECT","count","(","*",")","FROM","pilotskills","WHERE","age",">","40"],"query_toks_no_value":["select","count","(","*",")","from","pilotskills","where","age",">","value"],"question":"Conte o número de pilotos com idade superior a 40.","question_toks":["Conte","o","número","de","pilotos","com","idade","superior","a","40","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,3,false],null],40.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) FROM pilotskills WHERE age < 35 AND plane_name = 'B-52 Bomber'","query_toks":["SELECT","count","(","*",")","FROM","pilotskills","WHERE","age","<","35","AND","plane_name","=","'B-52","Bomber","'"],"query_toks_no_value":["select","count","(","*",")","from","pilotskills","where","age","<","value","and","plane_name","=","value"],"question":"Quantos aviões B-52 Bomber são possuídos por pilotos com menos de 35 anos?","question_toks":["Quantos","aviões","B-52","Bomber","são","possuídos","por","pilotos","com","menos","de","35","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],35.0,null],"and",[false,2,[0,[0,2,false],null],"\"B-52 Bomber\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) FROM pilotskills WHERE age < 35 AND plane_name = 'B-52 Bomber'","query_toks":["SELECT","count","(","*",")","FROM","pilotskills","WHERE","age","<","35","AND","plane_name","=","'B-52","Bomber","'"],"query_toks_no_value":["select","count","(","*",")","from","pilotskills","where","age","<","value","and","plane_name","=","value"],"question":"Conte o número de B-52 Bombers possuídos por pilotos com menos de 35 anos.","question_toks":["Conte","o","número","de","B-52","Bombers","possuídos","por","pilotos","com","menos","de","35","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],35.0,null],"and",[false,2,[0,[0,2,false],null],"\"B-52 Bomber\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' ORDER BY age LIMIT 1","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","ORDER","BY","age","LIMIT","1"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","order","by","age","limit","value"],"question":"Quem é o piloto mais jovem a voar o avião Piper Cub?","question_toks":["Quem","é","o","piloto","mais","jovem","a","voar","o","avião","Piper","Cub","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' ORDER BY age LIMIT 1","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","ORDER","BY","age","LIMIT","1"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","order","by","age","limit","value"],"question":"Retorne o nome do piloto mais jovem a voar o Piper Cub.","question_toks":["Retorne","o","nome","do","piloto","mais","jovem","a","voar","o","Piper","Cub","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","plane_name","FROM","pilotskills","GROUP","BY","plane_name","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","plane_name","from","pilotskills","group","by","plane_name","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do avião mais popular?","question_toks":["Qual","é","o","nome","do","avião","mais","popular","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","plane_name","FROM","pilotskills","GROUP","BY","plane_name","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","plane_name","from","pilotskills","group","by","plane_name","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do avião que é pilotado com mais frequência?","question_toks":["Qual","é","o","nome","do","avião","que","é","pilotado","com","mais","frequência","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) LIMIT 1","query_toks":["SELECT","plane_name","FROM","pilotskills","GROUP","BY","plane_name","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","plane_name","from","pilotskills","group","by","plane_name","order","by","count","(","*",")","limit","value"],"question":"Qual é o nome do avião menos popular?","question_toks":["Qual","é","o","nome","do","avião","menos","popular","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills GROUP BY plane_name ORDER BY count(*) LIMIT 1","query_toks":["SELECT","plane_name","FROM","pilotskills","GROUP","BY","plane_name","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","plane_name","from","pilotskills","group","by","plane_name","order","by","count","(","*",")","limit","value"],"question":"Qual é o nome do avião que é pilotado com menos frequência?","question_toks":["Qual","é","o","nome","do","avião","que","é","pilotado","com","menos","frequência","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT \tcount(DISTINCT T1.pilot_name) FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = 'Chicago'","query_toks":["SELECT","count","(","DISTINCT","T1.pilot_name",")","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.location","=","'Chicago","'"],"query_toks_no_value":["select","count","(","distinct","t1",".","pilot_name",")","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value"],"question":"Quantos pilotos cujos aviões estão em Chicago?","question_toks":["Quantos","pilotos","cujos","aviões","estão","em","Chicago","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,1,true],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT \tcount(DISTINCT T1.pilot_name) FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = 'Chicago'","query_toks":["SELECT","count","(","DISTINCT","T1.pilot_name",")","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.location","=","'Chicago","'"],"query_toks_no_value":["select","count","(","distinct","t1",".","pilot_name",")","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value"],"question":"Conte o número de pilotos que têm aviões em Chicago.","question_toks":["Conte","o","número","de","pilotos","que","têm","aviões","em","Chicago","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,1,true],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills WHERE pilot_name = 'Smith' AND age = 41","query_toks":["SELECT","plane_name","FROM","pilotskills","WHERE","pilot_name","=","'Smith","'","AND","age","=","41"],"query_toks_no_value":["select","plane_name","from","pilotskills","where","pilot_name","=","value","and","age","=","value"],"question":"Quais são os aviões possuídos pelo piloto Smith com 41 anos?","question_toks":["Quais","são","os","aviões","possuídos","pelo","piloto","Smith","com","41","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Smith\"",null],"and",[false,2,[0,[0,3,false],null],41.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT plane_name FROM pilotskills WHERE pilot_name = 'Smith' AND age = 41","query_toks":["SELECT","plane_name","FROM","pilotskills","WHERE","pilot_name","=","'Smith","'","AND","age","=","41"],"query_toks_no_value":["select","plane_name","from","pilotskills","where","pilot_name","=","value","and","age","=","value"],"question":"Retorne os nomes dos aviões pertencentes ao piloto cujo nome é Smith e que tem 41 anos.","question_toks":["Retorne","os","nomes","dos","aviões","pertencentes","ao","piloto","cujo","nome","é","Smith","e","que","tem","41","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Smith\"",null],"and",[false,2,[0,[0,3,false],null],41.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(DISTINCT plane_name) FROM pilotskills","query_toks":["SELECT","count","(","DISTINCT","plane_name",")","FROM","pilotskills"],"query_toks_no_value":["select","count","(","distinct","plane_name",")","from","pilotskills"],"question":"Quantos aviões distintos são possuídos por todos os pilotos?","question_toks":["Quantos","aviões","distintos","são","possuídos","por","todos","os","pilotos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(DISTINCT plane_name) FROM pilotskills","query_toks":["SELECT","count","(","DISTINCT","plane_name",")","FROM","pilotskills"],"query_toks_no_value":["select","count","(","distinct","plane_name",")","from","pilotskills"],"question":"Conte o número de nomes de aviões diferentes entre todos os pilotos.","question_toks":["Conte","o","número","de","nomes","de","aviões","diferentes","entre","todos","os","pilotos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(plane_name) FROM pilotskills WHERE pilot_name = 'Smith'","query_toks":["SELECT","count","(","plane_name",")","FROM","pilotskills","WHERE","pilot_name","=","'Smith","'"],"query_toks_no_value":["select","count","(","plane_name",")","from","pilotskills","where","pilot_name","=","value"],"question":"Quantos aviões são possuídos pelo piloto cujo nome é Smith?","question_toks":["Quantos","aviões","são","possuídos","pelo","piloto","cujo","nome","é","Smith","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Smith\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(plane_name) FROM pilotskills WHERE pilot_name = 'Smith'","query_toks":["SELECT","count","(","plane_name",")","FROM","pilotskills","WHERE","pilot_name","=","'Smith","'"],"query_toks_no_value":["select","count","(","plane_name",")","from","pilotskills","where","pilot_name","=","value"],"question":"Conte o número de aviões que Smith possui.","question_toks":["Conte","o","número","de","aviões","que","Smith","possui","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Smith\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(plane_name) FROM pilotskills WHERE age > 40","query_toks":["SELECT","count","(","plane_name",")","FROM","pilotskills","WHERE","age",">","40"],"query_toks_no_value":["select","count","(","plane_name",")","from","pilotskills","where","age",">","value"],"question":"Quantos aviões são controlados pelos pilotos cuja idade é superior a 40?","question_toks":["Quantos","aviões","são","controlados","pelos","pilotos","cuja","idade","é","superior","a","40","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],40.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(plane_name) FROM pilotskills WHERE age > 40","query_toks":["SELECT","count","(","plane_name",")","FROM","pilotskills","WHERE","age",">","40"],"query_toks_no_value":["select","count","(","plane_name",")","from","pilotskills","where","age",">","value"],"question":"Conte o número de aviões pilotados por pilotos com mais de 40 anos.","question_toks":["Conte","o","número","de","aviões","pilotados","por","pilotos","com","mais","de","40","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],40.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE age BETWEEN 30 AND 40 ORDER BY age","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","age","BETWEEN","30","AND","40","ORDER","BY","age"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age","between","value","and","value","order","by","age"],"question":"Encontre os nomes de todos os pilotos com idade entre 30 e 40 anos, ordenados por suas idades em ordem crescente.","question_toks":["Encontre","os","nomes","de","todos","os","pilotos","com","idade","entre","30","e","40","anos",",","ordenados","por","suas","idades","em","ordem","crescente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,1,[0,[0,3,false],null],30.0,40.0]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE age BETWEEN 30 AND 40 ORDER BY age","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","age","BETWEEN","30","AND","40","ORDER","BY","age"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age","between","value","and","value","order","by","age"],"question":"Quais são os nomes dos pilotos entre 30 e 40 anos, ordenados por idade em ordem crescente?","question_toks":["Quais","são","os","nomes","dos","pilotos","entre","30","e","40","anos",",","ordenados","por","idade","em","ordem","crescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,1,[0,[0,3,false],null],30.0,40.0]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills ORDER BY age DESC","query_toks":["SELECT","pilot_name","FROM","pilotskills","ORDER","BY","age","DESC"],"query_toks_no_value":["select","pilot_name","from","pilotskills","order","by","age","desc"],"question":"Liste todos os nomes dos pilotos ordenados por suas idades em ordem decrescente.","question_toks":["Liste","todos","os","nomes","dos","pilotos","ordenados","por","suas","idades","em","ordem","decrescente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills ORDER BY age DESC","query_toks":["SELECT","pilot_name","FROM","pilotskills","ORDER","BY","age","DESC"],"query_toks_no_value":["select","pilot_name","from","pilotskills","order","by","age","desc"],"question":"Quais são os nomes dos pilotos, ordenados por idade em ordem decrescente?","question_toks":["Quais","são","os","nomes","dos","pilotos",",","ordenados","por","idade","em","ordem","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT LOCATION FROM hangar ORDER BY plane_name","query_toks":["SELECT","LOCATION","FROM","hangar","ORDER","BY","plane_name"],"query_toks_no_value":["select","location","from","hangar","order","by","plane_name"],"question":"Encontre todas as localizações dos aviões ordenadas pelo nome do avião.","question_toks":["Encontre","todas","as","localizações","dos","aviões","ordenadas","pelo","nome","do","avião","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT LOCATION FROM hangar ORDER BY plane_name","query_toks":["SELECT","LOCATION","FROM","hangar","ORDER","BY","plane_name"],"query_toks_no_value":["select","location","from","hangar","order","by","plane_name"],"question":"Quais são as localizações dos diferentes aviões, ordenadas pelo nome do avião?","question_toks":["Quais","são","as","localizações","dos","diferentes","aviões",",","ordenadas","pelo","nome","do","avião","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT DISTINCT plane_name FROM pilotskills ORDER BY plane_name","query_toks":["SELECT","DISTINCT","plane_name","FROM","pilotskills","ORDER","BY","plane_name"],"query_toks_no_value":["select","distinct","plane_name","from","pilotskills","order","by","plane_name"],"question":"Liste todos os tipos distintos de aviões possuídos por todos os pilotos em ordem alfabética.","question_toks":["Liste","todos","os","tipos","distintos","de","aviões","possuídos","por","todos","os","pilotos","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[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":"pilot_1","query":"SELECT DISTINCT plane_name FROM pilotskills ORDER BY plane_name","query_toks":["SELECT","DISTINCT","plane_name","FROM","pilotskills","ORDER","BY","plane_name"],"query_toks_no_value":["select","distinct","plane_name","from","pilotskills","order","by","plane_name"],"question":"Quais são os diferentes nomes de aviões, ordenados alfabeticamente?","question_toks":["Quais","são","os","diferentes","nomes","de","aviões",",","ordenados","alfabeticamente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[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":"pilot_1","query":"SELECT count(pilot_name) FROM pilotskills ORDER BY age > 40 OR age < 30","query_toks":["SELECT","count","(","pilot_name",")","FROM","pilotskills","ORDER","BY","age",">","40","OR","age","<","30"],"query_toks_no_value":["select","count","(","pilot_name",")","from","pilotskills","order","by","age",">","value","or","age","<","value"],"question":"Quantos pilotos têm mais de 40 anos ou são mais jovens que 30?","question_toks":["Quantos","pilotos","têm","mais","de","40","anos","ou","são","mais","jovens","que","30","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(pilot_name) FROM pilotskills ORDER BY age > 40 OR age < 30","query_toks":["SELECT","count","(","pilot_name",")","FROM","pilotskills","ORDER","BY","age",">","40","OR","age","<","30"],"query_toks_no_value":["select","count","(","pilot_name",")","from","pilotskills","order","by","age",">","value","or","age","<","value"],"question":"Conte o número de pilotos com idade maior que 40 ou menor que 30.","question_toks":["Conte","o","número","de","pilotos","com","idade","maior","que","40","ou","menor","que","30","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name , age FROM pilotskills WHERE plane_name = 'Piper Cub' AND age > 35 UNION SELECT pilot_name , age FROM pilotskills WHERE plane_name = 'F-14 Fighter' AND age < 30","query_toks":["SELECT","pilot_name",",","age","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","AND","age",">","35","UNION","SELECT","pilot_name",",","age","FROM","pilotskills","WHERE","plane_name","=","'F-14","Fighter","'","AND","age","<","30"],"query_toks_no_value":["select","pilot_name",",","age","from","pilotskills","where","plane_name","=","value","and","age",">","value","union","select","pilot_name",",","age","from","pilotskills","where","plane_name","=","value","and","age","<","value"],"question":"Quais são os nomes e idades dos pilotos que possuem o avião Piper Cub e são mais velhos que 35 anos, ou têm F-14 Fighter e são mais jovens que 30?","question_toks":["Quais","são","os","nomes","e","idades","dos","pilotos","que","possuem","o","avião","Piper","Cub","e","são","mais","velhos","que","35","anos",",","ou","têm","F-14","Fighter","e","são","mais","jovens","que","30","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null],"and",[false,3,[0,[0,3,false],null],35.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"F-14 Fighter\"",null],"and",[false,4,[0,[0,3,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name , age FROM pilotskills WHERE plane_name = 'Piper Cub' AND age > 35 UNION SELECT pilot_name , age FROM pilotskills WHERE plane_name = 'F-14 Fighter' AND age < 30","query_toks":["SELECT","pilot_name",",","age","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","AND","age",">","35","UNION","SELECT","pilot_name",",","age","FROM","pilotskills","WHERE","plane_name","=","'F-14","Fighter","'","AND","age","<","30"],"query_toks_no_value":["select","pilot_name",",","age","from","pilotskills","where","plane_name","=","value","and","age",">","value","union","select","pilot_name",",","age","from","pilotskills","where","plane_name","=","value","and","age","<","value"],"question":"Retorne os nomes e idades dos pilotos que voaram Piper Cub e têm mais de 35 anos, ou que voaram o F-14 Fighter e têm menos de 30 anos.","question_toks":["Retorne","os","nomes","e","idades","dos","pilotos","que","voaram","Piper","Cub","e","têm","mais","de","35","anos",",","ou","que","voaram","o","F-14","Fighter","e","têm","menos","de","30","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null],"and",[false,3,[0,[0,3,false],null],35.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"F-14 Fighter\"",null],"and",[false,4,[0,[0,3,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' EXCEPT SELECT pilot_name FROM pilotskills WHERE plane_name = 'B-52 Bomber'","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","EXCEPT","SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'B-52","Bomber","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","except","select","pilot_name","from","pilotskills","where","plane_name","=","value"],"question":"Encontre pilotos que possuem o avião Piper Cub, mas não o B-52 Bomber.","question_toks":["Encontre","pilotos","que","possuem","o","avião","Piper","Cub",",","mas","não","o","B-52","Bomber","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"B-52 Bomber\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' EXCEPT SELECT pilot_name FROM pilotskills WHERE plane_name = 'B-52 Bomber'","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","EXCEPT","SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'B-52","Bomber","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","except","select","pilot_name","from","pilotskills","where","plane_name","=","value"],"question":"Quais são os nomes dos pilotos que voaram com o Piper Cub, mas não com o B-52 Bomber?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","voaram","com","o","Piper","Cub",",","mas","não","com","o","B-52","Bomber","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"B-52 Bomber\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' INTERSECT SELECT pilot_name FROM pilotskills WHERE plane_name = 'B-52 Bomber'","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","INTERSECT","SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'B-52","Bomber","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","intersect","select","pilot_name","from","pilotskills","where","plane_name","=","value"],"question":"Encontre pilotos que possuem aviões Piper Cub e B-52 Bomber.","question_toks":["Encontre","pilotos","que","possuem","aviões","Piper","Cub","e","B-52","Bomber","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"B-52 Bomber\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' INTERSECT SELECT pilot_name FROM pilotskills WHERE plane_name = 'B-52 Bomber'","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","INTERSECT","SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'B-52","Bomber","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","intersect","select","pilot_name","from","pilotskills","where","plane_name","=","value"],"question":"Quais são os nomes dos pilotos que possuem tanto o Piper Cub quanto o B-52 Bomber?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","possuem","tanto","o","Piper","Cub","quanto","o","B-52","Bomber","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"B-52 Bomber\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT avg(age) , min(age) FROM pilotskills","query_toks":["SELECT","avg","(","age",")",",","min","(","age",")","FROM","pilotskills"],"query_toks_no_value":["select","avg","(","age",")",",","min","(","age",")","from","pilotskills"],"question":"Quais são as idades média e mínima de todos os pilotos?","question_toks":["Quais","são","as","idades","média","e","mínima","de","todos","os","pilotos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[2,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT avg(age) , min(age) FROM pilotskills","query_toks":["SELECT","avg","(","age",")",",","min","(","age",")","FROM","pilotskills"],"query_toks_no_value":["select","avg","(","age",")",",","min","(","age",")","from","pilotskills"],"question":"Retorne as idades média e mínima de todos os pilotos.","question_toks":["Retorne","as","idades","média","e","mínima","de","todos","os","pilotos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[2,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = \"Austin\" INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.LOCATION = \"Boston\"","query_toks":["SELECT","T1.pilot_name","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.location","=","``","Austin","''","INTERSECT","SELECT","T1.pilot_name","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.LOCATION","=","``","Boston","''"],"query_toks_no_value":["select","t1",".","pilot_name","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value","intersect","select","t1",".","pilot_name","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value"],"question":"Quais são os nomes dos pilotos que têm aviões tanto em Austin quanto em Boston?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","têm","aviões","tanto","em","Austin","quanto","em","Boston","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Austin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Boston\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = \"Austin\" INTERSECT SELECT T1.pilot_name FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.LOCATION = \"Boston\"","query_toks":["SELECT","T1.pilot_name","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.location","=","``","Austin","''","INTERSECT","SELECT","T1.pilot_name","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.LOCATION","=","``","Boston","''"],"query_toks_no_value":["select","t1",".","pilot_name","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value","intersect","select","t1",".","pilot_name","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value"],"question":"Dê os nomes dos pilotos que têm aviões em Austin e Boston.","question_toks":["Dê","os","nomes","dos","pilotos","que","têm","aviões","em","Austin","e","Boston","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Austin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Boston\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' OR plane_name = 'F-14 Fighter'","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","OR","plane_name","=","'F-14","Fighter","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","or","plane_name","=","value"],"question":"Encontre os pilotos que têm o avião Piper Cub ou o avião F-14 Fighter.","question_toks":["Encontre","os","pilotos","que","têm","o","avião","Piper","Cub","ou","o","avião","F-14","Fighter","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null],"or",[false,2,[0,[0,2,false],null],"\"F-14 Fighter\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE plane_name = 'Piper Cub' OR plane_name = 'F-14 Fighter'","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'","OR","plane_name","=","'F-14","Fighter","'"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","plane_name","=","value","or","plane_name","=","value"],"question":"Quais são os nomes dos pilotos que têm ou o Piper Cub ou o F-14 Fighter?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","têm","ou","o","Piper","Cub","ou","o","F-14","Fighter","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null],"or",[false,2,[0,[0,2,false],null],"\"F-14 Fighter\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT avg(age) , plane_name FROM pilotskills GROUP BY plane_name","query_toks":["SELECT","avg","(","age",")",",","plane_name","FROM","pilotskills","GROUP","BY","plane_name"],"query_toks_no_value":["select","avg","(","age",")",",","plane_name","from","pilotskills","group","by","plane_name"],"question":"Qual é a idade média dos pilotos para diferentes tipos de aviões?","question_toks":["Qual","é","a","idade","média","dos","pilotos","para","diferentes","tipos","de","aviões","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT avg(age) , plane_name FROM pilotskills GROUP BY plane_name","query_toks":["SELECT","avg","(","age",")",",","plane_name","FROM","pilotskills","GROUP","BY","plane_name"],"query_toks_no_value":["select","avg","(","age",")",",","plane_name","from","pilotskills","group","by","plane_name"],"question":"Retorne a idade média dos pilotos para cada nome de avião.","question_toks":["Retorne","a","idade","média","dos","pilotos","para","cada","nome","de","avião","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) , plane_name FROM pilotskills GROUP BY plane_name","query_toks":["SELECT","count","(","*",")",",","plane_name","FROM","pilotskills","GROUP","BY","plane_name"],"query_toks_no_value":["select","count","(","*",")",",","plane_name","from","pilotskills","group","by","plane_name"],"question":"Encontre o número de aviões para cada tipo.","question_toks":["Encontre","o","número","de","aviões","para","cada","tipo","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) , plane_name FROM pilotskills GROUP BY plane_name","query_toks":["SELECT","count","(","*",")",",","plane_name","FROM","pilotskills","GROUP","BY","plane_name"],"query_toks_no_value":["select","count","(","*",")",",","plane_name","from","pilotskills","group","by","plane_name"],"question":"Conte o número de entradas para cada nome de avião.","question_toks":["Conte","o","número","de","entradas","para","cada","nome","de","avião","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name , plane_name , max(age) FROM pilotskills GROUP BY plane_name ORDER BY plane_name","query_toks":["SELECT","pilot_name",",","plane_name",",","max","(","age",")","FROM","pilotskills","GROUP","BY","plane_name","ORDER","BY","plane_name"],"query_toks_no_value":["select","pilot_name",",","plane_name",",","max","(","age",")","from","pilotskills","group","by","plane_name","order","by","plane_name"],"question":"Encontre o nome do piloto mais velho para cada tipo de avião e ordene os resultados pelo nome do avião.","question_toks":["Encontre","o","nome","do","piloto","mais","velho","para","cada","tipo","de","avião","e","ordene","os","resultados","pelo","nome","do","avião","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[1,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["asc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name , plane_name , max(age) FROM pilotskills GROUP BY plane_name ORDER BY plane_name","query_toks":["SELECT","pilot_name",",","plane_name",",","max","(","age",")","FROM","pilotskills","GROUP","BY","plane_name","ORDER","BY","plane_name"],"query_toks_no_value":["select","pilot_name",",","plane_name",",","max","(","age",")","from","pilotskills","group","by","plane_name","order","by","plane_name"],"question":"Quais são os diferentes nomes de aviões e quais são os nomes do piloto mais velho que possui cada um, ordenados pelo nome do avião?","question_toks":["Quais","são","os","diferentes","nomes","de","aviões","e","quais","são","os","nomes","do","piloto","mais","velho","que","possui","cada","um",",","ordenados","pelo","nome","do","avião","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[1,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["asc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name , plane_name , max(age) FROM pilotskills GROUP BY plane_name","query_toks":["SELECT","pilot_name",",","plane_name",",","max","(","age",")","FROM","pilotskills","GROUP","BY","plane_name"],"query_toks_no_value":["select","pilot_name",",","plane_name",",","max","(","age",")","from","pilotskills","group","by","plane_name"],"question":"Quais são os nomes dos pilotos mais velhos para cada tipo de avião?","question_toks":["Quais","são","os","nomes","dos","pilotos","mais","velhos","para","cada","tipo","de","avião","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[1,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name , plane_name , max(age) FROM pilotskills GROUP BY plane_name","query_toks":["SELECT","pilot_name",",","plane_name",",","max","(","age",")","FROM","pilotskills","GROUP","BY","plane_name"],"query_toks_no_value":["select","pilot_name",",","plane_name",",","max","(","age",")","from","pilotskills","group","by","plane_name"],"question":"Retorne os nomes dos diferentes aviões, bem como os nomes dos pilotos mais velhos que voaram em cada um.","question_toks":["Retorne","os","nomes","dos","diferentes","aviões",",","bem","como","os","nomes","dos","pilotos","mais","velhos","que","voaram","em","cada","um","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]],[1,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT max(age) , pilot_name FROM pilotskills GROUP BY pilot_name","query_toks":["SELECT","max","(","age",")",",","pilot_name","FROM","pilotskills","GROUP","BY","pilot_name"],"query_toks_no_value":["select","max","(","age",")",",","pilot_name","from","pilotskills","group","by","pilot_name"],"question":"Encontre a idade máxima para cada grupo de pilotos com o mesmo nome.","question_toks":["Encontre","a","idade","máxima","para","cada","grupo","de","pilotos","com","o","mesmo","nome","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT max(age) , pilot_name FROM pilotskills GROUP BY pilot_name","query_toks":["SELECT","max","(","age",")",",","pilot_name","FROM","pilotskills","GROUP","BY","pilot_name"],"query_toks_no_value":["select","max","(","age",")",",","pilot_name","from","pilotskills","group","by","pilot_name"],"question":"Quais são os diferentes nomes de pilotos e quais são as idades máximas dos pilotos para cada um?","question_toks":["Quais","são","os","diferentes","nomes","de","pilotos","e","quais","são","as","idades","máximas","dos","pilotos","para","cada","um","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(T1.pilot_name) , avg(T1.age) , T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name GROUP BY T2.location","query_toks":["SELECT","count","(","T1.pilot_name",")",",","avg","(","T1.age",")",",","T2.location","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","GROUP","BY","T2.location"],"query_toks_no_value":["select","count","(","t1",".","pilot_name",")",",","avg","(","t1",".","age",")",",","t2",".","location","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","group","by","t2",".","location"],"question":"Para cada cidade, encontre o número e a idade média dos pilotos que possuem um avião.","question_toks":["Para","cada","cidade",",","encontre","o","número","e","a","idade","média","dos","pilotos","que","possuem","um","avião","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,1,false],null]],[5,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(T1.pilot_name) , avg(T1.age) , T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name GROUP BY T2.location","query_toks":["SELECT","count","(","T1.pilot_name",")",",","avg","(","T1.age",")",",","T2.location","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","GROUP","BY","T2.location"],"query_toks_no_value":["select","count","(","t1",".","pilot_name",")",",","avg","(","t1",".","age",")",",","t2",".","location","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","group","by","t2",".","location"],"question":"Quais são as diferentes localizações dos hangares e quantos pilotos correspondem a cada uma? Além disso, quais são suas idades médias?","question_toks":["Quais","são","as","diferentes","localizações","dos","hangares","e","quantos","pilotos","correspondem","a","cada","uma","?","Além","disso",",","quais","são","suas","idades","médias","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[3,[0,[0,1,false],null]],[5,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) , plane_name FROM pilotskills GROUP BY plane_name HAVING avg(age) < 35","query_toks":["SELECT","count","(","*",")",",","plane_name","FROM","pilotskills","GROUP","BY","plane_name","HAVING","avg","(","age",")","<","35"],"query_toks_no_value":["select","count","(","*",")",",","plane_name","from","pilotskills","group","by","plane_name","having","avg","(","age",")","<","value"],"question":"Encontre o número de pilotos para os tipos de avião com idade média dos pilotos abaixo de 35.","question_toks":["Encontre","o","número","de","pilotos","para","os","tipos","de","avião","com","idade","média","dos","pilotos","abaixo","de","35","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,4,[0,[5,3,false],null],35.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) , plane_name FROM pilotskills GROUP BY plane_name HAVING avg(age) < 35","query_toks":["SELECT","count","(","*",")",",","plane_name","FROM","pilotskills","GROUP","BY","plane_name","HAVING","avg","(","age",")","<","35"],"query_toks_no_value":["select","count","(","*",")",",","plane_name","from","pilotskills","group","by","plane_name","having","avg","(","age",")","<","value"],"question":"Quais são os diferentes nomes de aviões com uma idade média de pilotos abaixo de 35 anos, e quantos pilotos voaram em cada um deles?","question_toks":["Quais","são","os","diferentes","nomes","de","aviões","com","uma","idade","média","de","pilotos","abaixo","de","35","anos",",","e","quantos","pilotos","voaram","em","cada","um","deles","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[[false,4,[0,[5,3,false],null],35.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T1.age = (SELECT min(age) FROM pilotskills)","query_toks":["SELECT","T2.location","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T1.age","=","(","SELECT","min","(","age",")","FROM","pilotskills",")"],"query_toks_no_value":["select","t2",".","location","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t1",".","age","=","(","select","min","(","age",")","from","pilotskills",")"],"question":"Encontre a localização do avião que pertence ao piloto mais jovem.","question_toks":["Encontre","a","localização","do","avião","que","pertence","ao","piloto","mais","jovem","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[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":"pilot_1","query":"SELECT T2.location FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T1.age = (SELECT min(age) FROM pilotskills)","query_toks":["SELECT","T2.location","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T1.age","=","(","SELECT","min","(","age",")","FROM","pilotskills",")"],"query_toks_no_value":["select","t2",".","location","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t1",".","age","=","(","select","min","(","age",")","from","pilotskills",")"],"question":"Qual é a localização do avião que foi pilotado pelo piloto com a menor idade?","question_toks":["Qual","é","a","localização","do","avião","que","foi","pilotado","pelo","piloto","com","a","menor","idade","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[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":"pilot_1","query":"SELECT T1.pilot_name , T1.age FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = \"Austin\"","query_toks":["SELECT","T1.pilot_name",",","T1.age","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.location","=","``","Austin","''"],"query_toks_no_value":["select","t1",".","pilot_name",",","t1",".","age","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value"],"question":"Encontre o nome e a idade dos pilotos que têm um avião em Austin.","question_toks":["Encontre","o","nome","e","a","idade","dos","pilotos","que","têm","um","avião","em","Austin","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Austin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT T1.pilot_name , T1.age FROM pilotskills AS T1 JOIN hangar AS T2 ON T1.plane_name = T2.plane_name WHERE T2.location = \"Austin\"","query_toks":["SELECT","T1.pilot_name",",","T1.age","FROM","pilotskills","AS","T1","JOIN","hangar","AS","T2","ON","T1.plane_name","=","T2.plane_name","WHERE","T2.location","=","``","Austin","''"],"query_toks_no_value":["select","t1",".","pilot_name",",","t1",".","age","from","pilotskills","as","t1","join","hangar","as","t2","on","t1",".","plane_name","=","t2",".","plane_name","where","t2",".","location","=","value"],"question":"Quais são os nomes e idades dos pilotos que têm aviões localizados em Austin?","question_toks":["Quais","são","os","nomes","e","idades","dos","pilotos","que","têm","aviões","localizados","em","Austin","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,2,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Austin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE age > (SELECT min(age) FROM pilotskills WHERE plane_name = 'Piper Cub') ORDER BY pilot_name","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","age",">","(","SELECT","min","(","age",")","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'",")","ORDER","BY","pilot_name"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age",">","(","select","min","(","age",")","from","pilotskills","where","plane_name","=","value",")","order","by","pilot_name"],"question":"Liste em ordem alfabética os nomes dos pilotos cuja idade é maior do que a de alguns pilotos que têm o avião Piper Cub.","question_toks":["Liste","em","ordem","alfabética","os","nomes","dos","pilotos","cuja","idade","é","maior","do","que","a","de","alguns","pilotos","que","têm","o","avião","Piper","Cub","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,1,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT pilot_name FROM pilotskills WHERE age > (SELECT min(age) FROM pilotskills WHERE plane_name = 'Piper Cub') ORDER BY pilot_name","query_toks":["SELECT","pilot_name","FROM","pilotskills","WHERE","age",">","(","SELECT","min","(","age",")","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'",")","ORDER","BY","pilot_name"],"query_toks_no_value":["select","pilot_name","from","pilotskills","where","age",">","(","select","min","(","age",")","from","pilotskills","where","plane_name","=","value",")","order","by","pilot_name"],"question":"Retorne os nomes dos pilotos que são mais velhos do que qualquer piloto que tenha voado Piper Cub, ordenados alfabeticamente.","question_toks":["Retorne","os","nomes","dos","pilotos","que","são","mais","velhos","do","que","qualquer","piloto","que","tenha","voado","Piper","Cub",",","ordenados","alfabeticamente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,1,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(*) FROM pilotskills WHERE age < (SELECT min(age) FROM pilotskills WHERE plane_name = 'F-14 Fighter')","query_toks":["SELECT","count","(","*",")","FROM","pilotskills","WHERE","age","<","(","SELECT","min","(","age",")","FROM","pilotskills","WHERE","plane_name","=","'F-14","Fighter","'",")"],"query_toks_no_value":["select","count","(","*",")","from","pilotskills","where","age","<","(","select","min","(","age",")","from","pilotskills","where","plane_name","=","value",")"],"question":"Encontre o número de pilotos cuja idade é menor do que a de todos os pilotos cujo avião é o F-14 Fighter.","question_toks":["Encontre","o","número","de","pilotos","cuja","idade","é","menor","do","que","a","de","todos","os","pilotos","cujo","avião","é","o","F-14","Fighter","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"F-14 Fighter\"",null]],"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":"pilot_1","query":"SELECT count(*) FROM pilotskills WHERE age < (SELECT min(age) FROM pilotskills WHERE plane_name = 'F-14 Fighter')","query_toks":["SELECT","count","(","*",")","FROM","pilotskills","WHERE","age","<","(","SELECT","min","(","age",")","FROM","pilotskills","WHERE","plane_name","=","'F-14","Fighter","'",")"],"query_toks_no_value":["select","count","(","*",")","from","pilotskills","where","age","<","(","select","min","(","age",")","from","pilotskills","where","plane_name","=","value",")"],"question":"Quantos pilotos são mais jovens do que todos os pilotos que possuem o F-14 Fighter?","question_toks":["Quantos","pilotos","são","mais","jovens","do","que","todos","os","pilotos","que","possuem","o","F-14","Fighter","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"F-14 Fighter\"",null]],"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":"pilot_1","query":"SELECT DISTINCT plane_name FROM pilotskills WHERE plane_name LIKE '%Bomber%'","query_toks":["SELECT","DISTINCT","plane_name","FROM","pilotskills","WHERE","plane_name","LIKE","'","%","Bomber","%","'"],"query_toks_no_value":["select","distinct","plane_name","from","pilotskills","where","plane_name","like","value"],"question":"Encontre todos os diferentes aviões cujos nomes contêm a substring 'Bomber'.","question_toks":["Encontre","todos","os","diferentes","aviões","cujos","nomes","contêm","a","substring","'Bomber","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%Bomber%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT DISTINCT plane_name FROM pilotskills WHERE plane_name LIKE '%Bomber%'","query_toks":["SELECT","DISTINCT","plane_name","FROM","pilotskills","WHERE","plane_name","LIKE","'","%","Bomber","%","'"],"query_toks_no_value":["select","distinct","plane_name","from","pilotskills","where","plane_name","like","value"],"question":"Quais são os diferentes nomes de aviões que contêm a palavra Bomber?","question_toks":["Quais","são","os","diferentes","nomes","de","aviões","que","contêm","a","palavra","Bomber","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%Bomber%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"pilot_1","query":"SELECT count(pilot_name) FROM pilotskills WHERE age > (SELECT min(age) FROM pilotskills WHERE plane_name = 'Piper Cub')","query_toks":["SELECT","count","(","pilot_name",")","FROM","pilotskills","WHERE","age",">","(","SELECT","min","(","age",")","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'",")"],"query_toks_no_value":["select","count","(","pilot_name",")","from","pilotskills","where","age",">","(","select","min","(","age",")","from","pilotskills","where","plane_name","=","value",")"],"question":"Encontre o número de todos os pilotos cuja idade é maior do que a de algum piloto que possui o avião Piper Cub.","question_toks":["Encontre","o","número","de","todos","os","pilotos","cuja","idade","é","maior","do","que","a","de","algum","piloto","que","possui","o","avião","Piper","Cub","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"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":"pilot_1","query":"SELECT count(pilot_name) FROM pilotskills WHERE age > (SELECT min(age) FROM pilotskills WHERE plane_name = 'Piper Cub')","query_toks":["SELECT","count","(","pilot_name",")","FROM","pilotskills","WHERE","age",">","(","SELECT","min","(","age",")","FROM","pilotskills","WHERE","plane_name","=","'Piper","Cub","'",")"],"query_toks_no_value":["select","count","(","pilot_name",")","from","pilotskills","where","age",">","(","select","min","(","age",")","from","pilotskills","where","plane_name","=","value",")"],"question":"Quantos pilotos são mais velhos do que o piloto mais jovem que tem Piper Cub?","question_toks":["Quantos","pilotos","são","mais","velhos","do","que","o","piloto","mais","jovem","que","tem","Piper","Cub","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,1,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[2,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Piper Cub\"",null]],"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":"district_spokesman","query":"SELECT name FROM district ORDER BY Area_km DESC LIMIT 1","query_toks":["SELECT","name","FROM","district","ORDER","BY","Area_km","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","district","order","by","area_km","desc","limit","value"],"question":"Encontre o nome do distrito que tem a maior área.","question_toks":["Encontre","o","nome","do","distrito","que","tem","a","maior","área","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT area_km , Government_website FROM district ORDER BY Population LIMIT 1","query_toks":["SELECT","area_km",",","Government_website","FROM","district","ORDER","BY","Population","LIMIT","1"],"query_toks_no_value":["select","area_km",",","government_website","from","district","order","by","population","limit","value"],"question":"Selecione a área e o site do governo do distrito com a menor população.","question_toks":["Selecione","a","área","e","o","site","do","governo","do","distrito","com","a","menor","população","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT name , population FROM district WHERE area_km > (SELECT avg(area_km) FROM district)","query_toks":["SELECT","name",",","population","FROM","district","WHERE","area_km",">","(","SELECT","avg","(","area_km",")","FROM","district",")"],"query_toks_no_value":["select","name",",","population","from","district","where","area_km",">","(","select","avg","(","area_km",")","from","district",")"],"question":"Encontre os nomes e populações dos distritos cuja área é maior que a área média.","question_toks":["Encontre","os","nomes","e","populações","dos","distritos","cuja","área","é","maior","que","a","área","média","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[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":"district_spokesman","query":"SELECT max(area_km) , avg(area_km) FROM district","query_toks":["SELECT","max","(","area_km",")",",","avg","(","area_km",")","FROM","district"],"query_toks_no_value":["select","max","(","area_km",")",",","avg","(","area_km",")","from","district"],"question":"Me dê as maiores e as áreas médias de todos os distritos.","question_toks":["Me","dê","as","maiores","e","as","áreas","médias","de","todos","os","distritos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]],[5,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT sum(population) FROM district ORDER BY area_km DESC LIMIT 3","query_toks":["SELECT","sum","(","population",")","FROM","district","ORDER","BY","area_km","DESC","LIMIT","3"],"query_toks_no_value":["select","sum","(","population",")","from","district","order","by","area_km","desc","limit","value"],"question":"Qual é a população total dos distritos cujas áreas estão entre as 3 maiores?","question_toks":["Qual","é","a","população","total","dos","distritos","cujas","áreas","estão","entre","as","3","maiores","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT name , Government_website , district_id FROM district ORDER BY Population","query_toks":["SELECT","name",",","Government_website",",","district_id","FROM","district","ORDER","BY","Population"],"query_toks_no_value":["select","name",",","government_website",",","district_id","from","district","order","by","population"],"question":"Liste os ids, nomes e sites do governo de todos os distritos ordenados pela população.","question_toks":["Liste","os","ids",",","nomes","e","sites","do","governo","de","todos","os","distritos","ordenados","pela","população","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,6,false],null]],[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT name FROM district WHERE Government_website LIKE \"%gov%\"","query_toks":["SELECT","name","FROM","district","WHERE","Government_website","LIKE","``","%","gov","%","''"],"query_toks_no_value":["select","name","from","district","where","government_website","like","value"],"question":"Encontre os nomes dos distritos cujos links governamentais usam um domínio 'gov'.","question_toks":["Encontre","os","nomes","dos","distritos","cujos","links","governamentais","usam","um","domínio","'gov","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,6,false],null],"\"%gov%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT district_id , name FROM district WHERE area_km > 3000 OR population > 4000","query_toks":["SELECT","district_id",",","name","FROM","district","WHERE","area_km",">","3000","OR","population",">","4000"],"query_toks_no_value":["select","district_id",",","name","from","district","where","area_km",">","value","or","population",">","value"],"question":"Retorne os IDs e nomes dos distritos cuja população é maior que 4000 ou área maior que 3000.","question_toks":["Retorne","os","IDs","e","nomes","dos","distritos","cuja","população","é","maior","que","4000","ou","área","maior","que","3000","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,3,false],null],3000.0,null],"or",[false,3,[0,[0,4,false],null],4000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT name , speach_title FROM spokesman","query_toks":["SELECT","name",",","speach_title","FROM","spokesman"],"query_toks_no_value":["select","name",",","speach_title","from","spokesman"],"question":"Encontre todos os nomes dos porta-vozes e os títulos dos discursos.","question_toks":["Encontre","todos","os","nomes","dos","porta-vozes","e","os","títulos","dos","discursos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT avg(points) , avg(age) FROM spokesman WHERE rank_position = 1","query_toks":["SELECT","avg","(","points",")",",","avg","(","age",")","FROM","spokesman","WHERE","rank_position","=","1"],"query_toks_no_value":["select","avg","(","points",")",",","avg","(","age",")","from","spokesman","where","rank_position","=","value"],"question":"Encontre a média de pontos e a média de idades de todos os porta-vozes cuja posição de classificação é 1.","question_toks":["Encontre","a","média","de","pontos","e","a","média","de","idades","de","todos","os","porta-vozes","cuja","posição","de","classificação","é","1","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,12,false],null]],[5,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,11,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT name , points FROM spokesman WHERE age < 40","query_toks":["SELECT","name",",","points","FROM","spokesman","WHERE","age","<","40"],"query_toks_no_value":["select","name",",","points","from","spokesman","where","age","<","value"],"question":"Quais são os nomes e pontos dos porta-vozes que têm menos de 40 anos?","question_toks":["Quais","são","os","nomes","e","pontos","dos","porta-vozes","que","têm","menos","de","40","anos","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,4,[0,[0,9,false],null],40.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT name FROM spokesman ORDER BY age DESC LIMIT 1","query_toks":["SELECT","name","FROM","spokesman","ORDER","BY","age","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","spokesman","order","by","age","desc","limit","value"],"question":"Quem é o porta-voz mais velho?","question_toks":["Quem","é","o","porta-voz","mais","velho","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,9,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT name FROM spokesman WHERE points < (SELECT avg(points) FROM spokesman)","query_toks":["SELECT","name","FROM","spokesman","WHERE","points","<","(","SELECT","avg","(","points",")","FROM","spokesman",")"],"query_toks_no_value":["select","name","from","spokesman","where","points","<","(","select","avg","(","points",")","from","spokesman",")"],"question":"Qual porta-voz tem menos pontos do que a média?","question_toks":["Qual","porta-voz","tem","menos","pontos","do","que","a","média","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,4,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,12,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":"district_spokesman","query":"SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID = t2.District_ID GROUP BY t2.District_ID ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t1.name","FROM","district","AS","t1","JOIN","spokesman_district","AS","t2","ON","t1.District_ID","=","t2.District_ID","GROUP","BY","t2.District_ID","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name","from","district","as","t1","join","spokesman_district","as","t2","on","t1",".","district_id","=","t2",".","district_id","group","by","t2",".","district_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome do distrito que tem o maior número de porta-vozes.","question_toks":["Encontre","o","nome","do","distrito","que","tem","o","maior","número","de","porta-vozes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT t1.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID = t2.Spokesman_ID WHERE t2.start_year < 2004","query_toks":["SELECT","t1.name","FROM","spokesman","AS","t1","JOIN","spokesman_district","AS","t2","ON","t1.Spokesman_ID","=","t2.Spokesman_ID","WHERE","t2.start_year","<","2004"],"query_toks_no_value":["select","t1",".","name","from","spokesman","as","t1","join","spokesman_district","as","t2","on","t1",".","spokesman_id","=","t2",".","spokesman_id","where","t2",".","start_year","<","value"],"question":"Encontre os nomes dos porta-vozes que serviram em algum distrito antes de 2004.","question_toks":["Encontre","os","nomes","dos","porta-vozes","que","serviram","em","algum","distrito","antes","de","2004","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,7,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,4,[0,[0,15,false],null],2004.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT t1.name , count(*) FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID = t2.District_ID GROUP BY t2.District_ID","query_toks":["SELECT","t1.name",",","count","(","*",")","FROM","district","AS","t1","JOIN","spokesman_district","AS","t2","ON","t1.District_ID","=","t2.District_ID","GROUP","BY","t2.District_ID"],"query_toks_no_value":["select","t1",".","name",",","count","(","*",")","from","district","as","t1","join","spokesman_district","as","t2","on","t1",".","district_id","=","t2",".","district_id","group","by","t2",".","district_id"],"question":"Encontre o número de porta-vozes para cada distrito e mostre os nomes dos distritos também.","question_toks":["Encontre","o","número","de","porta-vozes","para","cada","distrito","e","mostre","os","nomes","dos","distritos","também","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT t3.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID = t2.Spokesman_ID JOIN district AS t3 ON t3.district_id = t2.district_id WHERE t1.rank_position = 1 INTERSECT SELECT t3.name FROM spokesman AS t1 JOIN spokesman_district AS t2 ON t1.Spokesman_ID = t2.Spokesman_ID JOIN district AS t3 ON t3.district_id = t2.district_id WHERE t1.rank_position = 2","query_toks":["SELECT","t3.name","FROM","spokesman","AS","t1","JOIN","spokesman_district","AS","t2","ON","t1.Spokesman_ID","=","t2.Spokesman_ID","JOIN","district","AS","t3","ON","t3.district_id","=","t2.district_id","WHERE","t1.rank_position","=","1","INTERSECT","SELECT","t3.name","FROM","spokesman","AS","t1","JOIN","spokesman_district","AS","t2","ON","t1.Spokesman_ID","=","t2.Spokesman_ID","JOIN","district","AS","t3","ON","t3.district_id","=","t2.district_id","WHERE","t1.rank_position","=","2"],"query_toks_no_value":["select","t3",".","name","from","spokesman","as","t1","join","spokesman_district","as","t2","on","t1",".","spokesman_id","=","t2",".","spokesman_id","join","district","as","t3","on","t3",".","district_id","=","t2",".","district_id","where","t1",".","rank_position","=","value","intersect","select","t3",".","name","from","spokesman","as","t1","join","spokesman_district","as","t2","on","t1",".","spokesman_id","=","t2",".","spokesman_id","join","district","as","t3","on","t3",".","district_id","=","t2",".","district_id","where","t1",".","rank_position","=","value"],"question":"Encontre os nomes dos distritos que tiveram ambos os porta-vozes com posição de classificação 1 e 2.","question_toks":["Encontre","os","nomes","dos","distritos","que","tiveram","ambos","os","porta-vozes","com","posição","de","classificação","1","e","2","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,13,false],null],"and",[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,13,false],null],"and",[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],2.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT t1.name FROM district AS t1 JOIN spokesman_district AS t2 ON t1.District_ID = t2.District_ID GROUP BY t2.District_ID HAVING count(*) > 1","query_toks":["SELECT","t1.name","FROM","district","AS","t1","JOIN","spokesman_district","AS","t2","ON","t1.District_ID","=","t2.District_ID","GROUP","BY","t2.District_ID","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","t1",".","name","from","district","as","t1","join","spokesman_district","as","t2","on","t1",".","district_id","=","t2",".","district_id","group","by","t2",".","district_id","having","count","(","*",")",">","value"],"question":"Encontre os nomes dos distritos que têm mais de um porta-voz.","question_toks":["Encontre","os","nomes","dos","distritos","que","têm","mais","de","um","porta-voz","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"district_spokesman","query":"SELECT count(*) FROM district WHERE district_id NOT IN (SELECT district_id FROM spokesman_district)","query_toks":["SELECT","count","(","*",")","FROM","district","WHERE","district_id","NOT","IN","(","SELECT","district_id","FROM","spokesman_district",")"],"query_toks_no_value":["select","count","(","*",")","from","district","where","district_id","not","in","(","select","district_id","from","spokesman_district",")"],"question":"Encontre o número de distritos que não têm porta-vozes.","question_toks":["Encontre","o","número","de","distritos","que","não","têm","porta-vozes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,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":"district_spokesman","query":"SELECT name FROM spokesman WHERE Spokesman_ID NOT IN (SELECT Spokesman_ID FROM spokesman_district)","query_toks":["SELECT","name","FROM","spokesman","WHERE","Spokesman_ID","NOT","IN","(","SELECT","Spokesman_ID","FROM","spokesman_district",")"],"query_toks_no_value":["select","name","from","spokesman","where","spokesman_id","not","in","(","select","spokesman_id","from","spokesman_district",")"],"question":"Encontre o nome dos porta-vozes que não falam por nenhum distrito.","question_toks":["Encontre","o","nome","dos","porta-vozes","que","não","falam","por","nenhum","distrito","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[true,8,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,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":"district_spokesman","query":"SELECT sum(population) , avg(population) FROM district WHERE district_id IN (SELECT district_id FROM spokesman_district)","query_toks":["SELECT","sum","(","population",")",",","avg","(","population",")","FROM","district","WHERE","district_id","IN","(","SELECT","district_id","FROM","spokesman_district",")"],"query_toks_no_value":["select","sum","(","population",")",",","avg","(","population",")","from","district","where","district_id","in","(","select","district_id","from","spokesman_district",")"],"question":"Encontre a população total e média dos distritos que têm algum porta-voz.","question_toks":["Encontre","a","população","total","e","média","dos","distritos","que","têm","algum","porta-voz","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,4,false],null]],[5,[0,[0,4,false],null]]]],"where":[[false,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,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":"art_1","query":"select title from sculptures order by year desc limit 1","query_toks":["select","title","from","sculptures","order","by","year","desc","limit","1"],"query_toks_no_value":["select","title","from","sculptures","order","by","year","desc","limit","value"],"question":"Qual é o título da escultura que foi criada no ano mais recente?","question_toks":["Qual","é","o","título","da","escultura","que","foi","criada","no","ano","mais","recente","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,17,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"select title from sculptures order by year desc limit 1","query_toks":["select","title","from","sculptures","order","by","year","desc","limit","1"],"query_toks_no_value":["select","title","from","sculptures","order","by","year","desc","limit","value"],"question":"Qual é o nome da escultura que foi criada mais recentemente?","question_toks":["Qual","é","o","nome","da","escultura","que","foi","criada","mais","recentemente","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,17,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"select title , location from paintings order by year limit 1","query_toks":["select","title",",","location","from","paintings","order","by","year","limit","1"],"query_toks_no_value":["select","title",",","location","from","paintings","order","by","year","limit","value"],"question":"Qual é o título e a localização da pintura mais antiga?","question_toks":["Qual","é","o","título","e","a","localização","da","pintura","mais","antiga","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , LOCATION , YEAR FROM paintings ORDER BY YEAR LIMIT 1","query_toks":["SELECT","title",",","LOCATION",",","YEAR","FROM","paintings","ORDER","BY","YEAR","LIMIT","1"],"query_toks_no_value":["select","title",",","location",",","year","from","paintings","order","by","year","limit","value"],"question":"Qual é o nome da pintura mais antiga e onde ela está localizada?","question_toks":["Qual","é","o","nome","da","pintura","mais","antiga","e","onde","ela","está","localizada","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title FROM sculptures WHERE LOCATION = \"Gallery 226\"","query_toks":["SELECT","title","FROM","sculptures","WHERE","LOCATION","=","``","Gallery","226","''"],"query_toks_no_value":["select","title","from","sculptures","where","location","=","value"],"question":"Encontre os nomes de todas as esculturas localizadas na gallery 226.","question_toks":["Encontre","os","nomes","de","todas","as","esculturas","localizadas","na","gallery","226","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"Gallery 226\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title FROM sculptures WHERE LOCATION = \"Gallery 226\"","query_toks":["SELECT","title","FROM","sculptures","WHERE","LOCATION","=","``","Gallery","226","''"],"query_toks_no_value":["select","title","from","sculptures","where","location","=","value"],"question":"Quais são os nomes de todas as esculturas na gallery 226?","question_toks":["Quais","são","os","nomes","de","todas","as","esculturas","na","gallery","226","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"Gallery 226\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , LOCATION FROM paintings","query_toks":["SELECT","title",",","LOCATION","FROM","paintings"],"query_toks_no_value":["select","title",",","location","from","paintings"],"question":"Liste o título e a localização de todas as pinturas.","question_toks":["Liste","o","título","e","a","localização","de","todas","as","pinturas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , LOCATION FROM paintings","query_toks":["SELECT","title",",","LOCATION","FROM","paintings"],"query_toks_no_value":["select","title",",","location","from","paintings"],"question":"Quais são os nomes das pinturas e onde elas estão localizadas?","question_toks":["Quais","são","os","nomes","das","pinturas","e","onde","elas","estão","localizadas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , LOCATION FROM sculptures","query_toks":["SELECT","title",",","LOCATION","FROM","sculptures"],"query_toks_no_value":["select","title",",","location","from","sculptures"],"question":"Liste o título e a localização de todas as esculturas.","question_toks":["Liste","o","título","e","a","localização","de","todas","as","esculturas","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,19,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , LOCATION FROM sculptures","query_toks":["SELECT","title",",","LOCATION","FROM","sculptures"],"query_toks_no_value":["select","title",",","location","from","sculptures"],"question":"Quais são os nomes das esculturas e onde elas estão localizadas?","question_toks":["Quais","são","os","nomes","das","esculturas","e","onde","elas","estão","localizadas","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,19,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT medium FROM paintings WHERE paintingID = 80","query_toks":["SELECT","medium","FROM","paintings","WHERE","paintingID","=","80"],"query_toks_no_value":["select","medium","from","paintings","where","paintingid","=","value"],"question":"Quais são os tipos de materias para pintar da pintura com id = 80?","question_toks":["Quais","são","os","tipos","de","materias","para","pintar","da","pintura","com","id","=","80","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,6,false],null],80.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"select medium from paintings where paintingid = 80","query_toks":["select","medium","from","paintings","where","paintingid","=","80"],"query_toks_no_value":["select","medium","from","paintings","where","paintingid","=","value"],"question":"Quais materias para pintar foram usados para a pintura com id 80?","question_toks":["Quais","materias","para","pintar","foram","usados","para","a","pintura","com","id","80","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,6,false],null],80.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT lname , fname FROM artists WHERE birthYear > 1850","query_toks":["SELECT","lname",",","fname","FROM","artists","WHERE","birthYear",">","1850"],"query_toks_no_value":["select","lname",",","fname","from","artists","where","birthyear",">","value"],"question":"Encontre os primeiros e últimos nomes de todos os artistas que nasceram após 1850.","question_toks":["Encontre","os","primeiros","e","últimos","nomes","de","todos","os","artistas","que","nasceram","após","1850","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],1850.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT lname , fname FROM artists WHERE birthYear > 1850","query_toks":["SELECT","lname",",","fname","FROM","artists","WHERE","birthYear",">","1850"],"query_toks_no_value":["select","lname",",","fname","from","artists","where","birthyear",">","value"],"question":"Quais são os nomes completos dos artistas nascidos após 1850?","question_toks":["Quais","são","os","nomes","completos","dos","artistas","nascidos","após","1850","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,3,[0,[0,4,false],null],1850.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , YEAR FROM sculptures WHERE LOCATION != \"Gallery 226\"","query_toks":["SELECT","title",",","YEAR","FROM","sculptures","WHERE","LOCATION","!","=","``","Gallery","226","''"],"query_toks_no_value":["select","title",",","year","from","sculptures","where","location","!","=","value"],"question":"Encontre os nomes e anos de todas as esculturas que não estão localizadas na galeria 226.","question_toks":["Encontre","os","nomes","e","anos","de","todas","as","esculturas","que","não","estão","localizadas","na","galeria","226","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]]]],"where":[[false,7,[0,[0,19,false],null],"\"Gallery 226\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , YEAR FROM sculptures WHERE LOCATION != \"Gallery 226\"","query_toks":["SELECT","title",",","YEAR","FROM","sculptures","WHERE","LOCATION","!","=","``","Gallery","226","''"],"query_toks_no_value":["select","title",",","year","from","sculptures","where","location","!","=","value"],"question":"Quais são os nomes e as datas de criação de todas as esculturas que não estão localizadas na galeria 226?","question_toks":["Quais","são","os","nomes","e","as","datas","de","criação","de","todas","as","esculturas","que","não","estão","localizadas","na","galeria","226","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]]]],"where":[[false,7,[0,[0,19,false],null],"\"Gallery 226\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.year < 1900","query_toks":["SELECT","DISTINCT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","WHERE","T2.year","<","1900"],"query_toks_no_value":["select","distinct","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","where","t2",".","year","<","value"],"question":"Quais são os nomes e sobrenomes de todos os artistas distintos que fizeram esculturas antes de 1900?","question_toks":["Quais","são","os","nomes","e","sobrenomes","de","todos","os","artistas","distintos","que","fizeram","esculturas","antes","de","1900","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,4,[0,[0,17,false],null],1900.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.year < 1900","query_toks":["SELECT","DISTINCT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","WHERE","T2.year","<","1900"],"query_toks_no_value":["select","distinct","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","where","t2",".","year","<","value"],"question":"Qual é o nome e sobrenome de cada artista distinto que fez uma escultura antes de 1900?","question_toks":["Qual","é","o","nome","e","sobrenome","de","cada","artista","distinto","que","fez","uma","escultura","antes","de","1900","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[true,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,4,[0,[0,17,false],null],1900.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT T1.birthYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.year > 1920","query_toks":["SELECT","DISTINCT","T1.birthYear","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","WHERE","T2.year",">","1920"],"query_toks_no_value":["select","distinct","t1",".","birthyear","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","where","t2",".","year",">","value"],"question":"Encontre os anos de nascimento de todos os artistas distintos que fizeram esculturas após 1920.","question_toks":["Encontre","os","anos","de","nascimento","de","todos","os","artistas","distintos","que","fizeram","esculturas","após","1920","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,17,false],null],1920.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT T1.birthYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.year > 1920","query_toks":["SELECT","DISTINCT","T1.birthYear","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","WHERE","T2.year",">","1920"],"query_toks_no_value":["select","distinct","t1",".","birthyear","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","where","t2",".","year",">","value"],"question":"Qual é o ano de nascimento de cada artista distinto que criou esculturas após 1920?","question_toks":["Qual","é","o","ano","de","nascimento","de","cada","artista","distinto","que","criou","esculturas","após","1920","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,17,false],null],1920.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT lname , fname FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1","query_toks":["SELECT","lname",",","fname","FROM","artists","ORDER","BY","deathYear","-","birthYear","DESC","LIMIT","1"],"query_toks_no_value":["select","lname",",","fname","from","artists","order","by","deathyear","-","birthyear","desc","limit","value"],"question":"Quais são os nomes e sobrenomes do artista que viveu por mais tempo?","question_toks":["Quais","são","os","nomes","e","sobrenomes","do","artista","que","viveu","por","mais","tempo","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT lname , fname FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1","query_toks":["SELECT","lname",",","fname","FROM","artists","ORDER","BY","deathYear","-","birthYear","DESC","LIMIT","1"],"query_toks_no_value":["select","lname",",","fname","from","artists","order","by","deathyear","-","birthyear","desc","limit","value"],"question":"Dê o nome completo do artista que viveu mais tempo.","question_toks":["Dê","o","nome","completo","do","artista","que","viveu","mais","tempo","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT deathYear - birthYear FROM artists ORDER BY deathYear - birthYear LIMIT 1","query_toks":["SELECT","deathYear","-","birthYear","FROM","artists","ORDER","BY","deathYear","-","birthYear","LIMIT","1"],"query_toks_no_value":["select","deathyear","-","birthyear","from","artists","order","by","deathyear","-","birthyear","limit","value"],"question":"Qual é a idade do artista que teve a vida mais curta?","question_toks":["Qual","é","a","idade","do","artista","que","teve","a","vida","mais","curta","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[1,[0,5,false],[0,4,false]]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT deathYear - birthYear FROM artists ORDER BY deathYear - birthYear LIMIT 1","query_toks":["SELECT","deathYear","-","birthYear","FROM","artists","ORDER","BY","deathYear","-","birthYear","LIMIT","1"],"query_toks_no_value":["select","deathyear","-","birthyear","from","artists","order","by","deathyear","-","birthyear","limit","value"],"question":"Qual a idade do artista que viveu a vida mais curta?","question_toks":["Qual","a","idade","do","artista","que","viveu","a","vida","mais","curta","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[1,[0,5,false],[0,4,false]]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT fname , deathYear - birthYear FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1","query_toks":["SELECT","fname",",","deathYear","-","birthYear","FROM","artists","ORDER","BY","deathYear","-","birthYear","DESC","LIMIT","1"],"query_toks_no_value":["select","fname",",","deathyear","-","birthyear","from","artists","order","by","deathyear","-","birthyear","desc","limit","value"],"question":"Quais são o primeiro nome e a idade do artista que teve a vida mais longa?","question_toks":["Quais","são","o","primeiro","nome","e","a","idade","do","artista","que","teve","a","vida","mais","longa","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[1,[0,5,false],[0,4,false]]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT fname , deathYear - birthYear FROM artists ORDER BY deathYear - birthYear DESC LIMIT 1","query_toks":["SELECT","fname",",","deathYear","-","birthYear","FROM","artists","ORDER","BY","deathYear","-","birthYear","DESC","LIMIT","1"],"query_toks_no_value":["select","fname",",","deathyear","-","birthyear","from","artists","order","by","deathyear","-","birthyear","desc","limit","value"],"question":"Qual é o primeiro nome e a idade do artista que viveu mais tempo?","question_toks":["Qual","é","o","primeiro","nome","e","a","idade","do","artista","que","viveu","mais","tempo","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[1,[0,5,false],[0,4,false]]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT count(*) FROM paintings WHERE LOCATION = \"Gallery 240\"","query_toks":["SELECT","count","(","*",")","FROM","paintings","WHERE","LOCATION","=","``","Gallery","240","''"],"query_toks_no_value":["select","count","(","*",")","from","paintings","where","location","=","value"],"question":"Quantas pinturas estão expostas na galeria 240?","question_toks":["Quantas","pinturas","estão","expostas","na","galeria","240","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT count(*) FROM paintings WHERE LOCATION = \"Gallery 240\"","query_toks":["SELECT","count","(","*",")","FROM","paintings","WHERE","LOCATION","=","``","Gallery","240","''"],"query_toks_no_value":["select","count","(","*",")","from","paintings","where","location","=","value"],"question":"Qual é o número total de pinturas exibidas na gallery 240?","question_toks":["Qual","é","o","número","total","de","pinturas","exibidas","na","gallery","240","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"select count(*) from artists as t1 join paintings as t2 on t1.artistid = t2.painterid group by t2.painterid order by t1.deathyear - t1.birthyear desc limit 1","query_toks":["select","count","(","*",")","from","artists","as","t1","join","paintings","as","t2","on","t1.artistid","=","t2.painterid","group","by","t2.painterid","order","by","t1.deathyear","-","t1.birthyear","desc","limit","1"],"query_toks_no_value":["select","count","(","*",")","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","group","by","t2",".","painterid","order","by","t1",".","deathyear","-","t1",".","birthyear","desc","limit","value"],"question":"Quantas pinturas o artista com a vida mais longa fez?","question_toks":["Quantas","pinturas","o","artista","com","a","vida","mais","longa","fez","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"select count(*) from artists as t1 join paintings as t2 on t1.artistid = t2.painterid group by t2.painterid order by t1.deathyear - t1.birthyear desc limit 1","query_toks":["select","count","(","*",")","from","artists","as","t1","join","paintings","as","t2","on","t1.artistid","=","t2.painterid","group","by","t2.painterid","order","by","t1.deathyear","-","t1.birthyear","desc","limit","1"],"query_toks_no_value":["select","count","(","*",")","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","group","by","t2",".","painterid","order","by","t1",".","deathyear","-","t1",".","birthyear","desc","limit","value"],"question":"Qual é a contagem de pinturas do artista com a vida mais longa?","question_toks":["Qual","é","a","contagem","de","pinturas","do","artista","com","a","vida","mais","longa","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[1,[0,5,false],[0,4,false]]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T2.title , T2.year FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.fname = \"Mary\"","query_toks":["SELECT","T2.title",",","T2.year","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.fname","=","``","Mary","''"],"query_toks_no_value":["select","t2",".","title",",","t2",".","year","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","fname","=","value"],"question":"Me dê uma lista de nomes e anos de pinturas que foram criadas pela artista cujo primeiro nome é Mary.","question_toks":["Me","dê","uma","lista","de","nomes","e","anos","de","pinturas","que","foram","criadas","pela","artista","cujo","primeiro","nome","é","Mary","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Mary\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T2.title , T2.year FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.fname = \"Mary\"","query_toks":["SELECT","T2.title",",","T2.year","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.fname","=","``","Mary","''"],"query_toks_no_value":["select","t2",".","title",",","t2",".","year","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","fname","=","value"],"question":"Qual é o nome e o ano de cada pintura criada pela artista cujo primeiro nome é Mary?","question_toks":["Qual","é","o","nome","e","o","ano","de","cada","pintura","criada","pela","artista","cujo","primeiro","nome","é","Mary","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Mary\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T2.width_mm FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.birthYear < 1850","query_toks":["SELECT","T2.width_mm","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.birthYear","<","1850"],"query_toks_no_value":["select","t2",".","width_mm","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","birthyear","<","value"],"question":"Quais são as larguras das pinturas que foram criadas pelo artista que nasceu antes de 1850?","question_toks":["Quais","são","as","larguras","das","pinturas","que","foram","criadas","pelo","artista","que","nasceu","antes","de","1850","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,4,[0,[0,4,false],null],1850.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T2.width_mm FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.birthYear < 1850","query_toks":["SELECT","T2.width_mm","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.birthYear","<","1850"],"query_toks_no_value":["select","t2",".","width_mm","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","birthyear","<","value"],"question":"Quão largo era as pinturas do artista que nasceu antes de 1850?","question_toks":["Quão","largo","era","as","pinturas","do","artista","que","nasceu","antes","de","1850","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,4,[0,[0,4,false],null],1850.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T2.location , T2.medium FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.fname = \"Pablo\"","query_toks":["SELECT","T2.location",",","T2.medium","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.fname","=","``","Pablo","''"],"query_toks_no_value":["select","t2",".","location",",","t2",".","medium","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","fname","=","value"],"question":"Quais são a localização e o tipo de material para pintar das pinturas criadas pelo artista cujo primeiro nome é Pablo?","question_toks":["Quais","são","a","localização","e","o","tipo","de","material","para","pintar","das","pinturas","criadas","pelo","artista","cujo","primeiro","nome","é","Pablo","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Pablo\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T2.location , T2.medium FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.fname = \"Pablo\"","query_toks":["SELECT","T2.location",",","T2.medium","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.fname","=","``","Pablo","''"],"query_toks_no_value":["select","t2",".","location",",","t2",".","medium","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","fname","=","value"],"question":"Em quais locais e quais materiais para pintar as pinturas criadas pelo artista com o primeiro nome Pablo?","question_toks":["Em","quais","locais","e","quais","materiais","para","pintar","as","pinturas","criadas","pelo","artista","com","o","primeiro","nome","Pablo","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Pablo\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID INTERSECT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID = T4.painterID","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","INTERSECT","SELECT","T3.lname",",","T3.fname","FROM","artists","AS","T3","JOIN","paintings","AS","T4","ON","T3.artistID","=","T4.painterID"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","intersect","select","t3",".","lname",",","t3",".","fname","from","artists","as","t3","join","paintings","as","t4","on","t3",".","artistid","=","t4",".","painterid"],"question":"Encontre os nomes e sobrenomes dos artistas que têm obras tanto de pinturas quanto de esculturas.","question_toks":["Encontre","os","nomes","e","sobrenomes","dos","artistas","que","têm","obras","tanto","de","pinturas","quanto","de","esculturas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID INTERSECT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID = T4.painterID","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","INTERSECT","SELECT","T3.lname",",","T3.fname","FROM","artists","AS","T3","JOIN","paintings","AS","T4","ON","T3.artistID","=","T4.painterID"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","intersect","select","t3",".","lname",",","t3",".","fname","from","artists","as","t3","join","paintings","as","t4","on","t3",".","artistid","=","t4",".","painterid"],"question":"Dê os nomes completos dos artistas que criaram pinturas e esculturas.","question_toks":["Dê","os","nomes","completos","dos","artistas","que","criaram","pinturas","e","esculturas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = \"oil\" INTERSECT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID = T4.painterID WHERE T4.medium = \"lithograph\"","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.medium","=","``","oil","''","INTERSECT","SELECT","T3.lname",",","T3.fname","FROM","artists","AS","T3","JOIN","paintings","AS","T4","ON","T3.artistID","=","T4.painterID","WHERE","T4.medium","=","``","lithograph","''"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","medium","=","value","intersect","select","t3",".","lname",",","t3",".","fname","from","artists","as","t3","join","paintings","as","t4","on","t3",".","artistid","=","t4",".","painterid","where","t4",".","medium","=","value"],"question":"Quais são os nomes e sobrenomes dos artistas que têm pinturas não apenas em oil, mas também em lithograph?","question_toks":["Quais","são","os","nomes","e","sobrenomes","dos","artistas","que","têm","pinturas","não","apenas","em","oil",",","mas","também","em","lithograph","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"lithograph\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = \"oil\" INTERSECT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN paintings AS T4 ON T3.artistID = T4.painterID WHERE T4.medium = \"lithograph\"","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.medium","=","``","oil","''","INTERSECT","SELECT","T3.lname",",","T3.fname","FROM","artists","AS","T3","JOIN","paintings","AS","T4","ON","T3.artistID","=","T4.painterID","WHERE","T4.medium","=","``","lithograph","''"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","medium","=","value","intersect","select","t3",".","lname",",","t3",".","fname","from","artists","as","t3","join","paintings","as","t4","on","t3",".","artistid","=","t4",".","painterid","where","t4",".","medium","=","value"],"question":"Quais são os nomes e sobrenomes dos artistas que pintaram usando os meios oil e lithograph?","question_toks":["Quais","são","os","nomes","e","sobrenomes","dos","artistas","que","pintaram","usando","os","meios","oil","e","lithograph","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"lithograph\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.birthYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.year = 1884 AND mediumOn = \"canvas\"","query_toks":["SELECT","T1.birthYear","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.year","=","1884","AND","mediumOn","=","``","canvas","''"],"query_toks_no_value":["select","t1",".","birthyear","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","year","=","value","and","mediumon","=","value"],"question":"Qual é o ano de nascimento do artista que criou uma pintura em 1884 que está em tela?","question_toks":["Qual","é","o","ano","de","nascimento","do","artista","que","criou","uma","pintura","em","1884","que","está","em","tela","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,8,false],null],1884.0,null],"and",[false,2,[0,[0,12,false],null],"\"canvas\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.birthYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.year = 1884 AND mediumOn = \"canvas\"","query_toks":["SELECT","T1.birthYear","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.year","=","1884","AND","mediumOn","=","``","canvas","''"],"query_toks_no_value":["select","t1",".","birthyear","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","year","=","value","and","mediumon","=","value"],"question":"Em que ano nasceu o artista que criou uma pintura em 1884?","question_toks":["Em","que","ano","nasceu","o","artista","que","criou","uma","pintura","em","1884","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,8,false],null],1884.0,null],"and",[false,2,[0,[0,12,false],null],"\"canvas\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = \"oil\" AND LOCATION = \"Gallery 241\"","query_toks":["SELECT","DISTINCT","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.medium","=","``","oil","''","AND","LOCATION","=","``","Gallery","241","''"],"query_toks_no_value":["select","distinct","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","medium","=","value","and","location","=","value"],"question":"Quais são os primeiros nomes únicos dos artistas que tinham pinturas com oil localizadas na galeria 241?","question_toks":["Quais","são","os","primeiros","nomes","únicos","dos","artistas","que","tinham","pinturas","com","oil","localizadas","na","galeria","241","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[true,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null],"and",[false,2,[0,[0,13,false],null],"\"Gallery 241\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = \"oil\" AND LOCATION = \"Gallery 241\"","query_toks":["SELECT","DISTINCT","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.medium","=","``","oil","''","AND","LOCATION","=","``","Gallery","241","''"],"query_toks_no_value":["select","distinct","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","medium","=","value","and","location","=","value"],"question":"Quais são os primeiros nomes dos artistas com pinturas com oil na galeria 241?","question_toks":["Quais","são","os","primeiros","nomes","dos","artistas","com","pinturas","com","oil","na","galeria","241","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[true,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null],"and",[false,2,[0,[0,13,false],null],"\"Gallery 241\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT count(*) , medium FROM paintings GROUP BY medium","query_toks":["SELECT","count","(","*",")",",","medium","FROM","paintings","GROUP","BY","medium"],"query_toks_no_value":["select","count","(","*",")",",","medium","from","paintings","group","by","medium"],"question":"Quais são os números de obras para diferentes tipos de materiais para pintar?","question_toks":["Quais","são","os","números","de","obras","para","diferentes","tipos","de","materiais","para","pintar","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT count(*) , medium FROM paintings GROUP BY medium","query_toks":["SELECT","count","(","*",")",",","medium","FROM","paintings","GROUP","BY","medium"],"query_toks_no_value":["select","count","(","*",")",",","medium","from","paintings","group","by","medium"],"question":"Quantas obras existem em cada material para pintar?","question_toks":["Quantas","obras","existem","em","cada","material","para","pintar","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT avg(height_mm) , medium FROM paintings GROUP BY medium","query_toks":["SELECT","avg","(","height_mm",")",",","medium","FROM","paintings","GROUP","BY","medium"],"query_toks_no_value":["select","avg","(","height_mm",")",",","medium","from","paintings","group","by","medium"],"question":"Qual é a altura média das pinturas para diferentes tipos de materiais para pintar?","question_toks":["Qual","é","a","altura","média","das","pinturas","para","diferentes","tipos","de","materiais","para","pintar","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT avg(height_mm) , medium FROM paintings GROUP BY medium","query_toks":["SELECT","avg","(","height_mm",")",",","medium","FROM","paintings","GROUP","BY","medium"],"query_toks_no_value":["select","avg","(","height_mm",")",",","medium","from","paintings","group","by","medium"],"question":"Qual é a altura média das pinturas para diferentes tipos de materiais para pintar?","question_toks":["Qual","é","a","altura","média","das","pinturas","para","diferentes","tipos","de","materiais","para","pintar","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT count(*) , LOCATION FROM paintings WHERE YEAR < 1900 GROUP BY LOCATION","query_toks":["SELECT","count","(","*",")",",","LOCATION","FROM","paintings","WHERE","YEAR","<","1900","GROUP","BY","LOCATION"],"query_toks_no_value":["select","count","(","*",")",",","location","from","paintings","where","year","<","value","group","by","location"],"question":"Quais são os números de pinturas criadas antes de 1900 em diferentes locais?","question_toks":["Quais","são","os","números","de","pinturas","criadas","antes","de","1900","em","diferentes","locais","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1900.0,null]],"groupBy":[[0,13,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT count(*) , LOCATION FROM paintings WHERE YEAR < 1900 GROUP BY LOCATION","query_toks":["SELECT","count","(","*",")",",","LOCATION","FROM","paintings","WHERE","YEAR","<","1900","GROUP","BY","LOCATION"],"query_toks_no_value":["select","count","(","*",")",",","location","from","paintings","where","year","<","value","group","by","location"],"question":"Quantas pinturas foram criadas antes de 1900 em diferentes locais?","question_toks":["Quantas","pinturas","foram","criadas","antes","de","1900","em","diferentes","locais","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1900.0,null]],"groupBy":[[0,13,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title FROM paintings WHERE YEAR > 1910 AND medium = \"oil\"","query_toks":["SELECT","title","FROM","paintings","WHERE","YEAR",">","1910","AND","medium","=","``","oil","''"],"query_toks_no_value":["select","title","from","paintings","where","year",">","value","and","medium","=","value"],"question":"Quais são os títulos das pinturas que foram criadas após 1910 e cujo material para pintar é oil?","question_toks":["Quais","são","os","títulos","das","pinturas","que","foram","criadas","após","1910","e","cujo","material","para","pintar","é","oil","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1910.0,null],"and",[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title FROM paintings WHERE YEAR > 1910 AND medium = \"oil\"","query_toks":["SELECT","title","FROM","paintings","WHERE","YEAR",">","1910","AND","medium","=","``","oil","''"],"query_toks_no_value":["select","title","from","paintings","where","year",">","value","and","medium","=","value"],"question":"Dê os nomes de todas as pinturas oil criadas após 1910.","question_toks":["Dê","os","nomes","de","todas","as","pinturas","oil","criadas","após","1910","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1910.0,null],"and",[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT painterID FROM paintings WHERE medium = \"oil\" AND LOCATION = \"Gallery 240\"","query_toks":["SELECT","DISTINCT","painterID","FROM","paintings","WHERE","medium","=","``","oil","''","AND","LOCATION","=","``","Gallery","240","''"],"query_toks_no_value":["select","distinct","painterid","from","paintings","where","medium","=","value","and","location","=","value"],"question":"Encontre o id único dos pintores que tiveram pinturas com oil exibidas na galery 240.","question_toks":["Encontre","o","id","único","dos","pintores","que","tiveram","pinturas","com","oil","exibidas","na","galery","240","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null],"and",[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT painterID FROM paintings WHERE medium = \"oil\" AND LOCATION = \"Gallery 240\"","query_toks":["SELECT","DISTINCT","painterID","FROM","paintings","WHERE","medium","=","``","oil","''","AND","LOCATION","=","``","Gallery","240","''"],"query_toks_no_value":["select","distinct","painterid","from","paintings","where","medium","=","value","and","location","=","value"],"question":"Qual é o id único de cada pintor que teve uma pintura com oil exibida na galery 240?","question_toks":["Qual","é","o","id","único","de","cada","pintor","que","teve","uma","pintura","com","oil","exibida","na","galery","240","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,14,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null],"and",[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT title FROM paintings WHERE height_mm > (SELECT min(height_mm) FROM paintings WHERE mediumOn = \"canvas\")","query_toks":["SELECT","DISTINCT","title","FROM","paintings","WHERE","height_mm",">","(","SELECT","min","(","height_mm",")","FROM","paintings","WHERE","mediumOn","=","``","canvas","''",")"],"query_toks_no_value":["select","distinct","title","from","paintings","where","height_mm",">","(","select","min","(","height_mm",")","from","paintings","where","mediumon","=","value",")"],"question":"Encontre os títulos distintos de todas as pinturas que têm uma altura maior do que alguma pintura em canvas.","question_toks":["Encontre","os","títulos","distintos","de","todas","as","pinturas","que","têm","uma","altura","maior","do","que","alguma","pintura","em","canvas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[[false,3,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"canvas\"",null]],"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":"art_1","query":"SELECT DISTINCT title FROM paintings WHERE height_mm > (SELECT min(height_mm) FROM paintings WHERE mediumOn = \"canvas\")","query_toks":["SELECT","DISTINCT","title","FROM","paintings","WHERE","height_mm",">","(","SELECT","min","(","height_mm",")","FROM","paintings","WHERE","mediumOn","=","``","canvas","''",")"],"query_toks_no_value":["select","distinct","title","from","paintings","where","height_mm",">","(","select","min","(","height_mm",")","from","paintings","where","mediumon","=","value",")"],"question":"Quais são os títulos distintos de cada pintura que tem uma altura maior do que alguma pintura em canvas?","question_toks":["Quais","são","os","títulos","distintos","de","cada","pintura","que","tem","uma","altura","maior","do","que","alguma","pintura","em","canvas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[[false,3,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"canvas\"",null]],"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":"art_1","query":"SELECT paintingID FROM paintings WHERE YEAR < (SELECT max(YEAR) FROM paintings WHERE LOCATION = \"Gallery 240\")","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","YEAR","<","(","SELECT","max","(","YEAR",")","FROM","paintings","WHERE","LOCATION","=","``","Gallery","240","''",")"],"query_toks_no_value":["select","paintingid","from","paintings","where","year","<","(","select","max","(","year",")","from","paintings","where","location","=","value",")"],"question":"Encontre os IDs distintos de todas as pinturas que são mais antigas do que alguma pintura na localização gallery 240.","question_toks":["Encontre","os","IDs","distintos","de","todas","as","pinturas","que","são","mais","antigas","do","que","alguma","pintura","na","localização","gallery","240","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"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":"art_1","query":"SELECT paintingID FROM paintings WHERE YEAR < (SELECT max(YEAR) FROM paintings WHERE LOCATION = \"Gallery 240\")","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","YEAR","<","(","SELECT","max","(","YEAR",")","FROM","paintings","WHERE","LOCATION","=","``","Gallery","240","''",")"],"query_toks_no_value":["select","paintingid","from","paintings","where","year","<","(","select","max","(","year",")","from","paintings","where","location","=","value",")"],"question":"Quais são os ids distintos de cada pintura que é mais antiga do que alguma pintura na gallery 240?","question_toks":["Quais","são","os","ids","distintos","de","cada","pintura","que","é","mais","antiga","do","que","alguma","pintura","na","gallery","240","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"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":"art_1","query":"SELECT paintingID FROM paintings ORDER BY YEAR LIMIT 1","query_toks":["SELECT","paintingID","FROM","paintings","ORDER","BY","YEAR","LIMIT","1"],"query_toks_no_value":["select","paintingid","from","paintings","order","by","year","limit","value"],"question":"Encontre o id da pintura mais antiga.","question_toks":["Encontre","o","id","da","pintura","mais","antiga","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID FROM paintings ORDER BY YEAR LIMIT 1","query_toks":["SELECT","paintingID","FROM","paintings","ORDER","BY","YEAR","LIMIT","1"],"query_toks_no_value":["select","paintingid","from","paintings","order","by","year","limit","value"],"question":"Qual é o id da pintura mais antiga?","question_toks":["Qual","é","o","id","da","pintura","mais","antiga","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.title LIKE \"%female%\"","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","WHERE","T2.title","LIKE","``","%","female","%","''"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","where","t2",".","title","like","value"],"question":"Quais são o primeiro e o último nome do artista que teve uma obra de escultura cujo título contém a palavra \"female\"?","question_toks":["Quais","são","o","primeiro","e","o","último","nome","do","artista","que","teve","uma","obra","de","escultura","cujo","título","contém","a","palavra","``","female","''","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,9,[0,[0,16,false],null],"\"%female%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID WHERE T2.title LIKE \"%female%\"","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","WHERE","T2.title","LIKE","``","%","female","%","''"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","where","t2",".","title","like","value"],"question":"Qual é o nome completo do artista com uma escultura cujo título inclui a palavra \"female\"?","question_toks":["Qual","é","o","nome","completo","do","artista","com","uma","escultura","cujo","título","inclui","a","palavra","``","female","''","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,9,[0,[0,16,false],null],"\"%female%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT title FROM paintings ORDER BY title","query_toks":["SELECT","DISTINCT","title","FROM","paintings","ORDER","BY","title"],"query_toks_no_value":["select","distinct","title","from","paintings","order","by","title"],"question":"Liste os nomes de todas as pinturas distintas em ordem alfabética.","question_toks":["Liste","os","nomes","de","todas","as","pinturas","distintas","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT title FROM paintings ORDER BY title","query_toks":["SELECT","DISTINCT","title","FROM","paintings","ORDER","BY","title"],"query_toks_no_value":["select","distinct","title","from","paintings","order","by","title"],"question":"Qual é o nome de cada pintura distinta em ordem alfabética?","question_toks":["Qual","é","o","nome","de","cada","pintura","distinta","em","ordem","alfabética","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT title FROM paintings ORDER BY height_mm","query_toks":["SELECT","DISTINCT","title","FROM","paintings","ORDER","BY","height_mm"],"query_toks_no_value":["select","distinct","title","from","paintings","order","by","height_mm"],"question":"Liste os nomes de todas as pinturas distintas ordenadas por comprimento.","question_toks":["Liste","os","nomes","de","todas","as","pinturas","distintas","ordenadas","por","comprimento","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,9,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT title FROM paintings ORDER BY height_mm","query_toks":["SELECT","DISTINCT","title","FROM","paintings","ORDER","BY","height_mm"],"query_toks_no_value":["select","distinct","title","from","paintings","order","by","height_mm"],"question":"Liste os nomes de todas as pinturas distintas do menor para o maior em altura.","question_toks":["Liste","os","nomes","de","todas","as","pinturas","distintas","do","menor","para","o","maior","em","altura","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,9,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950","query_toks":["SELECT","title","FROM","paintings","WHERE","YEAR","BETWEEN","1900","AND","1950","UNION","SELECT","title","FROM","sculptures","WHERE","YEAR","BETWEEN","1900","AND","1950"],"query_toks_no_value":["select","title","from","paintings","where","year","between","value","and","value","union","select","title","from","sculptures","where","year","between","value","and","value"],"question":"Quais são os nomes de pinturas e esculturas criadas entre 1900 e 1950?","question_toks":["Quais","são","os","nomes","de","pinturas","e","esculturas","criadas","entre","1900","e","1950","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,1,[0,[0,8,false],null],1900.0,1950.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,1,[0,[0,17,false],null],1900.0,1950.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"art_1","query":"SELECT title FROM paintings WHERE YEAR BETWEEN 1900 AND 1950 UNION SELECT title FROM sculptures WHERE YEAR BETWEEN 1900 AND 1950","query_toks":["SELECT","title","FROM","paintings","WHERE","YEAR","BETWEEN","1900","AND","1950","UNION","SELECT","title","FROM","sculptures","WHERE","YEAR","BETWEEN","1900","AND","1950"],"query_toks_no_value":["select","title","from","paintings","where","year","between","value","and","value","union","select","title","from","sculptures","where","year","between","value","and","value"],"question":"Quais são os nomes das pinturas e esculturas criadas entre 1900 e 1950?","question_toks":["Quais","são","os","nomes","das","pinturas","e","esculturas","criadas","entre","1900","e","1950","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,1,[0,[0,8,false],null],1900.0,1950.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,1,[0,[0,17,false],null],1900.0,1950.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"art_1","query":"SELECT T2.title FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.artistID = 222 UNION SELECT T4.title FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID = T4.sculptorID WHERE T3.artistID = 222","query_toks":["SELECT","T2.title","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.artistID","=","222","UNION","SELECT","T4.title","FROM","artists","AS","T3","JOIN","sculptures","AS","T4","ON","T3.artistID","=","T4.sculptorID","WHERE","T3.artistID","=","222"],"query_toks_no_value":["select","t2",".","title","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","artistid","=","value","union","select","t4",".","title","from","artists","as","t3","join","sculptures","as","t4","on","t3",".","artistid","=","t4",".","sculptorid","where","t3",".","artistid","=","value"],"question":"Encontre os títulos das pinturas e obras de escultura feitas pelo artista cujo id é 222.","question_toks":["Encontre","os","títulos","das","pinturas","e","obras","de","escultura","feitas","pelo","artista","cujo","id","é","222","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,1,false],null],222.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,1,false],null],222.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"art_1","query":"SELECT T2.title FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T1.artistID = 222 UNION SELECT T4.title FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID = T4.sculptorID WHERE T3.artistID = 222","query_toks":["SELECT","T2.title","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T1.artistID","=","222","UNION","SELECT","T4.title","FROM","artists","AS","T3","JOIN","sculptures","AS","T4","ON","T3.artistID","=","T4.sculptorID","WHERE","T3.artistID","=","222"],"query_toks_no_value":["select","t2",".","title","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t1",".","artistid","=","value","union","select","t4",".","title","from","artists","as","t3","join","sculptures","as","t4","on","t3",".","artistid","=","t4",".","sculptorid","where","t3",".","artistid","=","value"],"question":"Quais são os títulos de todas as pinturas e esculturas feitas pelo artista cujo id é 222?","question_toks":["Quais","são","os","títulos","de","todas","as","pinturas","e","esculturas","feitas","pelo","artista","cujo","id","é","222","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,1,false],null],222.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,1,false],null],222.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"art_1","query":"SELECT T1.artistID FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.year < 1900 GROUP BY T1.artistID ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.artistID","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.year","<","1900","GROUP","BY","T1.artistID","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","artistid","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","year","<","value","group","by","t1",".","artistid","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id do artista que tem o maior número de obras de pintura antes de 1900?","question_toks":["Qual","é","o","id","do","artista","que","tem","o","maior","número","de","obras","de","pintura","antes","de","1900","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1900.0,null]],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.artistID FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.year < 1900 GROUP BY T1.artistID ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.artistID","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.year","<","1900","GROUP","BY","T1.artistID","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","artistid","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","year","<","value","group","by","t1",".","artistid","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id do artista com mais pinturas antes de 1900?","question_toks":["Qual","é","o","id","do","artista","com","mais","pinturas","antes","de","1900","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1900.0,null]],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","GROUP","BY","T2.sculptorID","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","group","by","t2",".","sculptorid","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o primeiro nome do artista que tem o maior número de esculturas?","question_toks":["Qual","é","o","primeiro","nome","do","artista","que","tem","o","maior","número","de","esculturas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.fname FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.fname","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","GROUP","BY","T2.sculptorID","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","fname","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","group","by","t2",".","sculptorid","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o primeiro nome do escultor com o maior número de obras?","question_toks":["Qual","é","o","primeiro","nome","do","escultor","com","o","maior","número","de","obras","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title FROM paintings WHERE width_mm < 600 OR height_mm > 800","query_toks":["SELECT","title","FROM","paintings","WHERE","width_mm","<","600","OR","height_mm",">","800"],"query_toks_no_value":["select","title","from","paintings","where","width_mm","<","value","or","height_mm",">","value"],"question":"Quais são os nomes das pinturas cuja largura é menor que 600 ou altura é maior que 800?","question_toks":["Quais","são","os","nomes","das","pinturas","cuja","largura","é","menor","que","600","ou","altura","é","maior","que","800","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,4,[0,[0,10,false],null],600.0,null],"or",[false,3,[0,[0,9,false],null],800.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title FROM paintings WHERE width_mm < 600 OR height_mm > 800","query_toks":["SELECT","title","FROM","paintings","WHERE","width_mm","<","600","OR","height_mm",">","800"],"query_toks_no_value":["select","title","from","paintings","where","width_mm","<","value","or","height_mm",">","value"],"question":"Quais são os títulos das pinturas que têm uma largura menor que 600 ou uma altura maior que 800?","question_toks":["Quais","são","os","títulos","das","pinturas","que","têm","uma","largura","menor","que","600","ou","uma","altura","maior","que","800","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,4,[0,[0,10,false],null],600.0,null],"or",[false,3,[0,[0,9,false],null],800.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 OR YEAR > 1930","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR","<","1885","OR","YEAR",">","1930"],"query_toks_no_value":["select","distinct","location","from","paintings","where","year","<","value","or","year",">","value"],"question":"Quais locais têm pinturas criadas antes de 1885 ou depois de 1930?","question_toks":["Quais","locais","têm","pinturas","criadas","antes","de","1885","ou","depois","de","1930","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1885.0,null],"or",[false,3,[0,[0,8,false],null],1930.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 OR YEAR > 1930","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR","<","1885","OR","YEAR",">","1930"],"query_toks_no_value":["select","distinct","location","from","paintings","where","year","<","value","or","year",">","value"],"question":"Quais locais têm obras pintadas antes de 1885 ou depois de 1930?","question_toks":["Quais","locais","têm","obras","pintadas","antes","de","1885","ou","depois","de","1930","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1885.0,null],"or",[false,3,[0,[0,8,false],null],1930.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID FROM paintings WHERE height_mm > 500 AND height_mm < 2000","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","height_mm",">","500","AND","height_mm","<","2000"],"query_toks_no_value":["select","paintingid","from","paintings","where","height_mm",">","value","and","height_mm","<","value"],"question":"Encontre os ids das pinturas cuja altura é maior que 500 e menor que 2000.","question_toks":["Encontre","os","ids","das","pinturas","cuja","altura","é","maior","que","500","e","menor","que","2000","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,9,false],null],500.0,null],"and",[false,4,[0,[0,9,false],null],2000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID FROM paintings WHERE height_mm > 500 AND height_mm < 2000","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","height_mm",">","500","AND","height_mm","<","2000"],"query_toks_no_value":["select","paintingid","from","paintings","where","height_mm",">","value","and","height_mm","<","value"],"question":"Quais são os ids das pinturas que são mais altas que 500 e mais baixas que 2000?","question_toks":["Quais","são","os","ids","das","pinturas","que","são","mais","altas","que","500","e","mais","baixas","que","2000","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,9,false],null],500.0,null],"and",[false,4,[0,[0,9,false],null],2000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn = \"panel\" INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn = \"canvas\"","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","mediumOn","=","``","panel","''","INTERSECT","SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","mediumOn","=","``","canvas","''"],"query_toks_no_value":["select","distinct","location","from","paintings","where","mediumon","=","value","intersect","select","distinct","location","from","paintings","where","mediumon","=","value"],"question":"Quais locais têm pinturas nos pintada sobre panel e canvas?","question_toks":["Quais","locais","têm","pinturas","nos","pintada","sobre","panel","e","canvas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"panel\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"canvas\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn = \"panel\" INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE mediumOn = \"canvas\"","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","mediumOn","=","``","panel","''","INTERSECT","SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","mediumOn","=","``","canvas","''"],"query_toks_no_value":["select","distinct","location","from","paintings","where","mediumon","=","value","intersect","select","distinct","location","from","paintings","where","mediumon","=","value"],"question":"Quais são os locais que têm pinturas pintadas sobre panel e canvas?","question_toks":["Quais","são","os","locais","que","têm","pinturas","pintadas","sobre","panel","e","canvas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"panel\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"canvas\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE YEAR > 1930","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR","<","1885","INTERSECT","SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR",">","1930"],"query_toks_no_value":["select","distinct","location","from","paintings","where","year","<","value","intersect","select","distinct","location","from","paintings","where","year",">","value"],"question":"Encontre os locais que têm pinturas criadas antes de 1885 e depois de 1930.","question_toks":["Encontre","os","locais","que","têm","pinturas","criadas","antes","de","1885","e","depois","de","1930","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1885.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1930.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 INTERSECT SELECT DISTINCT LOCATION FROM paintings WHERE YEAR > 1930","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR","<","1885","INTERSECT","SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR",">","1930"],"query_toks_no_value":["select","distinct","location","from","paintings","where","year","<","value","intersect","select","distinct","location","from","paintings","where","year",">","value"],"question":"Quais são os locais que têm obras pintadas antes de 1885 e depois de 1930?","question_toks":["Quais","são","os","locais","que","têm","obras","pintadas","antes","de","1885","e","depois","de","1930","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1885.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1930.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"art_1","query":"SELECT avg(height_mm) , avg(width_mm) FROM paintings WHERE medium = \"oil\" AND LOCATION = \"Gallery 241\"","query_toks":["SELECT","avg","(","height_mm",")",",","avg","(","width_mm",")","FROM","paintings","WHERE","medium","=","``","oil","''","AND","LOCATION","=","``","Gallery","241","''"],"query_toks_no_value":["select","avg","(","height_mm",")",",","avg","(","width_mm",")","from","paintings","where","medium","=","value","and","location","=","value"],"question":"Quais são a altura e a largura médias das pinturas que usam o material para pintar oil e que se localizam na gallery 241?","question_toks":["Quais","são","a","altura","e","a","largura","médias","das","pinturas","que","usam","o","material","para","pintar","oil","e","que","se","localizam","na","gallery","241","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,9,false],null]],[5,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null],"and",[false,2,[0,[0,13,false],null],"\"Gallery 241\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT avg(height_mm) , avg(width_mm) FROM paintings WHERE medium = \"oil\" AND LOCATION = \"Gallery 241\"","query_toks":["SELECT","avg","(","height_mm",")",",","avg","(","width_mm",")","FROM","paintings","WHERE","medium","=","``","oil","''","AND","LOCATION","=","``","Gallery","241","''"],"query_toks_no_value":["select","avg","(","height_mm",")",",","avg","(","width_mm",")","from","paintings","where","medium","=","value","and","location","=","value"],"question":"Qual é a altura e largura média das pinturas que usam o material para pintar oil e que se localizam na gallery 241?","question_toks":["Qual","é","a","altura","e","largura","média","das","pinturas","que","usam","o","material","para","pintar","oil","e","que","se","localizam","na","gallery","241","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,9,false],null]],[5,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null],"and",[false,2,[0,[0,13,false],null],"\"Gallery 241\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT max(height_mm) , paintingID FROM paintings WHERE YEAR < 1900","query_toks":["SELECT","max","(","height_mm",")",",","paintingID","FROM","paintings","WHERE","YEAR","<","1900"],"query_toks_no_value":["select","max","(","height_mm",")",",","paintingid","from","paintings","where","year","<","value"],"question":"Quais são a altura máxima e o id das pinturas feitas antes de 1900?","question_toks":["Quais","são","a","altura","máxima","e","o","id","das","pinturas","feitas","antes","de","1900","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,9,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1900.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT max(height_mm) , paintingID FROM paintings WHERE YEAR < 1900","query_toks":["SELECT","max","(","height_mm",")",",","paintingID","FROM","paintings","WHERE","YEAR","<","1900"],"query_toks_no_value":["select","max","(","height_mm",")",",","paintingid","from","paintings","where","year","<","value"],"question":"Qual é a altura e o id da pintura mais alta criada antes de 1900?","question_toks":["Qual","é","a","altura","e","o","id","da","pintura","mais","alta","criada","antes","de","1900","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,9,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1900.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT max(height_mm) , max(width_mm) , YEAR FROM paintings GROUP BY YEAR ORDER BY YEAR","query_toks":["SELECT","max","(","height_mm",")",",","max","(","width_mm",")",",","YEAR","FROM","paintings","GROUP","BY","YEAR","ORDER","BY","YEAR"],"query_toks_no_value":["select","max","(","height_mm",")",",","max","(","width_mm",")",",","year","from","paintings","group","by","year","order","by","year"],"question":"Quais são a altura e a largura máximas das pinturas para cada ano?","question_toks":["Quais","são","a","altura","e","a","largura","máximas","das","pinturas","para","cada","ano","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,9,false],null]],[1,[0,[0,10,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT max(height_mm) , max(width_mm) , YEAR FROM paintings GROUP BY YEAR ORDER BY YEAR","query_toks":["SELECT","max","(","height_mm",")",",","max","(","width_mm",")",",","YEAR","FROM","paintings","GROUP","BY","YEAR","ORDER","BY","YEAR"],"query_toks_no_value":["select","max","(","height_mm",")",",","max","(","width_mm",")",",","year","from","paintings","group","by","year","order","by","year"],"question":"Quais são as maiores dimensões de altura e largura para pinturas em cada ano?","question_toks":["Quais","são","as","maiores","dimensões","de","altura","e","largura","para","pinturas","em","cada","ano","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,9,false],null]],[1,[0,[0,10,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT avg(height_mm) , avg(width_mm) , painterID FROM paintings GROUP BY painterID ORDER BY title","query_toks":["SELECT","avg","(","height_mm",")",",","avg","(","width_mm",")",",","painterID","FROM","paintings","GROUP","BY","painterID","ORDER","BY","title"],"query_toks_no_value":["select","avg","(","height_mm",")",",","avg","(","width_mm",")",",","painterid","from","paintings","group","by","painterid","order","by","title"],"question":"Quais são a altura e a largura médias das pinturas agrupadas por pintores e ordenadas por nome?","question_toks":["Quais","são","a","altura","e","a","largura","médias","das","pinturas","agrupadas","por","pintores","e","ordenadas","por","nome","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,9,false],null]],[5,[0,[0,10,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT avg(height_mm) , avg(width_mm) , painterID FROM paintings GROUP BY painterID ORDER BY title","query_toks":["SELECT","avg","(","height_mm",")",",","avg","(","width_mm",")",",","painterID","FROM","paintings","GROUP","BY","painterID","ORDER","BY","title"],"query_toks_no_value":["select","avg","(","height_mm",")",",","avg","(","width_mm",")",",","painterid","from","paintings","group","by","painterid","order","by","title"],"question":"Encontre a altura e largura médias das pinturas agrupadas por pintores e ordenadas por nome.","question_toks":["Encontre","a","altura","e","largura","médias","das","pinturas","agrupadas","por","pintores","e","ordenadas","por","nome","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,9,false],null]],[5,[0,[0,10,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.fname , count(*) FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID GROUP BY T2.painterID HAVING count(*) >= 2","query_toks":["SELECT","T1.fname",",","count","(","*",")","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","GROUP","BY","T2.painterID","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","fname",",","count","(","*",")","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","group","by","t2",".","painterid","having","count","(","*",")",">","=","value"],"question":"Encontre os primeiros nomes e o número de obras de todos os artistas que têm pelo menos duas pinturas.","question_toks":["Encontre","os","primeiros","nomes","e","o","número","de","obras","de","todos","os","artistas","que","têm","pelo","menos","duas","pinturas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.fname , count(*) FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID GROUP BY T2.painterID HAVING count(*) >= 2","query_toks":["SELECT","T1.fname",",","count","(","*",")","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","GROUP","BY","T2.painterID","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","fname",",","count","(","*",")","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","group","by","t2",".","painterid","having","count","(","*",")",">","=","value"],"question":"Quais são os primeiros nomes de todos os artistas que têm pelo menos duas pinturas, e quantas obras cada um criou?","question_toks":["Quais","são","os","primeiros","nomes","de","todos","os","artistas","que","têm","pelo","menos","duas","pinturas",",","e","quantas","obras","cada","um","criou","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.deathYear FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID GROUP BY T2.painterID HAVING count(*) <= 3","query_toks":["SELECT","T1.deathYear","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","GROUP","BY","T2.painterID","HAVING","count","(","*",")","<","=","3"],"query_toks_no_value":["select","t1",".","deathyear","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","group","by","t2",".","painterid","having","count","(","*",")","<","=","value"],"question":"Encontre o ano de morte de todos os artistas que têm no máximo 3 pinturas.","question_toks":["Encontre","o","ano","de","morte","de","todos","os","artistas","que","têm","no","máximo","3","pinturas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,6,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"select t1.deathyear from artists as t1 join paintings as t2 on t1.artistid = t2.painterid group by t2.painterid having count(*) < 4","query_toks":["select","t1.deathyear","from","artists","as","t1","join","paintings","as","t2","on","t1.artistid","=","t2.painterid","group","by","t2.painterid","having","count","(","*",")","<","4"],"query_toks_no_value":["select","t1",".","deathyear","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","group","by","t2",".","painterid","having","count","(","*",")","<","value"],"question":"Quando cada artista que criou menos de 4 pinturas morreu?","question_toks":["Quando","cada","artista","que","criou","menos","de","4","pinturas","morreu","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,4,[0,[3,0,false],null],4.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.deathYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) LIMIT 1","query_toks":["SELECT","T1.deathYear","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","GROUP","BY","T2.sculptorID","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","t1",".","deathyear","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","group","by","t2",".","sculptorid","order","by","count","(","*",")","limit","value"],"question":"Encontre o ano de morte do artista que fez o menor número de esculturas.","question_toks":["Encontre","o","ano","de","morte","do","artista","que","fez","o","menor","número","de","esculturas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.deathYear FROM artists AS T1 JOIN sculptures AS T2 ON T1.artistID = T2.sculptorID GROUP BY T2.sculptorID ORDER BY count(*) LIMIT 1","query_toks":["SELECT","T1.deathYear","FROM","artists","AS","T1","JOIN","sculptures","AS","T2","ON","T1.artistID","=","T2.sculptorID","GROUP","BY","T2.sculptorID","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","t1",".","deathyear","from","artists","as","t1","join","sculptures","as","t2","on","t1",".","artistid","=","t2",".","sculptorid","group","by","t2",".","sculptorid","order","by","count","(","*",")","limit","value"],"question":"Quando morreu o artista que fez menos esculturas?","question_toks":["Quando","morreu","o","artista","que","fez","menos","esculturas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,20,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID , height_mm FROM paintings WHERE LOCATION = 'Gallery 240' ORDER BY width_mm DESC LIMIT 1","query_toks":["SELECT","paintingID",",","height_mm","FROM","paintings","WHERE","LOCATION","=","'Gallery","240","'","ORDER","BY","width_mm","DESC","LIMIT","1"],"query_toks_no_value":["select","paintingid",",","height_mm","from","paintings","where","location","=","value","order","by","width_mm","desc","limit","value"],"question":"Quais são o id e a altura da pintura com a maior largura na gallery 240?","question_toks":["Quais","são","o","id","e","a","altura","da","pintura","com","a","maior","largura","na","gallery","240","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID , height_mm FROM paintings WHERE LOCATION = 'Gallery 240' ORDER BY width_mm DESC LIMIT 1","query_toks":["SELECT","paintingID",",","height_mm","FROM","paintings","WHERE","LOCATION","=","'Gallery","240","'","ORDER","BY","width_mm","DESC","LIMIT","1"],"query_toks_no_value":["select","paintingid",",","height_mm","from","paintings","where","location","=","value","order","by","width_mm","desc","limit","value"],"question":"Diga-me a altura e o número de identificação da pintura mais larga na gallery 240.","question_toks":["Diga-me","a","altura","e","o","número","de","identificação","da","pintura","mais","larga","na","gallery","240","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID FROM paintings WHERE YEAR < (SELECT min(YEAR) FROM paintings WHERE LOCATION = 'Gallery 240')","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","YEAR","<","(","SELECT","min","(","YEAR",")","FROM","paintings","WHERE","LOCATION","=","'Gallery","240","'",")"],"query_toks_no_value":["select","paintingid","from","paintings","where","year","<","(","select","min","(","year",")","from","paintings","where","location","=","value",")"],"question":"Quais são os ids das pinturas criadas antes de todas as pinturas na gallery 240?","question_toks":["Quais","são","os","ids","das","pinturas","criadas","antes","de","todas","as","pinturas","na","gallery","240","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"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":"art_1","query":"SELECT paintingID FROM paintings WHERE YEAR < (SELECT min(YEAR) FROM paintings WHERE LOCATION = 'Gallery 240')","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","YEAR","<","(","SELECT","min","(","YEAR",")","FROM","paintings","WHERE","LOCATION","=","'Gallery","240","'",")"],"query_toks_no_value":["select","paintingid","from","paintings","where","year","<","(","select","min","(","year",")","from","paintings","where","location","=","value",")"],"question":"Qual é o id de cada pintura criada antes da pintura mais antiga na gallery 240?","question_toks":["Qual","é","o","id","de","cada","pintura","criada","antes","da","pintura","mais","antiga","na","gallery","240","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,4,[0,[0,8,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Gallery 240\"",null]],"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":"art_1","query":"SELECT paintingID FROM paintings WHERE height_mm > (SELECT max(height_mm) FROM paintings WHERE YEAR > 1900)","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","height_mm",">","(","SELECT","max","(","height_mm",")","FROM","paintings","WHERE","YEAR",">","1900",")"],"query_toks_no_value":["select","paintingid","from","paintings","where","height_mm",">","(","select","max","(","height_mm",")","from","paintings","where","year",">","value",")"],"question":"Quais são os ids das pinturas cuja altura é maior do que a altura de todas as pinturas criadas após 1900?","question_toks":["Quais","são","os","ids","das","pinturas","cuja","altura","é","maior","do","que","a","altura","de","todas","as","pinturas","criadas","após","1900","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1900.0,null]],"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":"art_1","query":"SELECT paintingID FROM paintings WHERE height_mm > (SELECT max(height_mm) FROM paintings WHERE YEAR > 1900)","query_toks":["SELECT","paintingID","FROM","paintings","WHERE","height_mm",">","(","SELECT","max","(","height_mm",")","FROM","paintings","WHERE","YEAR",">","1900",")"],"query_toks_no_value":["select","paintingid","from","paintings","where","height_mm",">","(","select","max","(","height_mm",")","from","paintings","where","year",">","value",")"],"question":"Liste os ids de todas as pinturas que são mais altas do que a pintura mais alta criada após 1900.","question_toks":["Liste","os","ids","de","todas","as","pinturas","que","são","mais","altas","do","que","a","pintura","mais","alta","criada","após","1900","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,9,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,9,false],null]]]],"where":[[false,3,[0,[0,8,false],null],1900.0,null]],"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":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = \"oil\" GROUP BY T2.painterID ORDER BY count(*) DESC LIMIT 3","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.medium","=","``","oil","''","GROUP","BY","T2.painterID","ORDER","BY","count","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","medium","=","value","group","by","t2",".","painterid","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre os 3 artistas com o maior número de obras de pintura cujo material de pintar é oil.","question_toks":["Encontre","os","3","artistas","com","o","maior","número","de","obras","de","pintura","cujo","material","de","pintar","é","oil","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID WHERE T2.medium = \"oil\" GROUP BY T2.painterID ORDER BY count(*) DESC LIMIT 3","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","WHERE","T2.medium","=","``","oil","''","GROUP","BY","T2.painterID","ORDER","BY","count","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","where","t2",".","medium","=","value","group","by","t2",".","painterid","order","by","count","(","*",")","desc","limit","value"],"question":"Quais artistas têm mais pinturas com oil?","question_toks":["Quais","artistas","têm","mais","pinturas","com","oil","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[[0,14,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID , title , LOCATION FROM paintings WHERE medium = \"oil\" ORDER BY YEAR","query_toks":["SELECT","paintingID",",","title",",","LOCATION","FROM","paintings","WHERE","medium","=","``","oil","''","ORDER","BY","YEAR"],"query_toks_no_value":["select","paintingid",",","title",",","location","from","paintings","where","medium","=","value","order","by","year"],"question":"Liste o id da pintura, a localização e o título das pinturas com material para pintar oil ordenadas por ano.","question_toks":["Liste","o","id","da","pintura",",","a","localização","e","o","título","das","pinturas","com","material","para","pintar","oil","ordenadas","por","ano","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT paintingID , title , LOCATION FROM paintings WHERE medium = \"oil\" ORDER BY YEAR","query_toks":["SELECT","paintingID",",","title",",","LOCATION","FROM","paintings","WHERE","medium","=","``","oil","''","ORDER","BY","YEAR"],"query_toks_no_value":["select","paintingid",",","title",",","location","from","paintings","where","medium","=","value","order","by","year"],"question":"Ordene todas as pinturas pintadas com oil pela data de criação e liste seus ids, locais e títulos.","question_toks":["Ordene","todas","as","pinturas","pintadas","com","oil","pela","data","de","criação","e","liste","seus","ids",",","locais","e","títulos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"oil\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , LOCATION , YEAR FROM paintings WHERE height_mm > 1000 ORDER BY title","query_toks":["SELECT","title",",","LOCATION",",","YEAR","FROM","paintings","WHERE","height_mm",">","1000","ORDER","BY","title"],"query_toks_no_value":["select","title",",","location",",","year","from","paintings","where","height_mm",">","value","order","by","title"],"question":"Liste o ano, a localização e o título das pinturas cuja altura é superior a 1000, ordenadas pelo título.","question_toks":["Liste","o","ano",",","a","localização","e","o","título","das","pinturas","cuja","altura","é","superior","a","1000",",","ordenadas","pelo","título","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,8,false],null]]]],"where":[[false,3,[0,[0,9,false],null],1000.0,null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT title , LOCATION , YEAR FROM paintings WHERE height_mm > 1000 ORDER BY title","query_toks":["SELECT","title",",","LOCATION",",","YEAR","FROM","paintings","WHERE","height_mm",">","1000","ORDER","BY","title"],"query_toks_no_value":["select","title",",","location",",","year","from","paintings","where","height_mm",">","value","order","by","title"],"question":"Liste o ano, a localização e o nome de todas as pinturas que têm mais de 1000 mm de altura em ordem alfabética.","question_toks":["Liste","o","ano",",","a","localização","e","o","nome","de","todas","as","pinturas","que","têm","mais","de","1000","mm","de","altura","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,8,false],null]]]],"where":[[false,3,[0,[0,9,false],null],1000.0,null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID EXCEPT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID = T4.sculptorID","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","EXCEPT","SELECT","T3.lname",",","T3.fname","FROM","artists","AS","T3","JOIN","sculptures","AS","T4","ON","T3.artistID","=","T4.sculptorID"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","except","select","t3",".","lname",",","t3",".","fname","from","artists","as","t3","join","sculptures","as","t4","on","t3",".","artistid","=","t4",".","sculptorid"],"question":"Encontre o nome e sobrenome dos artistas que têm pinturas, mas não têm obras em escultura.","question_toks":["Encontre","o","nome","e","sobrenome","dos","artistas","que","têm","pinturas",",","mas","não","têm","obras","em","escultura","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"art_1","query":"SELECT T1.lname , T1.fname FROM artists AS T1 JOIN paintings AS T2 ON T1.artistID = T2.painterID EXCEPT SELECT T3.lname , T3.fname FROM artists AS T3 JOIN sculptures AS T4 ON T3.artistID = T4.sculptorID","query_toks":["SELECT","T1.lname",",","T1.fname","FROM","artists","AS","T1","JOIN","paintings","AS","T2","ON","T1.artistID","=","T2.painterID","EXCEPT","SELECT","T3.lname",",","T3.fname","FROM","artists","AS","T3","JOIN","sculptures","AS","T4","ON","T3.artistID","=","T4.sculptorID"],"query_toks_no_value":["select","t1",".","lname",",","t1",".","fname","from","artists","as","t1","join","paintings","as","t2","on","t1",".","artistid","=","t2",".","painterid","except","select","t3",".","lname",",","t3",".","fname","from","artists","as","t3","join","sculptures","as","t4","on","t3",".","artistid","=","t4",".","sculptorid"],"question":"Quais são os nomes e sobrenomes dos artistas que não esculpiram, mas puderam pintar?","question_toks":["Quais","são","os","nomes","e","sobrenomes","dos","artistas","que","não","esculpiram",",","mas","puderam","pintar","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,20,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 AND mediumOn != \"canvas\"","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR","<","1885","AND","mediumOn","!","=","``","canvas","''"],"query_toks_no_value":["select","distinct","location","from","paintings","where","year","<","value","and","mediumon","!","=","value"],"question":"Encontre as localizações que têm pinturas antes de 1885 e nenhuma obra pintada sobre canvas.","question_toks":["Encontre","as","localizações","que","têm","pinturas","antes","de","1885","e","nenhuma","obra","pintada","sobre","canvas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1885.0,null],"and",[false,7,[0,[0,12,false],null],"\"canvas\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"art_1","query":"SELECT DISTINCT LOCATION FROM paintings WHERE YEAR < 1885 AND mediumOn != \"canvas\"","query_toks":["SELECT","DISTINCT","LOCATION","FROM","paintings","WHERE","YEAR","<","1885","AND","mediumOn","!","=","``","canvas","''"],"query_toks_no_value":["select","distinct","location","from","paintings","where","year","<","value","and","mediumon","!","=","value"],"question":"Onde você tem pinturas que foram criadas antes de 1885 e que não estão sobre canvas?","question_toks":["Onde","você","tem","pinturas","que","foram","criadas","antes","de","1885","e","que","não","estão","sobre","canvas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,4,[0,[0,8,false],null],1885.0,null],"and",[false,7,[0,[0,12,false],null],"\"canvas\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT count(*) FROM race","query_toks":["SELECT","count","(","*",")","FROM","race"],"query_toks_no_value":["select","count","(","*",")","from","race"],"question":"Conte quantas corridas existem.","question_toks":["Conte","quantas","corridas","existem","."],"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":"car_road_race","query":"SELECT count(*) FROM race","query_toks":["SELECT","count","(","*",")","FROM","race"],"query_toks_no_value":["select","count","(","*",")","from","race"],"question":"Conte o número de corridas.","question_toks":["Conte","o","número","de","corridas","."],"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":"car_road_race","query":"SELECT Winning_driver , Winning_team FROM race ORDER BY Winning_team ASC","query_toks":["SELECT","Winning_driver",",","Winning_team","FROM","race","ORDER","BY","Winning_team","ASC"],"query_toks_no_value":["select","winning_driver",",","winning_team","from","race","order","by","winning_team","asc"],"question":"Liste os pilotos vencedores e as equipes vencedoras das corridas em ordem alfabética ascendente da equipe vencedora.","question_toks":["Liste","os","pilotos","vencedores","e","as","equipes","vencedoras","das","corridas","em","ordem","alfabética","ascendente","da","equipe","vencedora","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,14,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Winning_driver , Winning_team FROM race ORDER BY Winning_team ASC","query_toks":["SELECT","Winning_driver",",","Winning_team","FROM","race","ORDER","BY","Winning_team","ASC"],"query_toks_no_value":["select","winning_driver",",","winning_team","from","race","order","by","winning_team","asc"],"question":"Quais são os pilotos e equipes vencedores das corridas, ordenados alfabeticamente pela equipe?","question_toks":["Quais","são","os","pilotos","e","equipes","vencedores","das","corridas",",","ordenados","alfabeticamente","pela","equipe","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,14,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Winning_driver FROM race WHERE Pole_Position != 'Junior Strous'","query_toks":["SELECT","Winning_driver","FROM","race","WHERE","Pole_Position","!","=","'Junior","Strous","'"],"query_toks_no_value":["select","winning_driver","from","race","where","pole_position","!","=","value"],"question":"Quais vencedores de corridas tiveram pole position que não é \"Junior Strous\"?","question_toks":["Quais","vencedores","de","corridas","tiveram","pole","position","que","não","é","``","Junior","Strous","''","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,7,[0,[0,11,false],null],"\"Junior Strous\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Winning_driver FROM race WHERE Pole_Position != 'Junior Strous'","query_toks":["SELECT","Winning_driver","FROM","race","WHERE","Pole_Position","!","=","'Junior","Strous","'"],"query_toks_no_value":["select","winning_driver","from","race","where","pole_position","!","=","value"],"question":"Retorne os pilotos vencedores das corridas que não tiveram a pole position de Junior Strous.","question_toks":["Retorne","os","pilotos","vencedores","das","corridas","que","não","tiveram","a","pole","position","de","Junior","Strous","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,7,[0,[0,11,false],null],"\"Junior Strous\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT DISTINCT CONSTRUCTOR FROM driver ORDER BY Age ASC","query_toks":["SELECT","DISTINCT","CONSTRUCTOR","FROM","driver","ORDER","BY","Age","ASC"],"query_toks_no_value":["select","distinct","constructor","from","driver","order","by","age","asc"],"question":"Quem são os construtores dos pilotos ordenados pela idade dos pilotos em ordem crescente?","question_toks":["Quem","são","os","construtores","dos","pilotos","ordenados","pela","idade","dos","pilotos","em","ordem","crescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT DISTINCT CONSTRUCTOR FROM driver ORDER BY Age ASC","query_toks":["SELECT","DISTINCT","CONSTRUCTOR","FROM","driver","ORDER","BY","Age","ASC"],"query_toks_no_value":["select","distinct","constructor","from","driver","order","by","age","asc"],"question":"Retorne os diferentes construtores de pilotos, ordenados por idade em ordem crescente.","question_toks":["Retorne","os","diferentes","construtores","de","pilotos",",","ordenados","por","idade","em","ordem","crescente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT DISTINCT Entrant FROM driver WHERE Age >= 20","query_toks":["SELECT","DISTINCT","Entrant","FROM","driver","WHERE","Age",">","=","20"],"query_toks_no_value":["select","distinct","entrant","from","driver","where","age",">","=","value"],"question":"Quais são os tipos distintos de participantes de motoristas com 20 anos ou mais?","question_toks":["Quais","são","os","tipos","distintos","de","participantes","de","motoristas","com","20","anos","ou","mais","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,3,false],null]]]],"where":[[false,5,[0,[0,7,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT DISTINCT Entrant FROM driver WHERE Age >= 20","query_toks":["SELECT","DISTINCT","Entrant","FROM","driver","WHERE","Age",">","=","20"],"query_toks_no_value":["select","distinct","entrant","from","driver","where","age",">","=","value"],"question":"Dê os diferentes tipos de participantes para motoristas com pelo menos 20 anos.","question_toks":["Dê","os","diferentes","tipos","de","participantes","para","motoristas","com","pelo","menos","20","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,3,false],null]]]],"where":[[false,5,[0,[0,7,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT max(Age) , min(Age) FROM driver","query_toks":["SELECT","max","(","Age",")",",","min","(","Age",")","FROM","driver"],"query_toks_no_value":["select","max","(","age",")",",","min","(","age",")","from","driver"],"question":"Quais são a idade máxima e mínima dos motoristas?","question_toks":["Quais","são","a","idade","máxima","e","mínima","dos","motoristas","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT max(Age) , min(Age) FROM driver","query_toks":["SELECT","max","(","Age",")",",","min","(","Age",")","FROM","driver"],"query_toks_no_value":["select","max","(","age",")",",","min","(","age",")","from","driver"],"question":"Retorne a idade máxima e mínima entre os motoristas.","question_toks":["Retorne","a","idade","máxima","e","mínima","entre","os","motoristas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT count(DISTINCT Engine) FROM driver WHERE Age > 30 OR Age < 20","query_toks":["SELECT","count","(","DISTINCT","Engine",")","FROM","driver","WHERE","Age",">","30","OR","Age","<","20"],"query_toks_no_value":["select","count","(","distinct","engine",")","from","driver","where","age",">","value","or","age","<","value"],"question":"Quantos motores diferentes são usados por motoristas com idade superior a 30 ou inferior a 20?","question_toks":["Quantos","motores","diferentes","são","usados","por","motoristas","com","idade","superior","a","30","ou","inferior","a","20","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,6,true],null]]]],"where":[[false,3,[0,[0,7,false],null],30.0,null],"or",[false,4,[0,[0,7,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT count(DISTINCT Engine) FROM driver WHERE Age > 30 OR Age < 20","query_toks":["SELECT","count","(","DISTINCT","Engine",")","FROM","driver","WHERE","Age",">","30","OR","Age","<","20"],"query_toks_no_value":["select","count","(","distinct","engine",")","from","driver","where","age",">","value","or","age","<","value"],"question":"Conte o número de motores diferentes usados por motoristas que tinham uma idade superior a 30 ou inferior a 20.","question_toks":["Conte","o","número","de","motores","diferentes","usados","por","motoristas","que","tinham","uma","idade","superior","a","30","ou","inferior","a","20","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,6,true],null]]]],"where":[[false,3,[0,[0,7,false],null],30.0,null],"or",[false,4,[0,[0,7,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver ORDER BY Driver_Name DESC","query_toks":["SELECT","Driver_Name","FROM","driver","ORDER","BY","Driver_Name","DESC"],"query_toks_no_value":["select","driver_name","from","driver","order","by","driver_name","desc"],"question":"Liste todos os nomes dos motoristas em ordem alfabética decrescente.","question_toks":["Liste","todos","os","nomes","dos","motoristas","em","ordem","alfabética","decrescente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver ORDER BY Driver_Name DESC","query_toks":["SELECT","Driver_Name","FROM","driver","ORDER","BY","Driver_Name","DESC"],"query_toks_no_value":["select","driver_name","from","driver","order","by","driver_name","desc"],"question":"Quais são os nomes dos motoristas, ordenados em ordem alfabética decrescente?","question_toks":["Quais","são","os","nomes","dos","motoristas",",","ordenados","em","ordem","alfabética","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name , T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID","query_toks":["SELECT","T1.Driver_Name",",","T2.Race_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID"],"query_toks_no_value":["select","t1",".","driver_name",",","t2",".","race_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id"],"question":"Mostre os nomes dos pilotos e os nomes das corridas em que eles participam.","question_toks":["Mostre","os","nomes","dos","pilotos","e","os","nomes","das","corridas","em","que","eles","participam","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name , T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID","query_toks":["SELECT","T1.Driver_Name",",","T2.Race_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID"],"query_toks_no_value":["select","t1",".","driver_name",",","t2",".","race_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id"],"question":"Quais são os nomes dos pilotos e os nomes das corridas em que participaram?","question_toks":["Quais","são","os","nomes","dos","pilotos","e","os","nomes","das","corridas","em","que","participaram","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name , COUNT(*) FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID","query_toks":["SELECT","T1.Driver_Name",",","COUNT","(","*",")","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","GROUP","BY","T1.Driver_ID"],"query_toks_no_value":["select","t1",".","driver_name",",","count","(","*",")","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","group","by","t1",".","driver_id"],"question":"Por favor, mostre os nomes dos pilotos e o número de corridas em que eles participam.","question_toks":["Por","favor",",","mostre","os","nomes","dos","pilotos","e","o","número","de","corridas","em","que","eles","participam","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name , COUNT(*) FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID","query_toks":["SELECT","T1.Driver_Name",",","COUNT","(","*",")","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","GROUP","BY","T1.Driver_ID"],"query_toks_no_value":["select","t1",".","driver_name",",","count","(","*",")","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","group","by","t1",".","driver_id"],"question":"Quantas corridas cada piloto participou?","question_toks":["Quantas","corridas","cada","piloto","participou","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T1.Age","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","GROUP","BY","T1.Driver_ID","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","age","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","group","by","t1",".","driver_id","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre a idade do piloto que participou do maior número de corridas.","question_toks":["Mostre","a","idade","do","piloto","que","participou","do","maior","número","de","corridas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T1.Age","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","GROUP","BY","T1.Driver_ID","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","age","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","group","by","t1",".","driver_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é a idade do piloto que participou do maior número de corridas?","question_toks":["Qual","é","a","idade","do","piloto","que","participou","do","maior","número","de","corridas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name , T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID HAVING COUNT(*) >= 2","query_toks":["SELECT","T1.Driver_Name",",","T1.Age","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","GROUP","BY","T1.Driver_ID","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","driver_name",",","t1",".","age","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","group","by","t1",".","driver_id","having","count","(","*",")",">","=","value"],"question":"Mostre os nomes e as idades dos pilotos que participaram de pelo menos duas corridas.","question_toks":["Mostre","os","nomes","e","as","idades","dos","pilotos","que","participaram","de","pelo","menos","duas","corridas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name , T1.Age FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID GROUP BY T1.Driver_ID HAVING COUNT(*) >= 2","query_toks":["SELECT","T1.Driver_Name",",","T1.Age","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","GROUP","BY","T1.Driver_ID","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","driver_name",",","t1",".","age","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","group","by","t1",".","driver_id","having","count","(","*",")",">","=","value"],"question":"Quais são os nomes e idades dos pilotos que correram em duas ou mais corridas?","question_toks":["Quais","são","os","nomes","e","idades","dos","pilotos","que","correram","em","duas","ou","mais","corridas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE T1.Age >= 26","query_toks":["SELECT","T2.Race_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","T1.Age",">","=","26"],"query_toks_no_value":["select","t2",".","race_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","t1",".","age",">","=","value"],"question":"Liste os nomes das corridas com pilotos com 26 anos ou mais participando.","question_toks":["Liste","os","nomes","das","corridas","com","pilotos","com","26","anos","ou","mais","participando","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,5,[0,[0,7,false],null],26.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T2.Race_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE T1.Age >= 26","query_toks":["SELECT","T2.Race_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","T1.Age",">","=","26"],"query_toks_no_value":["select","t2",".","race_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","t1",".","age",">","=","value"],"question":"Quais são os nomes das corridas em que pilotos com 26 anos ou mais participaram?","question_toks":["Quais","são","os","nomes","das","corridas","em","que","pilotos","com","26","anos","ou","mais","participaram","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,5,[0,[0,7,false],null],26.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver WHERE CONSTRUCTOR != \"Bugatti\"","query_toks":["SELECT","Driver_Name","FROM","driver","WHERE","CONSTRUCTOR","!","=","``","Bugatti","''"],"query_toks_no_value":["select","driver_name","from","driver","where","constructor","!","=","value"],"question":"Liste os nomes dos pilotos cujo construtor não é \"Bugatti\".","question_toks":["Liste","os","nomes","dos","pilotos","cujo","construtor","não","é","``","Bugatti","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,7,[0,[0,4,false],null],"\"Bugatti\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver WHERE CONSTRUCTOR != \"Bugatti\"","query_toks":["SELECT","Driver_Name","FROM","driver","WHERE","CONSTRUCTOR","!","=","``","Bugatti","''"],"query_toks_no_value":["select","driver_name","from","driver","where","constructor","!","=","value"],"question":"Quais são os nomes dos pilotos que não tiveram o construtor Bugatti?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","não","tiveram","o","construtor","Bugatti","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,7,[0,[0,4,false],null],"\"Bugatti\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT CONSTRUCTOR , COUNT(*) FROM driver GROUP BY CONSTRUCTOR","query_toks":["SELECT","CONSTRUCTOR",",","COUNT","(","*",")","FROM","driver","GROUP","BY","CONSTRUCTOR"],"query_toks_no_value":["select","constructor",",","count","(","*",")","from","driver","group","by","constructor"],"question":"Liste os diferentes construtores e o número de pilotos que utilizam cada construtor.","question_toks":["Liste","os","diferentes","construtores","e","o","número","de","pilotos","que","utilizam","cada","construtor","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT CONSTRUCTOR , COUNT(*) FROM driver GROUP BY CONSTRUCTOR","query_toks":["SELECT","CONSTRUCTOR",",","COUNT","(","*",")","FROM","driver","GROUP","BY","CONSTRUCTOR"],"query_toks_no_value":["select","constructor",",","count","(","*",")","from","driver","group","by","constructor"],"question":"Quantos pilotos usam cada construtor?","question_toks":["Quantos","pilotos","usam","cada","construtor","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Engine FROM driver GROUP BY Engine ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Engine","FROM","driver","GROUP","BY","Engine","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","engine","from","driver","group","by","engine","order","by","count","(","*",")","desc","limit","value"],"question":"Liste o tipo de motor mais comum usado pelos motoristas.","question_toks":["Liste","o","tipo","de","motor","mais","comum","usado","pelos","motoristas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Engine FROM driver GROUP BY Engine ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Engine","FROM","driver","GROUP","BY","Engine","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","engine","from","driver","group","by","engine","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o tipo de motor mais comum?","question_toks":["Qual","é","o","tipo","de","motor","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Engine FROM driver GROUP BY Engine HAVING COUNT(*) >= 2","query_toks":["SELECT","Engine","FROM","driver","GROUP","BY","Engine","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","engine","from","driver","group","by","engine","having","count","(","*",")",">","=","value"],"question":"Liste os tipos de motores que são usados por pelo menos dois motoristas.","question_toks":["Liste","os","tipos","de","motores","que","são","usados","por","pelo","menos","dois","motoristas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Engine FROM driver GROUP BY Engine HAVING COUNT(*) >= 2","query_toks":["SELECT","Engine","FROM","driver","GROUP","BY","Engine","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","engine","from","driver","group","by","engine","having","count","(","*",")",">","=","value"],"question":"Quais são os tipos de motor que são usados por dois ou mais motoristas?","question_toks":["Quais","são","os","tipos","de","motor","que","são","usados","por","dois","ou","mais","motoristas","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver WHERE Driver_ID NOT IN (SELECT Driver_ID FROM race)","query_toks":["SELECT","Driver_Name","FROM","driver","WHERE","Driver_ID","NOT","IN","(","SELECT","Driver_ID","FROM","race",")"],"query_toks_no_value":["select","driver_name","from","driver","where","driver_id","not","in","(","select","driver_id","from","race",")"],"question":"Liste os nomes dos pilotos que não participam de nenhuma corrida.","question_toks":["Liste","os","nomes","dos","pilotos","que","não","participam","de","nenhuma","corrida","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver WHERE Driver_ID NOT IN (SELECT Driver_ID FROM race)","query_toks":["SELECT","Driver_Name","FROM","driver","WHERE","Driver_ID","NOT","IN","(","SELECT","Driver_ID","FROM","race",")"],"query_toks_no_value":["select","driver_name","from","driver","where","driver_id","not","in","(","select","driver_id","from","race",")"],"question":"Quais são os nomes dos pilotos que não participaram de uma corrida?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","não","participaram","de","uma","corrida","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT CONSTRUCTOR FROM driver WHERE Age < 20 INTERSECT SELECT CONSTRUCTOR FROM driver WHERE Age > 30","query_toks":["SELECT","CONSTRUCTOR","FROM","driver","WHERE","Age","<","20","INTERSECT","SELECT","CONSTRUCTOR","FROM","driver","WHERE","Age",">","30"],"query_toks_no_value":["select","constructor","from","driver","where","age","<","value","intersect","select","constructor","from","driver","where","age",">","value"],"question":"Mostre os construtores que são usados tanto por motoristas com idade inferior a 20 quanto por motoristas com idade superior a 30.","question_toks":["Mostre","os","construtores","que","são","usados","tanto","por","motoristas","com","idade","inferior","a","20","quanto","por","motoristas","com","idade","superior","a","30","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,7,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT CONSTRUCTOR FROM driver WHERE Age < 20 INTERSECT SELECT CONSTRUCTOR FROM driver WHERE Age > 30","query_toks":["SELECT","CONSTRUCTOR","FROM","driver","WHERE","Age","<","20","INTERSECT","SELECT","CONSTRUCTOR","FROM","driver","WHERE","Age",">","30"],"query_toks_no_value":["select","constructor","from","driver","where","age","<","value","intersect","select","constructor","from","driver","where","age",">","value"],"question":"Quais são os construtores utilizados por ambos os motoristas que têm menos de 20 anos e os motoristas que têm mais de 30 anos?","question_toks":["Quais","são","os","construtores","utilizados","por","ambos","os","motoristas","que","têm","menos","de","20","anos","e","os","motoristas","que","têm","mais","de","30","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,7,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Winning_team FROM race GROUP BY Winning_team HAVING count(*) > 1","query_toks":["SELECT","Winning_team","FROM","race","GROUP","BY","Winning_team","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","winning_team","from","race","group","by","winning_team","having","count","(","*",")",">","value"],"question":"Encontre os times que ganharam mais de uma vez.","question_toks":["Encontre","os","times","que","ganharam","mais","de","uma","vez","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Winning_team FROM race GROUP BY Winning_team HAVING count(*) > 1","query_toks":["SELECT","Winning_team","FROM","race","GROUP","BY","Winning_team","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","winning_team","from","race","group","by","winning_team","having","count","(","*",")",">","value"],"question":"Quais equipes ganharam mais de 1 corrida?","question_toks":["Quais","equipes","ganharam","mais","de","1","corrida","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE Pole_Position = \"Carl Skerlong\" INTERSECT SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE Pole_Position = \"James Hinchcliffe\"","query_toks":["SELECT","T1.Driver_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","Pole_Position","=","``","Carl","Skerlong","''","INTERSECT","SELECT","T1.Driver_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","Pole_Position","=","``","James","Hinchcliffe","''"],"query_toks_no_value":["select","t1",".","driver_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","pole_position","=","value","intersect","select","t1",".","driver_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","pole_position","=","value"],"question":"Encontre os nomes dos pilotos que estiveram nas pole positions de \"James Hinchcliffe\" e \"Carl Skerlong\".","question_toks":["Encontre","os","nomes","dos","pilotos","que","estiveram","nas","pole","positions","de","``","James","Hinchcliffe","''","e","``","Carl","Skerlong","''","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Carl Skerlong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"James Hinchcliffe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE Pole_Position = \"Carl Skerlong\" INTERSECT SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE Pole_Position = \"James Hinchcliffe\"","query_toks":["SELECT","T1.Driver_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","Pole_Position","=","``","Carl","Skerlong","''","INTERSECT","SELECT","T1.Driver_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","Pole_Position","=","``","James","Hinchcliffe","''"],"query_toks_no_value":["select","t1",".","driver_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","pole_position","=","value","intersect","select","t1",".","driver_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","pole_position","=","value"],"question":"Quais são os nomes dos pilotos que tiveram tanto a pole position James Hinchcliffe quanto a pole position Carl Skerlong?","question_toks":["Quais","são","os","nomes","dos","pilotos","que","tiveram","tanto","a","pole","position","James","Hinchcliffe","quanto","a","pole","position","Carl","Skerlong","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Carl Skerlong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"James Hinchcliffe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver EXCEPT SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE Pole_Position = \"James Hinchcliffe\"","query_toks":["SELECT","Driver_Name","FROM","driver","EXCEPT","SELECT","T1.Driver_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","Pole_Position","=","``","James","Hinchcliffe","''"],"query_toks_no_value":["select","driver_name","from","driver","except","select","t1",".","driver_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","pole_position","=","value"],"question":"Encontre o nome dos pilotos que nunca estiveram na pole position de \"James Hinchcliffe\" antes.","question_toks":["Encontre","o","nome","dos","pilotos","que","nunca","estiveram","na","pole","position","de","``","James","Hinchcliffe","''","antes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"James Hinchcliffe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"car_road_race","query":"SELECT Driver_Name FROM driver EXCEPT SELECT T1.Driver_Name FROM driver AS T1 JOIN race AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE Pole_Position = \"James Hinchcliffe\"","query_toks":["SELECT","Driver_Name","FROM","driver","EXCEPT","SELECT","T1.Driver_Name","FROM","driver","AS","T1","JOIN","race","AS","T2","ON","T1.Driver_ID","=","T2.Driver_ID","WHERE","Pole_Position","=","``","James","Hinchcliffe","''"],"query_toks_no_value":["select","driver_name","from","driver","except","select","t1",".","driver_name","from","driver","as","t1","join","race","as","t2","on","t1",".","driver_id","=","t2",".","driver_id","where","pole_position","=","value"],"question":"Quais são os nomes dos pilotos, exceto aqueles que tiveram a pole position James Hinchcliffe?","question_toks":["Quais","são","os","nomes","dos","pilotos",",","exceto","aqueles","que","tiveram","a","pole","position","James","Hinchcliffe","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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,1,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"James Hinchcliffe\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"country_language","query":"SELECT count(*) FROM languages","query_toks":["SELECT","count","(","*",")","FROM","languages"],"query_toks_no_value":["select","count","(","*",")","from","languages"],"question":"Quantas línguas existem?","question_toks":["Quantas","línguas","existem","?"],"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":"country_language","query":"SELECT count(*) FROM languages","query_toks":["SELECT","count","(","*",")","FROM","languages"],"query_toks_no_value":["select","count","(","*",")","from","languages"],"question":"Conte o número de línguas.","question_toks":["Conte","o","número","de","línguas","."],"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":"country_language","query":"SELECT name FROM languages ORDER BY name ASC","query_toks":["SELECT","name","FROM","languages","ORDER","BY","name","ASC"],"query_toks_no_value":["select","name","from","languages","order","by","name","asc"],"question":"Liste o nome das línguas em ordem alfabética ascendente.","question_toks":["Liste","o","nome","das","línguas","em","ordem","alfabética","ascendente","."],"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":"country_language","query":"SELECT name FROM languages ORDER BY name ASC","query_toks":["SELECT","name","FROM","languages","ORDER","BY","name","ASC"],"query_toks_no_value":["select","name","from","languages","order","by","name","asc"],"question":"Quais são os nomes das línguas, em ordem alfabética?","question_toks":["Quais","são","os","nomes","das","línguas",",","em","ordem","alfabética","?"],"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":"country_language","query":"SELECT name FROM languages WHERE name LIKE \"%ish%\"","query_toks":["SELECT","name","FROM","languages","WHERE","name","LIKE","``","%","ish","%","''"],"query_toks_no_value":["select","name","from","languages","where","name","like","value"],"question":"Quais são os nomes das línguas que contêm a palavra \"ish\"?","question_toks":["Quais","são","os","nomes","das","línguas","que","contêm","a","palavra","``","ish","''","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%ish%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM languages WHERE name LIKE \"%ish%\"","query_toks":["SELECT","name","FROM","languages","WHERE","name","LIKE","``","%","ish","%","''"],"query_toks_no_value":["select","name","from","languages","where","name","like","value"],"question":"Retorne os nomes das línguas que contêm a substring \"ish\".","question_toks":["Retorne","os","nomes","das","línguas","que","contêm","a","substring","``","ish","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%ish%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM countries ORDER BY overall_score DESC","query_toks":["SELECT","name","FROM","countries","ORDER","BY","overall_score","DESC"],"query_toks_no_value":["select","name","from","countries","order","by","overall_score","desc"],"question":"Mostre os nomes dos países em ordem decrescente de pontuações gerais.","question_toks":["Mostre","os","nomes","dos","países","em","ordem","decrescente","de","pontuações","gerais","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM countries ORDER BY overall_score DESC","query_toks":["SELECT","name","FROM","countries","ORDER","BY","overall_score","DESC"],"query_toks_no_value":["select","name","from","countries","order","by","overall_score","desc"],"question":"Quais são os nomes dos países, ordenados em ordem decrescente pelo score geral?","question_toks":["Quais","são","os","nomes","dos","países",",","ordenados","em","ordem","decrescente","pelo","score","geral","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT avg(justice_score) FROM countries","query_toks":["SELECT","avg","(","justice_score",")","FROM","countries"],"query_toks_no_value":["select","avg","(","justice_score",")","from","countries"],"question":"Qual é a média dos índices de justiça entre os países?","question_toks":["Qual","é","a","média","dos","índices","de","justiça","entre","os","países","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT avg(justice_score) FROM countries","query_toks":["SELECT","avg","(","justice_score",")","FROM","countries"],"query_toks_no_value":["select","avg","(","justice_score",")","from","countries"],"question":"Dê a média das pontuações de justiça em todos os países.","question_toks":["Dê","a","média","das","pontuações","de","justiça","em","todos","os","países","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT max(health_score) , min(health_score) FROM countries WHERE name != \"Norway\"","query_toks":["SELECT","max","(","health_score",")",",","min","(","health_score",")","FROM","countries","WHERE","name","!","=","``","Norway","''"],"query_toks_no_value":["select","max","(","health_score",")",",","min","(","health_score",")","from","countries","where","name","!","=","value"],"question":"Quais são os escores de saúde máximo e mínimo entre os países que não são \"Norway\".","question_toks":["Quais","são","os","escores","de","saúde","máximo","e","mínimo","entre","os","países","que","não","são","``","Norway","''","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[[false,7,[0,[0,4,false],null],"\"Norway\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT max(health_score) , min(health_score) FROM countries WHERE name != \"Norway\"","query_toks":["SELECT","max","(","health_score",")",",","min","(","health_score",")","FROM","countries","WHERE","name","!","=","``","Norway","''"],"query_toks_no_value":["select","max","(","health_score",")",",","min","(","health_score",")","from","countries","where","name","!","=","value"],"question":"Retorne os maiores e menores índices de saúde entre todos os países, exceto a Norway.","question_toks":["Retorne","os","maiores","e","menores","índices","de","saúde","entre","todos","os","países",",","exceto","a","Norway","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[[false,7,[0,[0,4,false],null],"\"Norway\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT count(DISTINCT language_id) FROM official_languages","query_toks":["SELECT","count","(","DISTINCT","language_id",")","FROM","official_languages"],"query_toks_no_value":["select","count","(","distinct","language_id",")","from","official_languages"],"question":"Quantas línguas oficiais diferentes existem?","question_toks":["Quantas","línguas","oficiais","diferentes","existem","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,11,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT count(DISTINCT language_id) FROM official_languages","query_toks":["SELECT","count","(","DISTINCT","language_id",")","FROM","official_languages"],"query_toks_no_value":["select","count","(","distinct","language_id",")","from","official_languages"],"question":"Conte o número de idiomas oficiais diferentes.","question_toks":["Conte","o","número","de","idiomas","oficiais","diferentes","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,11,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM countries ORDER BY education_score DESC","query_toks":["SELECT","name","FROM","countries","ORDER","BY","education_score","DESC"],"query_toks_no_value":["select","name","from","countries","order","by","education_score","desc"],"question":"Liste os nomes dos países em ordem decrescente de education_score.","question_toks":["Liste","os","nomes","dos","países","em","ordem","decrescente","de","education_score","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM countries ORDER BY education_score DESC","query_toks":["SELECT","name","FROM","countries","ORDER","BY","education_score","DESC"],"query_toks_no_value":["select","name","from","countries","order","by","education_score","desc"],"question":"Quais são os nomes dos países, ordenados em ordem decrescente pelo índice de educação?","question_toks":["Quais","são","os","nomes","dos","países",",","ordenados","em","ordem","decrescente","pelo","índice","de","educação","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM countries ORDER BY politics_score DESC LIMIT 1","query_toks":["SELECT","name","FROM","countries","ORDER","BY","politics_score","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","countries","order","by","politics_score","desc","limit","value"],"question":"Liste o nome do país com a maior pontuação em política.","question_toks":["Liste","o","nome","do","país","com","a","maior","pontuação","em","política","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM countries ORDER BY politics_score DESC LIMIT 1","query_toks":["SELECT","name","FROM","countries","ORDER","BY","politics_score","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","countries","order","by","politics_score","desc","limit","value"],"question":"Qual é o nome do país com a maior pontuação política?","question_toks":["Qual","é","o","nome","do","país","com","a","maior","pontuação","política","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,10,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T1.name , T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id","query_toks":["SELECT","T1.name",",","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id"],"query_toks_no_value":["select","t1",".","name",",","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id"],"question":"Mostre os nomes dos países e suas línguas oficiais.","question_toks":["Mostre","os","nomes","dos","países","e","suas","línguas","oficiais","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T1.name , T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id","query_toks":["SELECT","T1.name",",","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id"],"query_toks_no_value":["select","t1",".","name",",","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id"],"question":"Quais são os nomes dos países, bem como os nomes de suas línguas oficiais?","question_toks":["Quais","são","os","nomes","dos","países",",","bem","como","os","nomes","de","suas","línguas","oficiais","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name , COUNT(*) FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.name","query_toks":["SELECT","T2.name",",","COUNT","(","*",")","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.name"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","name"],"question":"Mostre as línguas oficiais e o número de países que falam cada língua.","question_toks":["Mostre","as","línguas","oficiais","e","o","número","de","países","que","falam","cada","língua","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name , COUNT(*) FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.name","query_toks":["SELECT","T2.name",",","COUNT","(","*",")","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.name"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","name"],"question":"Quais são os nomes das diferentes línguas oficiais, bem como o número de países que falam cada uma?","question_toks":["Quais","são","os","nomes","das","diferentes","línguas","oficiais",",","bem","como","o","número","de","países","que","falam","cada","uma","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre a língua oficial falada pelo maior número de países.","question_toks":["Mostre","a","língua","oficial","falada","pelo","maior","número","de","países","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T2.name","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é a língua oficial que é mais comum?","question_toks":["Qual","é","a","língua","oficial","que","é","mais","comum","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.id HAVING COUNT(*) >= 2","query_toks":["SELECT","T2.name","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.id","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","t2",".","name","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","id","having","count","(","*",")",">","=","value"],"question":"Mostre as línguas oficiais faladas por pelo menos dois países.","question_toks":["Mostre","as","línguas","oficiais","faladas","por","pelo","menos","dois","países","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.id HAVING COUNT(*) >= 2","query_toks":["SELECT","T2.name","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.id","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","t2",".","name","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","id","having","count","(","*",")",">","=","value"],"question":"Quais línguas oficiais são faladas em dois ou mais países?","question_toks":["Quais","línguas","oficiais","são","faladas","em","dois","ou","mais","países","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT avg(T1.overall_score) FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id WHERE T3.name = \"English\"","query_toks":["SELECT","avg","(","T1.overall_score",")","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","WHERE","T3.name","=","``","English","''"],"query_toks_no_value":["select","avg","(","t1",".","overall_score",")","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","where","t3",".","name","=","value"],"question":"Mostre as médias das pontuações gerais dos países cuja língua oficial é \"English\".","question_toks":["Mostre","as","médias","das","pontuações","gerais","dos","países","cuja","língua","oficial","é","``","English","''","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[5,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT avg(T1.overall_score) FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id WHERE T3.name = \"English\"","query_toks":["SELECT","avg","(","T1.overall_score",")","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","WHERE","T3.name","=","``","English","''"],"query_toks_no_value":["select","avg","(","t1",".","overall_score",")","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","where","t3",".","name","=","value"],"question":"Qual é a média da pontuação geral entre os países com o English como língua oficial?","question_toks":["Qual","é","a","média","da","pontuação","geral","entre","os","países","com","o","English","como","língua","oficial","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[5,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 3","query_toks":["SELECT","T2.name","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","t2",".","name","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre as três línguas oficiais que são mais faladas.","question_toks":["Mostre","as","três","línguas","oficiais","que","são","mais","faladas","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T2.name FROM official_languages AS T1 JOIN languages AS T2 ON T1.language_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 3","query_toks":["SELECT","T2.name","FROM","official_languages","AS","T1","JOIN","languages","AS","T2","ON","T1.language_id","=","T2.id","GROUP","BY","T2.id","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","t2",".","name","from","official_languages","as","t1","join","languages","as","t2","on","t1",".","language_id","=","t2",".","id","group","by","t2",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os nomes das três línguas oficiais faladas em mais países?","question_toks":["Quais","são","os","nomes","das","três","línguas","oficiais","faladas","em","mais","países","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id GROUP BY T3.id ORDER BY avg(T1.overall_score) DESC","query_toks":["SELECT","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","GROUP","BY","T3.id","ORDER","BY","avg","(","T1.overall_score",")","DESC"],"query_toks_no_value":["select","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","group","by","t3",".","id","order","by","avg","(","t1",".","overall_score",")","desc"],"question":"Mostre as línguas oficiais ordenadas em ordem decrescente pela média das pontuações gerais entre os países que as falam.","question_toks":["Mostre","as","línguas","oficiais","ordenadas","em","ordem","decrescente","pela","média","das","pontuações","gerais","entre","os","países","que","as","falam","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[5,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id GROUP BY T3.id ORDER BY avg(T1.overall_score) DESC","query_toks":["SELECT","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","GROUP","BY","T3.id","ORDER","BY","avg","(","T1.overall_score",")","DESC"],"query_toks_no_value":["select","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","group","by","t3",".","id","order","by","avg","(","t1",".","overall_score",")","desc"],"question":"Quais são os nomes das línguas oficiais, ordenados em ordem decrescente pela média das pontuações gerais dos países correspondentes a cada uma?","question_toks":["Quais","são","os","nomes","das","línguas","oficiais",",","ordenados","em","ordem","decrescente","pela","média","das","pontuações","gerais","dos","países","correspondentes","a","cada","uma","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[5,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T1.Name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T1.Name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","GROUP","BY","T1.id","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","group","by","t1",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Mostre o nome do país que tem o maior número de línguas oficiais.","question_toks":["Mostre","o","nome","do","país","que","tem","o","maior","número","de","línguas","oficiais","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T1.Name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","T1.Name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","GROUP","BY","T1.id","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","group","by","t1",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual país tem o maior número de línguas oficiais?","question_toks":["Qual","país","tem","o","maior","número","de","línguas","oficiais","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"country_language","query":"SELECT name FROM languages WHERE id NOT IN (SELECT language_id FROM official_languages)","query_toks":["SELECT","name","FROM","languages","WHERE","id","NOT","IN","(","SELECT","language_id","FROM","official_languages",")"],"query_toks_no_value":["select","name","from","languages","where","id","not","in","(","select","language_id","from","official_languages",")"],"question":"Liste os nomes das línguas que não são a língua oficial de nenhum país.","question_toks":["Liste","os","nomes","das","línguas","que","não","são","a","língua","oficial","de","nenhum","país","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,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":"country_language","query":"SELECT name FROM languages WHERE id NOT IN (SELECT language_id FROM official_languages)","query_toks":["SELECT","name","FROM","languages","WHERE","id","NOT","IN","(","SELECT","language_id","FROM","official_languages",")"],"query_toks_no_value":["select","name","from","languages","where","id","not","in","(","select","language_id","from","official_languages",")"],"question":"Quais são os nomes das línguas que não são a língua oficial de nenhum país?","question_toks":["Quais","são","os","nomes","das","línguas","que","não","são","a","língua","oficial","de","nenhum","país","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,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":"country_language","query":"SELECT name FROM countries WHERE id NOT IN (SELECT country_id FROM official_languages)","query_toks":["SELECT","name","FROM","countries","WHERE","id","NOT","IN","(","SELECT","country_id","FROM","official_languages",")"],"query_toks_no_value":["select","name","from","countries","where","id","not","in","(","select","country_id","from","official_languages",")"],"question":"Liste os nomes dos países que não têm nenhuma língua oficial.","question_toks":["Liste","os","nomes","dos","países","que","não","têm","nenhuma","língua","oficial","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[true,8,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,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":"country_language","query":"SELECT name FROM countries WHERE id NOT IN (SELECT country_id FROM official_languages)","query_toks":["SELECT","name","FROM","countries","WHERE","id","NOT","IN","(","SELECT","country_id","FROM","official_languages",")"],"query_toks_no_value":["select","name","from","countries","where","id","not","in","(","select","country_id","from","official_languages",")"],"question":"Quais são os nomes dos países que não têm uma língua oficial?","question_toks":["Quais","são","os","nomes","dos","países","que","não","têm","uma","língua","oficial","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[true,8,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,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":"country_language","query":"SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id WHERE T1.overall_score > 95 INTERSECT SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id WHERE T1.overall_score < 90","query_toks":["SELECT","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","WHERE","T1.overall_score",">","95","INTERSECT","SELECT","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","WHERE","T1.overall_score","<","90"],"query_toks_no_value":["select","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","where","t1",".","overall_score",">","value","intersect","select","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","where","t1",".","overall_score","<","value"],"question":"Mostre os nomes das línguas que são a língua oficial tanto para países com pontuação geral superior a 95 quanto para países com pontuação geral inferior a 90.","question_toks":["Mostre","os","nomes","das","línguas","que","são","a","língua","oficial","tanto","para","países","com","pontuação","geral","superior","a","95","quanto","para","países","com","pontuação","geral","inferior","a","90","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,5,false],null],95.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,4,[0,[0,5,false],null],90.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"country_language","query":"SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id WHERE T1.overall_score > 95 INTERSECT SELECT T3.name FROM countries AS T1 JOIN official_languages AS T2 ON T1.id = T2.country_id JOIN languages AS T3 ON T2.language_id = T3.id WHERE T1.overall_score < 90","query_toks":["SELECT","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","WHERE","T1.overall_score",">","95","INTERSECT","SELECT","T3.name","FROM","countries","AS","T1","JOIN","official_languages","AS","T2","ON","T1.id","=","T2.country_id","JOIN","languages","AS","T3","ON","T2.language_id","=","T3.id","WHERE","T1.overall_score","<","90"],"query_toks_no_value":["select","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","where","t1",".","overall_score",">","value","intersect","select","t3",".","name","from","countries","as","t1","join","official_languages","as","t2","on","t1",".","id","=","t2",".","country_id","join","languages","as","t3","on","t2",".","language_id","=","t3",".","id","where","t1",".","overall_score","<","value"],"question":"Quais são os nomes das línguas que são a língua oficial não apenas para países que têm uma pontuação geral acima de 95, mas também para países que têm uma pontuação geral abaixo de 90?","question_toks":["Quais","são","os","nomes","das","línguas","que","são","a","língua","oficial","não","apenas","para","países","que","têm","uma","pontuação","geral","acima","de","95",",","mas","também","para","países","que","têm","uma","pontuação","geral","abaixo","de","90","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,5,false],null],95.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,3,false],null],[0,12,false],null],"and",[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,4,[0,[0,5,false],null],90.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT country , town_city FROM Addresses;","query_toks":["SELECT","country",",","town_city","FROM","Addresses",";"],"query_toks_no_value":["select","country",",","town_city","from","addresses"],"question":"Quais países e cidades estão incluídos nos endereços?","question_toks":["Quais","países","e","cidades","estão","incluídos","nos","endereços","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT country , town_city FROM Addresses;","query_toks":["SELECT","country",",","town_city","FROM","Addresses",";"],"query_toks_no_value":["select","country",",","town_city","from","addresses"],"question":"Quais são os países e cidades para cada endereço?","question_toks":["Quais","são","os","países","e","cidades","para","cada","endereço","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT DISTINCT T1.county_state_province FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id;","query_toks":["SELECT","DISTINCT","T1.county_state_province","FROM","Addresses","AS","T1","JOIN","Properties","AS","T2","ON","T1.address_id","=","T2.property_address_id",";"],"query_toks_no_value":["select","distinct","t1",".","county_state_province","from","addresses","as","t1","join","properties","as","t2","on","t1",".","address_id","=","t2",".","property_address_id"],"question":"Em quais estados estão localizadas cada uma das propriedades?","question_toks":["Em","quais","estados","estão","localizadas","cada","uma","das","propriedades","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",7]],"conds":[[false,2,[0,[0,9,false],null],[0,35,false],null]]},"select":[true,[[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT DISTINCT T1.county_state_province FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id;","query_toks":["SELECT","DISTINCT","T1.county_state_province","FROM","Addresses","AS","T1","JOIN","Properties","AS","T2","ON","T1.address_id","=","T2.property_address_id",";"],"query_toks_no_value":["select","distinct","t1",".","county_state_province","from","addresses","as","t1","join","properties","as","t2","on","t1",".","address_id","=","t2",".","property_address_id"],"question":"Dê os estados ou províncias correspondentes a cada propriedade.","question_toks":["Dê","os","estados","ou","províncias","correspondentes","a","cada","propriedade","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",7]],"conds":[[false,2,[0,[0,9,false],null],[0,35,false],null]]},"select":[true,[[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT feature_description FROM Features WHERE feature_name = 'rooftop';","query_toks":["SELECT","feature_description","FROM","Features","WHERE","feature_name","=","'rooftop","'",";"],"query_toks_no_value":["select","feature_description","from","features","where","feature_name","=","value"],"question":"Como a característica rooftop é descrita?","question_toks":["Como","a","característica","rooftop","é","descrita","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,20,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"rooftop\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT feature_description FROM Features WHERE feature_name = 'rooftop';","query_toks":["SELECT","feature_description","FROM","Features","WHERE","feature_name","=","'rooftop","'",";"],"query_toks_no_value":["select","feature_description","from","features","where","feature_name","=","value"],"question":"Retorne a descrição da característica 'rooftop'.","question_toks":["Retorne","a","descrição","da","característica","'rooftop","'","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,20,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"rooftop\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.feature_name , T1.feature_description FROM Features AS T1 JOIN Property_Features AS T2 ON T1.feature_id = T2.feature_id GROUP BY T1.feature_name ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.feature_name",",","T1.feature_description","FROM","Features","AS","T1","JOIN","Property_Features","AS","T2","ON","T1.feature_id","=","T2.feature_id","GROUP","BY","T1.feature_name","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","feature_name",",","t1",".","feature_description","from","features","as","t1","join","property_features","as","t2","on","t1",".","feature_id","=","t2",".","feature_id","group","by","t1",".","feature_name","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são o nome e a descrição da característica mais comumente vista em propriedades?","question_toks":["Quais","são","o","nome","e","a","descrição","da","característica","mais","comumente","vista","em","propriedades","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",8]],"conds":[[false,2,[0,[0,18,false],null],[0,50,false],null]]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,20,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":"real_estate_rentals","query":"SELECT T1.feature_name , T1.feature_description FROM Features AS T1 JOIN Property_Features AS T2 ON T1.feature_id = T2.feature_id GROUP BY T1.feature_name ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.feature_name",",","T1.feature_description","FROM","Features","AS","T1","JOIN","Property_Features","AS","T2","ON","T1.feature_id","=","T2.feature_id","GROUP","BY","T1.feature_name","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","feature_name",",","t1",".","feature_description","from","features","as","t1","join","property_features","as","t2","on","t1",".","feature_id","=","t2",".","feature_id","group","by","t1",".","feature_name","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o nome e a descrição da característica mais comum entre todas as propriedades.","question_toks":["Dê","o","nome","e","a","descrição","da","característica","mais","comum","entre","todas","as","propriedades","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",8]],"conds":[[false,2,[0,[0,18,false],null],[0,50,false],null]]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,20,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":"real_estate_rentals","query":"SELECT min(room_count) FROM Properties;","query_toks":["SELECT","min","(","room_count",")","FROM","Properties",";"],"query_toks_no_value":["select","min","(","room_count",")","from","properties"],"question":"Qual é o número mínimo de quartos em uma propriedade?","question_toks":["Qual","é","o","número","mínimo","de","quartos","em","uma","propriedade","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[2,[0,[0,44,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT min(room_count) FROM Properties;","query_toks":["SELECT","min","(","room_count",")","FROM","Properties",";"],"query_toks_no_value":["select","min","(","room_count",")","from","properties"],"question":"Qual é o menor número de quartos em todas as propriedades?","question_toks":["Qual","é","o","menor","número","de","quartos","em","todas","as","propriedades","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[2,[0,[0,44,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) FROM Properties WHERE parking_lots = 1 OR garage_yn = 1;","query_toks":["SELECT","count","(","*",")","FROM","Properties","WHERE","parking_lots","=","1","OR","garage_yn","=","1",";"],"query_toks_no_value":["select","count","(","*",")","from","properties","where","parking_lots","=","value","or","garage_yn","=","value"],"question":"Quantas propriedades têm 1 vaga de estacionamento ou 1 garagem?","question_toks":["Quantas","propriedades","têm","1","vaga","de","estacionamento","ou","1","garagem","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,43,false],null],1.0,null],"or",[false,2,[0,[0,42,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) FROM Properties WHERE parking_lots = 1 OR garage_yn = 1;","query_toks":["SELECT","count","(","*",")","FROM","Properties","WHERE","parking_lots","=","1","OR","garage_yn","=","1",";"],"query_toks_no_value":["select","count","(","*",")","from","properties","where","parking_lots","=","value","or","garage_yn","=","value"],"question":"Conte o número de propriedades que têm 1 vaga de estacionamento ou 1 garagem.","question_toks":["Conte","o","número","de","propriedades","que","têm","1","vaga","de","estacionamento","ou","1","garagem","."],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,43,false],null],1.0,null],"or",[false,2,[0,[0,42,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T2.age_category_code FROM Ref_User_Categories AS T1 JOIN Users AS T2 ON T1.user_category_code = T2.user_category_code WHERE T1.User_category_description LIKE \"%Mother\";","query_toks":["SELECT","T2.age_category_code","FROM","Ref_User_Categories","AS","T1","JOIN","Users","AS","T2","ON","T1.user_category_code","=","T2.user_category_code","WHERE","T1.User_category_description","LIKE","``","%","Mother","''",";"],"query_toks_no_value":["select","t2",".","age_category_code","from","ref_user_categories","as","t1","join","users","as","t2","on","t1",".","user_category_code","=","t2",".","user_category_code","where","t1",".","user_category_description","like","value"],"question":"Para usuários cuja descrição contém a string 'Mother', em quais categorias de idade eles estão?","question_toks":["Para","usuários","cuja","descrição","contém","a","string","'Mother","'",",","em","quais","categorias","de","idade","eles","estão","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",6]],"conds":[[false,2,[0,[0,7,false],null],[0,23,false],null]]},"select":[false,[[0,[0,[0,22,false],null]]]],"where":[[false,9,[0,[0,8,false],null],"\"%Mother\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T2.age_category_code FROM Ref_User_Categories AS T1 JOIN Users AS T2 ON T1.user_category_code = T2.user_category_code WHERE T1.User_category_description LIKE \"%Mother\";","query_toks":["SELECT","T2.age_category_code","FROM","Ref_User_Categories","AS","T1","JOIN","Users","AS","T2","ON","T1.user_category_code","=","T2.user_category_code","WHERE","T1.User_category_description","LIKE","``","%","Mother","''",";"],"query_toks_no_value":["select","t2",".","age_category_code","from","ref_user_categories","as","t1","join","users","as","t2","on","t1",".","user_category_code","=","t2",".","user_category_code","where","t1",".","user_category_description","like","value"],"question":"Quais são as categorias de idade para usuários cuja descrição contém a string Mother?","question_toks":["Quais","são","as","categorias","de","idade","para","usuários","cuja","descrição","contém","a","string","Mother","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",6]],"conds":[[false,2,[0,[0,7,false],null],[0,23,false],null]]},"select":[false,[[0,[0,[0,22,false],null]]]],"where":[[false,9,[0,[0,8,false],null],"\"%Mother\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.first_name FROM Users AS T1 JOIN Properties AS T2 ON T2.owner_user_id = T1.User_id GROUP BY T1.User_id ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.first_name","FROM","Users","AS","T1","JOIN","Properties","AS","T2","ON","T2.owner_user_id","=","T1.User_id","GROUP","BY","T1.User_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","first_name","from","users","as","t1","join","properties","as","t2","on","t2",".","owner_user_id","=","t1",".","user_id","group","by","t1",".","user_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o primeiro nome do usuário que possui o maior número de propriedades?","question_toks":["Qual","é","o","primeiro","nome","do","usuário","que","possui","o","maior","número","de","propriedades","?"],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",7]],"conds":[[false,2,[0,[0,36,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,30,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.first_name FROM Users AS T1 JOIN Properties AS T2 ON T2.owner_user_id = T1.User_id GROUP BY T1.User_id ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.first_name","FROM","Users","AS","T1","JOIN","Properties","AS","T2","ON","T2.owner_user_id","=","T1.User_id","GROUP","BY","T1.User_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","first_name","from","users","as","t1","join","properties","as","t2","on","t2",".","owner_user_id","=","t1",".","user_id","group","by","t1",".","user_id","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne o primeiro nome do usuário que possui mais propriedades.","question_toks":["Retorne","o","primeiro","nome","do","usuário","que","possui","mais","propriedades","."],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",7]],"conds":[[false,2,[0,[0,36,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,30,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT avg(T3.room_count) FROM Property_Features AS T1 JOIN Features AS T2 ON T1.feature_id = T2.feature_id JOIN Properties AS T3 ON T1.property_id = T3.property_id WHERE T2.feature_name = 'garden';","query_toks":["SELECT","avg","(","T3.room_count",")","FROM","Property_Features","AS","T1","JOIN","Features","AS","T2","ON","T1.feature_id","=","T2.feature_id","JOIN","Properties","AS","T3","ON","T1.property_id","=","T3.property_id","WHERE","T2.feature_name","=","'garden","'",";"],"query_toks_no_value":["select","avg","(","t3",".","room_count",")","from","property_features","as","t1","join","features","as","t2","on","t1",".","feature_id","=","t2",".","feature_id","join","properties","as","t3","on","t1",".","property_id","=","t3",".","property_id","where","t2",".","feature_name","=","value"],"question":"Liste a contagem média de quartos das propriedades com garden.","question_toks":["Liste","a","contagem","média","de","quartos","das","propriedades","com","garden","."],"sql":{"from":{"table_units":[["table_unit",8],["table_unit",5],["table_unit",7]],"conds":[[false,2,[0,[0,50,false],null],[0,18,false],null],"and",[false,2,[0,[0,49,false],null],[0,34,false],null]]},"select":[false,[[5,[0,[0,44,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"garden\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT avg(T3.room_count) FROM Property_Features AS T1 JOIN Features AS T2 ON T1.feature_id = T2.feature_id JOIN Properties AS T3 ON T1.property_id = T3.property_id WHERE T2.feature_name = 'garden';","query_toks":["SELECT","avg","(","T3.room_count",")","FROM","Property_Features","AS","T1","JOIN","Features","AS","T2","ON","T1.feature_id","=","T2.feature_id","JOIN","Properties","AS","T3","ON","T1.property_id","=","T3.property_id","WHERE","T2.feature_name","=","'garden","'",";"],"query_toks_no_value":["select","avg","(","t3",".","room_count",")","from","property_features","as","t1","join","features","as","t2","on","t1",".","feature_id","=","t2",".","feature_id","join","properties","as","t3","on","t1",".","property_id","=","t3",".","property_id","where","t2",".","feature_name","=","value"],"question":"Em média, quantos quartos têm as propriedades com a característica garden?","question_toks":["Em","média",",","quantos","quartos","têm","as","propriedades","com","a","característica","garden","?"],"sql":{"from":{"table_units":[["table_unit",8],["table_unit",5],["table_unit",7]],"conds":[[false,2,[0,[0,50,false],null],[0,18,false],null],"and",[false,2,[0,[0,49,false],null],[0,34,false],null]]},"select":[false,[[5,[0,[0,44,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"garden\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T2.town_city FROM Properties AS T1 JOIN Addresses AS T2 ON T1.property_address_id = T2.address_id JOIN Property_Features AS T3 ON T1.property_id = T3.property_id JOIN Features AS T4 ON T4.feature_id = T3.feature_id WHERE T4.feature_name = 'swimming pool';","query_toks":["SELECT","T2.town_city","FROM","Properties","AS","T1","JOIN","Addresses","AS","T2","ON","T1.property_address_id","=","T2.address_id","JOIN","Property_Features","AS","T3","ON","T1.property_id","=","T3.property_id","JOIN","Features","AS","T4","ON","T4.feature_id","=","T3.feature_id","WHERE","T4.feature_name","=","'swimming","pool","'",";"],"query_toks_no_value":["select","t2",".","town_city","from","properties","as","t1","join","addresses","as","t2","on","t1",".","property_address_id","=","t2",".","address_id","join","property_features","as","t3","on","t1",".","property_id","=","t3",".","property_id","join","features","as","t4","on","t4",".","feature_id","=","t3",".","feature_id","where","t4",".","feature_name","=","value"],"question":"Em quais cidades há propriedades equipadas com swimming pool?","question_toks":["Em","quais","cidades","há","propriedades","equipadas","com","swimming","pool","?"],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",4],["table_unit",8],["table_unit",5]],"conds":[[false,2,[0,[0,35,false],null],[0,9,false],null],"and",[false,2,[0,[0,34,false],null],[0,49,false],null],"and",[false,2,[0,[0,18,false],null],[0,50,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"swimming pool\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T2.town_city FROM Properties AS T1 JOIN Addresses AS T2 ON T1.property_address_id = T2.address_id JOIN Property_Features AS T3 ON T1.property_id = T3.property_id JOIN Features AS T4 ON T4.feature_id = T3.feature_id WHERE T4.feature_name = 'swimming pool';","query_toks":["SELECT","T2.town_city","FROM","Properties","AS","T1","JOIN","Addresses","AS","T2","ON","T1.property_address_id","=","T2.address_id","JOIN","Property_Features","AS","T3","ON","T1.property_id","=","T3.property_id","JOIN","Features","AS","T4","ON","T4.feature_id","=","T3.feature_id","WHERE","T4.feature_name","=","'swimming","pool","'",";"],"query_toks_no_value":["select","t2",".","town_city","from","properties","as","t1","join","addresses","as","t2","on","t1",".","property_address_id","=","t2",".","address_id","join","property_features","as","t3","on","t1",".","property_id","=","t3",".","property_id","join","features","as","t4","on","t4",".","feature_id","=","t3",".","feature_id","where","t4",".","feature_name","=","value"],"question":"Retorne as cidades em que existem propriedades que têm swimming pool.","question_toks":["Retorne","as","cidades","em","que","existem","propriedades","que","têm","swimming","pool","."],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",4],["table_unit",8],["table_unit",5]],"conds":[[false,2,[0,[0,35,false],null],[0,9,false],null],"and",[false,2,[0,[0,34,false],null],[0,49,false],null],"and",[false,2,[0,[0,18,false],null],[0,50,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,19,false],null],"\"swimming pool\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT property_id , vendor_requested_price FROM Properties ORDER BY vendor_requested_price LIMIT 1;","query_toks":["SELECT","property_id",",","vendor_requested_price","FROM","Properties","ORDER","BY","vendor_requested_price","LIMIT","1",";"],"query_toks_no_value":["select","property_id",",","vendor_requested_price","from","properties","order","by","vendor_requested_price","limit","value"],"question":"Qual propriedade teve o menor preço solicitado pelo vendedor? Liste o id e o preço.","question_toks":["Qual","propriedade","teve","o","menor","preço","solicitado","pelo","vendedor","?","Liste","o","id","e","o","preço","."],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[0,[0,[0,34,false],null]],[0,[0,[0,45,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,45,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT property_id , vendor_requested_price FROM Properties ORDER BY vendor_requested_price LIMIT 1;","query_toks":["SELECT","property_id",",","vendor_requested_price","FROM","Properties","ORDER","BY","vendor_requested_price","LIMIT","1",";"],"query_toks_no_value":["select","property_id",",","vendor_requested_price","from","properties","order","by","vendor_requested_price","limit","value"],"question":"Qual é o id da propriedade que teve o menor preço solicitado pelo vendedor e qual foi esse preço?","question_toks":["Qual","é","o","id","da","propriedade","que","teve","o","menor","preço","solicitado","pelo","vendedor","e","qual","foi","esse","preço","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[0,[0,[0,34,false],null]],[0,[0,[0,45,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,45,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT avg(room_count) FROM Properties;","query_toks":["SELECT","avg","(","room_count",")","FROM","Properties",";"],"query_toks_no_value":["select","avg","(","room_count",")","from","properties"],"question":"Em média, quantos quartos uma propriedade tem?","question_toks":["Em","média",",","quantos","quartos","uma","propriedade","tem","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[5,[0,[0,44,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT avg(room_count) FROM Properties;","query_toks":["SELECT","avg","(","room_count",")","FROM","Properties",";"],"query_toks_no_value":["select","avg","(","room_count",")","from","properties"],"question":"Qual é o número médio de quartos em uma propriedade?","question_toks":["Qual","é","o","número","médio","de","quartos","em","uma","propriedade","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[5,[0,[0,44,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(DISTINCT room_size) FROM Rooms;","query_toks":["SELECT","count","(","DISTINCT","room_size",")","FROM","Rooms",";"],"query_toks_no_value":["select","count","(","distinct","room_size",")","from","rooms"],"question":"Quantos tipos de tamanhos de quartos estão listados?","question_toks":["Quantos","tipos","de","tamanhos","de","quartos","estão","listados","?"],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[3,[0,[0,61,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(DISTINCT room_size) FROM Rooms;","query_toks":["SELECT","count","(","DISTINCT","room_size",")","FROM","Rooms",";"],"query_toks_no_value":["select","count","(","distinct","room_size",")","from","rooms"],"question":"Retorne o número de tamanhos de quartos diferentes.","question_toks":["Retorne","o","número","de","tamanhos","de","quartos","diferentes","."],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[3,[0,[0,61,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT search_seq , user_id FROM User_Searches GROUP BY user_id HAVING count(*) >= 2;","query_toks":["SELECT","search_seq",",","user_id","FROM","User_Searches","GROUP","BY","user_id","HAVING","count","(","*",")",">","=","2",";"],"query_toks_no_value":["select","search_seq",",","user_id","from","user_searches","group","by","user_id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids dos usuários que pesquisaram pelo menos duas vezes e o que eles pesquisaram?","question_toks":["Quais","são","os","ids","dos","usuários","que","pesquisaram","pelo","menos","duas","vezes","e","o","que","eles","pesquisaram","?"],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,67,false],null]],[0,[0,[0,66,false],null]]]],"where":[],"groupBy":[[0,66,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT search_seq , user_id FROM User_Searches GROUP BY user_id HAVING count(*) >= 2;","query_toks":["SELECT","search_seq",",","user_id","FROM","User_Searches","GROUP","BY","user_id","HAVING","count","(","*",")",">","=","2",";"],"query_toks_no_value":["select","search_seq",",","user_id","from","user_searches","group","by","user_id","having","count","(","*",")",">","=","value"],"question":"Retorne os ids dos usuários que realizaram duas ou mais buscas, bem como sua sequência de busca.","question_toks":["Retorne","os","ids","dos","usuários","que","realizaram","duas","ou","mais","buscas",",","bem","como","sua","sequência","de","busca","."],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,67,false],null]],[0,[0,[0,66,false],null]]]],"where":[],"groupBy":[[0,66,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT max(search_datetime) FROM User_Searches;","query_toks":["SELECT","max","(","search_datetime",")","FROM","User_Searches",";"],"query_toks_no_value":["select","max","(","search_datetime",")","from","user_searches"],"question":"Qual foi o horário da última busca por um usuário?","question_toks":["Qual","foi","o","horário","da","última","busca","por","um","usuário","?"],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[1,[0,[0,68,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT max(search_datetime) FROM User_Searches;","query_toks":["SELECT","max","(","search_datetime",")","FROM","User_Searches",";"],"query_toks_no_value":["select","max","(","search_datetime",")","from","user_searches"],"question":"Qual foi o horário da busca mais recente?","question_toks":["Qual","foi","o","horário","da","busca","mais","recente","?"],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[1,[0,[0,68,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT search_datetime , search_string FROM User_Searches ORDER BY search_string DESC;","query_toks":["SELECT","search_datetime",",","search_string","FROM","User_Searches","ORDER","BY","search_string","DESC",";"],"query_toks_no_value":["select","search_datetime",",","search_string","from","user_searches","order","by","search_string","desc"],"question":"Quais são todos os horários e conteúdos das buscas dos usuários? Ordene o resultado em ordem decrescente pelo conteúdo.","question_toks":["Quais","são","todos","os","horários","e","conteúdos","das","buscas","dos","usuários","?","Ordene","o","resultado","em","ordem","decrescente","pelo","conteúdo","."],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,68,false],null]],[0,[0,[0,69,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,69,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT search_datetime , search_string FROM User_Searches ORDER BY search_string DESC;","query_toks":["SELECT","search_datetime",",","search_string","FROM","User_Searches","ORDER","BY","search_string","DESC",";"],"query_toks_no_value":["select","search_datetime",",","search_string","from","user_searches","order","by","search_string","desc"],"question":"Retorne as strings de busca e os carimbos de data\/hora correspondentes para todas as buscas de usuários, ordenadas por string de busca em ordem decrescente.","question_toks":["Retorne","as","strings","de","busca","e","os","carimbos","de","data\/hora","correspondentes","para","todas","as","buscas","de","usuários",",","ordenadas","por","string","de","busca","em","ordem","decrescente","."],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,68,false],null]],[0,[0,[0,69,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,69,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id WHERE T2.owner_user_id NOT IN ( SELECT owner_user_id FROM Properties GROUP BY owner_user_id HAVING count(*) <= 2 );","query_toks":["SELECT","T1.zip_postcode","FROM","Addresses","AS","T1","JOIN","Properties","AS","T2","ON","T1.address_id","=","T2.property_address_id","WHERE","T2.owner_user_id","NOT","IN","(","SELECT","owner_user_id","FROM","Properties","GROUP","BY","owner_user_id","HAVING","count","(","*",")","<","=","2",")",";"],"query_toks_no_value":["select","t1",".","zip_postcode","from","addresses","as","t1","join","properties","as","t2","on","t1",".","address_id","=","t2",".","property_address_id","where","t2",".","owner_user_id","not","in","(","select","owner_user_id","from","properties","group","by","owner_user_id","having","count","(","*",")","<","=","value",")"],"question":"Quais são os códigos postais das propriedades que não pertencem a usuários que possuem no máximo 2 propriedades?","question_toks":["Quais","são","os","códigos","postais","das","propriedades","que","não","pertencem","a","usuários","que","possuem","no","máximo","2","propriedades","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",7]],"conds":[[false,2,[0,[0,9,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[true,8,[0,[0,36,false],null],{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[0,[0,[0,36,false],null]]]],"where":[],"groupBy":[[0,36,false]],"having":[[false,6,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Properties AS T2 ON T1.address_id = T2.property_address_id WHERE T2.owner_user_id NOT IN ( SELECT owner_user_id FROM Properties GROUP BY owner_user_id HAVING count(*) <= 2 );","query_toks":["SELECT","T1.zip_postcode","FROM","Addresses","AS","T1","JOIN","Properties","AS","T2","ON","T1.address_id","=","T2.property_address_id","WHERE","T2.owner_user_id","NOT","IN","(","SELECT","owner_user_id","FROM","Properties","GROUP","BY","owner_user_id","HAVING","count","(","*",")","<","=","2",")",";"],"query_toks_no_value":["select","t1",".","zip_postcode","from","addresses","as","t1","join","properties","as","t2","on","t1",".","address_id","=","t2",".","property_address_id","where","t2",".","owner_user_id","not","in","(","select","owner_user_id","from","properties","group","by","owner_user_id","having","count","(","*",")","<","=","value",")"],"question":"Retorne os códigos postais para propriedades que não pertencem a usuários que possuem duas ou menos propriedades.","question_toks":["Retorne","os","códigos","postais","para","propriedades","que","não","pertencem","a","usuários","que","possuem","duas","ou","menos","propriedades","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",7]],"conds":[[false,2,[0,[0,9,false],null],[0,35,false],null]]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[true,8,[0,[0,36,false],null],{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[0,[0,[0,36,false],null]]]],"where":[],"groupBy":[[0,36,false]],"having":[[false,6,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.user_category_code , T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING count(*) = 1;","query_toks":["SELECT","T1.user_category_code",",","T1.user_id","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","GROUP","BY","T1.user_id","HAVING","count","(","*",")","=","1",";"],"query_toks_no_value":["select","t1",".","user_category_code",",","t1",".","user_id","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","group","by","t1",".","user_id","having","count","(","*",")","=","value"],"question":"Quais são os usuários que fizeram apenas uma busca? Liste tanto a categoria quanto o id do usuário.","question_toks":["Quais","são","os","usuários","que","fizeram","apenas","uma","busca","?","Liste","tanto","a","categoria","quanto","o","id","do","usuário","."],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.user_category_code , T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING count(*) = 1;","query_toks":["SELECT","T1.user_category_code",",","T1.user_id","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","GROUP","BY","T1.user_id","HAVING","count","(","*",")","=","1",";"],"query_toks_no_value":["select","t1",".","user_category_code",",","t1",".","user_id","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","group","by","t1",".","user_id","having","count","(","*",")","=","value"],"question":"Quais são os ids dos usuários que fizeram apenas uma busca e quais são seus códigos de categoria?","question_toks":["Quais","são","os","ids","dos","usuários","que","fizeram","apenas","uma","busca","e","quais","são","seus","códigos","de","categoria","?"],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.age_category_code FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id ORDER BY T2.search_datetime LIMIT 1;","query_toks":["SELECT","T1.age_category_code","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","ORDER","BY","T2.search_datetime","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","age_category_code","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","order","by","t2",".","search_datetime","limit","value"],"question":"Qual é a faixa etária do usuário que fez a primeira busca?","question_toks":["Qual","é","a","faixa","etária","do","usuário","que","fez","a","primeira","busca","?"],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,68,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.age_category_code FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id ORDER BY T2.search_datetime LIMIT 1;","query_toks":["SELECT","T1.age_category_code","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","ORDER","BY","T2.search_datetime","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","age_category_code","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","order","by","t2",".","search_datetime","limit","value"],"question":"Retorne a categoria de idade do usuário que fez a busca mais antiga.","question_toks":["Retorne","a","categoria","de","idade","do","usuário","que","fez","a","busca","mais","antiga","."],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,68,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT login_name FROM Users WHERE user_category_code = 'Senior Citizen' ORDER BY first_name","query_toks":["SELECT","login_name","FROM","Users","WHERE","user_category_code","=","'Senior","Citizen","'","ORDER","BY","first_name"],"query_toks_no_value":["select","login_name","from","users","where","user_category_code","=","value","order","by","first_name"],"question":"Encontre os nomes de login de todos os usuários seniores ordenados por seus primeiros nomes.","question_toks":["Encontre","os","nomes","de","login","de","todos","os","usuários","seniores","ordenados","por","seus","primeiros","nomes","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[[false,2,[0,[0,23,false],null],"\"Senior Citizen\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,30,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT login_name FROM Users WHERE user_category_code = 'Senior Citizen' ORDER BY first_name","query_toks":["SELECT","login_name","FROM","Users","WHERE","user_category_code","=","'Senior","Citizen","'","ORDER","BY","first_name"],"query_toks_no_value":["select","login_name","from","users","where","user_category_code","=","value","order","by","first_name"],"question":"Quais são os nomes de login de todos os senior citizens, ordenados pelo primeiro nome?","question_toks":["Quais","são","os","nomes","de","login","de","todos","os","senior","citizens",",","ordenados","pelo","primeiro","nome","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,27,false],null]]]],"where":[[false,2,[0,[0,23,false],null],"\"Senior Citizen\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,30,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id WHERE T1.is_buyer = 1;","query_toks":["SELECT","count","(","*",")","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","WHERE","T1.is_buyer","=","1",";"],"query_toks_no_value":["select","count","(","*",")","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","where","t1",".","is_buyer","=","value"],"question":"Conte quantas buscas os compradores fazem no total.","question_toks":["Conte","quantas","buscas","os","compradores","fazem","no","total","."],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,25,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id WHERE T1.is_buyer = 1;","query_toks":["SELECT","count","(","*",")","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","WHERE","T1.is_buyer","=","1",";"],"query_toks_no_value":["select","count","(","*",")","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","where","t1",".","is_buyer","=","value"],"question":"Conte o número de buscas feitas por compradores.","question_toks":["Conte","o","número","de","buscas","feitas","por","compradores","."],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,25,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT date_registered FROM Users WHERE login_name = 'ratione';","query_toks":["SELECT","date_registered","FROM","Users","WHERE","login_name","=","'ratione","'",";"],"query_toks_no_value":["select","date_registered","from","users","where","login_name","=","value"],"question":"Quando o usuário com o nome de login ratione se registrou?","question_toks":["Quando","o","usuário","com","o","nome","de","login","ratione","se","registrou","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"ratione\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT date_registered FROM Users WHERE login_name = 'ratione';","query_toks":["SELECT","date_registered","FROM","Users","WHERE","login_name","=","'ratione","'",";"],"query_toks_no_value":["select","date_registered","from","users","where","login_name","=","value"],"question":"Qual foi a data de registro do usuário cujo nome de login é ratione?","question_toks":["Qual","foi","a","data","de","registro","do","usuário","cujo","nome","de","login","é","ratione","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,29,false],null]]]],"where":[[false,2,[0,[0,27,false],null],"\"ratione\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT first_name , middle_name , last_name , login_name FROM Users WHERE is_seller = 1;","query_toks":["SELECT","first_name",",","middle_name",",","last_name",",","login_name","FROM","Users","WHERE","is_seller","=","1",";"],"query_toks_no_value":["select","first_name",",","middle_name",",","last_name",",","login_name","from","users","where","is_seller","=","value"],"question":"Liste o primeiro nome, o nome do meio, o sobrenome e o nome de login de todos os usuários vendedores, cujo valor de vendedor é 1.","question_toks":["Liste","o","primeiro","nome",",","o","nome","do","meio",",","o","sobrenome","e","o","nome","de","login","de","todos","os","usuários","vendedores",",","cujo","valor","de","vendedor","é","1","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,30,false],null]],[0,[0,[0,31,false],null]],[0,[0,[0,32,false],null]],[0,[0,[0,27,false],null]]]],"where":[[false,2,[0,[0,26,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT first_name , middle_name , last_name , login_name FROM Users WHERE is_seller = 1;","query_toks":["SELECT","first_name",",","middle_name",",","last_name",",","login_name","FROM","Users","WHERE","is_seller","=","1",";"],"query_toks_no_value":["select","first_name",",","middle_name",",","last_name",",","login_name","from","users","where","is_seller","=","value"],"question":"Quais são os nomes, sobrenomes e nomes de login de todos os usuários que são vendedores?","question_toks":["Quais","são","os","nomes",",","sobrenomes","e","nomes","de","login","de","todos","os","usuários","que","são","vendedores","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,30,false],null]],[0,[0,[0,31,false],null]],[0,[0,[0,32,false],null]],[0,[0,[0,27,false],null]]]],"where":[[false,2,[0,[0,26,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.line_1_number_building , T1.line_2_number_street , T1.town_city FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id = T2.user_address_id WHERE T2.user_category_code = 'Senior Citizen';","query_toks":["SELECT","T1.line_1_number_building",",","T1.line_2_number_street",",","T1.town_city","FROM","Addresses","AS","T1","JOIN","Users","AS","T2","ON","T1.address_id","=","T2.user_address_id","WHERE","T2.user_category_code","=","'Senior","Citizen","'",";"],"query_toks_no_value":["select","t1",".","line_1_number_building",",","t1",".","line_2_number_street",",","t1",".","town_city","from","addresses","as","t1","join","users","as","t2","on","t1",".","address_id","=","t2",".","user_address_id","where","t2",".","user_category_code","=","value"],"question":"Onde os Senior Citizens vivem? Liste o prédio, a rua e a cidade.","question_toks":["Onde","os","Senior","Citizens","vivem","?","Liste","o","prédio",",","a","rua","e","a","cidade","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",6]],"conds":[[false,2,[0,[0,9,false],null],[0,24,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,23,false],null],"\"Senior Citizen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.line_1_number_building , T1.line_2_number_street , T1.town_city FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id = T2.user_address_id WHERE T2.user_category_code = 'Senior Citizen';","query_toks":["SELECT","T1.line_1_number_building",",","T1.line_2_number_street",",","T1.town_city","FROM","Addresses","AS","T1","JOIN","Users","AS","T2","ON","T1.address_id","=","T2.user_address_id","WHERE","T2.user_category_code","=","'Senior","Citizen","'",";"],"query_toks_no_value":["select","t1",".","line_1_number_building",",","t1",".","line_2_number_street",",","t1",".","town_city","from","addresses","as","t1","join","users","as","t2","on","t1",".","address_id","=","t2",".","user_address_id","where","t2",".","user_category_code","=","value"],"question":"Quais são os edifícios, ruas e cidades correspondentes aos endereços de Senior Citizens?","question_toks":["Quais","são","os","edifícios",",","ruas","e","cidades","correspondentes","aos","endereços","de","Senior","Citizens","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",6]],"conds":[[false,2,[0,[0,9,false],null],[0,24,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,11,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,23,false],null],"\"Senior Citizen\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) FROM Properties GROUP BY property_id HAVING count(*) >= 2;","query_toks":["SELECT","count","(","*",")","FROM","Properties","GROUP","BY","property_id","HAVING","count","(","*",")",">","=","2",";"],"query_toks_no_value":["select","count","(","*",")","from","properties","group","by","property_id","having","count","(","*",")",">","=","value"],"question":"Quantas propriedades existem com pelo menos 2 características?","question_toks":["Quantas","propriedades","existem","com","pelo","menos","2","características","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,34,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) FROM Properties GROUP BY property_id HAVING count(*) >= 2;","query_toks":["SELECT","count","(","*",")","FROM","Properties","GROUP","BY","property_id","HAVING","count","(","*",")",">","=","2",";"],"query_toks_no_value":["select","count","(","*",")","from","properties","group","by","property_id","having","count","(","*",")",">","=","value"],"question":"Conte o número de propriedades com pelo menos duas características.","question_toks":["Conte","o","número","de","propriedades","com","pelo","menos","duas","características","."],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,34,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) , property_id FROM Property_Photos GROUP BY property_id;","query_toks":["SELECT","count","(","*",")",",","property_id","FROM","Property_Photos","GROUP","BY","property_id",";"],"query_toks_no_value":["select","count","(","*",")",",","property_id","from","property_photos","group","by","property_id"],"question":"Quantas fotos cada propriedade tem?","question_toks":["Quantas","fotos","cada","propriedade","tem","?"],"sql":{"from":{"table_units":[["table_unit",9]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,53,false],null]]]],"where":[],"groupBy":[[0,53,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT count(*) , property_id FROM Property_Photos GROUP BY property_id;","query_toks":["SELECT","count","(","*",")",",","property_id","FROM","Property_Photos","GROUP","BY","property_id",";"],"query_toks_no_value":["select","count","(","*",")",",","property_id","from","property_photos","group","by","property_id"],"question":"Conte o número de fotos de propriedade que cada propriedade tem por id.","question_toks":["Conte","o","número","de","fotos","de","propriedade","que","cada","propriedade","tem","por","id","."],"sql":{"from":{"table_units":[["table_unit",9]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,53,false],null]]]],"where":[],"groupBy":[[0,53,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.owner_user_id , count(*) FROM Properties AS T1 JOIN Property_Photos AS T2 ON T1.property_id = T2.property_id GROUP BY T1.owner_user_id;","query_toks":["SELECT","T1.owner_user_id",",","count","(","*",")","FROM","Properties","AS","T1","JOIN","Property_Photos","AS","T2","ON","T1.property_id","=","T2.property_id","GROUP","BY","T1.owner_user_id",";"],"query_toks_no_value":["select","t1",".","owner_user_id",",","count","(","*",")","from","properties","as","t1","join","property_photos","as","t2","on","t1",".","property_id","=","t2",".","property_id","group","by","t1",".","owner_user_id"],"question":"Quantas fotos cada proprietário tem de suas propriedades? Liste o id do usuário e o número de fotos.","question_toks":["Quantas","fotos","cada","proprietário","tem","de","suas","propriedades","?","Liste","o","id","do","usuário","e","o","número","de","fotos","."],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",9]],"conds":[[false,2,[0,[0,34,false],null],[0,53,false],null]]},"select":[false,[[0,[0,[0,36,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,36,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.owner_user_id , count(*) FROM Properties AS T1 JOIN Property_Photos AS T2 ON T1.property_id = T2.property_id GROUP BY T1.owner_user_id;","query_toks":["SELECT","T1.owner_user_id",",","count","(","*",")","FROM","Properties","AS","T1","JOIN","Property_Photos","AS","T2","ON","T1.property_id","=","T2.property_id","GROUP","BY","T1.owner_user_id",";"],"query_toks_no_value":["select","t1",".","owner_user_id",",","count","(","*",")","from","properties","as","t1","join","property_photos","as","t2","on","t1",".","property_id","=","t2",".","property_id","group","by","t1",".","owner_user_id"],"question":"Quais são os ids dos usuários dos proprietários de imóveis que têm fotos de propriedades, e quantas cada um delas possui?","question_toks":["Quais","são","os","ids","dos","usuários","dos","proprietários","de","imóveis","que","têm","fotos","de","propriedades",",","e","quantas","cada","um","delas","possui","?"],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",9]],"conds":[[false,2,[0,[0,34,false],null],[0,53,false],null]]},"select":[false,[[0,[0,[0,36,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,36,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT sum(T1.price_max) FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id = T2.user_id WHERE T2.user_category_code = 'Single Mother' OR T2.user_category_code = 'Student';","query_toks":["SELECT","sum","(","T1.price_max",")","FROM","Properties","AS","T1","JOIN","Users","AS","T2","ON","T1.owner_user_id","=","T2.user_id","WHERE","T2.user_category_code","=","'Single","Mother","'","OR","T2.user_category_code","=","'Student","'",";"],"query_toks_no_value":["select","sum","(","t1",".","price_max",")","from","properties","as","t1","join","users","as","t2","on","t1",".","owner_user_id","=","t2",".","user_id","where","t2",".","user_category_code","=","value","or","t2",".","user_category_code","=","value"],"question":"Qual é o preço máximo total das propriedades pertencentes a Single Mother ou Student?","question_toks":["Qual","é","o","preço","máximo","total","das","propriedades","pertencentes","a","Single","Mother","ou","Student","?"],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,36,false],null],[0,21,false],null]]},"select":[false,[[4,[0,[0,47,false],null]]]],"where":[[false,2,[0,[0,23,false],null],"\"Single Mother\"",null],"or",[false,2,[0,[0,23,false],null],"\"Student\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT sum(T1.price_max) FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id = T2.user_id WHERE T2.user_category_code = 'Single Mother' OR T2.user_category_code = 'Student';","query_toks":["SELECT","sum","(","T1.price_max",")","FROM","Properties","AS","T1","JOIN","Users","AS","T2","ON","T1.owner_user_id","=","T2.user_id","WHERE","T2.user_category_code","=","'Single","Mother","'","OR","T2.user_category_code","=","'Student","'",";"],"query_toks_no_value":["select","sum","(","t1",".","price_max",")","from","properties","as","t1","join","users","as","t2","on","t1",".","owner_user_id","=","t2",".","user_id","where","t2",".","user_category_code","=","value","or","t2",".","user_category_code","=","value"],"question":"Dê o preço máximo total correspondente a quaisquer propriedades pertencentes a Single Mother ou Student.","question_toks":["Dê","o","preço","máximo","total","correspondente","a","quaisquer","propriedades","pertencentes","a","Single","Mother","ou","Student","."],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,36,false],null],[0,21,false],null]]},"select":[false,[[4,[0,[0,47,false],null]]]],"where":[[false,2,[0,[0,23,false],null],"\"Single Mother\"",null],"or",[false,2,[0,[0,23,false],null],"\"Student\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.datestamp , T2.property_name FROM User_Property_History AS T1 JOIN Properties AS T2 ON T1.property_id = T2.property_id ORDER BY datestamp;","query_toks":["SELECT","T1.datestamp",",","T2.property_name","FROM","User_Property_History","AS","T1","JOIN","Properties","AS","T2","ON","T1.property_id","=","T2.property_id","ORDER","BY","datestamp",";"],"query_toks_no_value":["select","t1",".","datestamp",",","t2",".","property_name","from","user_property_history","as","t1","join","properties","as","t2","on","t1",".","property_id","=","t2",".","property_id","order","by","datestamp"],"question":"Quais são os carimbos de data e os nomes das propriedades para cada item do histórico de propriedades, ordenados por carimbo de data?","question_toks":["Quais","são","os","carimbos","de","data","e","os","nomes","das","propriedades","para","cada","item","do","histórico","de","propriedades",",","ordenados","por","carimbo","de","data","?"],"sql":{"from":{"table_units":[["table_unit",11],["table_unit",7]],"conds":[[false,2,[0,[0,64,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,65,false],null]],[0,[0,[0,40,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,65,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.datestamp , T2.property_name FROM User_Property_History AS T1 JOIN Properties AS T2 ON T1.property_id = T2.property_id ORDER BY datestamp;","query_toks":["SELECT","T1.datestamp",",","T2.property_name","FROM","User_Property_History","AS","T1","JOIN","Properties","AS","T2","ON","T1.property_id","=","T2.property_id","ORDER","BY","datestamp",";"],"query_toks_no_value":["select","t1",".","datestamp",",","t2",".","property_name","from","user_property_history","as","t1","join","properties","as","t2","on","t1",".","property_id","=","t2",".","property_id","order","by","datestamp"],"question":"Retorne o carimbo de data e hora e o nome da propriedade para cada evento de histórico de propriedade, ordenado por carimbo de data e hora.","question_toks":["Retorne","o","carimbo","de","data","e","hora","e","o","nome","da","propriedade","para","cada","evento","de","histórico","de","propriedade",",","ordenado","por","carimbo","de","data","e","hora","."],"sql":{"from":{"table_units":[["table_unit",11],["table_unit",7]],"conds":[[false,2,[0,[0,64,false],null],[0,34,false],null]]},"select":[false,[[0,[0,[0,65,false],null]],[0,[0,[0,40,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,65,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.property_type_description , T1.property_type_code FROM Ref_Property_Types AS T1 JOIN Properties AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.property_type_description",",","T1.property_type_code","FROM","Ref_Property_Types","AS","T1","JOIN","Properties","AS","T2","ON","T1.property_type_code","=","T2.property_type_code","GROUP","BY","T1.property_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","property_type_description",",","t1",".","property_type_code","from","ref_property_types","as","t1","join","properties","as","t2","on","t1",".","property_type_code","=","t2",".","property_type_code","group","by","t1",".","property_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é a descrição do tipo de propriedade mais comum? Liste a descrição e o código.","question_toks":["Qual","é","a","descrição","do","tipo","de","propriedade","mais","comum","?","Liste","a","descrição","e","o","código","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",7]],"conds":[[false,2,[0,[0,3,false],null],[0,37,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.property_type_description , T1.property_type_code FROM Ref_Property_Types AS T1 JOIN Properties AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T1.property_type_description",",","T1.property_type_code","FROM","Ref_Property_Types","AS","T1","JOIN","Properties","AS","T2","ON","T1.property_type_code","=","T2.property_type_code","GROUP","BY","T1.property_type_code","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t1",".","property_type_description",",","t1",".","property_type_code","from","ref_property_types","as","t1","join","properties","as","t2","on","t1",".","property_type_code","=","t2",".","property_type_code","group","by","t1",".","property_type_code","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o tipo de propriedade mais comum e qual é sua descrição?","question_toks":["Qual","é","o","tipo","de","propriedade","mais","comum","e","qual","é","sua","descrição","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",7]],"conds":[[false,2,[0,[0,3,false],null],[0,37,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT age_category_description FROM Ref_Age_Categories WHERE age_category_code = 'Over 60';","query_toks":["SELECT","age_category_description","FROM","Ref_Age_Categories","WHERE","age_category_code","=","'Over","60","'",";"],"query_toks_no_value":["select","age_category_description","from","ref_age_categories","where","age_category_code","=","value"],"question":"Qual é a descrição detalhada do código da categoria etária 'Over 60'?","question_toks":["Qual","é","a","descrição","detalhada","do","código","da","categoria","etária","'Over","60","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Over 60\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT age_category_description FROM Ref_Age_Categories WHERE age_category_code = 'Over 60';","query_toks":["SELECT","age_category_description","FROM","Ref_Age_Categories","WHERE","age_category_code","=","'Over","60","'",";"],"query_toks_no_value":["select","age_category_description","from","ref_age_categories","where","age_category_code","=","value"],"question":"Dê a descrição da categoria etária 'Over 60'.","question_toks":["Dê","a","descrição","da","categoria","etária","'Over","60","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],"\"Over 60\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT room_size , count(*) FROM Rooms GROUP BY room_size","query_toks":["SELECT","room_size",",","count","(","*",")","FROM","Rooms","GROUP","BY","room_size"],"query_toks_no_value":["select","room_size",",","count","(","*",")","from","rooms","group","by","room_size"],"question":"Quais são os diferentes tamanhos de quartos e quantos há de cada um?","question_toks":["Quais","são","os","diferentes","tamanhos","de","quartos","e","quantos","há","de","cada","um","?"],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,61,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,61,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT room_size , count(*) FROM Rooms GROUP BY room_size","query_toks":["SELECT","room_size",",","count","(","*",")","FROM","Rooms","GROUP","BY","room_size"],"query_toks_no_value":["select","room_size",",","count","(","*",")","from","rooms","group","by","room_size"],"question":"Retorne o número de quartos com cada tamanho de quarto diferente.","question_toks":["Retorne","o","número","de","quartos","com","cada","tamanho","de","quarto","diferente","."],"sql":{"from":{"table_units":[["table_unit",10]],"conds":[]},"select":[false,[[0,[0,[0,61,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,61,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.country FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id = T2.user_address_id WHERE T2.first_name = 'Robbie';","query_toks":["SELECT","T1.country","FROM","Addresses","AS","T1","JOIN","Users","AS","T2","ON","T1.address_id","=","T2.user_address_id","WHERE","T2.first_name","=","'Robbie","'",";"],"query_toks_no_value":["select","t1",".","country","from","addresses","as","t1","join","users","as","t2","on","t1",".","address_id","=","t2",".","user_address_id","where","t2",".","first_name","=","value"],"question":"Em qual país o usuário com o primeiro nome Robbie vive?","question_toks":["Em","qual","país","o","usuário","com","o","primeiro","nome","Robbie","vive","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",6]],"conds":[[false,2,[0,[0,9,false],null],[0,24,false],null]]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,30,false],null],"\"Robbie\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.country FROM Addresses AS T1 JOIN Users AS T2 ON T1.address_id = T2.user_address_id WHERE T2.first_name = 'Robbie';","query_toks":["SELECT","T1.country","FROM","Addresses","AS","T1","JOIN","Users","AS","T2","ON","T1.address_id","=","T2.user_address_id","WHERE","T2.first_name","=","'Robbie","'",";"],"query_toks_no_value":["select","t1",".","country","from","addresses","as","t1","join","users","as","t2","on","t1",".","address_id","=","t2",".","user_address_id","where","t2",".","first_name","=","value"],"question":"Retorne o país em que o usuário com o primeiro nome Robbie vive.","question_toks":["Retorne","o","país","em","que","o","usuário","com","o","primeiro","nome","Robbie","vive","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",6]],"conds":[[false,2,[0,[0,9,false],null],[0,24,false],null]]},"select":[false,[[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,30,false],null],"\"Robbie\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT first_name , middle_name , last_name FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id = T2.user_id WHERE T1.property_address_id = T2.user_address_id;","query_toks":["SELECT","first_name",",","middle_name",",","last_name","FROM","Properties","AS","T1","JOIN","Users","AS","T2","ON","T1.owner_user_id","=","T2.user_id","WHERE","T1.property_address_id","=","T2.user_address_id",";"],"query_toks_no_value":["select","first_name",",","middle_name",",","last_name","from","properties","as","t1","join","users","as","t2","on","t1",".","owner_user_id","=","t2",".","user_id","where","t1",".","property_address_id","=","t2",".","user_address_id"],"question":"Quais são os primeiros, nomes do meio e sobrenomes dos usuários que possuem a propriedade em que vivem?","question_toks":["Quais","são","os","primeiros",",","nomes","do","meio","e","sobrenomes","dos","usuários","que","possuem","a","propriedade","em","que","vivem","?"],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,36,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,30,false],null]],[0,[0,[0,31,false],null]],[0,[0,[0,32,false],null]]]],"where":[[false,2,[0,[0,35,false],null],[0,24,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT first_name , middle_name , last_name FROM Properties AS T1 JOIN Users AS T2 ON T1.owner_user_id = T2.user_id WHERE T1.property_address_id = T2.user_address_id;","query_toks":["SELECT","first_name",",","middle_name",",","last_name","FROM","Properties","AS","T1","JOIN","Users","AS","T2","ON","T1.owner_user_id","=","T2.user_id","WHERE","T1.property_address_id","=","T2.user_address_id",";"],"query_toks_no_value":["select","first_name",",","middle_name",",","last_name","from","properties","as","t1","join","users","as","t2","on","t1",".","owner_user_id","=","t2",".","user_id","where","t1",".","property_address_id","=","t2",".","user_address_id"],"question":"Retorne os nomes completos dos usuários que vivem em propriedades que possuem.","question_toks":["Retorne","os","nomes","completos","dos","usuários","que","vivem","em","propriedades","que","possuem","."],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",6]],"conds":[[false,2,[0,[0,36,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,30,false],null]],[0,[0,[0,31,false],null]],[0,[0,[0,32,false],null]]]],"where":[[false,2,[0,[0,35,false],null],[0,24,false],null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT search_string FROM User_Searches EXCEPT SELECT T1.search_string FROM User_Searches AS T1 JOIN Properties AS T2 ON T1.user_id = T2.owner_user_id;","query_toks":["SELECT","search_string","FROM","User_Searches","EXCEPT","SELECT","T1.search_string","FROM","User_Searches","AS","T1","JOIN","Properties","AS","T2","ON","T1.user_id","=","T2.owner_user_id",";"],"query_toks_no_value":["select","search_string","from","user_searches","except","select","t1",".","search_string","from","user_searches","as","t1","join","properties","as","t2","on","t1",".","user_id","=","t2",".","owner_user_id"],"question":"Liste o conteúdo de busca dos usuários que não possuem uma única propriedade.","question_toks":["Liste","o","conteúdo","de","busca","dos","usuários","que","não","possuem","uma","única","propriedade","."],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,69,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",12],["table_unit",7]],"conds":[[false,2,[0,[0,66,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,69,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"real_estate_rentals","query":"SELECT search_string FROM User_Searches EXCEPT SELECT T1.search_string FROM User_Searches AS T1 JOIN Properties AS T2 ON T1.user_id = T2.owner_user_id;","query_toks":["SELECT","search_string","FROM","User_Searches","EXCEPT","SELECT","T1.search_string","FROM","User_Searches","AS","T1","JOIN","Properties","AS","T2","ON","T1.user_id","=","T2.owner_user_id",";"],"query_toks_no_value":["select","search_string","from","user_searches","except","select","t1",".","search_string","from","user_searches","as","t1","join","properties","as","t2","on","t1",".","user_id","=","t2",".","owner_user_id"],"question":"Quais strings de busca foram inseridas por usuários que não possuem propriedades?","question_toks":["Quais","strings","de","busca","foram","inseridas","por","usuários","que","não","possuem","propriedades","?"],"sql":{"from":{"table_units":[["table_unit",12]],"conds":[]},"select":[false,[[0,[0,[0,69,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",12],["table_unit",7]],"conds":[[false,2,[0,[0,66,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,69,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"real_estate_rentals","query":"SELECT T1.last_name , T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING count(*) <= 2 INTERSECT SELECT T3.last_name , T3.user_id FROM Users AS T3 JOIN Properties AS T4 ON T3.user_id = T4.owner_user_id GROUP BY T3.user_id HAVING count(*) >= 2;","query_toks":["SELECT","T1.last_name",",","T1.user_id","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","GROUP","BY","T1.user_id","HAVING","count","(","*",")","<","=","2","INTERSECT","SELECT","T3.last_name",",","T3.user_id","FROM","Users","AS","T3","JOIN","Properties","AS","T4","ON","T3.user_id","=","T4.owner_user_id","GROUP","BY","T3.user_id","HAVING","count","(","*",")",">","=","2",";"],"query_toks_no_value":["select","t1",".","last_name",",","t1",".","user_id","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","group","by","t1",".","user_id","having","count","(","*",")","<","=","value","intersect","select","t3",".","last_name",",","t3",".","user_id","from","users","as","t3","join","properties","as","t4","on","t3",".","user_id","=","t4",".","owner_user_id","group","by","t3",".","user_id","having","count","(","*",")",">","=","value"],"question":"Liste os sobrenomes e ids dos usuários que têm pelo menos 2 propriedades e pesquisaram no máximo duas vezes.","question_toks":["Liste","os","sobrenomes","e","ids","dos","usuários","que","têm","pelo","menos","2","propriedades","e","pesquisaram","no","máximo","duas","vezes","."],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[0,[0,[0,32,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,6,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",6],["table_unit",7]],"conds":[[false,2,[0,[0,21,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,32,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"real_estate_rentals","query":"SELECT T1.last_name , T1.user_id FROM Users AS T1 JOIN User_Searches AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING count(*) <= 2 INTERSECT SELECT T3.last_name , T3.user_id FROM Users AS T3 JOIN Properties AS T4 ON T3.user_id = T4.owner_user_id GROUP BY T3.user_id HAVING count(*) >= 2;","query_toks":["SELECT","T1.last_name",",","T1.user_id","FROM","Users","AS","T1","JOIN","User_Searches","AS","T2","ON","T1.user_id","=","T2.user_id","GROUP","BY","T1.user_id","HAVING","count","(","*",")","<","=","2","INTERSECT","SELECT","T3.last_name",",","T3.user_id","FROM","Users","AS","T3","JOIN","Properties","AS","T4","ON","T3.user_id","=","T4.owner_user_id","GROUP","BY","T3.user_id","HAVING","count","(","*",")",">","=","2",";"],"query_toks_no_value":["select","t1",".","last_name",",","t1",".","user_id","from","users","as","t1","join","user_searches","as","t2","on","t1",".","user_id","=","t2",".","user_id","group","by","t1",".","user_id","having","count","(","*",")","<","=","value","intersect","select","t3",".","last_name",",","t3",".","user_id","from","users","as","t3","join","properties","as","t4","on","t3",".","user_id","=","t4",".","owner_user_id","group","by","t3",".","user_id","having","count","(","*",")",">","=","value"],"question":"Quais são os sobrenomes e ids dos usuários que pesquisaram duas vezes ou menos e possuem duas ou mais propriedades?","question_toks":["Quais","são","os","sobrenomes","e","ids","dos","usuários","que","pesquisaram","duas","vezes","ou","menos","e","possuem","duas","ou","mais","propriedades","?"],"sql":{"from":{"table_units":[["table_unit",6],["table_unit",12]],"conds":[[false,2,[0,[0,21,false],null],[0,66,false],null]]},"select":[false,[[0,[0,[0,32,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,6,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",6],["table_unit",7]],"conds":[[false,2,[0,[0,21,false],null],[0,36,false],null]]},"select":[false,[[0,[0,[0,32,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT count(*) FROM bike WHERE weight > 780","query_toks":["SELECT","count","(","*",")","FROM","bike","WHERE","weight",">","780"],"query_toks_no_value":["select","count","(","*",")","from","bike","where","weight",">","value"],"question":"Conte quantas bicicletas pesam mais de 780 gramas.","question_toks":["Conte","quantas","bicicletas","pesam","mais","de","780","gramas","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,3,false],null],780.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT product_name , weight FROM bike ORDER BY price ASC","query_toks":["SELECT","product_name",",","weight","FROM","bike","ORDER","BY","price","ASC"],"query_toks_no_value":["select","product_name",",","weight","from","bike","order","by","price","asc"],"question":"Liste os nomes dos produtos e os pesos das bicicletas em ordem crescente de preço.","question_toks":["Liste","os","nomes","dos","produtos","e","os","pesos","das","bicicletas","em","ordem","crescente","de","preço","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT heat , name , nation FROM cyclist","query_toks":["SELECT","heat",",","name",",","nation","FROM","cyclist"],"query_toks_no_value":["select","heat",",","name",",","nation","from","cyclist"],"question":"Liste o heat, o nome e a nação de todos os ciclistas.","question_toks":["Liste","o","heat",",","o","nome","e","a","nação","de","todos","os","ciclistas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT max(weight) , min(weight) FROM bike","query_toks":["SELECT","max","(","weight",")",",","min","(","weight",")","FROM","bike"],"query_toks_no_value":["select","max","(","weight",")",",","min","(","weight",")","from","bike"],"question":"Quais são o peso máximo e mínimo de todas as bicicletas?","question_toks":["Quais","são","o","peso","máximo","e","mínimo","de","todas","as","bicicletas","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,3,false],null]],[2,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT avg(price) FROM bike WHERE material = 'Carbon CC'","query_toks":["SELECT","avg","(","price",")","FROM","bike","WHERE","material","=","'Carbon","CC","'"],"query_toks_no_value":["select","avg","(","price",")","from","bike","where","material","=","value"],"question":"Qual é o preço médio das bicicletas feitas do material 'Carbon CC'?","question_toks":["Qual","é","o","preço","médio","das","bicicletas","feitas","do","material","'Carbon","CC","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Carbon CC\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT name , RESULT FROM cyclist WHERE nation != 'Russia'","query_toks":["SELECT","name",",","RESULT","FROM","cyclist","WHERE","nation","!","=","'Russia","'"],"query_toks_no_value":["select","name",",","result","from","cyclist","where","nation","!","=","value"],"question":"Quais são o nome e o resultado dos ciclistas que não são da 'Russia'?","question_toks":["Quais","são","o","nome","e","o","resultado","dos","ciclistas","que","não","são","da","'Russia","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,7,[0,[0,9,false],null],"\"Russia\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT DISTINCT T1.id , T1.product_name FROM bike AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.bike_id WHERE T2.purchase_year > 2015","query_toks":["SELECT","DISTINCT","T1.id",",","T1.product_name","FROM","bike","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.bike_id","WHERE","T2.purchase_year",">","2015"],"query_toks_no_value":["select","distinct","t1",".","id",",","t1",".","product_name","from","bike","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","bike_id","where","t2",".","purchase_year",">","value"],"question":"Quais são os ids distintos e os nomes dos produtos das bicicletas que foram compradas após o ano de 2015?","question_toks":["Quais","são","os","ids","distintos","e","os","nomes","dos","produtos","das","bicicletas","que","foram","compradas","após","o","ano","de","2015","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,13,false],null],2015.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT T1.id , T1.product_name FROM bike AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.bike_id GROUP BY T1.id HAVING count(*) >= 4","query_toks":["SELECT","T1.id",",","T1.product_name","FROM","bike","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.bike_id","GROUP","BY","T1.id","HAVING","count","(","*",")",">","=","4"],"query_toks_no_value":["select","t1",".","id",",","t1",".","product_name","from","bike","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","bike_id","group","by","t1",".","id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids e nomes das bicicletas de corrida que foram compradas por pelo menos 4 ciclistas?","question_toks":["Quais","são","os","ids","e","nomes","das","bicicletas","de","corrida","que","foram","compradas","por","pelo","menos","4","ciclistas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],4.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT T1.id , T1.name FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.cyclist_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.id",",","T1.name","FROM","cyclist","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.cyclist_id","GROUP","BY","T1.id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","id",",","t1",".","name","from","cyclist","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","cyclist_id","group","by","t1",".","id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são o id e o nome do ciclista que possui mais bicicletas?","question_toks":["Quais","são","o","id","e","o","nome","do","ciclista","que","possui","mais","bicicletas","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT DISTINCT T3.product_name FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.cyclist_id JOIN bike AS T3 ON T2.bike_id = T3.id WHERE T1.nation = 'Russia' OR T1.nation = 'Great Britain'","query_toks":["SELECT","DISTINCT","T3.product_name","FROM","cyclist","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.cyclist_id","JOIN","bike","AS","T3","ON","T2.bike_id","=","T3.id","WHERE","T1.nation","=","'Russia","'","OR","T1.nation","=","'Great","Britain","'"],"query_toks_no_value":["select","distinct","t3",".","product_name","from","cyclist","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","cyclist_id","join","bike","as","t3","on","t2",".","bike_id","=","t3",".","id","where","t1",".","nation","=","value","or","t1",".","nation","=","value"],"question":"Quais são os nomes de produtos distintos das bicicletas possuídas por ciclistas da 'Russia' ou ciclistas da 'Great Britain'?","question_toks":["Quais","são","os","nomes","de","produtos","distintos","das","bicicletas","possuídas","por","ciclistas","da","'Russia","'","ou","ciclistas","da","'Great","Britain","'","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null],"and",[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Russia\"",null],"or",[false,2,[0,[0,9,false],null],"\"Great Britain\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT count(DISTINCT heat) FROM cyclist","query_toks":["SELECT","count","(","DISTINCT","heat",")","FROM","cyclist"],"query_toks_no_value":["select","count","(","distinct","heat",")","from","cyclist"],"question":"Quantos níveis diferentes de heat existem para os ciclistas?","question_toks":["Quantos","níveis","diferentes","de","heat","existem","para","os","ciclistas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,7,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT count(*) FROM cyclist WHERE id NOT IN ( SELECT cyclist_id FROM cyclists_own_bikes WHERE purchase_year > 2015 )","query_toks":["SELECT","count","(","*",")","FROM","cyclist","WHERE","id","NOT","IN","(","SELECT","cyclist_id","FROM","cyclists_own_bikes","WHERE","purchase_year",">","2015",")"],"query_toks_no_value":["select","count","(","*",")","from","cyclist","where","id","not","in","(","select","cyclist_id","from","cyclists_own_bikes","where","purchase_year",">","value",")"],"question":"Quantos ciclistas não compraram nenhuma bicicleta após o ano de 2015?","question_toks":["Quantos","ciclistas","não","compraram","nenhuma","bicicleta","após","o","ano","de","2015","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,3,[0,[0,13,false],null],2015.0,null]],"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":"bike_racing","query":"SELECT DISTINCT T3.product_name FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.cyclist_id JOIN bike AS T3 ON T2.bike_id = T3.id WHERE T1.result < '4:21.558'","query_toks":["SELECT","DISTINCT","T3.product_name","FROM","cyclist","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.cyclist_id","JOIN","bike","AS","T3","ON","T2.bike_id","=","T3.id","WHERE","T1.result","<","'4:21.558","'"],"query_toks_no_value":["select","distinct","t3",".","product_name","from","cyclist","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","cyclist_id","join","bike","as","t3","on","t2",".","bike_id","=","t3",".","id","where","t1",".","result","<","value"],"question":"Quais são os nomes das bicicletas de corrida distintas que foram compradas pelos ciclistas com resultados melhores que '4:21.558'?","question_toks":["Quais","são","os","nomes","das","bicicletas","de","corrida","distintas","que","foram","compradas","pelos","ciclistas","com","resultados","melhores","que","'","4:21.558","'","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null],"and",[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,2,false],null]]]],"where":[[false,4,[0,[0,10,false],null],"\"4:21.558\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT T3.product_name , T3.price FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.cyclist_id JOIN bike AS T3 ON T2.bike_id = T3.id WHERE T1.name = 'Bradley Wiggins' INTERSECT SELECT T3.product_name , T3.price FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.cyclist_id JOIN bike AS T3 ON T2.bike_id = T3.id WHERE T1.name = 'Antonio Tauler'","query_toks":["SELECT","T3.product_name",",","T3.price","FROM","cyclist","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.cyclist_id","JOIN","bike","AS","T3","ON","T2.bike_id","=","T3.id","WHERE","T1.name","=","'Bradley","Wiggins","'","INTERSECT","SELECT","T3.product_name",",","T3.price","FROM","cyclist","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.cyclist_id","JOIN","bike","AS","T3","ON","T2.bike_id","=","T3.id","WHERE","T1.name","=","'Antonio","Tauler","'"],"query_toks_no_value":["select","t3",".","product_name",",","t3",".","price","from","cyclist","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","cyclist_id","join","bike","as","t3","on","t2",".","bike_id","=","t3",".","id","where","t1",".","name","=","value","intersect","select","t3",".","product_name",",","t3",".","price","from","cyclist","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","cyclist_id","join","bike","as","t3","on","t2",".","bike_id","=","t3",".","id","where","t1",".","name","=","value"],"question":"Liste o nome e o preço da bicicleta que é possuída tanto pelo ciclista chamado 'Bradley Wiggins' quanto pelo ciclista chamado 'Antonio Tauler'.","question_toks":["Liste","o","nome","e","o","preço","da","bicicleta","que","é","possuída","tanto","pelo","ciclista","chamado","'Bradley","Wiggins","'","quanto","pelo","ciclista","chamado","'Antonio","Tauler","'","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null],"and",[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"Bradley Wiggins\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null],"and",[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"Antonio Tauler\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT name , nation , RESULT FROM cyclist EXCEPT SELECT T1.name , T1.nation , T1.result FROM cyclist AS T1 JOIN cyclists_own_bikes AS T2 ON T1.id = T2.cyclist_id","query_toks":["SELECT","name",",","nation",",","RESULT","FROM","cyclist","EXCEPT","SELECT","T1.name",",","T1.nation",",","T1.result","FROM","cyclist","AS","T1","JOIN","cyclists_own_bikes","AS","T2","ON","T1.id","=","T2.cyclist_id"],"query_toks_no_value":["select","name",",","nation",",","result","from","cyclist","except","select","t1",".","name",",","t1",".","nation",",","t1",".","result","from","cyclist","as","t1","join","cyclists_own_bikes","as","t2","on","t1",".","id","=","t2",".","cyclist_id"],"question":"Mostre o nome, a nação e o resultado dos ciclistas que não compraram nenhuma bicicleta de corrida.","question_toks":["Mostre","o","nome",",","a","nação","e","o","resultado","dos","ciclistas","que","não","compraram","nenhuma","bicicleta","de","corrida","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",2]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,8,false],null]],[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"bike_racing","query":"SELECT product_name FROM bike WHERE material LIKE \"%fiber%\"","query_toks":["SELECT","product_name","FROM","bike","WHERE","material","LIKE","``","%","fiber","%","''"],"query_toks_no_value":["select","product_name","from","bike","where","material","like","value"],"question":"Quais são os nomes das bicicletas que têm a substring 'fiber' em seu material?","question_toks":["Quais","são","os","nomes","das","bicicletas","que","têm","a","substring","'fiber","'","em","seu","material","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%fiber%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bike_racing","query":"SELECT cyclist_id , count(*) FROM cyclists_own_bikes GROUP BY cyclist_id ORDER BY cyclist_id","query_toks":["SELECT","cyclist_id",",","count","(","*",")","FROM","cyclists_own_bikes","GROUP","BY","cyclist_id","ORDER","BY","cyclist_id"],"query_toks_no_value":["select","cyclist_id",",","count","(","*",")","from","cyclists_own_bikes","group","by","cyclist_id","order","by","cyclist_id"],"question":"Quantas bicicletas cada ciclista possui? Ordene por id do ciclista.","question_toks":["Quantas","bicicletas","cada","ciclista","possui","?","Ordene","por","id","do","ciclista","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["asc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , flavor FROM goods WHERE food = \"Cake\" ORDER BY price DESC LIMIT 1","query_toks":["SELECT","id",",","flavor","FROM","goods","WHERE","food","=","``","Cake","''","ORDER","BY","price","DESC","LIMIT","1"],"query_toks_no_value":["select","id",",","flavor","from","goods","where","food","=","value","order","by","price","desc","limit","value"],"question":"Qual é o Cake mais caro e seu sabor?","question_toks":["Qual","é","o","Cake","mais","caro","e","seu","sabor","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , flavor FROM goods WHERE food = \"Cake\" ORDER BY price DESC LIMIT 1","query_toks":["SELECT","id",",","flavor","FROM","goods","WHERE","food","=","``","Cake","''","ORDER","BY","price","DESC","LIMIT","1"],"query_toks_no_value":["select","id",",","flavor","from","goods","where","food","=","value","order","by","price","desc","limit","value"],"question":"Dê o id e o sabor do Cake mais caro.","question_toks":["Dê","o","id","e","o","sabor","do","Cake","mais","caro","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , flavor FROM goods WHERE food = \"Cookie\" ORDER BY price LIMIT 1","query_toks":["SELECT","id",",","flavor","FROM","goods","WHERE","food","=","``","Cookie","''","ORDER","BY","price","LIMIT","1"],"query_toks_no_value":["select","id",",","flavor","from","goods","where","food","=","value","order","by","price","limit","value"],"question":"Qual é o Cookie mais barato e seu sabor?","question_toks":["Qual","é","o","Cookie","mais","barato","e","seu","sabor","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , flavor FROM goods WHERE food = \"Cookie\" ORDER BY price LIMIT 1","query_toks":["SELECT","id",",","flavor","FROM","goods","WHERE","food","=","``","Cookie","''","ORDER","BY","price","LIMIT","1"],"query_toks_no_value":["select","id",",","flavor","from","goods","where","food","=","value","order","by","price","limit","value"],"question":"Qual é o id e o sabor do Cookie mais barato?","question_toks":["Qual","é","o","id","e","o","sabor","do","Cookie","mais","barato","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE flavor = \"Apple\"","query_toks":["SELECT","id","FROM","goods","WHERE","flavor","=","``","Apple","''"],"query_toks_no_value":["select","id","from","goods","where","flavor","=","value"],"question":"Encontre os ids dos produtos que têm sabor de Apple.","question_toks":["Encontre","os","ids","dos","produtos","que","têm","sabor","de","Apple","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apple\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE flavor = \"Apple\"","query_toks":["SELECT","id","FROM","goods","WHERE","flavor","=","``","Apple","''"],"query_toks_no_value":["select","id","from","goods","where","flavor","=","value"],"question":"Quais são os ids com sabor de Apple?","question_toks":["Quais","são","os","ids","com","sabor","de","Apple","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apple\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE price < 3","query_toks":["SELECT","id","FROM","goods","WHERE","price","<","3"],"query_toks_no_value":["select","id","from","goods","where","price","<","value"],"question":"Quais são os ids dos produtos que custam menos de 3 dólares?","question_toks":["Quais","são","os","ids","dos","produtos","que","custam","menos","de","3","dólares","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],3.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE price < 3","query_toks":["SELECT","id","FROM","goods","WHERE","price","<","3"],"query_toks_no_value":["select","id","from","goods","where","price","<","value"],"question":"Dê os IDs dos produtos que custam menos de 3 dólares.","question_toks":["Dê","os","IDs","dos","produtos","que","custam","menos","de","3","dólares","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],3.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.Id = T2.Item JOIN receipts AS T3 ON T2.Receipt = T3.ReceiptNumber WHERE T1.Flavor = \"Lemon\" AND T1.Food = \"Cake\"","query_toks":["SELECT","DISTINCT","T3.CustomerId","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.Id","=","T2.Item","JOIN","receipts","AS","T3","ON","T2.Receipt","=","T3.ReceiptNumber","WHERE","T1.Flavor","=","``","Lemon","''","AND","T1.Food","=","``","Cake","''"],"query_toks_no_value":["select","distinct","t3",".","customerid","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","where","t1",".","flavor","=","value","and","t1",".","food","=","value"],"question":"Liste os ids distintos de todos os clientes que compraram um Cake com sabor Lemon.","question_toks":["Liste","os","ids","distintos","de","todos","os","clientes","que","compraram","um","Cake","com","sabor","Lemon","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Lemon\"",null],"and",[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.Id = T2.Item JOIN receipts AS T3 ON T2.Receipt = T3.ReceiptNumber WHERE T1.Flavor = \"Lemon\" AND T1.Food = \"Cake\"","query_toks":["SELECT","DISTINCT","T3.CustomerId","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.Id","=","T2.Item","JOIN","receipts","AS","T3","ON","T2.Receipt","=","T3.ReceiptNumber","WHERE","T1.Flavor","=","``","Lemon","''","AND","T1.Food","=","``","Cake","''"],"query_toks_no_value":["select","distinct","t3",".","customerid","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","where","t1",".","flavor","=","value","and","t1",".","food","=","value"],"question":"Quais são os ids distintos dos clientes que compraram Cake com sabor Lemon?","question_toks":["Quais","são","os","ids","distintos","dos","clientes","que","compraram","Cake","com","sabor","Lemon","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[true,[[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Lemon\"",null],"and",[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.food , count(DISTINCT T3.CustomerId) FROM goods AS T1 JOIN items AS T2 ON T1.Id = T2.Item JOIN receipts AS T3 ON T2.Receipt = T3.ReceiptNumber GROUP BY T1.food","query_toks":["SELECT","T1.food",",","count","(","DISTINCT","T3.CustomerId",")","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.Id","=","T2.Item","JOIN","receipts","AS","T3","ON","T2.Receipt","=","T3.ReceiptNumber","GROUP","BY","T1.food"],"query_toks_no_value":["select","t1",".","food",",","count","(","distinct","t3",".","customerid",")","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t1",".","food"],"question":"Para cada tipo de alimento, diga-me quantos clientes já o compraram.","question_toks":["Para","cada","tipo","de","alimento",",","diga-me","quantos","clientes","já","o","compraram","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,13,true],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.food , count(DISTINCT T3.CustomerId) FROM goods AS T1 JOIN items AS T2 ON T1.Id = T2.Item JOIN receipts AS T3 ON T2.Receipt = T3.ReceiptNumber GROUP BY T1.food","query_toks":["SELECT","T1.food",",","count","(","DISTINCT","T3.CustomerId",")","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.Id","=","T2.Item","JOIN","receipts","AS","T3","ON","T2.Receipt","=","T3.ReceiptNumber","GROUP","BY","T1.food"],"query_toks_no_value":["select","t1",".","food",",","count","(","distinct","t3",".","customerid",")","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t1",".","food"],"question":"Quantos clientes compraram cada alimento?","question_toks":["Quantos","clientes","compraram","cada","alimento","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,13,true],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT CustomerId FROM receipts GROUP BY CustomerId HAVING count(*) >= 15","query_toks":["SELECT","CustomerId","FROM","receipts","GROUP","BY","CustomerId","HAVING","count","(","*",")",">","=","15"],"query_toks_no_value":["select","customerid","from","receipts","group","by","customerid","having","count","(","*",")",">","=","value"],"question":"Encontre o id dos clientes que compraram na padaria pelo menos 15 vezes.","question_toks":["Encontre","o","id","dos","clientes","que","compraram","na","padaria","pelo","menos","15","vezes","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,5,[0,[3,0,false],null],15.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT CustomerId FROM receipts GROUP BY CustomerId HAVING count(*) >= 15","query_toks":["SELECT","CustomerId","FROM","receipts","GROUP","BY","CustomerId","HAVING","count","(","*",")",">","=","15"],"query_toks_no_value":["select","customerid","from","receipts","group","by","customerid","having","count","(","*",")",">","=","value"],"question":"Quais são os ids dos clientes que têm pelo menos 15 recibos?","question_toks":["Quais","são","os","ids","dos","clientes","que","têm","pelo","menos","15","recibos","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,5,[0,[3,0,false],null],15.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T2.LastName FROM receipts AS T1 JOIN customers AS T2 ON T1.CustomerId = T2.id GROUP BY T2.id HAVING count(*) > 10","query_toks":["SELECT","T2.LastName","FROM","receipts","AS","T1","JOIN","customers","AS","T2","ON","T1.CustomerId","=","T2.id","GROUP","BY","T2.id","HAVING","count","(","*",")",">","10"],"query_toks_no_value":["select","t2",".","lastname","from","receipts","as","t1","join","customers","as","t2","on","t1",".","customerid","=","t2",".","id","group","by","t2",".","id","having","count","(","*",")",">","value"],"question":"Qual é o sobrenome dos clientes que compraram na padaria mais de 10 vezes?","question_toks":["Qual","é","o","sobrenome","dos","clientes","que","compraram","na","padaria","mais","de","10","vezes","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,3,[0,[3,0,false],null],10.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T2.LastName FROM receipts AS T1 JOIN customers AS T2 ON T1.CustomerId = T2.id GROUP BY T2.id HAVING count(*) > 10","query_toks":["SELECT","T2.LastName","FROM","receipts","AS","T1","JOIN","customers","AS","T2","ON","T1.CustomerId","=","T2.id","GROUP","BY","T2.id","HAVING","count","(","*",")",">","10"],"query_toks_no_value":["select","t2",".","lastname","from","receipts","as","t1","join","customers","as","t2","on","t1",".","customerid","=","t2",".","id","group","by","t2",".","id","having","count","(","*",")",">","value"],"question":"Dê os sobrenomes dos clientes que foram à padaria mais de 10 vezes.","question_toks":["Dê","os","sobrenomes","dos","clientes","que","foram","à","padaria","mais","de","10","vezes","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,3,[0,[3,0,false],null],10.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT count(*) FROM goods WHERE food = \"Cake\"","query_toks":["SELECT","count","(","*",")","FROM","goods","WHERE","food","=","``","Cake","''"],"query_toks_no_value":["select","count","(","*",")","from","goods","where","food","=","value"],"question":"Quantos tipos de Cake esta padaria vende?","question_toks":["Quantos","tipos","de","Cake","esta","padaria","vende","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT count(*) FROM goods WHERE food = \"Cake\"","query_toks":["SELECT","count","(","*",")","FROM","goods","WHERE","food","=","``","Cake","''"],"query_toks_no_value":["select","count","(","*",")","from","goods","where","food","=","value"],"question":"Conte o número de tipos de Cake que esta padaria vende.","question_toks":["Conte","o","número","de","tipos","de","Cake","que","esta","padaria","vende","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT flavor FROM goods WHERE food = \"Croissant\"","query_toks":["SELECT","flavor","FROM","goods","WHERE","food","=","``","Croissant","''"],"query_toks_no_value":["select","flavor","from","goods","where","food","=","value"],"question":"Liste todos os sabores de Croissant disponíveis nesta padaria.","question_toks":["Liste","todos","os","sabores","de","Croissant","disponíveis","nesta","padaria","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Croissant\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT flavor FROM goods WHERE food = \"Croissant\"","query_toks":["SELECT","flavor","FROM","goods","WHERE","food","=","``","Croissant","''"],"query_toks_no_value":["select","flavor","from","goods","where","food","=","value"],"question":"Quais são todos os sabores de croissant?","question_toks":["Quais","são","todos","os","sabores","de","croissant","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Croissant\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T1.item FROM items AS T1 JOIN receipts AS T2 ON T1.receipt = T2.ReceiptNumber WHERE T2.CustomerId = 15","query_toks":["SELECT","DISTINCT","T1.item","FROM","items","AS","T1","JOIN","receipts","AS","T2","ON","T1.receipt","=","T2.ReceiptNumber","WHERE","T2.CustomerId","=","15"],"query_toks_no_value":["select","distinct","t1",".","item","from","items","as","t1","join","receipts","as","t2","on","t1",".","receipt","=","t2",".","receiptnumber","where","t2",".","customerid","=","value"],"question":"Me dê uma lista de todos os itens distintos comprados pelo cliente número 15.","question_toks":["Me","dê","uma","lista","de","todos","os","itens","distintos","comprados","pelo","cliente","número","15","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,13,false],null],15.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T1.item FROM items AS T1 JOIN receipts AS T2 ON T1.receipt = T2.ReceiptNumber WHERE T2.CustomerId = 15","query_toks":["SELECT","DISTINCT","T1.item","FROM","items","AS","T1","JOIN","receipts","AS","T2","ON","T1.receipt","=","T2.ReceiptNumber","WHERE","T2.CustomerId","=","15"],"query_toks_no_value":["select","distinct","t1",".","item","from","items","as","t1","join","receipts","as","t2","on","t1",".","receipt","=","t2",".","receiptnumber","where","t2",".","customerid","=","value"],"question":"Quais são todos os itens distintos comprados pelo cliente 15?","question_toks":["Quais","são","todos","os","itens","distintos","comprados","pelo","cliente","15","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,13,false],null],15.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT food , avg(price) , max(price) , min(price) FROM goods GROUP BY food","query_toks":["SELECT","food",",","avg","(","price",")",",","max","(","price",")",",","min","(","price",")","FROM","goods","GROUP","BY","food"],"query_toks_no_value":["select","food",",","avg","(","price",")",",","max","(","price",")",",","min","(","price",")","from","goods","group","by","food"],"question":"Para cada tipo de alimento, quais são o preço médio, máximo e mínimo?","question_toks":["Para","cada","tipo","de","alimento",",","quais","são","o","preço","médio",",","máximo","e","mínimo","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[5,[0,[0,7,false],null]],[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT food , avg(price) , max(price) , min(price) FROM goods GROUP BY food","query_toks":["SELECT","food",",","avg","(","price",")",",","max","(","price",")",",","min","(","price",")","FROM","goods","GROUP","BY","food"],"query_toks_no_value":["select","food",",","avg","(","price",")",",","max","(","price",")",",","min","(","price",")","from","goods","group","by","food"],"question":"Quais são os preços médio, mínimo e máximo para cada alimento?","question_toks":["Quais","são","os","preços","médio",",","mínimo","e","máximo","para","cada","alimento","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[5,[0,[0,7,false],null]],[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = \"Cake\" INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = \"Cookie\"","query_toks":["SELECT","T1.receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.food","=","``","Cake","''","INTERSECT","SELECT","T1.receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.food","=","``","Cookie","''"],"query_toks_no_value":["select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","food","=","value","intersect","select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","food","=","value"],"question":"Encontre os números dos recibos onde tanto o Cake quanto o Cookie foram comprados.","question_toks":["Encontre","os","números","dos","recibos","onde","tanto","o","Cake","quanto","o","Cookie","foram","comprados","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = \"Cake\" INTERSECT SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.food = \"Cookie\"","query_toks":["SELECT","T1.receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.food","=","``","Cake","''","INTERSECT","SELECT","T1.receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.food","=","``","Cookie","''"],"query_toks_no_value":["select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","food","=","value","intersect","select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","food","=","value"],"question":"Quais são os números de recibo para as instâncias em que tanto Cake quanto Cookie foram comprados?","question_toks":["Quais","são","os","números","de","recibo","para","as","instâncias","em","que","tanto","Cake","quanto","Cookie","foram","comprados","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id JOIN customers AS T4 ON T4.Id = T1.CustomerId WHERE T3.food = \"Croissant\" AND T4.LastName = 'LOGAN'","query_toks":["SELECT","T1.ReceiptNumber","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","JOIN","customers","AS","T4","ON","T4.Id","=","T1.CustomerId","WHERE","T3.food","=","``","Croissant","''","AND","T4.LastName","=","'LOGAN","'"],"query_toks_no_value":["select","t1",".","receiptnumber","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","join","customers","as","t4","on","t4",".","id","=","t1",".","customerid","where","t3",".","food","=","value","and","t4",".","lastname","=","value"],"question":"Encontre todos os números de recibo em que o cliente com sobrenome LOGAN comprou Croissant.","question_toks":["Encontre","todos","os","números","de","recibo","em","que","o","cliente","com","sobrenome","LOGAN","comprou","Croissant","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null],"and",[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Croissant\"",null],"and",[false,2,[0,[0,2,false],null],"\"LOGAN\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id JOIN customers AS T4 ON T4.Id = T1.CustomerId WHERE T3.food = \"Croissant\" AND T4.LastName = 'LOGAN'","query_toks":["SELECT","T1.ReceiptNumber","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","JOIN","customers","AS","T4","ON","T4.Id","=","T1.CustomerId","WHERE","T3.food","=","``","Croissant","''","AND","T4.LastName","=","'LOGAN","'"],"query_toks_no_value":["select","t1",".","receiptnumber","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","join","customers","as","t4","on","t4",".","id","=","t1",".","customerid","where","t3",".","food","=","value","and","t4",".","lastname","=","value"],"question":"Quais são os números dos recibos de um cliente com o sobrenome Logan que comprou um croissant?","question_toks":["Quais","são","os","números","dos","recibos","de","um","cliente","com","o","sobrenome","Logan","que","comprou","um","croissant","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null],"and",[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Croissant\"",null],"and",[false,2,[0,[0,2,false],null],"\"LOGAN\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.ReceiptNumber , T1.Date FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id ORDER BY T3.price DESC LIMIT 1","query_toks":["SELECT","T1.ReceiptNumber",",","T1.Date","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","ORDER","BY","T3.price","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","receiptnumber",",","t1",".","date","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","order","by","t3",".","price","desc","limit","value"],"question":"Qual é o número do recibo e a data do recibo em que o item mais caro foi comprado?","question_toks":["Qual","é","o","número","do","recibo","e","a","data","do","recibo","em","que","o","item","mais","caro","foi","comprado","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.ReceiptNumber , T1.Date FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id ORDER BY T3.price DESC LIMIT 1","query_toks":["SELECT","T1.ReceiptNumber",",","T1.Date","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","ORDER","BY","T3.price","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","receiptnumber",",","t1",".","date","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","order","by","t3",".","price","desc","limit","value"],"question":"Qual é o número do recibo e a data correspondentes ao recibo pelo qual o item mais caro foi comprado?","question_toks":["Qual","é","o","número","do","recibo","e","a","data","correspondentes","ao","recibo","pelo","qual","o","item","mais","caro","foi","comprado","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT item FROM items GROUP BY item ORDER BY count(*) LIMIT 1","query_toks":["SELECT","item","FROM","items","GROUP","BY","item","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","item","from","items","group","by","item","order","by","count","(","*",")","limit","value"],"question":"Qual é o item que foi comprado o menor número de vezes?","question_toks":["Qual","é","o","item","que","foi","comprado","o","menor","número","de","vezes","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT item FROM items GROUP BY item ORDER BY count(*) LIMIT 1","query_toks":["SELECT","item","FROM","items","GROUP","BY","item","ORDER","BY","count","(","*",")","LIMIT","1"],"query_toks_no_value":["select","item","from","items","group","by","item","order","by","count","(","*",")","limit","value"],"question":"Qual item foi comprado o menor número de vezes?","question_toks":["Qual","item","foi","comprado","o","menor","número","de","vezes","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT count(*) , food FROM goods GROUP BY food","query_toks":["SELECT","count","(","*",")",",","food","FROM","goods","GROUP","BY","food"],"query_toks_no_value":["select","count","(","*",")",",","food","from","goods","group","by","food"],"question":"Quantos produtos estão disponíveis para cada tipo de alimento?","question_toks":["Quantos","produtos","estão","disponíveis","para","cada","tipo","de","alimento","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT count(*) , food FROM goods GROUP BY food","query_toks":["SELECT","count","(","*",")",",","food","FROM","goods","GROUP","BY","food"],"query_toks_no_value":["select","count","(","*",")",",","food","from","goods","group","by","food"],"question":"Conte o número de produtos para cada tipo de alimento.","question_toks":["Conte","o","número","de","produtos","para","cada","tipo","de","alimento","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT avg(price) , food FROM goods GROUP BY food","query_toks":["SELECT","avg","(","price",")",",","food","FROM","goods","GROUP","BY","food"],"query_toks_no_value":["select","avg","(","price",")",",","food","from","goods","group","by","food"],"question":"Qual é o preço médio para cada tipo de alimento?","question_toks":["Qual","é","o","preço","médio","para","cada","tipo","de","alimento","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT avg(price) , food FROM goods GROUP BY food","query_toks":["SELECT","avg","(","price",")",",","food","FROM","goods","GROUP","BY","food"],"query_toks_no_value":["select","avg","(","price",")",",","food","from","goods","group","by","food"],"question":"Dê o preço médio para cada tipo de alimento.","question_toks":["Dê","o","preço","médio","para","cada","tipo","de","alimento","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE flavor = \"Apricot\" AND price < 5","query_toks":["SELECT","id","FROM","goods","WHERE","flavor","=","``","Apricot","''","AND","price","<","5"],"query_toks_no_value":["select","id","from","goods","where","flavor","=","value","and","price","<","value"],"question":"Quais são os ids dos produtos que têm sabor de Apricot e custam menos de 5 dólares?","question_toks":["Quais","são","os","ids","dos","produtos","que","têm","sabor","de","Apricot","e","custam","menos","de","5","dólares","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apricot\"",null],"and",[false,4,[0,[0,7,false],null],5.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE flavor = \"Apricot\" AND price < 5","query_toks":["SELECT","id","FROM","goods","WHERE","flavor","=","``","Apricot","''","AND","price","<","5"],"query_toks_no_value":["select","id","from","goods","where","flavor","=","value","and","price","<","value"],"question":"Dê os ids dos produtos que têm sabor de Apricot e têm um preço inferior a 5 dólares.","question_toks":["Dê","os","ids","dos","produtos","que","têm","sabor","de","Apricot","e","têm","um","preço","inferior","a","5","dólares","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apricot\"",null],"and",[false,4,[0,[0,7,false],null],5.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT flavor FROM goods WHERE food = \"Cake\" AND price > 10","query_toks":["SELECT","flavor","FROM","goods","WHERE","food","=","``","Cake","''","AND","price",">","10"],"query_toks_no_value":["select","flavor","from","goods","where","food","=","value","and","price",">","value"],"question":"Encontre o sabor dos Cake que custam mais de 10 dólares.","question_toks":["Encontre","o","sabor","dos","Cake","que","custam","mais","de","10","dólares","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null],"and",[false,3,[0,[0,7,false],null],10.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT flavor FROM goods WHERE food = \"Cake\" AND price > 10","query_toks":["SELECT","flavor","FROM","goods","WHERE","food","=","``","Cake","''","AND","price",">","10"],"query_toks_no_value":["select","flavor","from","goods","where","food","=","value","and","price",">","value"],"question":"Quais são os sabores de Cake que custam mais de 10 dólares?","question_toks":["Quais","são","os","sabores","de","Cake","que","custam","mais","de","10","dólares","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null],"and",[false,3,[0,[0,7,false],null],10.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT id , price FROM goods WHERE price < (SELECT avg(price) FROM goods)","query_toks":["SELECT","DISTINCT","id",",","price","FROM","goods","WHERE","price","<","(","SELECT","avg","(","price",")","FROM","goods",")"],"query_toks_no_value":["select","distinct","id",",","price","from","goods","where","price","<","(","select","avg","(","price",")","from","goods",")"],"question":"Me dê o id e o preço distintos de todos os produtos cujo preço está abaixo da média de todos os produtos.","question_toks":["Me","dê","o","id","e","o","preço","distintos","de","todos","os","produtos","cujo","preço","está","abaixo","da","média","de","todos","os","produtos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]],[0,[0,[0,7,false],null]]]],"where":[[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"bakery_1","query":"SELECT DISTINCT id , price FROM goods WHERE price < (SELECT avg(price) FROM goods)","query_toks":["SELECT","DISTINCT","id",",","price","FROM","goods","WHERE","price","<","(","SELECT","avg","(","price",")","FROM","goods",")"],"query_toks_no_value":["select","distinct","id",",","price","from","goods","where","price","<","(","select","avg","(","price",")","from","goods",")"],"question":"Quais são os ids e preços distintos para os produtos que custam menos do que o preço médio?","question_toks":["Quais","são","os","ids","e","preços","distintos","para","os","produtos","que","custam","menos","do","que","o","preço","médio","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]],[0,[0,[0,7,false],null]]]],"where":[[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"bakery_1","query":"SELECT DISTINCT id FROM goods WHERE price < (SELECT max(price) FROM goods WHERE food = \"Tart\")","query_toks":["SELECT","DISTINCT","id","FROM","goods","WHERE","price","<","(","SELECT","max","(","price",")","FROM","goods","WHERE","food","=","``","Tart","''",")"],"query_toks_no_value":["select","distinct","id","from","goods","where","price","<","(","select","max","(","price",")","from","goods","where","food","=","value",")"],"question":"Quais são os ids distintos de todos os produtos que são mais baratos do que alguns produtos do tipo Tart?","question_toks":["Quais","são","os","ids","distintos","de","todos","os","produtos","que","são","mais","baratos","do","que","alguns","produtos","do","tipo","Tart","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"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":"bakery_1","query":"SELECT DISTINCT id FROM goods WHERE price < (SELECT max(price) FROM goods WHERE food = \"Tart\")","query_toks":["SELECT","DISTINCT","id","FROM","goods","WHERE","price","<","(","SELECT","max","(","price",")","FROM","goods","WHERE","food","=","``","Tart","''",")"],"query_toks_no_value":["select","distinct","id","from","goods","where","price","<","(","select","max","(","price",")","from","goods","where","food","=","value",")"],"question":"Dê os ids distintos para os produtos que custam menos do que qualquer Tart.","question_toks":["Dê","os","ids","distintos","para","os","produtos","que","custam","menos","do","que","qualquer","Tart","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"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":"bakery_1","query":"SELECT DISTINCT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id WHERE T3.price > 13","query_toks":["SELECT","DISTINCT","T1.ReceiptNumber","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","WHERE","T3.price",">","13"],"query_toks_no_value":["select","distinct","t1",".","receiptnumber","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","where","t3",".","price",">","value"],"question":"Liste os números de recibo distintos para os quais alguém comprou um produto que custa mais de 13 dólares.","question_toks":["Liste","os","números","de","recibo","distintos","para","os","quais","alguém","comprou","um","produto","que","custa","mais","de","13","dólares","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,11,false],null]]]],"where":[[false,3,[0,[0,7,false],null],13.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T1.ReceiptNumber FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id WHERE T3.price > 13","query_toks":["SELECT","DISTINCT","T1.ReceiptNumber","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","WHERE","T3.price",">","13"],"query_toks_no_value":["select","distinct","t1",".","receiptnumber","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","where","t3",".","price",">","value"],"question":"Quais números de recibo distintos correspondem a alguém que comprou um produto que custa mais de 13 dólares?","question_toks":["Quais","números","de","recibo","distintos","correspondem","a","alguém","que","comprou","um","produto","que","custa","mais","de","13","dólares","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,11,false],null]]]],"where":[[false,3,[0,[0,7,false],null],13.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T1.date FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id WHERE T3.price > 15","query_toks":["SELECT","DISTINCT","T1.date","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","WHERE","T3.price",">","15"],"query_toks_no_value":["select","distinct","t1",".","date","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","where","t3",".","price",">","value"],"question":"Em qual data algum cliente comprou um produto que custa mais de 15 dólares?","question_toks":["Em","qual","data","algum","cliente","comprou","um","produto","que","custa","mais","de","15","dólares","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,12,false],null]]]],"where":[[false,3,[0,[0,7,false],null],15.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T1.date FROM receipts AS T1 JOIN items AS T2 ON T1.ReceiptNumber = T2.receipt JOIN goods AS T3 ON T2.item = T3.id WHERE T3.price > 15","query_toks":["SELECT","DISTINCT","T1.date","FROM","receipts","AS","T1","JOIN","items","AS","T2","ON","T1.ReceiptNumber","=","T2.receipt","JOIN","goods","AS","T3","ON","T2.item","=","T3.id","WHERE","T3.price",">","15"],"query_toks_no_value":["select","distinct","t1",".","date","from","receipts","as","t1","join","items","as","t2","on","t1",".","receiptnumber","=","t2",".","receipt","join","goods","as","t3","on","t2",".","item","=","t3",".","id","where","t3",".","price",">","value"],"question":"Qual data corresponde à compra de um bem que custou mais de 15 dólares?","question_toks":["Qual","data","corresponde","à","compra","de","um","bem","que","custou","mais","de","15","dólares","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,11,false],null],[0,8,false],null],"and",[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,12,false],null]]]],"where":[[false,3,[0,[0,7,false],null],15.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE id LIKE \"%APP%\"","query_toks":["SELECT","id","FROM","goods","WHERE","id","LIKE","``","%","APP","%","''"],"query_toks_no_value":["select","id","from","goods","where","id","like","value"],"question":"Me dê a lista de ids de todos os produtos cujo id contém \"APP\".","question_toks":["Me","dê","a","lista","de","ids","de","todos","os","produtos","cujo","id","contém","``","APP","''","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,9,[0,[0,4,false],null],"\"%APP%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE id LIKE \"%APP%\"","query_toks":["SELECT","id","FROM","goods","WHERE","id","LIKE","``","%","APP","%","''"],"query_toks_no_value":["select","id","from","goods","where","id","like","value"],"question":"Quais são todos os ids dos produtos com um id que contém \"APP\"?","question_toks":["Quais","são","todos","os","ids","dos","produtos","com","um","id","que","contém","``","APP","''","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,9,[0,[0,4,false],null],"\"%APP%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , price FROM goods WHERE id LIKE \"%70%\"","query_toks":["SELECT","id",",","price","FROM","goods","WHERE","id","LIKE","``","%","70","%","''"],"query_toks_no_value":["select","id",",","price","from","goods","where","id","like","value"],"question":"Qual bem tem \"70\" em seu id? E qual é o seu preço?","question_toks":["Qual","bem","tem","``","70","''","em","seu","id","?","E","qual","é","o","seu","preço","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,7,false],null]]]],"where":[[false,9,[0,[0,4,false],null],"\"%70%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , price FROM goods WHERE id LIKE \"%70%\"","query_toks":["SELECT","id",",","price","FROM","goods","WHERE","id","LIKE","``","%","70","%","''"],"query_toks_no_value":["select","id",",","price","from","goods","where","id","like","value"],"question":"Quais são o id e o preço do produto com \"70\" em seu id?","question_toks":["Quais","são","o","id","e","o","preço","do","produto","com","``","70","''","em","seu","id","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,7,false],null]]]],"where":[[false,9,[0,[0,4,false],null],"\"%70%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT LastName FROM customers ORDER BY LastName","query_toks":["SELECT","DISTINCT","LastName","FROM","customers","ORDER","BY","LastName"],"query_toks_no_value":["select","distinct","lastname","from","customers","order","by","lastname"],"question":"Liste os sobrenomes de todos os clientes em ordem alfabética.","question_toks":["Liste","os","sobrenomes","de","todos","os","clientes","em","ordem","alfabética","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[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":"bakery_1","query":"SELECT DISTINCT LastName FROM customers ORDER BY LastName","query_toks":["SELECT","DISTINCT","LastName","FROM","customers","ORDER","BY","LastName"],"query_toks_no_value":["select","distinct","lastname","from","customers","order","by","lastname"],"question":"Quais são os sobrenomes dos clientes em ordem alfabética?","question_toks":["Quais","são","os","sobrenomes","dos","clientes","em","ordem","alfabética","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[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":"bakery_1","query":"SELECT DISTINCT id FROM goods ORDER BY id","query_toks":["SELECT","DISTINCT","id","FROM","goods","ORDER","BY","id"],"query_toks_no_value":["select","distinct","id","from","goods","order","by","id"],"question":"Retorne a lista ordenada de todos os ids de produtos.","question_toks":["Retorne","a","lista","ordenada","de","todos","os","ids","de","produtos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT id FROM goods ORDER BY id","query_toks":["SELECT","DISTINCT","id","FROM","goods","ORDER","BY","id"],"query_toks_no_value":["select","distinct","id","from","goods","order","by","id"],"question":"Ordene os ids distintos dos produtos.","question_toks":["Ordene","os","ids","distintos","dos","produtos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,4,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.flavor = \"Apple\" AND T2.food = \"Pie\" UNION SELECT ReceiptNumber FROM receipts WHERE CustomerId = 12","query_toks":["SELECT","T1.receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.flavor","=","``","Apple","''","AND","T2.food","=","``","Pie","''","UNION","SELECT","ReceiptNumber","FROM","receipts","WHERE","CustomerId","=","12"],"query_toks_no_value":["select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","flavor","=","value","and","t2",".","food","=","value","union","select","receiptnumber","from","receipts","where","customerid","=","value"],"question":"Encontre todos os recibos em que ou foi comprado Apple Pie ou o cliente com id 12 fez compras.","question_toks":["Encontre","todos","os","recibos","em","que","ou","foi","comprado","Apple","Pie","ou","o","cliente","com","id","12","fez","compras","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apple\"",null],"and",[false,2,[0,[0,6,false],null],"\"Pie\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,13,false],null],12.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"bakery_1","query":"SELECT T1.receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.flavor = \"Apple\" AND T2.food = \"Pie\" UNION SELECT ReceiptNumber FROM receipts WHERE CustomerId = 12","query_toks":["SELECT","T1.receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.flavor","=","``","Apple","''","AND","T2.food","=","``","Pie","''","UNION","SELECT","ReceiptNumber","FROM","receipts","WHERE","CustomerId","=","12"],"query_toks_no_value":["select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","flavor","=","value","and","t2",".","food","=","value","union","select","receiptnumber","from","receipts","where","customerid","=","value"],"question":"Quais são os números dos recibos para os quais ou um Apple Pie foi comprado ou o cliente com id 12 fez compras?","question_toks":["Quais","são","os","números","dos","recibos","para","os","quais","ou","um","Apple","Pie","foi","comprado","ou","o","cliente","com","id","12","fez","compras","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apple\"",null],"and",[false,2,[0,[0,6,false],null],"\"Pie\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,13,false],null],12.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"bakery_1","query":"SELECT ReceiptNumber , date FROM receipts WHERE date = (SELECT date FROM receipts ORDER BY date DESC LIMIT 1)","query_toks":["SELECT","ReceiptNumber",",","date","FROM","receipts","WHERE","date","=","(","SELECT","date","FROM","receipts","ORDER","BY","date","DESC","LIMIT","1",")"],"query_toks_no_value":["select","receiptnumber",",","date","from","receipts","where","date","=","(","select","date","from","receipts","order","by","date","desc","limit","value",")"],"question":"Encontre todos os recibos que têm a data mais recente. Também informe essa data.","question_toks":["Encontre","todos","os","recibos","que","têm","a","data","mais","recente",".","Também","informe","essa","data","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT ReceiptNumber , date FROM receipts WHERE date = (SELECT date FROM receipts ORDER BY date DESC LIMIT 1)","query_toks":["SELECT","ReceiptNumber",",","date","FROM","receipts","WHERE","date","=","(","SELECT","date","FROM","receipts","ORDER","BY","date","DESC","LIMIT","1",")"],"query_toks_no_value":["select","receiptnumber",",","date","from","receipts","where","date","=","(","select","date","from","receipts","order","by","date","desc","limit","value",")"],"question":"Qual é o número do recibo com a data mais recente e qual é essa data?","question_toks":["Qual","é","o","número","do","recibo","com","a","data","mais","recente","e","qual","é","essa","data","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.Receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.price > 10 UNION SELECT ReceiptNumber FROM receipts WHERE date = (SELECT date FROM receipts ORDER BY date LIMIT 1)","query_toks":["SELECT","T1.Receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.price",">","10","UNION","SELECT","ReceiptNumber","FROM","receipts","WHERE","date","=","(","SELECT","date","FROM","receipts","ORDER","BY","date","LIMIT","1",")"],"query_toks_no_value":["select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","price",">","value","union","select","receiptnumber","from","receipts","where","date","=","(","select","date","from","receipts","order","by","date","limit","value",")"],"question":"Encontre todos os recibos que têm a data mais antiga ou que possuem um produto com preço acima de 10.","question_toks":["Encontre","todos","os","recibos","que","têm","a","data","mais","antiga","ou","que","possuem","um","produto","com","preço","acima","de","10","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,3,[0,[0,7,false],null],10.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"bakery_1","query":"SELECT T1.Receipt FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.price > 10 UNION SELECT ReceiptNumber FROM receipts WHERE date = (SELECT date FROM receipts ORDER BY date LIMIT 1)","query_toks":["SELECT","T1.Receipt","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.price",">","10","UNION","SELECT","ReceiptNumber","FROM","receipts","WHERE","date","=","(","SELECT","date","FROM","receipts","ORDER","BY","date","LIMIT","1",")"],"query_toks_no_value":["select","t1",".","receipt","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","price",">","value","union","select","receiptnumber","from","receipts","where","date","=","(","select","date","from","receipts","order","by","date","limit","value",")"],"question":"Quais são todos os números de recibo que têm um produto com preço acima de 10 ou têm a data mais antiga?","question_toks":["Quais","são","todos","os","números","de","recibo","que","têm","um","produto","com","preço","acima","de","10","ou","têm","a","data","mais","antiga","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,3,[0,[0,7,false],null],10.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null},null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE food = \"Cookie\" OR food = \"Cake\" AND price BETWEEN 3 AND 7","query_toks":["SELECT","id","FROM","goods","WHERE","food","=","``","Cookie","''","OR","food","=","``","Cake","''","AND","price","BETWEEN","3","AND","7"],"query_toks_no_value":["select","id","from","goods","where","food","=","value","or","food","=","value","and","price","between","value","and","value"],"question":"Quais são os ids de Cookie e Cake que custam entre 3 e 7 dólares?","question_toks":["Quais","são","os","ids","de","Cookie","e","Cake","que","custam","entre","3","e","7","dólares","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null],"or",[false,2,[0,[0,6,false],null],"\"Cake\"",null],"and",[false,1,[0,[0,7,false],null],3.0,7.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE food = \"Cookie\" OR food = \"Cake\" AND price BETWEEN 3 AND 7","query_toks":["SELECT","id","FROM","goods","WHERE","food","=","``","Cookie","''","OR","food","=","``","Cake","''","AND","price","BETWEEN","3","AND","7"],"query_toks_no_value":["select","id","from","goods","where","food","=","value","or","food","=","value","and","price","between","value","and","value"],"question":"Dê os ids de Cookies ou Bolos que custam entre 3 e 7 dólares.","question_toks":["Dê","os","ids","de","Cookies","ou","Bolos","que","custam","entre","3","e","7","dólares","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null],"or",[false,2,[0,[0,6,false],null],"\"Cake\"",null],"and",[false,1,[0,[0,7,false],null],3.0,7.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.FirstName , T1.LastName FROM customers AS T1 JOIN receipts AS T2 ON T1.id = T2.CustomerId ORDER BY T2.date LIMIT 1","query_toks":["SELECT","T1.FirstName",",","T1.LastName","FROM","customers","AS","T1","JOIN","receipts","AS","T2","ON","T1.id","=","T2.CustomerId","ORDER","BY","T2.date","LIMIT","1"],"query_toks_no_value":["select","t1",".","firstname",",","t1",".","lastname","from","customers","as","t1","join","receipts","as","t2","on","t1",".","id","=","t2",".","customerid","order","by","t2",".","date","limit","value"],"question":"Encontre o primeiro nome e o sobrenome de um cliente que visitou na data mais antiga.","question_toks":["Encontre","o","primeiro","nome","e","o","sobrenome","de","um","cliente","que","visitou","na","data","mais","antiga","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T1.FirstName , T1.LastName FROM customers AS T1 JOIN receipts AS T2 ON T1.id = T2.CustomerId ORDER BY T2.date LIMIT 1","query_toks":["SELECT","T1.FirstName",",","T1.LastName","FROM","customers","AS","T1","JOIN","receipts","AS","T2","ON","T1.id","=","T2.CustomerId","ORDER","BY","T2.date","LIMIT","1"],"query_toks_no_value":["select","t1",".","firstname",",","t1",".","lastname","from","customers","as","t1","join","receipts","as","t2","on","t1",".","id","=","t2",".","customerid","order","by","t2",".","date","limit","value"],"question":"Qual é o nome completo do cliente que visitou na data mais antiga?","question_toks":["Qual","é","o","nome","completo","do","cliente","que","visitou","na","data","mais","antiga","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",3]],"conds":[[false,2,[0,[0,1,false],null],[0,13,false],null]]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT avg(price) FROM goods WHERE flavor = \"Blackberry\" OR flavor = \"Blueberry\"","query_toks":["SELECT","avg","(","price",")","FROM","goods","WHERE","flavor","=","``","Blackberry","''","OR","flavor","=","``","Blueberry","''"],"query_toks_no_value":["select","avg","(","price",")","from","goods","where","flavor","=","value","or","flavor","=","value"],"question":"Qual é o preço médio dos produtos cujo sabor é blackberry ou blueberry?","question_toks":["Qual","é","o","preço","médio","dos","produtos","cujo","sabor","é","blackberry","ou","blueberry","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Blackberry\"",null],"or",[false,2,[0,[0,5,false],null],"\"Blueberry\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT avg(price) FROM goods WHERE flavor = \"Blackberry\" OR flavor = \"Blueberry\"","query_toks":["SELECT","avg","(","price",")","FROM","goods","WHERE","flavor","=","``","Blackberry","''","OR","flavor","=","``","Blueberry","''"],"query_toks_no_value":["select","avg","(","price",")","from","goods","where","flavor","=","value","or","flavor","=","value"],"question":"Quais são os preços médios dos produtos com sabor de blackberry ou blueberry?","question_toks":["Quais","são","os","preços","médios","dos","produtos","com","sabor","de","blackberry","ou","blueberry","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Blackberry\"",null],"or",[false,2,[0,[0,5,false],null],"\"Blueberry\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT min(price) FROM goods WHERE flavor = \"Cheese\"","query_toks":["SELECT","min","(","price",")","FROM","goods","WHERE","flavor","=","``","Cheese","''"],"query_toks_no_value":["select","min","(","price",")","from","goods","where","flavor","=","value"],"question":"Retorne o preço mais barato para produtos com sabor Cheese.","question_toks":["Retorne","o","preço","mais","barato","para","produtos","com","sabor","Cheese","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Cheese\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT min(price) FROM goods WHERE flavor = \"Cheese\"","query_toks":["SELECT","min","(","price",")","FROM","goods","WHERE","flavor","=","``","Cheese","''"],"query_toks_no_value":["select","min","(","price",")","from","goods","where","flavor","=","value"],"question":"Qual é o produto mais barato com sabor Cheese?","question_toks":["Qual","é","o","produto","mais","barato","com","sabor","Cheese","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Cheese\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT max(price) , min(price) , avg(price) , flavor FROM goods GROUP BY flavor ORDER BY flavor","query_toks":["SELECT","max","(","price",")",",","min","(","price",")",",","avg","(","price",")",",","flavor","FROM","goods","GROUP","BY","flavor","ORDER","BY","flavor"],"query_toks_no_value":["select","max","(","price",")",",","min","(","price",")",",","avg","(","price",")",",","flavor","from","goods","group","by","flavor","order","by","flavor"],"question":"Quais são os preços mais altos, mais baixos e a média dos preços dos produtos, agrupados e ordenados por sabor?","question_toks":["Quais","são","os","preços","mais","altos",",","mais","baixos","e","a","média","dos","preços","dos","produtos",",","agrupados","e","ordenados","por","sabor","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]],[5,[0,[0,7,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT max(price) , min(price) , avg(price) , flavor FROM goods GROUP BY flavor ORDER BY flavor","query_toks":["SELECT","max","(","price",")",",","min","(","price",")",",","avg","(","price",")",",","flavor","FROM","goods","GROUP","BY","flavor","ORDER","BY","flavor"],"query_toks_no_value":["select","max","(","price",")",",","min","(","price",")",",","avg","(","price",")",",","flavor","from","goods","group","by","flavor","order","by","flavor"],"question":"Quais são os preços máximo, mínimo e médio dos produtos de cada sabor, ordenados por sabor?","question_toks":["Quais","são","os","preços","máximo",",","mínimo","e","médio","dos","produtos","de","cada","sabor",",","ordenados","por","sabor","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[2,[0,[0,7,false],null]],[5,[0,[0,7,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT min(price) , max(price) , food FROM goods GROUP BY food ORDER BY food","query_toks":["SELECT","min","(","price",")",",","max","(","price",")",",","food","FROM","goods","GROUP","BY","food","ORDER","BY","food"],"query_toks_no_value":["select","min","(","price",")",",","max","(","price",")",",","food","from","goods","group","by","food","order","by","food"],"question":"Retorne os preços mais baixos e mais altos dos produtos agrupados e ordenados por tipo de alimento.","question_toks":["Retorne","os","preços","mais","baixos","e","mais","altos","dos","produtos","agrupados","e","ordenados","por","tipo","de","alimento","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]],[1,[0,[0,7,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT min(price) , max(price) , food FROM goods GROUP BY food ORDER BY food","query_toks":["SELECT","min","(","price",")",",","max","(","price",")",",","food","FROM","goods","GROUP","BY","food","ORDER","BY","food"],"query_toks_no_value":["select","min","(","price",")",",","max","(","price",")",",","food","from","goods","group","by","food","order","by","food"],"question":"Quais são os preços mínimo e máximo dos produtos alimentícios, ordenados por alimento?","question_toks":["Quais","são","os","preços","mínimo","e","máximo","dos","produtos","alimentícios",",","ordenados","por","alimento","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]],[1,[0,[0,7,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT date FROM receipts GROUP BY date ORDER BY count(*) DESC LIMIT 3","query_toks":["SELECT","date","FROM","receipts","GROUP","BY","date","ORDER","BY","count","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","date","from","receipts","group","by","date","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre as três datas com mais recibos.","question_toks":["Encontre","as","três","datas","com","mais","recibos","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT date FROM receipts GROUP BY date ORDER BY count(*) DESC LIMIT 3","query_toks":["SELECT","date","FROM","receipts","GROUP","BY","date","ORDER","BY","count","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","date","from","receipts","group","by","date","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são as três datas em que mais recibos foram emitidos?","question_toks":["Quais","são","as","três","datas","em","que","mais","recibos","foram","emitidos","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT CustomerId , count(*) FROM receipts GROUP BY CustomerId ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","CustomerId",",","count","(","*",")","FROM","receipts","GROUP","BY","CustomerId","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","customerid",",","count","(","*",")","from","receipts","group","by","customerid","order","by","count","(","*",")","desc","limit","value"],"question":"Qual cliente comprou com mais frequência? Quantas vezes?","question_toks":["Qual","cliente","comprou","com","mais","frequência","?","Quantas","vezes","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT CustomerId , count(*) FROM receipts GROUP BY CustomerId ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","CustomerId",",","count","(","*",")","FROM","receipts","GROUP","BY","CustomerId","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","customerid",",","count","(","*",")","from","receipts","group","by","customerid","order","by","count","(","*",")","desc","limit","value"],"question":"Dê o id do cliente que fez mais compras, bem como o número de compras realizadas.","question_toks":["Dê","o","id","do","cliente","que","fez","mais","compras",",","bem","como","o","número","de","compras","realizadas","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT date , COUNT (DISTINCT CustomerId) FROM receipts GROUP BY date","query_toks":["SELECT","date",",","COUNT","(","DISTINCT","CustomerId",")","FROM","receipts","GROUP","BY","date"],"query_toks_no_value":["select","date",",","count","(","distinct","customerid",")","from","receipts","group","by","date"],"question":"Para cada data, retorne quantos clientes distintos visitaram naquele dia.","question_toks":["Para","cada","data",",","retorne","quantos","clientes","distintos","visitaram","naquele","dia","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[3,[0,[0,13,true],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT date , COUNT (DISTINCT CustomerId) FROM receipts GROUP BY date","query_toks":["SELECT","date",",","COUNT","(","DISTINCT","CustomerId",")","FROM","receipts","GROUP","BY","date"],"query_toks_no_value":["select","date",",","count","(","distinct","customerid",")","from","receipts","group","by","date"],"question":"Quantos clientes visitaram em cada data?","question_toks":["Quantos","clientes","visitaram","em","cada","data","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[3,[0,[0,13,true],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T4.FirstName , T4.LastName FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber JOIN customers AS T4 ON T3.CustomerId = T4.id WHERE T1.flavor = \"Apple\" AND T1.food = \"Tart\"","query_toks":["SELECT","DISTINCT","T4.FirstName",",","T4.LastName","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","JOIN","customers","AS","T4","ON","T3.CustomerId","=","T4.id","WHERE","T1.flavor","=","``","Apple","''","AND","T1.food","=","``","Tart","''"],"query_toks_no_value":["select","distinct","t4",".","firstname",",","t4",".","lastname","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","join","customers","as","t4","on","t3",".","customerid","=","t4",".","id","where","t1",".","flavor","=","value","and","t1",".","food","=","value"],"question":"Me dê o primeiro nome e o sobrenome dos clientes que compraram o sabor Apple de Tart.","question_toks":["Me","dê","o","primeiro","nome","e","o","sobrenome","dos","clientes","que","compraram","o","sabor","Apple","de","Tart","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null],"and",[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apple\"",null],"and",[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T4.FirstName , T4.LastName FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber JOIN customers AS T4 ON T3.CustomerId = T4.id WHERE T1.flavor = \"Apple\" AND T1.food = \"Tart\"","query_toks":["SELECT","DISTINCT","T4.FirstName",",","T4.LastName","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","JOIN","customers","AS","T4","ON","T3.CustomerId","=","T4.id","WHERE","T1.flavor","=","``","Apple","''","AND","T1.food","=","``","Tart","''"],"query_toks_no_value":["select","distinct","t4",".","firstname",",","t4",".","lastname","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","join","customers","as","t4","on","t3",".","customerid","=","t4",".","id","where","t1",".","flavor","=","value","and","t1",".","food","=","value"],"question":"Quais são os nomes completos dos clientes que compraram Apple Tart?","question_toks":["Quais","são","os","nomes","completos","dos","clientes","que","compraram","Apple","Tart","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null],"and",[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Apple\"",null],"and",[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id FROM goods WHERE food = \"Cookie\" AND price < (SELECT min(price) FROM goods WHERE food = 'Croissant')","query_toks":["SELECT","id","FROM","goods","WHERE","food","=","``","Cookie","''","AND","price","<","(","SELECT","min","(","price",")","FROM","goods","WHERE","food","=","'Croissant","'",")"],"query_toks_no_value":["select","id","from","goods","where","food","=","value","and","price","<","(","select","min","(","price",")","from","goods","where","food","=","value",")"],"question":"Quais são os ids dos Cookies cujo preço é inferior a qualquer Croissant?","question_toks":["Quais","são","os","ids","dos","Cookies","cujo","preço","é","inferior","a","qualquer","Croissant","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null],"and",[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Croissant\"",null]],"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":"bakery_1","query":"SELECT id FROM goods WHERE food = \"Cookie\" AND price < (SELECT min(price) FROM goods WHERE food = 'Croissant')","query_toks":["SELECT","id","FROM","goods","WHERE","food","=","``","Cookie","''","AND","price","<","(","SELECT","min","(","price",")","FROM","goods","WHERE","food","=","'Croissant","'",")"],"query_toks_no_value":["select","id","from","goods","where","food","=","value","and","price","<","(","select","min","(","price",")","from","goods","where","food","=","value",")"],"question":"Dê os ids dos cookies que são mais baratos do que qualquer croissant.","question_toks":["Dê","os","ids","dos","cookies","que","são","mais","baratos","do","que","qualquer","croissant","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cookie\"",null],"and",[false,4,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Croissant\"",null]],"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":"bakery_1","query":"SELECT id FROM goods WHERE food = \"Cake\" AND price >= (SELECT avg(price) FROM goods WHERE food = \"Tart\")","query_toks":["SELECT","id","FROM","goods","WHERE","food","=","``","Cake","''","AND","price",">","=","(","SELECT","avg","(","price",")","FROM","goods","WHERE","food","=","``","Tart","''",")"],"query_toks_no_value":["select","id","from","goods","where","food","=","value","and","price",">","=","(","select","avg","(","price",")","from","goods","where","food","=","value",")"],"question":"Me dê os ids dos Cakes cujo preço é pelo menos igual ao preço médio da Tart.","question_toks":["Me","dê","os","ids","dos","Cakes","cujo","preço","é","pelo","menos","igual","ao","preço","médio","da","Tart","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null],"and",[false,5,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"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":"bakery_1","query":"SELECT id FROM goods WHERE food = \"Cake\" AND price >= (SELECT avg(price) FROM goods WHERE food = \"Tart\")","query_toks":["SELECT","id","FROM","goods","WHERE","food","=","``","Cake","''","AND","price",">","=","(","SELECT","avg","(","price",")","FROM","goods","WHERE","food","=","``","Tart","''",")"],"query_toks_no_value":["select","id","from","goods","where","food","=","value","and","price",">","=","(","select","avg","(","price",")","from","goods","where","food","=","value",")"],"question":"Quais são os ids dos Cakes que são pelo menos tão caros quanto a média dos Tarts?","question_toks":["Quais","são","os","ids","dos","Cakes","que","são","pelo","menos","tão","caros","quanto","a","média","dos","Tarts","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null],"and",[false,5,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"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":"bakery_1","query":"SELECT id FROM goods WHERE price > (SELECT avg(price) FROM goods)","query_toks":["SELECT","id","FROM","goods","WHERE","price",">","(","SELECT","avg","(","price",")","FROM","goods",")"],"query_toks_no_value":["select","id","from","goods","where","price",">","(","select","avg","(","price",")","from","goods",")"],"question":"Quais são os ids dos produtos cujo preço está acima do dobro do preço médio de todos os produtos?","question_toks":["Quais","são","os","ids","dos","produtos","cujo","preço","está","acima","do","dobro","do","preço","médio","de","todos","os","produtos","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"bakery_1","query":"SELECT id FROM goods WHERE price > (SELECT avg(price) FROM goods)","query_toks":["SELECT","id","FROM","goods","WHERE","price",">","(","SELECT","avg","(","price",")","FROM","goods",")"],"query_toks_no_value":["select","id","from","goods","where","price",">","(","select","avg","(","price",")","from","goods",")"],"question":"Dê os ids dos produtos que são mais do que o dobro do preço médio dos produtos.","question_toks":["Dê","os","ids","dos","produtos","que","são","mais","do","que","o","dobro","do","preço","médio","dos","produtos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"bakery_1","query":"SELECT id , flavor , food FROM goods ORDER BY price","query_toks":["SELECT","id",",","flavor",",","food","FROM","goods","ORDER","BY","price"],"query_toks_no_value":["select","id",",","flavor",",","food","from","goods","order","by","price"],"question":"Liste o id, sabor e tipo de alimento dos produtos ordenados por preço.","question_toks":["Liste","o","id",",","sabor","e","tipo","de","alimento","dos","produtos","ordenados","por","preço","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , flavor , food FROM goods ORDER BY price","query_toks":["SELECT","id",",","flavor",",","food","FROM","goods","ORDER","BY","price"],"query_toks_no_value":["select","id",",","flavor",",","food","from","goods","order","by","price"],"question":"Quais são os ids, sabores e tipos de alimentos dos produtos, ordenados por preço?","question_toks":["Quais","são","os","ids",",","sabores","e","tipos","de","alimentos","dos","produtos",",","ordenados","por","preço","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , flavor FROM goods WHERE food = \"Cake\" ORDER BY flavor","query_toks":["SELECT","id",",","flavor","FROM","goods","WHERE","food","=","``","Cake","''","ORDER","BY","flavor"],"query_toks_no_value":["select","id",",","flavor","from","goods","where","food","=","value","order","by","flavor"],"question":"Retorne uma lista dos ids e sabores dos Cakes ordenados por sabor.","question_toks":["Retorne","uma","lista","dos","ids","e","sabores","dos","Cakes","ordenados","por","sabor","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT id , flavor FROM goods WHERE food = \"Cake\" ORDER BY flavor","query_toks":["SELECT","id",",","flavor","FROM","goods","WHERE","food","=","``","Cake","''","ORDER","BY","flavor"],"query_toks_no_value":["select","id",",","flavor","from","goods","where","food","=","value","order","by","flavor"],"question":"Quais são os ids e sabores dos Cakes, ordenados por sabor?","question_toks":["Quais","são","os","ids","e","sabores","dos","Cakes",",","ordenados","por","sabor","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T1.item FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.flavor = \"Chocolate\" GROUP BY item HAVING count(*) <= 10","query_toks":["SELECT","DISTINCT","T1.item","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.flavor","=","``","Chocolate","''","GROUP","BY","item","HAVING","count","(","*",")","<","=","10"],"query_toks_no_value":["select","distinct","t1",".","item","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","flavor","=","value","group","by","item","having","count","(","*",")","<","=","value"],"question":"Encontre todos os itens que têm sabor de Chocolate, mas que não foram comprados mais de 10 vezes.","question_toks":["Encontre","todos","os","itens","que","têm","sabor","de","Chocolate",",","mas","que","não","foram","comprados","mais","de","10","vezes","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Chocolate\"",null]],"groupBy":[[0,10,false]],"having":[[false,6,[0,[3,0,false],null],10.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT T1.item FROM items AS T1 JOIN goods AS T2 ON T1.item = T2.id WHERE T2.flavor = \"Chocolate\" GROUP BY item HAVING count(*) <= 10","query_toks":["SELECT","DISTINCT","T1.item","FROM","items","AS","T1","JOIN","goods","AS","T2","ON","T1.item","=","T2.id","WHERE","T2.flavor","=","``","Chocolate","''","GROUP","BY","item","HAVING","count","(","*",")","<","=","10"],"query_toks_no_value":["select","distinct","t1",".","item","from","items","as","t1","join","goods","as","t2","on","t1",".","item","=","t2",".","id","where","t2",".","flavor","=","value","group","by","item","having","count","(","*",")","<","=","value"],"question":"Quais são os itens com sabor de Chocolate que foram comprados no máximo 10 vezes?","question_toks":["Quais","são","os","itens","com","sabor","de","Chocolate","que","foram","comprados","no","máximo","10","vezes","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,10,false],null],[0,4,false],null]]},"select":[true,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Chocolate\"",null]],"groupBy":[[0,10,false]],"having":[[false,6,[0,[3,0,false],null],10.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT DISTINCT flavor FROM goods WHERE food = \"Cake\" EXCEPT SELECT DISTINCT flavor FROM goods WHERE food = \"Tart\"","query_toks":["SELECT","DISTINCT","flavor","FROM","goods","WHERE","food","=","``","Cake","''","EXCEPT","SELECT","DISTINCT","flavor","FROM","goods","WHERE","food","=","``","Tart","''"],"query_toks_no_value":["select","distinct","flavor","from","goods","where","food","=","value","except","select","distinct","flavor","from","goods","where","food","=","value"],"question":"Quais são os sabores disponíveis para Cake, mas não para Tart?","question_toks":["Quais","são","os","sabores","disponíveis","para","Cake",",","mas","não","para","Tart","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"bakery_1","query":"SELECT DISTINCT flavor FROM goods WHERE food = \"Cake\" EXCEPT SELECT DISTINCT flavor FROM goods WHERE food = \"Tart\"","query_toks":["SELECT","DISTINCT","flavor","FROM","goods","WHERE","food","=","``","Cake","''","EXCEPT","SELECT","DISTINCT","flavor","FROM","goods","WHERE","food","=","``","Tart","''"],"query_toks_no_value":["select","distinct","flavor","from","goods","where","food","=","value","except","select","distinct","flavor","from","goods","where","food","=","value"],"question":"Dê os sabores de bolos que não estão disponíveis para Tart.","question_toks":["Dê","os","sabores","de","bolos","que","não","estão","disponíveis","para","Tart","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Cake\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Tart\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"bakery_1","query":"SELECT item FROM items GROUP BY item ORDER BY COUNT (*) DESC LIMIT 3","query_toks":["SELECT","item","FROM","items","GROUP","BY","item","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","item","from","items","group","by","item","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são os três produtos mais populares nesta padaria?","question_toks":["Quais","são","os","três","produtos","mais","populares","nesta","padaria","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT item FROM items GROUP BY item ORDER BY COUNT (*) DESC LIMIT 3","query_toks":["SELECT","item","FROM","items","GROUP","BY","item","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","3"],"query_toks_no_value":["select","item","from","items","group","by","item","order","by","count","(","*",")","desc","limit","value"],"question":"Dê os três itens mais comprados nesta padaria.","question_toks":["Dê","os","três","itens","mais","comprados","nesta","padaria","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,10,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber GROUP BY T3.CustomerId HAVING sum(T1.price) > 150","query_toks":["SELECT","T3.CustomerId","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","GROUP","BY","T3.CustomerId","HAVING","sum","(","T1.price",")",">","150"],"query_toks_no_value":["select","t3",".","customerid","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t3",".","customerid","having","sum","(","t1",".","price",")",">","value"],"question":"Encontre os ids dos clientes que gastaram mais de 150 dólares no total.","question_toks":["Encontre","os","ids","dos","clientes","que","gastaram","mais","de","150","dólares","no","total","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,3,[0,[4,7,false],null],150.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber GROUP BY T3.CustomerId HAVING sum(T1.price) > 150","query_toks":["SELECT","T3.CustomerId","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","GROUP","BY","T3.CustomerId","HAVING","sum","(","T1.price",")",">","150"],"query_toks_no_value":["select","t3",".","customerid","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t3",".","customerid","having","sum","(","t1",".","price",")",">","value"],"question":"Quais são os ids dos clientes que gastaram mais de 150 dólares no total?","question_toks":["Quais","são","os","ids","dos","clientes","que","gastaram","mais","de","150","dólares","no","total","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,3,[0,[4,7,false],null],150.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber GROUP BY T3.CustomerId HAVING avg(T1.price) > 5","query_toks":["SELECT","T3.CustomerId","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","GROUP","BY","T3.CustomerId","HAVING","avg","(","T1.price",")",">","5"],"query_toks_no_value":["select","t3",".","customerid","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t3",".","customerid","having","avg","(","t1",".","price",")",">","value"],"question":"Encontre os ids dos clientes cuja média de gastos para cada produto é superior a 5.","question_toks":["Encontre","os","ids","dos","clientes","cuja","média","de","gastos","para","cada","produto","é","superior","a","5","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,3,[0,[5,7,false],null],5.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T3.CustomerId FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber GROUP BY T3.CustomerId HAVING avg(T1.price) > 5","query_toks":["SELECT","T3.CustomerId","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","GROUP","BY","T3.CustomerId","HAVING","avg","(","T1.price",")",">","5"],"query_toks_no_value":["select","t3",".","customerid","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t3",".","customerid","having","avg","(","t1",".","price",")",">","value"],"question":"Quais são os ids dos clientes que gastam mais de 5 em média para cada produto?","question_toks":["Quais","são","os","ids","dos","clientes","que","gastam","mais","de","5","em","média","para","cada","produto","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[[false,3,[0,[5,7,false],null],5.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T3.date FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber GROUP BY T3.date HAVING sum(T1.price) > 100","query_toks":["SELECT","T3.date","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","GROUP","BY","T3.date","HAVING","sum","(","T1.price",")",">","100"],"query_toks_no_value":["select","t3",".","date","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t3",".","date","having","sum","(","t1",".","price",")",">","value"],"question":"Em qual dia a padaria vendeu mais de 100 dólares no total?","question_toks":["Em","qual","dia","a","padaria","vendeu","mais","de","100","dólares","no","total","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,3,[0,[4,7,false],null],100.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"bakery_1","query":"SELECT T3.date FROM goods AS T1 JOIN items AS T2 ON T1.id = T2.item JOIN receipts AS T3 ON T2.receipt = T3.ReceiptNumber GROUP BY T3.date HAVING sum(T1.price) > 100","query_toks":["SELECT","T3.date","FROM","goods","AS","T1","JOIN","items","AS","T2","ON","T1.id","=","T2.item","JOIN","receipts","AS","T3","ON","T2.receipt","=","T3.ReceiptNumber","GROUP","BY","T3.date","HAVING","sum","(","T1.price",")",">","100"],"query_toks_no_value":["select","t3",".","date","from","goods","as","t1","join","items","as","t2","on","t1",".","id","=","t2",".","item","join","receipts","as","t3","on","t2",".","receipt","=","t3",".","receiptnumber","group","by","t3",".","date","having","sum","(","t1",".","price",")",">","value"],"question":"Em quais datas a padaria vendeu mais de 100 dólares em mercadorias no total?","question_toks":["Em","quais","datas","a","padaria","vendeu","mais","de","100","dólares","em","mercadorias","no","total","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,4,false],null],[0,10,false],null],"and",[false,2,[0,[0,8,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,3,[0,[4,7,false],null],100.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT count(*) FROM driver","query_toks":["SELECT","count","(","*",")","FROM","driver"],"query_toks_no_value":["select","count","(","*",")","from","driver"],"question":"Quantos motoristas existem?","question_toks":["Quantos","motoristas","existem","?"],"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":"car_racing","query":"SELECT count(*) FROM driver","query_toks":["SELECT","count","(","*",")","FROM","driver"],"query_toks_no_value":["select","count","(","*",")","from","driver"],"question":"Encontre o número total de motoristas.","question_toks":["Encontre","o","número","total","de","motoristas","."],"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":"car_racing","query":"SELECT make , count(*) FROM driver WHERE points > 150 GROUP BY make","query_toks":["SELECT","make",",","count","(","*",")","FROM","driver","WHERE","points",">","150","GROUP","BY","make"],"query_toks_no_value":["select","make",",","count","(","*",")","from","driver","where","points",">","value","group","by","make"],"question":"Encontre o número de motoristas cujos pontos são maiores que 150 para cada marca.","question_toks":["Encontre","o","número","de","motoristas","cujos","pontos","são","maiores","que","150","para","cada","marca","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,18,false],null],150.0,null]],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT make , count(*) FROM driver WHERE points > 150 GROUP BY make","query_toks":["SELECT","make",",","count","(","*",")","FROM","driver","WHERE","points",">","150","GROUP","BY","make"],"query_toks_no_value":["select","make",",","count","(","*",")","from","driver","where","points",">","value","group","by","make"],"question":"Quantos motoristas recebem pontos superiores a 150 para cada marca? Mostre a marca e a contagem.","question_toks":["Quantos","motoristas","recebem","pontos","superiores","a","150","para","cada","marca","?","Mostre","a","marca","e","a","contagem","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[[false,3,[0,[0,18,false],null],150.0,null]],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT avg(age) , Make FROM driver GROUP BY make","query_toks":["SELECT","avg","(","age",")",",","Make","FROM","driver","GROUP","BY","make"],"query_toks_no_value":["select","avg","(","age",")",",","make","from","driver","group","by","make"],"question":"Encontre a idade média dos motoristas para cada fabricante.","question_toks":["Encontre","a","idade","média","dos","motoristas","para","cada","fabricante","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,15,false],null]],[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT avg(age) , Make FROM driver GROUP BY make","query_toks":["SELECT","avg","(","age",")",",","Make","FROM","driver","GROUP","BY","make"],"query_toks_no_value":["select","avg","(","age",")",",","make","from","driver","group","by","make"],"question":"Qual é a idade média dos motoristas para cada marca? Retorne a idade média e a marca.","question_toks":["Qual","é","a","idade","média","dos","motoristas","para","cada","marca","?","Retorne","a","idade","média","e","a","marca","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,15,false],null]],[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT avg(Laps) FROM driver WHERE age < 20","query_toks":["SELECT","avg","(","Laps",")","FROM","driver","WHERE","age","<","20"],"query_toks_no_value":["select","avg","(","laps",")","from","driver","where","age","<","value"],"question":"Quais são as voltas médias de todos os pilotos que têm menos de 20 anos?","question_toks":["Quais","são","as","voltas","médias","de","todos","os","pilotos","que","têm","menos","de","20","anos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,19,false],null]]]],"where":[[false,4,[0,[0,15,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT avg(Laps) FROM driver WHERE age < 20","query_toks":["SELECT","avg","(","Laps",")","FROM","driver","WHERE","age","<","20"],"query_toks_no_value":["select","avg","(","laps",")","from","driver","where","age","<","value"],"question":"Calcule a média de voltas dos pilotos com menos de 20 anos.","question_toks":["Calcule","a","média","de","voltas","dos","pilotos","com","menos","de","20","anos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[5,[0,[0,19,false],null]]]],"where":[[false,4,[0,[0,15,false],null],20.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Manager , Sponsor FROM team ORDER BY Car_Owner","query_toks":["SELECT","Manager",",","Sponsor","FROM","team","ORDER","BY","Car_Owner"],"query_toks_no_value":["select","manager",",","sponsor","from","team","order","by","car_owner"],"question":"Quais são os gerentes e patrocinadores das equipes? Ordene os resultados por proprietários de carros.","question_toks":["Quais","são","os","gerentes","e","patrocinadores","das","equipes","?","Ordene","os","resultados","por","proprietários","de","carros","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Manager , Sponsor FROM team ORDER BY Car_Owner","query_toks":["SELECT","Manager",",","Sponsor","FROM","team","ORDER","BY","Car_Owner"],"query_toks_no_value":["select","manager",",","sponsor","from","team","order","by","car_owner"],"question":"Encontre o gerente e o patrocinador de cada equipe e ordene-os pelo proprietário do carro.","question_toks":["Encontre","o","gerente","e","o","patrocinador","de","cada","equipe","e","ordene-os","pelo","proprietário","do","carro","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT make FROM team GROUP BY team HAVING count(*) > 1","query_toks":["SELECT","make","FROM","team","GROUP","BY","team","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","make","from","team","group","by","team","having","count","(","*",")",">","value"],"question":"Encontre a marca que tem mais de um time.","question_toks":["Encontre","a","marca","que","tem","mais","de","um","time","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT make FROM team GROUP BY team HAVING count(*) > 1","query_toks":["SELECT","make","FROM","team","GROUP","BY","team","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","make","from","team","group","by","team","having","count","(","*",")",">","value"],"question":"Qual marca tem mais de um time?","question_toks":["Qual","marca","tem","mais","de","um","time","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make FROM team WHERE Car_Owner = \"Buddy Arrington\"","query_toks":["SELECT","Make","FROM","team","WHERE","Car_Owner","=","``","Buddy","Arrington","''"],"query_toks_no_value":["select","make","from","team","where","car_owner","=","value"],"question":"Quais são as marcas dos times com o proprietário do carro \"Buddy Arrington\"?","question_toks":["Quais","são","as","marcas","dos","times","com","o","proprietário","do","carro","``","Buddy","Arrington","''","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Buddy Arrington\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make FROM team WHERE Car_Owner = \"Buddy Arrington\"","query_toks":["SELECT","Make","FROM","team","WHERE","Car_Owner","=","``","Buddy","Arrington","''"],"query_toks_no_value":["select","make","from","team","where","car_owner","=","value"],"question":"Encontre a marca da equipe cujo proprietário do carro é \"Buddy Arrington\".","question_toks":["Encontre","a","marca","da","equipe","cujo","proprietário","do","carro","é","``","Buddy","Arrington","''","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"Buddy Arrington\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT max(Points) , min(Points) FROM driver","query_toks":["SELECT","max","(","Points",")",",","min","(","Points",")","FROM","driver"],"query_toks_no_value":["select","max","(","points",")",",","min","(","points",")","from","driver"],"question":"Quais são os pontos máximos e mínimos dos pilotos?","question_toks":["Quais","são","os","pontos","máximos","e","mínimos","dos","pilotos","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[1,[0,[0,18,false],null]],[2,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT max(Points) , min(Points) FROM driver","query_toks":["SELECT","max","(","Points",")",",","min","(","Points",")","FROM","driver"],"query_toks_no_value":["select","max","(","points",")",",","min","(","points",")","from","driver"],"question":"Encontre os pontos mais altos e mais baixos dos pilotos.","question_toks":["Encontre","os","pontos","mais","altos","e","mais","baixos","dos","pilotos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[1,[0,[0,18,false],null]],[2,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT count(*) FROM driver WHERE Points < 150","query_toks":["SELECT","count","(","*",")","FROM","driver","WHERE","Points","<","150"],"query_toks_no_value":["select","count","(","*",")","from","driver","where","points","<","value"],"question":"Quantos motoristas têm pontos menores que 150?","question_toks":["Quantos","motoristas","têm","pontos","menores","que","150","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,18,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT count(*) FROM driver WHERE Points < 150","query_toks":["SELECT","count","(","*",")","FROM","driver","WHERE","Points","<","150"],"query_toks_no_value":["select","count","(","*",")","from","driver","where","points","<","value"],"question":"Conte o número de motoristas cujos pontos estão abaixo de 150.","question_toks":["Conte","o","número","de","motoristas","cujos","pontos","estão","abaixo","de","150","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,18,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Driver FROM driver ORDER BY Age ASC","query_toks":["SELECT","Driver","FROM","driver","ORDER","BY","Age","ASC"],"query_toks_no_value":["select","driver","from","driver","order","by","age","asc"],"question":"Liste todos os nomes dos motoristas em ordem crescente de idade.","question_toks":["Liste","todos","os","nomes","dos","motoristas","em","ordem","crescente","de","idade","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Driver FROM driver ORDER BY Age ASC","query_toks":["SELECT","Driver","FROM","driver","ORDER","BY","Age","ASC"],"query_toks_no_value":["select","driver","from","driver","order","by","age","asc"],"question":"Ordene os nomes dos motoristas por idade em ordem crescente.","question_toks":["Ordene","os","nomes","dos","motoristas","por","idade","em","ordem","crescente","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Driver FROM driver ORDER BY Points DESC","query_toks":["SELECT","Driver","FROM","driver","ORDER","BY","Points","DESC"],"query_toks_no_value":["select","driver","from","driver","order","by","points","desc"],"question":"Liste todos os nomes dos pilotos em ordem decrescente de pontos.","question_toks":["Liste","todos","os","nomes","dos","pilotos","em","ordem","decrescente","de","pontos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,18,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Driver FROM driver ORDER BY Points DESC","query_toks":["SELECT","Driver","FROM","driver","ORDER","BY","Points","DESC"],"query_toks_no_value":["select","driver","from","driver","order","by","points","desc"],"question":"Qual é a lista de pilotos ordenada por pontos em ordem decrescente?","question_toks":["Qual","é","a","lista","de","pilotos","ordenada","por","pontos","em","ordem","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,18,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT T2.Driver , T1.Country FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country","query_toks":["SELECT","T2.Driver",",","T1.Country","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country"],"query_toks_no_value":["select","t2",".","driver",",","t1",".","country","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country"],"question":"Mostre os nomes dos pilotos e os países de onde eles são.","question_toks":["Mostre","os","nomes","dos","pilotos","e","os","países","de","onde","eles","são","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT T2.Driver , T1.Country FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country","query_toks":["SELECT","T2.Driver",",","T1.Country","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country"],"query_toks_no_value":["select","t2",".","driver",",","t1",".","country","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country"],"question":"Para cada piloto, retorne seu nome e país.","question_toks":["Para","cada","piloto",",","retorne","seu","nome","e","país","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT max(T2.Points) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Capital = \"Dublin\"","query_toks":["SELECT","max","(","T2.Points",")","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","WHERE","T1.Capital","=","``","Dublin","''"],"query_toks_no_value":["select","max","(","t2",".","points",")","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","where","t1",".","capital","=","value"],"question":"Mostre os pontos máximos dos pilotos de países com capital \"Dublin\".","question_toks":["Mostre","os","pontos","máximos","dos","pilotos","de","países","com","capital","``","Dublin","''","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[1,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Dublin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT max(T2.Points) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Capital = \"Dublin\"","query_toks":["SELECT","max","(","T2.Points",")","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","WHERE","T1.Capital","=","``","Dublin","''"],"query_toks_no_value":["select","max","(","t2",".","points",")","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","where","t1",".","capital","=","value"],"question":"Qual é o máximo de pontos dos pilotos de um país cuja capital é \"Dublin\"?","question_toks":["Qual","é","o","máximo","de","pontos","dos","pilotos","de","um","país","cuja","capital","é","``","Dublin","''","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[1,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Dublin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT avg(T2.age) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Official_native_language = \"English\"","query_toks":["SELECT","avg","(","T2.age",")","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","WHERE","T1.Official_native_language","=","``","English","''"],"query_toks_no_value":["select","avg","(","t2",".","age",")","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","where","t1",".","official_native_language","=","value"],"question":"Qual é a idade média dos motoristas de países com língua nativa oficial \"English\"?","question_toks":["Qual","é","a","idade","média","dos","motoristas","de","países","com","língua","nativa","oficial","``","English","''","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[5,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT avg(T2.age) FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T1.Official_native_language = \"English\"","query_toks":["SELECT","avg","(","T2.age",")","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","WHERE","T1.Official_native_language","=","``","English","''"],"query_toks_no_value":["select","avg","(","t2",".","age",")","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","where","t1",".","official_native_language","=","value"],"question":"Encontre a idade média dos motoristas dos países que usam \"English\" como língua nativa oficial.","question_toks":["Encontre","a","idade","média","dos","motoristas","dos","países","que","usam","``","English","''","como","língua","nativa","oficial","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[5,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"English\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT T1.Country FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T2.Points > 150","query_toks":["SELECT","T1.Country","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","WHERE","T2.Points",">","150"],"query_toks_no_value":["select","t1",".","country","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","where","t2",".","points",">","value"],"question":"Quais são os países que têm pilotos com mais de 150 pontos?","question_toks":["Quais","são","os","países","que","têm","pilotos","com","mais","de","150","pontos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,18,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT T1.Country FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country WHERE T2.Points > 150","query_toks":["SELECT","T1.Country","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","WHERE","T2.Points",">","150"],"query_toks_no_value":["select","t1",".","country","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","where","t2",".","points",">","value"],"question":"Encontre todos os países onde alguns pilotos têm pontos acima de 150.","question_toks":["Encontre","todos","os","países","onde","alguns","pilotos","têm","pontos","acima","de","150","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,18,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT T1.Capital FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country ORDER BY T2.Points DESC LIMIT 1","query_toks":["SELECT","T1.Capital","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","ORDER","BY","T2.Points","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","capital","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","order","by","t2",".","points","desc","limit","value"],"question":"Qual é a capital do país de onde é o motorista com mais pontos?","question_toks":["Qual","é","a","capital","do","país","de","onde","é","o","motorista","com","mais","pontos","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,18,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT T1.Capital FROM country AS T1 JOIN driver AS T2 ON T1.Country_ID = T2.Country ORDER BY T2.Points DESC LIMIT 1","query_toks":["SELECT","T1.Capital","FROM","country","AS","T1","JOIN","driver","AS","T2","ON","T1.Country_ID","=","T2.Country","ORDER","BY","T2.Points","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","capital","from","country","as","t1","join","driver","as","t2","on","t1",".","country_id","=","t2",".","country","order","by","t2",".","points","desc","limit","value"],"question":"De qual país é o motorista com mais pontos? Me dê a capital do país.","question_toks":["De","qual","país","é","o","motorista","com","mais","pontos","?","Me","dê","a","capital","do","país","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,14,false],null]]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,18,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make , COUNT(*) FROM driver GROUP BY Make","query_toks":["SELECT","Make",",","COUNT","(","*",")","FROM","driver","GROUP","BY","Make"],"query_toks_no_value":["select","make",",","count","(","*",")","from","driver","group","by","make"],"question":"Liste cada marca com o número de motoristas dessa marca.","question_toks":["Liste","cada","marca","com","o","número","de","motoristas","dessa","marca","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make , COUNT(*) FROM driver GROUP BY Make","query_toks":["SELECT","Make",",","COUNT","(","*",")","FROM","driver","GROUP","BY","Make"],"query_toks_no_value":["select","make",",","count","(","*",")","from","driver","group","by","make"],"question":"Para cada marca, retorne a marca e a contagem de motoristas com essa marca.","question_toks":["Para","cada","marca",",","retorne","a","marca","e","a","contagem","de","motoristas","com","essa","marca","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make FROM driver GROUP BY Make ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Make","FROM","driver","GROUP","BY","Make","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","make","from","driver","group","by","make","order","by","count","(","*",")","desc","limit","value"],"question":"Liste a marca que está associada ao maior número de motoristas.","question_toks":["Liste","a","marca","que","está","associada","ao","maior","número","de","motoristas","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make FROM driver GROUP BY Make ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Make","FROM","driver","GROUP","BY","Make","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","make","from","driver","group","by","make","order","by","count","(","*",")","desc","limit","value"],"question":"Qual marca tem o maior número de motoristas?","question_toks":["Qual","marca","tem","o","maior","número","de","motoristas","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make FROM driver GROUP BY Make HAVING COUNT(*) >= 3","query_toks":["SELECT","Make","FROM","driver","GROUP","BY","Make","HAVING","COUNT","(","*",")",">","=","3"],"query_toks_no_value":["select","make","from","driver","group","by","make","having","count","(","*",")",">","=","value"],"question":"Liste as marcas de veículos dos motoristas que estão associadas a pelo menos três motoristas.","question_toks":["Liste","as","marcas","de","veículos","dos","motoristas","que","estão","associadas","a","pelo","menos","três","motoristas","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Make FROM driver GROUP BY Make HAVING COUNT(*) >= 3","query_toks":["SELECT","Make","FROM","driver","GROUP","BY","Make","HAVING","COUNT","(","*",")",">","=","3"],"query_toks_no_value":["select","make","from","driver","group","by","make","having","count","(","*",")",">","=","value"],"question":"Qual fabricante está associado a 3 ou mais motoristas?","question_toks":["Qual","fabricante","está","associado","a","3","ou","mais","motoristas","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[[false,5,[0,[3,0,false],null],3.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT Team FROM team WHERE Team_ID NOT IN (SELECT Team_ID FROM team_driver)","query_toks":["SELECT","Team","FROM","team","WHERE","Team_ID","NOT","IN","(","SELECT","Team_ID","FROM","team_driver",")"],"query_toks_no_value":["select","team","from","team","where","team_id","not","in","(","select","team_id","from","team_driver",")"],"question":"Liste os nomes das equipes que não têm nenhum piloto.","question_toks":["Liste","os","nomes","das","equipes","que","não","têm","nenhum","piloto","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[true,8,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,21,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":"car_racing","query":"SELECT Team FROM team WHERE Team_ID NOT IN (SELECT Team_ID FROM team_driver)","query_toks":["SELECT","Team","FROM","team","WHERE","Team_ID","NOT","IN","(","SELECT","Team_ID","FROM","team_driver",")"],"query_toks_no_value":["select","team","from","team","where","team_id","not","in","(","select","team_id","from","team_driver",")"],"question":"Qual time não tem pilotos?","question_toks":["Qual","time","não","tem","pilotos","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[true,8,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,21,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":"car_racing","query":"SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country = t2.country_id WHERE t1.Make = \"Dodge\" INTERSECT SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country = t2.country_id WHERE t1.Make = \"Chevrolet\"","query_toks":["SELECT","t2.country","FROM","driver","AS","t1","JOIN","country","AS","t2","ON","t1.country","=","t2.country_id","WHERE","t1.Make","=","``","Dodge","''","INTERSECT","SELECT","t2.country","FROM","driver","AS","t1","JOIN","country","AS","t2","ON","t1.country","=","t2.country_id","WHERE","t1.Make","=","``","Chevrolet","''"],"query_toks_no_value":["select","t2",".","country","from","driver","as","t1","join","country","as","t2","on","t1",".","country","=","t2",".","country_id","where","t1",".","make","=","value","intersect","select","t2",".","country","from","driver","as","t1","join","country","as","t2","on","t1",".","country","=","t2",".","country_id","where","t1",".","make","=","value"],"question":"Qual país tem tanto motoristas com a marca \"Dodge\" quanto motoristas com a marca \"Chevrolet\"?","question_toks":["Qual","país","tem","tanto","motoristas","com","a","marca","``","Dodge","''","quanto","motoristas","com","a","marca","``","Chevrolet","''","?"],"sql":{"from":{"table_units":[["table_unit",2],["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,17,false],null],"\"Dodge\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["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,17,false],null],"\"Chevrolet\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country = t2.country_id WHERE t1.Make = \"Dodge\" INTERSECT SELECT t2.country FROM driver AS t1 JOIN country AS t2 ON t1.country = t2.country_id WHERE t1.Make = \"Chevrolet\"","query_toks":["SELECT","t2.country","FROM","driver","AS","t1","JOIN","country","AS","t2","ON","t1.country","=","t2.country_id","WHERE","t1.Make","=","``","Dodge","''","INTERSECT","SELECT","t2.country","FROM","driver","AS","t1","JOIN","country","AS","t2","ON","t1.country","=","t2.country_id","WHERE","t1.Make","=","``","Chevrolet","''"],"query_toks_no_value":["select","t2",".","country","from","driver","as","t1","join","country","as","t2","on","t1",".","country","=","t2",".","country_id","where","t1",".","make","=","value","intersect","select","t2",".","country","from","driver","as","t1","join","country","as","t2","on","t1",".","country","=","t2",".","country_id","where","t1",".","make","=","value"],"question":"Encontre os países onde há tanto motoristas com a marca \"Dodge\" quanto motoristas com a marca \"Chevrolet\".","question_toks":["Encontre","os","países","onde","há","tanto","motoristas","com","a","marca","``","Dodge","''","quanto","motoristas","com","a","marca","``","Chevrolet","''","."],"sql":{"from":{"table_units":[["table_unit",2],["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,17,false],null],"\"Dodge\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["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,17,false],null],"\"Chevrolet\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT sum(Points) , avg(Points) FROM driver","query_toks":["SELECT","sum","(","Points",")",",","avg","(","Points",")","FROM","driver"],"query_toks_no_value":["select","sum","(","points",")",",","avg","(","points",")","from","driver"],"question":"Mostre o total e a média de pontos de todos os pilotos.","question_toks":["Mostre","o","total","e","a","média","de","pontos","de","todos","os","pilotos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[4,[0,[0,18,false],null]],[5,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT sum(Points) , avg(Points) FROM driver","query_toks":["SELECT","sum","(","Points",")",",","avg","(","Points",")","FROM","driver"],"query_toks_no_value":["select","sum","(","points",")",",","avg","(","points",")","from","driver"],"question":"Quais são os pontos totais e a média de pontos dos motoristas?","question_toks":["Quais","são","os","pontos","totais","e","a","média","de","pontos","dos","motoristas","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[4,[0,[0,18,false],null]],[5,[0,[0,18,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT country FROM country WHERE country_id NOT IN (SELECT country FROM driver)","query_toks":["SELECT","country","FROM","country","WHERE","country_id","NOT","IN","(","SELECT","country","FROM","driver",")"],"query_toks_no_value":["select","country","from","country","where","country_id","not","in","(","select","country","from","driver",")"],"question":"Encontre os países de onde nenhum motorista vem.","question_toks":["Encontre","os","países","de","onde","nenhum","motorista","vem","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,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":"car_racing","query":"SELECT country FROM country WHERE country_id NOT IN (SELECT country FROM driver)","query_toks":["SELECT","country","FROM","country","WHERE","country_id","NOT","IN","(","SELECT","country","FROM","driver",")"],"query_toks_no_value":["select","country","from","country","where","country_id","not","in","(","select","country","from","driver",")"],"question":"Quais países não têm nenhum motorista?","question_toks":["Quais","países","não","têm","nenhum","motorista","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,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":"car_racing","query":"SELECT t1.manager , t1.sponsor FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id = t2.team_id GROUP BY t2.team_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t1.manager",",","t1.sponsor","FROM","team","AS","t1","JOIN","team_driver","AS","t2","ON","t1.team_id","=","t2.team_id","GROUP","BY","t2.team_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","manager",",","t1",".","sponsor","from","team","as","t1","join","team_driver","as","t2","on","t1",".","team_id","=","t2",".","team_id","group","by","t2",".","team_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são o gerente e o patrocinador da equipe que tem mais pilotos?","question_toks":["Quais","são","o","gerente","e","o","patrocinador","da","equipe","que","tem","mais","pilotos","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT t1.manager , t1.sponsor FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id = t2.team_id GROUP BY t2.team_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t1.manager",",","t1.sponsor","FROM","team","AS","t1","JOIN","team_driver","AS","t2","ON","t1.team_id","=","t2.team_id","GROUP","BY","t2.team_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","manager",",","t1",".","sponsor","from","team","as","t1","join","team_driver","as","t2","on","t1",".","team_id","=","t2",".","team_id","group","by","t2",".","team_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o gerente e o patrocinador da equipe que tem mais pilotos.","question_toks":["Encontre","o","gerente","e","o","patrocinador","da","equipe","que","tem","mais","pilotos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT t1.manager , t1.car_owner FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id = t2.team_id GROUP BY t2.team_id HAVING count(*) >= 2","query_toks":["SELECT","t1.manager",",","t1.car_owner","FROM","team","AS","t1","JOIN","team_driver","AS","t2","ON","t1.team_id","=","t2.team_id","GROUP","BY","t2.team_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","manager",",","t1",".","car_owner","from","team","as","t1","join","team_driver","as","t2","on","t1",".","team_id","=","t2",".","team_id","group","by","t2",".","team_id","having","count","(","*",")",">","=","value"],"question":"Quais são o gerente e o proprietário do carro da equipe que tem pelo menos 2 motoristas?","question_toks":["Quais","são","o","gerente","e","o","proprietário","do","carro","da","equipe","que","tem","pelo","menos","2","motoristas","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"car_racing","query":"SELECT t1.manager , t1.car_owner FROM team AS t1 JOIN team_driver AS t2 ON t1.team_id = t2.team_id GROUP BY t2.team_id HAVING count(*) >= 2","query_toks":["SELECT","t1.manager",",","t1.car_owner","FROM","team","AS","t1","JOIN","team_driver","AS","t2","ON","t1.team_id","=","t2.team_id","GROUP","BY","t2.team_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","manager",",","t1",".","car_owner","from","team","as","t1","join","team_driver","as","t2","on","t1",".","team_id","=","t2",".","team_id","group","by","t2",".","team_id","having","count","(","*",")",">","=","value"],"question":"Encontre a equipe com dois ou mais motoristas e retorne o gerente e o proprietário do carro da equipe.","question_toks":["Encontre","a","equipe","com","dois","ou","mais","motoristas","e","retorne","o","gerente","e","o","proprietário","do","carro","da","equipe","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,21,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,21,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT count(*) FROM institution","query_toks":["SELECT","count","(","*",")","FROM","institution"],"query_toks_no_value":["select","count","(","*",")","from","institution"],"question":"Quantas instituições existem?","question_toks":["Quantas","instituições","existem","?"],"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":"institution_sports","query":"SELECT count(*) FROM institution","query_toks":["SELECT","count","(","*",")","FROM","institution"],"query_toks_no_value":["select","count","(","*",")","from","institution"],"question":"Conte o número de instituições.","question_toks":["Conte","o","número","de","instituições","."],"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":"institution_sports","query":"SELECT Name FROM institution ORDER BY Name ASC","query_toks":["SELECT","Name","FROM","institution","ORDER","BY","Name","ASC"],"query_toks_no_value":["select","name","from","institution","order","by","name","asc"],"question":"Liste os nomes das instituições em ordem alfabética ascendente.","question_toks":["Liste","os","nomes","das","instituições","em","ordem","alfabética","ascendente","."],"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":"institution_sports","query":"SELECT Name FROM institution ORDER BY Name ASC","query_toks":["SELECT","Name","FROM","institution","ORDER","BY","Name","ASC"],"query_toks_no_value":["select","name","from","institution","order","by","name","asc"],"question":"Quais são os nomes das instituições, ordenados alfabeticamente?","question_toks":["Quais","são","os","nomes","das","instituições",",","ordenados","alfabeticamente","?"],"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":"institution_sports","query":"SELECT Name FROM institution ORDER BY Founded ASC","query_toks":["SELECT","Name","FROM","institution","ORDER","BY","Founded","ASC"],"query_toks_no_value":["select","name","from","institution","order","by","founded","asc"],"question":"Liste os nomes das instituições em ordem crescente de ano de fundação.","question_toks":["Liste","os","nomes","das","instituições","em","ordem","crescente","de","ano","de","fundação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Name FROM institution ORDER BY Founded ASC","query_toks":["SELECT","Name","FROM","institution","ORDER","BY","Founded","ASC"],"query_toks_no_value":["select","name","from","institution","order","by","founded","asc"],"question":"Quais são os nomes das instituições, ordenados pelos anos em que foram fundadas?","question_toks":["Quais","são","os","nomes","das","instituições",",","ordenados","pelos","anos","em","que","foram","fundadas","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT City , Province FROM institution","query_toks":["SELECT","City",",","Province","FROM","institution"],"query_toks_no_value":["select","city",",","province","from","institution"],"question":"Quais são as cidades e províncias das instituições?","question_toks":["Quais","são","as","cidades","e","províncias","das","instituições","?"],"sql":{"from":{"table_units":[["table_unit",0]],"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":"institution_sports","query":"SELECT City , Province FROM institution","query_toks":["SELECT","City",",","Province","FROM","institution"],"query_toks_no_value":["select","city",",","province","from","institution"],"question":"Retorne as cidades e províncias das instituições.","question_toks":["Retorne","as","cidades","e","províncias","das","instituições","."],"sql":{"from":{"table_units":[["table_unit",0]],"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":"institution_sports","query":"SELECT max(Enrollment) , min(Enrollment) FROM institution","query_toks":["SELECT","max","(","Enrollment",")",",","min","(","Enrollment",")","FROM","institution"],"query_toks_no_value":["select","max","(","enrollment",")",",","min","(","enrollment",")","from","institution"],"question":"Quais são as matrículas máxima e mínima de todas as instituições?","question_toks":["Quais","são","as","matrículas","máxima","e","mínima","de","todas","as","instituições","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,8,false],null]],[2,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT max(Enrollment) , min(Enrollment) FROM institution","query_toks":["SELECT","max","(","Enrollment",")",",","min","(","Enrollment",")","FROM","institution"],"query_toks_no_value":["select","max","(","enrollment",")",",","min","(","enrollment",")","from","institution"],"question":"Retorne a matrícula máxima e mínima em todas as instituições.","question_toks":["Retorne","a","matrícula","máxima","e","mínima","em","todas","as","instituições","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,8,false],null]],[2,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Affiliation FROM institution WHERE City != \"Vancouver\"","query_toks":["SELECT","Affiliation","FROM","institution","WHERE","City","!","=","``","Vancouver","''"],"query_toks_no_value":["select","affiliation","from","institution","where","city","!","=","value"],"question":"Quais são as afiliações das instituições que não estão na cidade \"Vancouver\"?","question_toks":["Quais","são","as","afiliações","das","instituições","que","não","estão","na","cidade","``","Vancouver","''","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,7,[0,[0,4,false],null],"\"Vancouver\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Affiliation FROM institution WHERE City != \"Vancouver\"","query_toks":["SELECT","Affiliation","FROM","institution","WHERE","City","!","=","``","Vancouver","''"],"query_toks_no_value":["select","affiliation","from","institution","where","city","!","=","value"],"question":"Retorne as afiliações das instituições que não estão na cidade de Vancouver.","question_toks":["Retorne","as","afiliações","das","instituições","que","não","estão","na","cidade","de","Vancouver","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[[false,7,[0,[0,4,false],null],"\"Vancouver\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Stadium FROM institution ORDER BY Capacity DESC","query_toks":["SELECT","Stadium","FROM","institution","ORDER","BY","Capacity","DESC"],"query_toks_no_value":["select","stadium","from","institution","order","by","capacity","desc"],"question":"Quais são os estádios das instituições em ordem decrescente de capacidade?","question_toks":["Quais","são","os","estádios","das","instituições","em","ordem","decrescente","de","capacidade","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Stadium FROM institution ORDER BY Capacity DESC","query_toks":["SELECT","Stadium","FROM","institution","ORDER","BY","Capacity","DESC"],"query_toks_no_value":["select","stadium","from","institution","order","by","capacity","desc"],"question":"Retorne os estádios das instituições, ordenados pela capacidade em ordem decrescente.","question_toks":["Retorne","os","estádios","das","instituições",",","ordenados","pela","capacidade","em","ordem","decrescente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Stadium FROM institution ORDER BY Enrollment DESC LIMIT 1","query_toks":["SELECT","Stadium","FROM","institution","ORDER","BY","Enrollment","DESC","LIMIT","1"],"query_toks_no_value":["select","stadium","from","institution","order","by","enrollment","desc","limit","value"],"question":"Qual é o estádio da instituição com a maior matrícula?","question_toks":["Qual","é","o","estádio","da","instituição","com","a","maior","matrícula","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Stadium FROM institution ORDER BY Enrollment DESC LIMIT 1","query_toks":["SELECT","Stadium","FROM","institution","ORDER","BY","Enrollment","DESC","LIMIT","1"],"query_toks_no_value":["select","stadium","from","institution","order","by","enrollment","desc","limit","value"],"question":"Dê o estádio da instituição com a maior matrícula.","question_toks":["Dê","o","estádio","da","instituição","com","a","maior","matrícula","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T2.Name , T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID","query_toks":["SELECT","T2.Name",",","T1.Nickname","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID"],"query_toks_no_value":["select","t2",".","name",",","t1",".","nickname","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id"],"question":"Quais são os nomes e apelidos das instituições?","question_toks":["Quais","são","os","nomes","e","apelidos","das","instituições","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T2.Name , T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID","query_toks":["SELECT","T2.Name",",","T1.Nickname","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID"],"query_toks_no_value":["select","t2",".","name",",","t1",".","nickname","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id"],"question":"Retorne os nomes das instituições, bem como seus apelidos.","question_toks":["Retorne","os","nomes","das","instituições",",","bem","como","seus","apelidos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID ORDER BY T2.Enrollment ASC LIMIT 1","query_toks":["SELECT","T1.Nickname","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","ORDER","BY","T2.Enrollment","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","nickname","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","order","by","t2",".","enrollment","asc","limit","value"],"question":"Qual é o apelido da instituição com a menor matrícula?","question_toks":["Qual","é","o","apelido","da","instituição","com","a","menor","matrícula","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID ORDER BY T2.Enrollment ASC LIMIT 1","query_toks":["SELECT","T1.Nickname","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","ORDER","BY","T2.Enrollment","ASC","LIMIT","1"],"query_toks_no_value":["select","t1",".","nickname","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","order","by","t2",".","enrollment","asc","limit","value"],"question":"Retorne o apelido da instituição com a menor matrícula.","question_toks":["Retorne","o","apelido","da","instituição","com","a","menor","matrícula","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,8,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T2.Name FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID ORDER BY T1.Number_of_Championships DESC","query_toks":["SELECT","T2.Name","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","ORDER","BY","T1.Number_of_Championships","DESC"],"query_toks_no_value":["select","t2",".","name","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","order","by","t1",".","number_of_championships","desc"],"question":"Liste os nomes das instituições em ordem decrescente do número de campeonatos.","question_toks":["Liste","os","nomes","das","instituições","em","ordem","decrescente","do","número","de","campeonatos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T2.Name FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID ORDER BY T1.Number_of_Championships DESC","query_toks":["SELECT","T2.Name","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","ORDER","BY","T1.Number_of_Championships","DESC"],"query_toks_no_value":["select","t2",".","name","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","order","by","t1",".","number_of_championships","desc"],"question":"Quais são os nomes das instituições, ordenados de forma decrescente pelo número de campeonatos?","question_toks":["Quais","são","os","nomes","das","instituições",",","ordenados","de","forma","decrescente","pelo","número","de","campeonatos","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T2.Name FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID WHERE T1.Number_of_Championships >= 1","query_toks":["SELECT","T2.Name","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","WHERE","T1.Number_of_Championships",">","=","1"],"query_toks_no_value":["select","t2",".","name","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t1",".","number_of_championships",">","=","value"],"question":"Liste os nomes das instituições com pelo menos um campeonato.","question_toks":["Liste","os","nomes","das","instituições","com","pelo","menos","um","campeonato","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,5,[0,[0,15,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T2.Name FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID WHERE T1.Number_of_Championships >= 1","query_toks":["SELECT","T2.Name","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","WHERE","T1.Number_of_Championships",">","=","1"],"query_toks_no_value":["select","t2",".","name","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t1",".","number_of_championships",">","=","value"],"question":"Quais são os nomes das instituições que têm 1 ou mais campeonatos?","question_toks":["Quais","são","os","nomes","das","instituições","que","têm","1","ou","mais","campeonatos","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,5,[0,[0,15,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT sum(T1.Number_of_Championships) FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID WHERE T2.Affiliation = \"Public\"","query_toks":["SELECT","sum","(","T1.Number_of_Championships",")","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","WHERE","T2.Affiliation","=","``","Public","''"],"query_toks_no_value":["select","sum","(","t1",".","number_of_championships",")","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t2",".","affiliation","=","value"],"question":"Qual é o número total de campeonatos das instituições com afiliação pública?","question_toks":["Qual","é","o","número","total","de","campeonatos","das","instituições","com","afiliação","pública","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Public\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT sum(T1.Number_of_Championships) FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID WHERE T2.Affiliation = \"Public\"","query_toks":["SELECT","sum","(","T1.Number_of_Championships",")","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","WHERE","T2.Affiliation","=","``","Public","''"],"query_toks_no_value":["select","sum","(","t1",".","number_of_championships",")","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","where","t2",".","affiliation","=","value"],"question":"Retorne o número total de campeonatos das instituições que têm afiliação como Public.","question_toks":["Retorne","o","número","total","de","campeonatos","das","instituições","que","têm","afiliação","como","Public","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Public\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Affiliation , COUNT(*) FROM institution GROUP BY Affiliation","query_toks":["SELECT","Affiliation",",","COUNT","(","*",")","FROM","institution","GROUP","BY","Affiliation"],"query_toks_no_value":["select","affiliation",",","count","(","*",")","from","institution","group","by","affiliation"],"question":"Quais são os diferentes tipos de afiliações das instituições e o número correspondente de instituições?","question_toks":["Quais","são","os","diferentes","tipos","de","afiliações","das","instituições","e","o","número","correspondente","de","instituições","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Affiliation , COUNT(*) FROM institution GROUP BY Affiliation","query_toks":["SELECT","Affiliation",",","COUNT","(","*",")","FROM","institution","GROUP","BY","Affiliation"],"query_toks_no_value":["select","affiliation",",","count","(","*",")","from","institution","group","by","affiliation"],"question":"Quantas instituições existem para cada tipo de afiliação?","question_toks":["Quantas","instituições","existem","para","cada","tipo","de","afiliação","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Affiliation FROM institution GROUP BY Affiliation ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Affiliation","FROM","institution","GROUP","BY","Affiliation","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","affiliation","from","institution","group","by","affiliation","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o tipo de afiliação mais comum para instituições?","question_toks":["Qual","é","o","tipo","de","afiliação","mais","comum","para","instituições","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Affiliation FROM institution GROUP BY Affiliation ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Affiliation","FROM","institution","GROUP","BY","Affiliation","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","affiliation","from","institution","group","by","affiliation","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne o tipo de afiliação mais comum entre todas as instituições.","question_toks":["Retorne","o","tipo","de","afiliação","mais","comum","entre","todas","as","instituições","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Founded , COUNT(*) FROM institution GROUP BY Founded HAVING COUNT(*) > 1","query_toks":["SELECT","Founded",",","COUNT","(","*",")","FROM","institution","GROUP","BY","Founded","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","founded",",","count","(","*",")","from","institution","group","by","founded","having","count","(","*",")",">","value"],"question":"Em quais anos mais de uma instituição foi fundada?","question_toks":["Em","quais","anos","mais","de","uma","instituição","foi","fundada","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Founded , COUNT(*) FROM institution GROUP BY Founded HAVING COUNT(*) > 1","query_toks":["SELECT","Founded",",","COUNT","(","*",")","FROM","institution","GROUP","BY","Founded","HAVING","COUNT","(","*",")",">","1"],"query_toks_no_value":["select","founded",",","count","(","*",")","from","institution","group","by","founded","having","count","(","*",")",">","value"],"question":"Retorne os anos em que mais de 1 instituição foi fundada, bem como o número de instituições fundadas em cada um desses anos.","question_toks":["Retorne","os","anos","em","que","mais","de","1","instituição","foi","fundada",",","bem","como","o","número","de","instituições","fundadas","em","cada","um","desses","anos","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID ORDER BY T2.Capacity DESC","query_toks":["SELECT","T1.Nickname","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","ORDER","BY","T2.Capacity","DESC"],"query_toks_no_value":["select","t1",".","nickname","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","order","by","t2",".","capacity","desc"],"question":"Liste os apelidos das instituições em ordem decrescente de capacidade.","question_toks":["Liste","os","apelidos","das","instituições","em","ordem","decrescente","de","capacidade","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT T1.Nickname FROM championship AS T1 JOIN institution AS T2 ON T1.Institution_ID = T2.Institution_ID ORDER BY T2.Capacity DESC","query_toks":["SELECT","T1.Nickname","FROM","championship","AS","T1","JOIN","institution","AS","T2","ON","T1.Institution_ID","=","T2.Institution_ID","ORDER","BY","T2.Capacity","DESC"],"query_toks_no_value":["select","t1",".","nickname","from","championship","as","t1","join","institution","as","t2","on","t1",".","institution_id","=","t2",".","institution_id","order","by","t2",".","capacity","desc"],"question":"Quais são os apelidos das instituições, ordenados em ordem decrescente por suas capacidades?","question_toks":["Quais","são","os","apelidos","das","instituições",",","ordenados","em","ordem","decrescente","por","suas","capacidades","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"select sum(enrollment) from institution where city = \"vancouver\" or city = \"calgary\"","query_toks":["select","sum","(","enrollment",")","from","institution","where","city","=","\"vancouver\"","or","city","=","\"calgary\""],"query_toks_no_value":["select","sum","(","enrollment",")","from","institution","where","city","=","value","or","city","=","value"],"question":"Qual é o total de matrículas das instituições nas cidades \"Vancouver\" ou \"Calgary\"?","question_toks":["Qual","é","o","total","de","matrículas","das","instituições","nas","cidades","``","Vancouver","''","ou","``","Calgary","''","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"vancouver\"",null],"or",[false,2,[0,[0,4,false],null],"\"calgary\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"select sum(enrollment) from institution where city = \"vancouver\" or city = \"calgary\"","query_toks":["select","sum","(","enrollment",")","from","institution","where","city","=","\"vancouver\"","or","city","=","\"calgary\""],"query_toks_no_value":["select","sum","(","enrollment",")","from","institution","where","city","=","value","or","city","=","value"],"question":"Retorne todas as matrículas das instituições na cidade de Vancouver ou na cidade de Calgary.","question_toks":["Retorne","todas","as","matrículas","das","instituições","na","cidade","de","Vancouver","ou","na","cidade","de","Calgary","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"vancouver\"",null],"or",[false,2,[0,[0,4,false],null],"\"calgary\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Province FROM institution WHERE Founded < 1920 INTERSECT SELECT Province FROM institution WHERE Founded > 1950","query_toks":["SELECT","Province","FROM","institution","WHERE","Founded","<","1920","INTERSECT","SELECT","Province","FROM","institution","WHERE","Founded",">","1950"],"query_toks_no_value":["select","province","from","institution","where","founded","<","value","intersect","select","province","from","institution","where","founded",">","value"],"question":"Mostre as províncias que têm instituições fundadas antes de 1920 e instituições fundadas após 1950.","question_toks":["Mostre","as","províncias","que","têm","instituições","fundadas","antes","de","1920","e","instituições","fundadas","após","1950","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,4,[0,[0,6,false],null],1920.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],1950.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT Province FROM institution WHERE Founded < 1920 INTERSECT SELECT Province FROM institution WHERE Founded > 1950","query_toks":["SELECT","Province","FROM","institution","WHERE","Founded","<","1920","INTERSECT","SELECT","Province","FROM","institution","WHERE","Founded",">","1950"],"query_toks_no_value":["select","province","from","institution","where","founded","<","value","intersect","select","province","from","institution","where","founded",">","value"],"question":"Quais são as províncias que têm instituições fundadas antes de 1920 e também instituições fundadas após 1950?","question_toks":["Quais","são","as","províncias","que","têm","instituições","fundadas","antes","de","1920","e","também","instituições","fundadas","após","1950","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,4,[0,[0,6,false],null],1920.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],1950.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT count(DISTINCT Province) FROM institution","query_toks":["SELECT","count","(","DISTINCT","Province",")","FROM","institution"],"query_toks_no_value":["select","count","(","distinct","province",")","from","institution"],"question":"Quantas províncias distintas estão nas instituições?","question_toks":["Quantas","províncias","distintas","estão","nas","instituições","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"institution_sports","query":"SELECT count(DISTINCT Province) FROM institution","query_toks":["SELECT","count","(","DISTINCT","Province",")","FROM","institution"],"query_toks_no_value":["select","count","(","distinct","province",")","from","institution"],"question":"Conte o número de províncias diferentes que têm instituições.","question_toks":["Conte","o","número","de","províncias","diferentes","que","têm","instituições","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT * FROM warehouses","query_toks":["SELECT","*","FROM","warehouses"],"query_toks_no_value":["select","*","from","warehouses"],"question":"Selecione todos os detalhes de todos os armazéns.","question_toks":["Selecione","todos","os","detalhes","de","todos","os","armazéns","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT * FROM warehouses","query_toks":["SELECT","*","FROM","warehouses"],"query_toks_no_value":["select","*","from","warehouses"],"question":"Qual é todas as informações sobre os armazéns?","question_toks":["Qual","é","todas","as","informações","sobre","os","armazéns","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT DISTINCT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE LOCATION = 'New York'","query_toks":["SELECT","DISTINCT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","LOCATION","=","'New","York","'"],"query_toks_no_value":["select","distinct","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","location","=","value"],"question":"Encontre todos os conteúdos diferentes armazenados em New York.","question_toks":["Encontre","todos","os","conteúdos","diferentes","armazenados","em","New","York","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT DISTINCT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE LOCATION = 'New York'","query_toks":["SELECT","DISTINCT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","LOCATION","=","'New","York","'"],"query_toks_no_value":["select","distinct","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","location","=","value"],"question":"Quais são todos os diferentes conteúdos armazenados em caixas em New York?","question_toks":["Quais","são","todos","os","diferentes","conteúdos","armazenados","em","caixas","em","New","York","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT CONTENTS FROM boxes WHERE Value > 150","query_toks":["SELECT","CONTENTS","FROM","boxes","WHERE","Value",">","150"],"query_toks_no_value":["select","contents","from","boxes","where","value",">","value"],"question":"Selecione o conteúdo de todas as caixas com um valor superior a R$150.","question_toks":["Selecione","o","conteúdo","de","todas","as","caixas","com","um","valor","superior","a","R","$","150","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT CONTENTS FROM boxes WHERE Value > 150","query_toks":["SELECT","CONTENTS","FROM","boxes","WHERE","Value",">","150"],"query_toks_no_value":["select","contents","from","boxes","where","value",">","value"],"question":"Quais são os conteúdos das caixas com valor superior a 150?","question_toks":["Quais","são","os","conteúdos","das","caixas","com","valor","superior","a","150","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],150.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT warehouse , avg(value) FROM boxes GROUP BY warehouse","query_toks":["SELECT","warehouse",",","avg","(","value",")","FROM","boxes","GROUP","BY","warehouse"],"query_toks_no_value":["select","warehouse",",","avg","(","value",")","from","boxes","group","by","warehouse"],"question":"Selecione o código do armazém e o valor médio das caixas em cada armazém.","question_toks":["Selecione","o","código","do","armazém","e","o","valor","médio","das","caixas","em","cada","armazém","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT warehouse , avg(value) FROM boxes GROUP BY warehouse","query_toks":["SELECT","warehouse",",","avg","(","value",")","FROM","boxes","GROUP","BY","warehouse"],"query_toks_no_value":["select","warehouse",",","avg","(","value",")","from","boxes","group","by","warehouse"],"question":"Qual é o valor médio das caixas para cada armazém?","question_toks":["Qual","é","o","valor","médio","das","caixas","para","cada","armazém","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(value) , sum(value) FROM boxes","query_toks":["SELECT","avg","(","value",")",",","sum","(","value",")","FROM","boxes"],"query_toks_no_value":["select","avg","(","value",")",",","sum","(","value",")","from","boxes"],"question":"Encontre os valores médio e total de todas as caixas.","question_toks":["Encontre","os","valores","médio","e","total","de","todas","as","caixas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]],[4,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(value) , sum(value) FROM boxes","query_toks":["SELECT","avg","(","value",")",",","sum","(","value",")","FROM","boxes"],"query_toks_no_value":["select","avg","(","value",")",",","sum","(","value",")","from","boxes"],"question":"Quais são os valores médio e total em todas as caixas?","question_toks":["Quais","são","os","valores","médio","e","total","em","todas","as","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]],[4,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(capacity) , sum(capacity) FROM warehouses","query_toks":["SELECT","avg","(","capacity",")",",","sum","(","capacity",")","FROM","warehouses"],"query_toks_no_value":["select","avg","(","capacity",")",",","sum","(","capacity",")","from","warehouses"],"question":"Encontre a capacidade média e total de todos os armazéns.","question_toks":["Encontre","a","capacidade","média","e","total","de","todos","os","armazéns","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[4,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(capacity) , sum(capacity) FROM warehouses","query_toks":["SELECT","avg","(","capacity",")",",","sum","(","capacity",")","FROM","warehouses"],"query_toks_no_value":["select","avg","(","capacity",")",",","sum","(","capacity",")","from","warehouses"],"question":"Quais são as capacidades média e total em todos os armazéns?","question_toks":["Quais","são","as","capacidades","média","e","total","em","todos","os","armazéns","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[4,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(value) , max(value) , CONTENTS FROM boxes GROUP BY CONTENTS","query_toks":["SELECT","avg","(","value",")",",","max","(","value",")",",","CONTENTS","FROM","boxes","GROUP","BY","CONTENTS"],"query_toks_no_value":["select","avg","(","value",")",",","max","(","value",")",",","contents","from","boxes","group","by","contents"],"question":"Encontre o valor médio e máximo para cada conteúdo diferente.","question_toks":["Encontre","o","valor","médio","e","máximo","para","cada","conteúdo","diferente","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]],[1,[0,[0,6,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(value) , max(value) , CONTENTS FROM boxes GROUP BY CONTENTS","query_toks":["SELECT","avg","(","value",")",",","max","(","value",")",",","CONTENTS","FROM","boxes","GROUP","BY","CONTENTS"],"query_toks_no_value":["select","avg","(","value",")",",","max","(","value",")",",","contents","from","boxes","group","by","contents"],"question":"Quais são os valores médio e máximo para cada tipo de conteúdo nas caixas?","question_toks":["Quais","são","os","valores","médio","e","máximo","para","cada","tipo","de","conteúdo","nas","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]],[1,[0,[0,6,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT CONTENTS FROM boxes ORDER BY value DESC LIMIT 1","query_toks":["SELECT","CONTENTS","FROM","boxes","ORDER","BY","value","DESC","LIMIT","1"],"query_toks_no_value":["select","contents","from","boxes","order","by","value","desc","limit","value"],"question":"Encontre o conteúdo que tem os maiores valores totais em todas as caixas.","question_toks":["Encontre","o","conteúdo","que","tem","os","maiores","valores","totais","em","todas","as","caixas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,6,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT CONTENTS FROM boxes ORDER BY value DESC LIMIT 1","query_toks":["SELECT","CONTENTS","FROM","boxes","ORDER","BY","value","DESC","LIMIT","1"],"query_toks_no_value":["select","contents","from","boxes","order","by","value","desc","limit","value"],"question":"Qual é o conteúdo com o maior valor entre todas as caixas?","question_toks":["Qual","é","o","conteúdo","com","o","maior","valor","entre","todas","as","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,6,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(value) FROM boxes","query_toks":["SELECT","avg","(","value",")","FROM","boxes"],"query_toks_no_value":["select","avg","(","value",")","from","boxes"],"question":"Selecione o valor médio de todas as caixas.","question_toks":["Selecione","o","valor","médio","de","todas","as","caixas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT avg(value) FROM boxes","query_toks":["SELECT","avg","(","value",")","FROM","boxes"],"query_toks_no_value":["select","avg","(","value",")","from","boxes"],"question":"Qual é o valor médio das caixas?","question_toks":["Qual","é","o","valor","médio","das","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT DISTINCT CONTENTS FROM boxes","query_toks":["SELECT","DISTINCT","CONTENTS","FROM","boxes"],"query_toks_no_value":["select","distinct","contents","from","boxes"],"question":"Selecione todos os conteúdos distintos em todas as caixas.","question_toks":["Selecione","todos","os","conteúdos","distintos","em","todas","as","caixas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT DISTINCT CONTENTS FROM boxes","query_toks":["SELECT","DISTINCT","CONTENTS","FROM","boxes"],"query_toks_no_value":["select","distinct","contents","from","boxes"],"question":"Quais são os diferentes conteúdos nas caixas?","question_toks":["Quais","são","os","diferentes","conteúdos","nas","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT CONTENTS) FROM boxes","query_toks":["SELECT","count","(","DISTINCT","CONTENTS",")","FROM","boxes"],"query_toks_no_value":["select","count","(","distinct","contents",")","from","boxes"],"question":"Encontre o número de todos os conteúdos distintos em todas as caixas.","question_toks":["Encontre","o","número","de","todos","os","conteúdos","distintos","em","todas","as","caixas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT CONTENTS) FROM boxes","query_toks":["SELECT","count","(","DISTINCT","CONTENTS",")","FROM","boxes"],"query_toks_no_value":["select","count","(","distinct","contents",")","from","boxes"],"question":"Quantos conteúdos diferentes estão armazenados nas caixas?","question_toks":["Quantos","conteúdos","diferentes","estão","armazenados","nas","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT LOCATION) FROM warehouses","query_toks":["SELECT","count","(","DISTINCT","LOCATION",")","FROM","warehouses"],"query_toks_no_value":["select","count","(","distinct","location",")","from","warehouses"],"question":"Encontre todas as localizações distintas dos armazéns.","question_toks":["Encontre","todas","as","localizações","distintas","dos","armazéns","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT LOCATION) FROM warehouses","query_toks":["SELECT","count","(","DISTINCT","LOCATION",")","FROM","warehouses"],"query_toks_no_value":["select","count","(","distinct","location",")","from","warehouses"],"question":"Quais são as diferentes localizações dos armazéns?","question_toks":["Quais","são","as","diferentes","localizações","dos","armazéns","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,2,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.code FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' OR T2.location = 'New York'","query_toks":["SELECT","T1.code","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'","OR","T2.location","=","'New","York","'"],"query_toks_no_value":["select","t1",".","code","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value","or","t2",".","location","=","value"],"question":"Encontre o código das caixas que estão armazenadas nos armazéns localizados em Chicago ou New York.","question_toks":["Encontre","o","código","das","caixas","que","estão","armazenadas","nos","armazéns","localizados","em","Chicago","ou","New","York","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null],"or",[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.code FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' OR T2.location = 'New York'","query_toks":["SELECT","T1.code","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'","OR","T2.location","=","'New","York","'"],"query_toks_no_value":["select","t1",".","code","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value","or","t2",".","location","=","value"],"question":"Quais são os códigos das caixas armazenadas em armazéns em Chicago ou New York?","question_toks":["Quais","são","os","códigos","das","caixas","armazenadas","em","armazéns","em","Chicago","ou","New","York","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null],"or",[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' OR T2.location = 'New York'","query_toks":["SELECT","sum","(","T1.value",")","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'","OR","T2.location","=","'New","York","'"],"query_toks_no_value":["select","sum","(","t1",".","value",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value","or","t2",".","location","=","value"],"question":"Encontre o valor total das caixas nos armazéns localizados em Chicago ou New York.","question_toks":["Encontre","o","valor","total","das","caixas","nos","armazéns","localizados","em","Chicago","ou","New","York","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null],"or",[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' OR T2.location = 'New York'","query_toks":["SELECT","sum","(","T1.value",")","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'","OR","T2.location","=","'New","York","'"],"query_toks_no_value":["select","sum","(","t1",".","value",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value","or","t2",".","location","=","value"],"question":"Qual é o valor total das caixas localizadas em Chicago ou New York?","question_toks":["Qual","é","o","valor","total","das","caixas","localizadas","em","Chicago","ou","New","York","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null],"or",[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' INTERSECT SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'New York'","query_toks":["SELECT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'","INTERSECT","SELECT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'New","York","'"],"query_toks_no_value":["select","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value","intersect","select","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value"],"question":"Encontre todos os conteúdos presentes em armazéns localizados em Chicago e aqueles localizados em New York.","question_toks":["Encontre","todos","os","conteúdos","presentes","em","armazéns","localizados","em","Chicago","e","aqueles","localizados","em","New","York","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago' INTERSECT SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'New York'","query_toks":["SELECT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'","INTERSECT","SELECT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'New","York","'"],"query_toks_no_value":["select","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value","intersect","select","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value"],"question":"Encontre os conteúdos que estão armazenados tanto em Chicago quanto em New York.","question_toks":["Encontre","os","conteúdos","que","estão","armazenados","tanto","em","Chicago","quanto","em","New","York","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT CONTENTS FROM boxes EXCEPT SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'New York'","query_toks":["SELECT","CONTENTS","FROM","boxes","EXCEPT","SELECT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'New","York","'"],"query_toks_no_value":["select","contents","from","boxes","except","select","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value"],"question":"Encontre o tipo de conteúdos que não estão nos armazéns localizados em New York.","question_toks":["Encontre","o","tipo","de","conteúdos","que","não","estão","nos","armazéns","localizados","em","New","York","."],"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",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"warehouse_1","query":"SELECT CONTENTS FROM boxes EXCEPT SELECT T1.contents FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'New York'","query_toks":["SELECT","CONTENTS","FROM","boxes","EXCEPT","SELECT","T1.contents","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'New","York","'"],"query_toks_no_value":["select","contents","from","boxes","except","select","t1",".","contents","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value"],"question":"Quais tipos de conteúdos não podem ser encontrados em armazéns em New York?","question_toks":["Quais","tipos","de","conteúdos","não","podem","ser","encontrados","em","armazéns","em","New","York","?"],"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",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"New York\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"warehouse_1","query":"SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks' EXCEPT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Scissors'","query_toks":["SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Rocks","'","EXCEPT","SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Scissors","'"],"query_toks_no_value":["select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value","except","select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value"],"question":"Encontre a localização dos armazéns que têm conteúdos de Rocks, mas não de Scissors.","question_toks":["Encontre","a","localização","dos","armazéns","que","têm","conteúdos","de","Rocks",",","mas","não","de","Scissors","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"warehouse_1","query":"SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks' EXCEPT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Scissors'","query_toks":["SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Rocks","'","EXCEPT","SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Scissors","'"],"query_toks_no_value":["select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value","except","select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value"],"question":"Quais são as localizações dos armazéns que têm caixas contendo Rocks, mas não Scissors?","question_toks":["Quais","são","as","localizações","dos","armazéns","que","têm","caixas","contendo","Rocks",",","mas","não","Scissors","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"warehouse_1","query":"SELECT DISTINCT warehouse FROM boxes WHERE CONTENTS = 'Rocks' OR CONTENTS = 'Scissors'","query_toks":["SELECT","DISTINCT","warehouse","FROM","boxes","WHERE","CONTENTS","=","'Rocks","'","OR","CONTENTS","=","'Scissors","'"],"query_toks_no_value":["select","distinct","warehouse","from","boxes","where","contents","=","value","or","contents","=","value"],"question":"Encontre os armazéns que armazenam conteúdos Rocks ou Scissors.","question_toks":["Encontre","os","armazéns","que","armazenam","conteúdos","Rocks","ou","Scissors","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null],"or",[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT DISTINCT warehouse FROM boxes WHERE CONTENTS = 'Rocks' OR CONTENTS = 'Scissors'","query_toks":["SELECT","DISTINCT","warehouse","FROM","boxes","WHERE","CONTENTS","=","'Rocks","'","OR","CONTENTS","=","'Scissors","'"],"query_toks_no_value":["select","distinct","warehouse","from","boxes","where","contents","=","value","or","contents","=","value"],"question":"Quais são os armazéns distintos que têm caixas com Rocks ou Scissors como conteúdo?","question_toks":["Quais","são","os","armazéns","distintos","que","têm","caixas","com","Rocks","ou","Scissors","como","conteúdo","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,7,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null],"or",[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks' INTERSECT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Scissors'","query_toks":["SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Rocks","'","INTERSECT","SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Scissors","'"],"query_toks_no_value":["select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value","intersect","select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value"],"question":"Encontre a localização dos armazéns que armazenam conteúdos Rocks e Scissors.","question_toks":["Encontre","a","localização","dos","armazéns","que","armazenam","conteúdos","Rocks","e","Scissors","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks' INTERSECT SELECT T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Scissors'","query_toks":["SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Rocks","'","INTERSECT","SELECT","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Scissors","'"],"query_toks_no_value":["select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value","intersect","select","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value"],"question":"Quais são as localizações dos armazéns onde estão caixas que contêm Rocks e Scissors?","question_toks":["Quais","são","as","localizações","dos","armazéns","onde","estão","caixas","que","contêm","Rocks","e","Scissors","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT code , CONTENTS FROM boxes ORDER BY value","query_toks":["SELECT","code",",","CONTENTS","FROM","boxes","ORDER","BY","value"],"query_toks_no_value":["select","code",",","contents","from","boxes","order","by","value"],"question":"Liste o código e o conteúdo de todas as caixas ordenadas por seus valores.","question_toks":["Liste","o","código","e","o","conteúdo","de","todas","as","caixas","ordenadas","por","seus","valores","."],"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":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT code , CONTENTS FROM boxes ORDER BY value","query_toks":["SELECT","code",",","CONTENTS","FROM","boxes","ORDER","BY","value"],"query_toks_no_value":["select","code",",","contents","from","boxes","order","by","value"],"question":"Quais são os códigos e conteúdos correspondentes de todas as caixas, ordenados por seus valores?","question_toks":["Quais","são","os","códigos","e","conteúdos","correspondentes","de","todas","as","caixas",",","ordenados","por","seus","valores","?"],"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":["asc",[[0,[0,6,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT code , CONTENTS FROM boxes ORDER BY value LIMIT 1","query_toks":["SELECT","code",",","CONTENTS","FROM","boxes","ORDER","BY","value","LIMIT","1"],"query_toks_no_value":["select","code",",","contents","from","boxes","order","by","value","limit","value"],"question":"Encontre o código e o conteúdo da caixa com o menor valor.","question_toks":["Encontre","o","código","e","o","conteúdo","da","caixa","com","o","menor","valor","."],"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":["asc",[[0,[0,6,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT code , CONTENTS FROM boxes ORDER BY value LIMIT 1","query_toks":["SELECT","code",",","CONTENTS","FROM","boxes","ORDER","BY","value","LIMIT","1"],"query_toks_no_value":["select","code",",","contents","from","boxes","order","by","value","limit","value"],"question":"Qual é o código e o conteúdo da caixa que tem o menor valor?","question_toks":["Qual","é","o","código","e","o","conteúdo","da","caixa","que","tem","o","menor","valor","?"],"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":["asc",[[0,[0,6,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT DISTINCT CONTENTS FROM boxes WHERE value > (SELECT avg(value) FROM boxes)","query_toks":["SELECT","DISTINCT","CONTENTS","FROM","boxes","WHERE","value",">","(","SELECT","avg","(","value",")","FROM","boxes",")"],"query_toks_no_value":["select","distinct","contents","from","boxes","where","value",">","(","select","avg","(","value",")","from","boxes",")"],"question":"Encontre os conteúdos únicos de todas as caixas cujo valor é superior à média dos valores de todas as caixas.","question_toks":["Encontre","os","conteúdos","únicos","de","todas","as","caixas","cujo","valor","é","superior","à","média","dos","valores","de","todas","as","caixas","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,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":"warehouse_1","query":"SELECT DISTINCT CONTENTS FROM boxes WHERE value > (SELECT avg(value) FROM boxes)","query_toks":["SELECT","DISTINCT","CONTENTS","FROM","boxes","WHERE","value",">","(","SELECT","avg","(","value",")","FROM","boxes",")"],"query_toks_no_value":["select","distinct","contents","from","boxes","where","value",">","(","select","avg","(","value",")","from","boxes",")"],"question":"Quais são os diferentes conteúdos das caixas para os quais o valor é superior à média dos valores de todas as caixas?","question_toks":["Quais","são","os","diferentes","conteúdos","das","caixas","para","os","quais","o","valor","é","superior","à","média","dos","valores","de","todas","as","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,6,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":"warehouse_1","query":"SELECT DISTINCT CONTENTS FROM boxes ORDER BY CONTENTS","query_toks":["SELECT","DISTINCT","CONTENTS","FROM","boxes","ORDER","BY","CONTENTS"],"query_toks_no_value":["select","distinct","contents","from","boxes","order","by","contents"],"question":"Liste todos os tipos diferentes de conteúdos ordenados por conteúdos.","question_toks":["Liste","todos","os","tipos","diferentes","de","conteúdos","ordenados","por","conteúdos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT DISTINCT CONTENTS FROM boxes ORDER BY CONTENTS","query_toks":["SELECT","DISTINCT","CONTENTS","FROM","boxes","ORDER","BY","CONTENTS"],"query_toks_no_value":["select","distinct","contents","from","boxes","order","by","contents"],"question":"Quais são os diferentes conteúdos das caixas, ordenados alfabeticamente?","question_toks":["Quais","são","os","diferentes","conteúdos","das","caixas",",","ordenados","alfabeticamente","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,5,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT code FROM boxes WHERE value > (SELECT min(value) FROM boxes WHERE CONTENTS = 'Rocks')","query_toks":["SELECT","code","FROM","boxes","WHERE","value",">","(","SELECT","min","(","value",")","FROM","boxes","WHERE","CONTENTS","=","'Rocks","'",")"],"query_toks_no_value":["select","code","from","boxes","where","value",">","(","select","min","(","value",")","from","boxes","where","contents","=","value",")"],"question":"Encontre o código de todas as caixas cujo valor é maior do que o valor de qualquer caixa com Rocks como conteúdo.","question_toks":["Encontre","o","código","de","todas","as","caixas","cujo","valor","é","maior","do","que","o","valor","de","qualquer","caixa","com","Rocks","como","conteúdo","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"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":"warehouse_1","query":"SELECT code FROM boxes WHERE value > (SELECT min(value) FROM boxes WHERE CONTENTS = 'Rocks')","query_toks":["SELECT","code","FROM","boxes","WHERE","value",">","(","SELECT","min","(","value",")","FROM","boxes","WHERE","CONTENTS","=","'Rocks","'",")"],"query_toks_no_value":["select","code","from","boxes","where","value",">","(","select","min","(","value",")","from","boxes","where","contents","=","value",")"],"question":"Quais são os códigos das caixas cujo valor é maior do que o valor de qualquer caixa que contém Rocks?","question_toks":["Quais","são","os","códigos","das","caixas","cujo","valor","é","maior","do","que","o","valor","de","qualquer","caixa","que","contém","Rocks","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"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":"warehouse_1","query":"SELECT code , CONTENTS FROM boxes WHERE value > (SELECT max(value) FROM boxes WHERE CONTENTS = 'Scissors')","query_toks":["SELECT","code",",","CONTENTS","FROM","boxes","WHERE","value",">","(","SELECT","max","(","value",")","FROM","boxes","WHERE","CONTENTS","=","'Scissors","'",")"],"query_toks_no_value":["select","code",",","contents","from","boxes","where","value",">","(","select","max","(","value",")","from","boxes","where","contents","=","value",")"],"question":"Encontre o código e o conteúdo de todas as caixas cujo valor é maior que o valor de todas as caixas com Scissors como conteúdo.","question_toks":["Encontre","o","código","e","o","conteúdo","de","todas","as","caixas","cujo","valor","é","maior","que","o","valor","de","todas","as","caixas","com","Scissors","como","conteúdo","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"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":"warehouse_1","query":"SELECT code , CONTENTS FROM boxes WHERE value > (SELECT max(value) FROM boxes WHERE CONTENTS = 'Scissors')","query_toks":["SELECT","code",",","CONTENTS","FROM","boxes","WHERE","value",">","(","SELECT","max","(","value",")","FROM","boxes","WHERE","CONTENTS","=","'Scissors","'",")"],"query_toks_no_value":["select","code",",","contents","from","boxes","where","value",">","(","select","max","(","value",")","from","boxes","where","contents","=","value",")"],"question":"Quais são os códigos e conteúdos correspondentes das caixas cujo valor é maior do que os valores de todas as caixas contendo Scissors?","question_toks":["Quais","são","os","códigos","e","conteúdos","correspondentes","das","caixas","cujo","valor","é","maior","do","que","os","valores","de","todas","as","caixas","contendo","Scissors","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,6,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Scissors\"",null]],"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":"warehouse_1","query":"SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code ORDER BY T2.capacity DESC LIMIT 1","query_toks":["SELECT","sum","(","T1.value",")","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","ORDER","BY","T2.capacity","DESC","LIMIT","1"],"query_toks_no_value":["select","sum","(","t1",".","value",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","order","by","t2",".","capacity","desc","limit","value"],"question":"Encontre o valor total das caixas armazenadas no armazém com a maior capacidade.","question_toks":["Encontre","o","valor","total","das","caixas","armazenadas","no","armazém","com","a","maior","capacidade","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(T1.value) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code ORDER BY T2.capacity DESC LIMIT 1","query_toks":["SELECT","sum","(","T1.value",")","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","ORDER","BY","T2.capacity","DESC","LIMIT","1"],"query_toks_no_value":["select","sum","(","t1",".","value",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","order","by","t2",".","capacity","desc","limit","value"],"question":"Qual é o valor total das caixas mantidas no armazém com a maior capacidade?","question_toks":["Qual","é","o","valor","total","das","caixas","mantidas","no","armazém","com","a","maior","capacidade","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,3,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT warehouse , avg(value) FROM boxes GROUP BY warehouse HAVING avg(value) > 150","query_toks":["SELECT","warehouse",",","avg","(","value",")","FROM","boxes","GROUP","BY","warehouse","HAVING","avg","(","value",")",">","150"],"query_toks_no_value":["select","warehouse",",","avg","(","value",")","from","boxes","group","by","warehouse","having","avg","(","value",")",">","value"],"question":"Selecione o código do armazém e o valor médio das caixas apenas para aqueles armazéns onde o valor médio das caixas é maior que 150.","question_toks":["Selecione","o","código","do","armazém","e","o","valor","médio","das","caixas","apenas","para","aqueles","armazéns","onde","o","valor","médio","das","caixas","é","maior","que","150","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[[false,3,[0,[5,6,false],null],150.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT warehouse , avg(value) FROM boxes GROUP BY warehouse HAVING avg(value) > 150","query_toks":["SELECT","warehouse",",","avg","(","value",")","FROM","boxes","GROUP","BY","warehouse","HAVING","avg","(","value",")",">","150"],"query_toks_no_value":["select","warehouse",",","avg","(","value",")","from","boxes","group","by","warehouse","having","avg","(","value",")",">","value"],"question":"Quais são os valores médios das caixas para cada armazém que tem um valor médio superior a 150?","question_toks":["Quais","são","os","valores","médios","das","caixas","para","cada","armazém","que","tem","um","valor","médio","superior","a","150","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[5,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[[false,3,[0,[5,6,false],null],150.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(value) , count(*) , CONTENTS FROM boxes GROUP BY CONTENTS","query_toks":["SELECT","sum","(","value",")",",","count","(","*",")",",","CONTENTS","FROM","boxes","GROUP","BY","CONTENTS"],"query_toks_no_value":["select","sum","(","value",")",",","count","(","*",")",",","contents","from","boxes","group","by","contents"],"question":"Encontre o valor total e o número de caixas para cada tipo de conteúdo.","question_toks":["Encontre","o","valor","total","e","o","número","de","caixas","para","cada","tipo","de","conteúdo","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[4,[0,[0,6,false],null]],[3,[0,[0,0,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(value) , count(*) , CONTENTS FROM boxes GROUP BY CONTENTS","query_toks":["SELECT","sum","(","value",")",",","count","(","*",")",",","CONTENTS","FROM","boxes","GROUP","BY","CONTENTS"],"query_toks_no_value":["select","sum","(","value",")",",","count","(","*",")",",","contents","from","boxes","group","by","contents"],"question":"Para cada conteúdo, qual é o valor total e o número de caixas?","question_toks":["Para","cada","conteúdo",",","qual","é","o","valor","total","e","o","número","de","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[4,[0,[0,6,false],null]],[3,[0,[0,0,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(capacity) , avg(capacity) , max(capacity) , LOCATION FROM warehouses GROUP BY LOCATION","query_toks":["SELECT","sum","(","capacity",")",",","avg","(","capacity",")",",","max","(","capacity",")",",","LOCATION","FROM","warehouses","GROUP","BY","LOCATION"],"query_toks_no_value":["select","sum","(","capacity",")",",","avg","(","capacity",")",",","max","(","capacity",")",",","location","from","warehouses","group","by","location"],"question":"Encontre a capacidade total, média e máxima para diferentes locais.","question_toks":["Encontre","a","capacidade","total",",","média","e","máxima","para","diferentes","locais","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,3,false],null]],[5,[0,[0,3,false],null]],[1,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(capacity) , avg(capacity) , max(capacity) , LOCATION FROM warehouses GROUP BY LOCATION","query_toks":["SELECT","sum","(","capacity",")",",","avg","(","capacity",")",",","max","(","capacity",")",",","LOCATION","FROM","warehouses","GROUP","BY","LOCATION"],"query_toks_no_value":["select","sum","(","capacity",")",",","avg","(","capacity",")",",","max","(","capacity",")",",","location","from","warehouses","group","by","location"],"question":"Para cada localização, quais são as capacidades total, média e máxima dos armazéns?","question_toks":["Para","cada","localização",",","quais","são","as","capacidades","total",",","média","e","máxima","dos","armazéns","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,3,false],null]],[5,[0,[0,3,false],null]],[1,[0,[0,3,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(capacity) FROM warehouses","query_toks":["SELECT","sum","(","capacity",")","FROM","warehouses"],"query_toks_no_value":["select","sum","(","capacity",")","from","warehouses"],"question":"Encontre a capacidade total de todos os locais de armazenamento.","question_toks":["Encontre","a","capacidade","total","de","todos","os","locais","de","armazenamento","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(capacity) FROM warehouses","query_toks":["SELECT","sum","(","capacity",")","FROM","warehouses"],"query_toks_no_value":["select","sum","(","capacity",")","from","warehouses"],"question":"Qual é a capacidade total de todos os armazéns?","question_toks":["Qual","é","a","capacidade","total","de","todos","os","armazéns","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[4,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT max(T1.value) , T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code GROUP BY T2.location","query_toks":["SELECT","max","(","T1.value",")",",","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","GROUP","BY","T2.location"],"query_toks_no_value":["select","max","(","t1",".","value",")",",","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","group","by","t2",".","location"],"question":"Encontre o valor das caixas mais caras armazenadas em cada localização de armazém.","question_toks":["Encontre","o","valor","das","caixas","mais","caras","armazenadas","em","cada","localização","de","armazém","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[1,[0,[0,6,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT max(T1.value) , T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code GROUP BY T2.location","query_toks":["SELECT","max","(","T1.value",")",",","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","GROUP","BY","T2.location"],"query_toks_no_value":["select","max","(","t1",".","value",")",",","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","group","by","t2",".","location"],"question":"Para cada localização de armazém, qual é o valor da caixa mais cara?","question_toks":["Para","cada","localização","de","armazém",",","qual","é","o","valor","da","caixa","mais","cara","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[1,[0,[0,6,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT Warehouse , count(*) FROM boxes GROUP BY warehouse","query_toks":["SELECT","Warehouse",",","count","(","*",")","FROM","boxes","GROUP","BY","warehouse"],"query_toks_no_value":["select","warehouse",",","count","(","*",")","from","boxes","group","by","warehouse"],"question":"Selecione os códigos dos armazéns junto com o número de caixas em cada armazém.","question_toks":["Selecione","os","códigos","dos","armazéns","junto","com","o","número","de","caixas","em","cada","armazém","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"select warehouse , count(*) from boxes group by warehouse","query_toks":["select","warehouse",",","count","(","*",")","from","boxes","group","by","warehouse"],"query_toks_no_value":["select","warehouse",",","count","(","*",")","from","boxes","group","by","warehouse"],"question":"Quantas caixas existem em cada armazém?","question_toks":["Quantas","caixas","existem","em","cada","armazém","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT LOCATION) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks'","query_toks":["SELECT","count","(","DISTINCT","LOCATION",")","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Rocks","'"],"query_toks_no_value":["select","count","(","distinct","location",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value"],"question":"Encontre o número de locais diferentes onde Rocks estão armazenadas.","question_toks":["Encontre","o","número","de","locais","diferentes","onde","Rocks","estão","armazenadas","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,2,true],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT LOCATION) FROM boxes AS T1 JOIN warehouses AS T2 ON T1.warehouse = T2.code WHERE T1.contents = 'Rocks'","query_toks":["SELECT","count","(","DISTINCT","LOCATION",")","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T1.contents","=","'Rocks","'"],"query_toks_no_value":["select","count","(","distinct","location",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t1",".","contents","=","value"],"question":"Em quantos armazéns diferentes Rocks estão armazenadas dentro das caixas?","question_toks":["Em","quantos","armazéns","diferentes","Rocks","estão","armazenadas","dentro","das","caixas","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[3,[0,[0,2,true],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Rocks\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.code , T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.Warehouse = T2.Code","query_toks":["SELECT","T1.code",",","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.Warehouse","=","T2.Code"],"query_toks_no_value":["select","t1",".","code",",","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code"],"question":"Selecione o código de cada caixa, junto com o nome da cidade onde a caixa está localizada.","question_toks":["Selecione","o","código","de","cada","caixa",",","junto","com","o","nome","da","cidade","onde","a","caixa","está","localizada","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.code , T2.location FROM boxes AS T1 JOIN warehouses AS T2 ON T1.Warehouse = T2.Code","query_toks":["SELECT","T1.code",",","T2.location","FROM","boxes","AS","T1","JOIN","warehouses","AS","T2","ON","T1.Warehouse","=","T2.Code"],"query_toks_no_value":["select","t1",".","code",",","t2",".","location","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code"],"question":"Quais são os códigos de todas as caixas, bem como as localizações dos armazéns em que estão?","question_toks":["Quais","são","os","códigos","de","todas","as","caixas",",","bem","como","as","localizações","dos","armazéns","em","que","estão","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago'","query_toks":["SELECT","T1.code","FROM","boxes","AS","T1","JOIN","Warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'"],"query_toks_no_value":["select","t1",".","code","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value"],"question":"Selecione os códigos de todas as caixas localizadas em Chicago.","question_toks":["Selecione","os","códigos","de","todas","as","caixas","localizadas","em","Chicago","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T1.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location = 'Chicago'","query_toks":["SELECT","T1.code","FROM","boxes","AS","T1","JOIN","Warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","=","'Chicago","'"],"query_toks_no_value":["select","t1",".","code","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","=","value"],"question":"Quais são os códigos das caixas armazenadas em armazéns em Chicago?","question_toks":["Quais","são","os","códigos","das","caixas","armazenadas","em","armazéns","em","Chicago","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(*) , warehouse FROM boxes GROUP BY warehouse","query_toks":["SELECT","count","(","*",")",",","warehouse","FROM","boxes","GROUP","BY","warehouse"],"query_toks_no_value":["select","count","(","*",")",",","warehouse","from","boxes","group","by","warehouse"],"question":"Encontre o número de caixas armazenadas em cada armazém.","question_toks":["Encontre","o","número","de","caixas","armazenadas","em","cada","armazém","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(*) , warehouse FROM boxes GROUP BY warehouse","query_toks":["SELECT","count","(","*",")",",","warehouse","FROM","boxes","GROUP","BY","warehouse"],"query_toks_no_value":["select","count","(","*",")",",","warehouse","from","boxes","group","by","warehouse"],"question":"Quantas caixas estão armazenadas em cada armazém?","question_toks":["Quantas","caixas","estão","armazenadas","em","cada","armazém","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT CONTENTS) , warehouse FROM boxes GROUP BY warehouse","query_toks":["SELECT","count","(","DISTINCT","CONTENTS",")",",","warehouse","FROM","boxes","GROUP","BY","warehouse"],"query_toks_no_value":["select","count","(","distinct","contents",")",",","warehouse","from","boxes","group","by","warehouse"],"question":"Encontre o número de tipos distintos de conteúdos em cada armazém.","question_toks":["Encontre","o","número","de","tipos","distintos","de","conteúdos","em","cada","armazém","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT count(DISTINCT CONTENTS) , warehouse FROM boxes GROUP BY warehouse","query_toks":["SELECT","count","(","DISTINCT","CONTENTS",")",",","warehouse","FROM","boxes","GROUP","BY","warehouse"],"query_toks_no_value":["select","count","(","distinct","contents",")",",","warehouse","from","boxes","group","by","warehouse"],"question":"Quantos tipos diferentes de conteúdos estão armazenados em cada armazém?","question_toks":["Quantos","tipos","diferentes","de","conteúdos","estão","armazenados","em","cada","armazém","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T2.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code GROUP BY T2.code HAVING count(*) > T2.capacity","query_toks":["SELECT","T2.code","FROM","boxes","AS","T1","JOIN","Warehouses","AS","T2","ON","T1.warehouse","=","T2.code","GROUP","BY","T2.code","HAVING","count","(","*",")",">","T2.capacity"],"query_toks_no_value":["select","t2",".","code","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","group","by","t2",".","code","having","count","(","*",")",">","t2",".","capacity"],"question":"Selecione os códigos de todos os armazéns que estão acima da capacidade.","question_toks":["Selecione","os","códigos","de","todos","os","armazéns","que","estão","acima","da","capacidade","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,3,[0,[3,0,false],null],[0,3,false],null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT T2.code FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code GROUP BY T2.code HAVING count(*) > T2.capacity","query_toks":["SELECT","T2.code","FROM","boxes","AS","T1","JOIN","Warehouses","AS","T2","ON","T1.warehouse","=","T2.code","GROUP","BY","T2.code","HAVING","count","(","*",")",">","T2.capacity"],"query_toks_no_value":["select","t2",".","code","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","group","by","t2",".","code","having","count","(","*",")",">","t2",".","capacity"],"question":"Quais são os códigos dos armazéns que têm mais caixas do que sua capacidade?","question_toks":["Quais","são","os","códigos","dos","armazéns","que","têm","mais","caixas","do","que","sua","capacidade","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,3,[0,[3,0,false],null],[0,3,false],null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(T1.value) FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location != 'Chicago'","query_toks":["SELECT","sum","(","T1.value",")","FROM","boxes","AS","T1","JOIN","Warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","!","=","'Chicago","'"],"query_toks_no_value":["select","sum","(","t1",".","value",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","!","=","value"],"question":"Encontre os valores totais das caixas que não estão nos armazéns localizados em Chicago.","question_toks":["Encontre","os","valores","totais","das","caixas","que","não","estão","nos","armazéns","localizados","em","Chicago","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,6,false],null]]]],"where":[[false,7,[0,[0,2,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"warehouse_1","query":"SELECT sum(T1.value) FROM boxes AS T1 JOIN Warehouses AS T2 ON T1.warehouse = T2.code WHERE T2.location != 'Chicago'","query_toks":["SELECT","sum","(","T1.value",")","FROM","boxes","AS","T1","JOIN","Warehouses","AS","T2","ON","T1.warehouse","=","T2.code","WHERE","T2.location","!","=","'Chicago","'"],"query_toks_no_value":["select","sum","(","t1",".","value",")","from","boxes","as","t1","join","warehouses","as","t2","on","t1",".","warehouse","=","t2",".","code","where","t2",".","location","!","=","value"],"question":"Qual é o valor total das caixas contidas em qualquer local exceto Chicago?","question_toks":["Qual","é","o","valor","total","das","caixas","contidas","em","qualquer","local","exceto","Chicago","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[4,[0,[0,6,false],null]]]],"where":[[false,7,[0,[0,2,false],null],"\"Chicago\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT university_name , city , state FROM University ORDER BY university_name","query_toks":["SELECT","university_name",",","city",",","state","FROM","University","ORDER","BY","university_name"],"query_toks_no_value":["select","university_name",",","city",",","state","from","university","order","by","university_name"],"question":"Mostre o nome, a cidade e o estado de todas as universidades em ordem alfabética pelo nome da universidade.","question_toks":["Mostre","o","nome",",","a","cidade","e","o","estado","de","todas","as","universidades","em","ordem","alfabética","pelo","nome","da","universidade","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT university_name , city , state FROM University ORDER BY university_name","query_toks":["SELECT","university_name",",","city",",","state","FROM","University","ORDER","BY","university_name"],"query_toks_no_value":["select","university_name",",","city",",","state","from","university","order","by","university_name"],"question":"Quais são os nomes, cidades e estados de todas as universidades em ordem alfabética (pelo nome da universidade)?","question_toks":["Quais","são","os","nomes",",","cidades","e","estados","de","todas","as","universidades","em","ordem","alfabética","(","pelo","nome","da","universidade",")","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,2,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT count(*) FROM University WHERE state = 'Illinois' OR state = 'Ohio'","query_toks":["SELECT","count","(","*",")","FROM","University","WHERE","state","=","'Illinois","'","OR","state","=","'Ohio","'"],"query_toks_no_value":["select","count","(","*",")","from","university","where","state","=","value","or","state","=","value"],"question":"Quantas universidades existem em Illinois ou Ohio?","question_toks":["Quantas","universidades","existem","em","Illinois","ou","Ohio","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Illinois\"",null],"or",[false,2,[0,[0,4,false],null],"\"Ohio\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT count(*) FROM University WHERE state = 'Illinois' OR state = 'Ohio'","query_toks":["SELECT","count","(","*",")","FROM","University","WHERE","state","=","'Illinois","'","OR","state","=","'Ohio","'"],"query_toks_no_value":["select","count","(","*",")","from","university","where","state","=","value","or","state","=","value"],"question":"Qual é o número total de universidades localizadas em Illinois ou Ohio?","question_toks":["Qual","é","o","número","total","de","universidades","localizadas","em","Illinois","ou","Ohio","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Illinois\"",null],"or",[false,2,[0,[0,4,false],null],"\"Ohio\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT max(enrollment) , avg(enrollment) , min(enrollment) FROM University","query_toks":["SELECT","max","(","enrollment",")",",","avg","(","enrollment",")",",","min","(","enrollment",")","FROM","University"],"query_toks_no_value":["select","max","(","enrollment",")",",","avg","(","enrollment",")",",","min","(","enrollment",")","from","university"],"question":"Qual é a matrícula máxima, média e mínima para universidades?","question_toks":["Qual","é","a","matrícula","máxima",",","média","e","mínima","para","universidades","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[5,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT max(enrollment) , avg(enrollment) , min(enrollment) FROM University","query_toks":["SELECT","max","(","enrollment",")",",","avg","(","enrollment",")",",","min","(","enrollment",")","FROM","University"],"query_toks_no_value":["select","max","(","enrollment",")",",","avg","(","enrollment",")",",","min","(","enrollment",")","from","university"],"question":"Qual é a matrícula máxima, média e mínima de todas as universidades?","question_toks":["Qual","é","a","matrícula","máxima",",","média","e","mínima","de","todas","as","universidades","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[1,[0,[0,7,false],null]],[5,[0,[0,7,false],null]],[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT team_name FROM University WHERE enrollment > (SELECT avg(enrollment) FROM University)","query_toks":["SELECT","team_name","FROM","University","WHERE","enrollment",">","(","SELECT","avg","(","enrollment",")","FROM","University",")"],"query_toks_no_value":["select","team_name","from","university","where","enrollment",">","(","select","avg","(","enrollment",")","from","university",")"],"question":"Liste o nome da equipe para todas as universidades com matrículas acima da média.","question_toks":["Liste","o","nome","da","equipe","para","todas","as","universidades","com","matrículas","acima","da","média","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"university_rank","query":"select team_name from university where enrollment > (select avg(enrollment) from university)","query_toks":["select","team_name","from","university","where","enrollment",">","(","select","avg","(","enrollment",")","from","university",")"],"query_toks_no_value":["select","team_name","from","university","where","enrollment",">","(","select","avg","(","enrollment",")","from","university",")"],"question":"Quais são os nomes de todas as equipes de universidades que têm mais pessoas matriculadas do que a média?","question_toks":["Quais","são","os","nomes","de","todas","as","equipes","de","universidades","que","têm","mais","pessoas","matriculadas","do","que","a","média","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,3,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,7,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":"university_rank","query":"SELECT DISTINCT home_conference FROM University","query_toks":["SELECT","DISTINCT","home_conference","FROM","University"],"query_toks_no_value":["select","distinct","home_conference","from","university"],"question":"Mostre todas as conferências locais.","question_toks":["Mostre","todas","as","conferências","locais","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT DISTINCT home_conference FROM University","query_toks":["SELECT","DISTINCT","home_conference","FROM","University"],"query_toks_no_value":["select","distinct","home_conference","from","university"],"question":"Quais são as diferentes conferências locais da tabela universidade?","question_toks":["Quais","são","as","diferentes","conferências","locais","da","tabela","universidade","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT home_conference , count(*) FROM University GROUP BY home_conference","query_toks":["SELECT","home_conference",",","count","(","*",")","FROM","University","GROUP","BY","home_conference"],"query_toks_no_value":["select","home_conference",",","count","(","*",")","from","university","group","by","home_conference"],"question":"Mostre todas as conferências locais e o número de universidades em cada conferência.","question_toks":["Mostre","todas","as","conferências","locais","e","o","número","de","universidades","em","cada","conferência","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT home_conference , count(*) FROM University GROUP BY home_conference","query_toks":["SELECT","home_conference",",","count","(","*",")","FROM","University","GROUP","BY","home_conference"],"query_toks_no_value":["select","home_conference",",","count","(","*",")","from","university","group","by","home_conference"],"question":"Para cada conferência local, quantas universidades participaram dessa conferência?","question_toks":["Para","cada","conferência","local",",","quantas","universidades","participaram","dessa","conferência","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT state FROM University GROUP BY state ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","state","FROM","University","GROUP","BY","state","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","state","from","university","group","by","state","order","by","count","(","*",")","desc","limit","value"],"question":"Qual estado tem o maior número de universidades?","question_toks":["Qual","estado","tem","o","maior","número","de","universidades","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT state FROM University GROUP BY state ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","state","FROM","University","GROUP","BY","state","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","state","from","university","group","by","state","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o estado com mais universidades?","question_toks":["Qual","é","o","estado","com","mais","universidades","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT home_conference FROM University GROUP BY home_conference HAVING avg(enrollment) > 2000","query_toks":["SELECT","home_conference","FROM","University","GROUP","BY","home_conference","HAVING","avg","(","enrollment",")",">","2000"],"query_toks_no_value":["select","home_conference","from","university","group","by","home_conference","having","avg","(","enrollment",")",">","value"],"question":"Mostre todas as conferências locais com matrícula média de universidades acima de 2000.","question_toks":["Mostre","todas","as","conferências","locais","com","matrícula","média","de","universidades","acima","de","2000","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,3,[0,[5,7,false],null],2000.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT home_conference FROM University GROUP BY home_conference HAVING avg(enrollment) > 2000","query_toks":["SELECT","home_conference","FROM","University","GROUP","BY","home_conference","HAVING","avg","(","enrollment",")",">","2000"],"query_toks_no_value":["select","home_conference","from","university","group","by","home_conference","having","avg","(","enrollment",")",">","value"],"question":"Quais são as conferências de origem que têm uma matrícula média de universidades acima de 2000?","question_toks":["Quais","são","as","conferências","de","origem","que","têm","uma","matrícula","média","de","universidades","acima","de","2000","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,3,[0,[5,7,false],null],2000.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT home_conference FROM University GROUP BY home_conference ORDER BY sum(enrollment) LIMIT 1","query_toks":["SELECT","home_conference","FROM","University","GROUP","BY","home_conference","ORDER","BY","sum","(","enrollment",")","LIMIT","1"],"query_toks_no_value":["select","home_conference","from","university","group","by","home_conference","order","by","sum","(","enrollment",")","limit","value"],"question":"Qual conferência local tem o menor número total de matrículas?","question_toks":["Qual","conferência","local","tem","o","menor","número","total","de","matrículas","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["asc",[[0,[4,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT home_conference FROM University GROUP BY home_conference ORDER BY sum(enrollment) LIMIT 1","query_toks":["SELECT","home_conference","FROM","University","GROUP","BY","home_conference","ORDER","BY","sum","(","enrollment",")","LIMIT","1"],"query_toks_no_value":["select","home_conference","from","university","group","by","home_conference","order","by","sum","(","enrollment",")","limit","value"],"question":"Quais são as conferências locais com o menor número de pessoas matriculadas?","question_toks":["Quais","são","as","conferências","locais","com","o","menor","número","de","pessoas","matriculadas","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["asc",[[0,[4,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT major_name , major_code FROM Major ORDER BY major_code","query_toks":["SELECT","major_name",",","major_code","FROM","Major","ORDER","BY","major_code"],"query_toks_no_value":["select","major_name",",","major_code","from","major","order","by","major_code"],"question":"Liste todos os nomes de cursos e códigos de cursos na ordem de seus códigos.","question_toks":["Liste","todos","os","nomes","de","cursos","e","códigos","de","cursos","na","ordem","de","seus","códigos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,17,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT major_name , major_code FROM Major ORDER BY major_code","query_toks":["SELECT","major_name",",","major_code","FROM","Major","ORDER","BY","major_code"],"query_toks_no_value":["select","major_name",",","major_code","from","major","order","by","major_code"],"question":"Quais são os nomes e códigos de todas as disciplinas ordenados pelo seu código?","question_toks":["Quais","são","os","nomes","e","códigos","de","todas","as","disciplinas","ordenados","pelo","seu","código","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,17,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.rank , T3.major_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T2.university_name = 'Augustana College'","query_toks":["SELECT","T1.rank",",","T3.major_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T2.university_name","=","'Augustana","College","'"],"query_toks_no_value":["select","t1",".","rank",",","t3",".","major_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t2",".","university_name","=","value"],"question":"Mostre todos os cursos e as classificações dos cursos para a universidade com o nome Augustana College.","question_toks":["Mostre","todos","os","cursos","e","as","classificações","dos","cursos","para","a","universidade","com","o","nome","Augustana","College","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,18,false],null]],[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Augustana College\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.rank , T3.major_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T2.university_name = 'Augustana College'","query_toks":["SELECT","T1.rank",",","T3.major_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T2.university_name","=","'Augustana","College","'"],"query_toks_no_value":["select","t1",".","rank",",","t3",".","major_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t2",".","university_name","=","value"],"question":"Quais são as classificações e os nomes de todos os cursos na Augustana College?","question_toks":["Quais","são","as","classificações","e","os","nomes","de","todos","os","cursos","na","Augustana","College","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,18,false],null]],[0,[0,[0,16,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Augustana College\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T2.university_name , T2.city , T2.state FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T1.rank = 1 AND T3.major_name = 'Accounting'","query_toks":["SELECT","T2.university_name",",","T2.city",",","T2.state","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T1.rank","=","1","AND","T3.major_name","=","'Accounting","'"],"query_toks_no_value":["select","t2",".","university_name",",","t2",".","city",",","t2",".","state","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t1",".","rank","=","value","and","t3",".","major_name","=","value"],"question":"Qual é o nome, a cidade e o estado da universidade com classificação 1 no curso Accounting?","question_toks":["Qual","é","o","nome",",","a","cidade","e","o","estado","da","universidade","com","classificação","1","no","curso","Accounting","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,18,false],null],1.0,null],"and",[false,2,[0,[0,16,false],null],"\"Accounting\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T2.university_name , T2.city , T2.state FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T1.rank = 1 AND T3.major_name = 'Accounting'","query_toks":["SELECT","T2.university_name",",","T2.city",",","T2.state","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T1.rank","=","1","AND","T3.major_name","=","'Accounting","'"],"query_toks_no_value":["select","t2",".","university_name",",","t2",".","city",",","t2",".","state","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t1",".","rank","=","value","and","t3",".","major_name","=","value"],"question":"Qual é o nome, a cidade e o estado da universidade com o curso Accounting classificado em primeiro lugar?","question_toks":["Qual","é","o","nome",",","a","cidade","e","o","estado","da","universidade","com","o","curso","Accounting","classificado","em","primeiro","lugar","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,18,false],null],1.0,null],"and",[false,2,[0,[0,16,false],null],"\"Accounting\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id = T2.university_id WHERE T1.rank = 1 GROUP BY T2.university_name ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T1.rank","=","1","GROUP","BY","T2.university_name","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t1",".","rank","=","value","group","by","t2",".","university_name","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome da universidade que tem o maior número de cursos com classificação 1?","question_toks":["Qual","é","o","nome","da","universidade","que","tem","o","maior","número","de","cursos","com","classificação","1","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,18,false],null],1.0,null]],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id = T2.university_id WHERE T1.rank = 1 GROUP BY T2.university_name ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T1.rank","=","1","GROUP","BY","T2.university_name","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t1",".","rank","=","value","group","by","t2",".","university_name","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome da universidade com o maior número de cursos classificados como número 1?","question_toks":["Qual","é","o","nome","da","universidade","com","o","maior","número","de","cursos","classificados","como","número","1","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,18,false],null],1.0,null]],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT university_name FROM University EXCEPT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id = T2.university_id WHERE T1.rank = 1","query_toks":["SELECT","university_name","FROM","University","EXCEPT","SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T1.rank","=","1"],"query_toks_no_value":["select","university_name","from","university","except","select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t1",".","rank","=","value"],"question":"Mostre todos os nomes das universidades sem um curso com classificação 1.","question_toks":["Mostre","todos","os","nomes","das","universidades","sem","um","curso","com","classificação","1","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,18,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"university_rank","query":"SELECT university_name FROM University EXCEPT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 ON T1.university_id = T2.university_id WHERE T1.rank = 1","query_toks":["SELECT","university_name","FROM","University","EXCEPT","SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T1.rank","=","1"],"query_toks_no_value":["select","university_name","from","university","except","select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t1",".","rank","=","value"],"question":"Quais são os nomes de todas as universidades sem nenhum curso classificado como número 1?","question_toks":["Quais","são","os","nomes","de","todas","as","universidades","sem","nenhum","curso","classificado","como","número","1","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,18,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"university_rank","query":"SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T3.major_name = 'Accounting' INTERSECT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T3.major_name = 'Urban Education'","query_toks":["SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T3.major_name","=","'Accounting","'","INTERSECT","SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T3.major_name","=","'Urban","Education","'"],"query_toks_no_value":["select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t3",".","major_name","=","value","intersect","select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t3",".","major_name","=","value"],"question":"Mostre todos os nomes das universidades com a graduação Accounting e a graduação Urban Education.","question_toks":["Mostre","todos","os","nomes","das","universidades","com","a","graduação","Accounting","e","a","graduação","Urban","Education","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Accounting\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Urban Education\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T3.major_name = 'Accounting' INTERSECT SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T3.major_name = 'Urban Education'","query_toks":["SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T3.major_name","=","'Accounting","'","INTERSECT","SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T3.major_name","=","'Urban","Education","'"],"query_toks_no_value":["select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t3",".","major_name","=","value","intersect","select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t3",".","major_name","=","value"],"question":"Quais são os nomes de todas as universidades que têm os cursos Accounting e Urban Education?","question_toks":["Quais","são","os","nomes","de","todas","as","universidades","que","têm","os","cursos","Accounting","e","Urban","Education","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Accounting\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Urban Education\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.university_name , T2.rank FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id WHERE T1.state = 'Wisconsin'","query_toks":["SELECT","T1.university_name",",","T2.rank","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T1.state","=","'Wisconsin","'"],"query_toks_no_value":["select","t1",".","university_name",",","t2",".","rank","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t1",".","state","=","value"],"question":"Qual é o nome e a classificação geral das universidades no estado de Wisconsin?","question_toks":["Qual","é","o","nome","e","a","classificação","geral","das","universidades","no","estado","de","Wisconsin","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Wisconsin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.university_name , T2.rank FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id WHERE T1.state = 'Wisconsin'","query_toks":["SELECT","T1.university_name",",","T2.rank","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T1.state","=","'Wisconsin","'"],"query_toks_no_value":["select","t1",".","university_name",",","t2",".","rank","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t1",".","state","=","value"],"question":"Qual é o nome e a classificação de cada universidade em Wisconsin?","question_toks":["Qual","é","o","nome","e","a","classificação","de","cada","universidade","em","Wisconsin","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,4,false],null],"\"Wisconsin\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.research_point DESC LIMIT 1","query_toks":["SELECT","T1.university_name","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","ORDER","BY","T2.research_point","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","university_name","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","order","by","t2",".","research_point","desc","limit","value"],"question":"Qual é o nome da universidade com o maior ponto de pesquisa?","question_toks":["Qual","é","o","nome","da","universidade","com","o","maior","ponto","de","pesquisa","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.research_point DESC LIMIT 1","query_toks":["SELECT","T1.university_name","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","ORDER","BY","T2.research_point","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","university_name","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","order","by","t2",".","research_point","desc","limit","value"],"question":"Qual é o nome da universidade com mais pontos de pesquisa?","question_toks":["Qual","é","o","nome","da","universidade","com","mais","pontos","de","pesquisa","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,12,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.reputation_point","query_toks":["SELECT","T1.university_name","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","ORDER","BY","T2.reputation_point"],"query_toks_no_value":["select","t1",".","university_name","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","order","by","t2",".","reputation_point"],"question":"Liste todos os nomes das universidades em ordem crescente de seus pontos de reputação.","question_toks":["Liste","todos","os","nomes","das","universidades","em","ordem","crescente","de","seus","pontos","de","reputação","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.university_name FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.reputation_point","query_toks":["SELECT","T1.university_name","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","ORDER","BY","T2.reputation_point"],"query_toks_no_value":["select","t1",".","university_name","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","order","by","t2",".","reputation_point"],"question":"Quais são os nomes de todas as universidades em ordem crescente de pontos de reputação?","question_toks":["Quais","são","os","nomes","de","todas","as","universidades","em","ordem","crescente","de","pontos","de","reputação","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T1.rank <= 3 AND T3.major_name = \"Accounting\"","query_toks":["SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T1.rank","<","=","3","AND","T3.major_name","=","``","Accounting","''"],"query_toks_no_value":["select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t1",".","rank","<","=","value","and","t3",".","major_name","=","value"],"question":"Qual é o nome da universidade com o curso Accounting classificado em 3 ou acima?","question_toks":["Qual","é","o","nome","da","universidade","com","o","curso","Accounting","classificado","em","3","ou","acima","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,6,[0,[0,18,false],null],3.0,null],"and",[false,2,[0,[0,16,false],null],"\"Accounting\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T2.university_name FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id = T2.university_id AND T1.major_id = T3.major_id WHERE T1.rank <= 3 AND T3.major_name = \"Accounting\"","query_toks":["SELECT","T2.university_name","FROM","Major_Ranking","AS","T1","JOIN","University","AS","T2","JOIN","Major","AS","T3","ON","T1.university_id","=","T2.university_id","AND","T1.major_id","=","T3.major_id","WHERE","T1.rank","<","=","3","AND","T3.major_name","=","``","Accounting","''"],"query_toks_no_value":["select","t2",".","university_name","from","major_ranking","as","t1","join","university","as","t2","join","major","as","t3","on","t1",".","university_id","=","t2",".","university_id","and","t1",".","major_id","=","t3",".","major_id","where","t1",".","rank","<","=","value","and","t3",".","major_name","=","value"],"question":"Quais são os nomes das universidades com um curso Accounting classificado em 3 ou mais?","question_toks":["Quais","são","os","nomes","das","universidades","com","um","curso","Accounting","classificado","em","3","ou","mais","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,19,false],null],[0,1,false],null],"and",[false,2,[0,[0,20,false],null],[0,15,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,6,[0,[0,18,false],null],3.0,null],"and",[false,2,[0,[0,16,false],null],"\"Accounting\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT sum(enrollment) FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id WHERE T2.rank >= 5","query_toks":["SELECT","sum","(","enrollment",")","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T2.rank",">","=","5"],"query_toks_no_value":["select","sum","(","enrollment",")","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t2",".","rank",">","=","value"],"question":"Qual é o total de matrículas das universidades com uma classificação geral de 5 ou inferior?","question_toks":["Qual","é","o","total","de","matrículas","das","universidades","com","uma","classificação","geral","de","5","ou","inferior","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[4,[0,[0,7,false],null]]]],"where":[[false,5,[0,[0,9,false],null],5.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT sum(enrollment) FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id WHERE T2.rank >= 5","query_toks":["SELECT","sum","(","enrollment",")","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","WHERE","T2.rank",">","=","5"],"query_toks_no_value":["select","sum","(","enrollment",")","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","where","t2",".","rank",">","=","value"],"question":"Qual é o número total de estudantes matriculados em uma universidade com uma classificação de 5 ou inferior?","question_toks":["Qual","é","o","número","total","de","estudantes","matriculados","em","uma","universidade","com","uma","classificação","de","5","ou","inferior","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[4,[0,[0,7,false],null]]]],"where":[[false,5,[0,[0,9,false],null],5.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.University_Name , T2.Citation_point FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.Reputation_point DESC LIMIT 3","query_toks":["SELECT","T1.University_Name",",","T2.Citation_point","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","ORDER","BY","T2.Reputation_point","DESC","LIMIT","3"],"query_toks_no_value":["select","t1",".","university_name",",","t2",".","citation_point","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","order","by","t2",".","reputation_point","desc","limit","value"],"question":"Encontre o nome e o ponto de citação das universidades cujos pontos de reputação estão entre os 3 melhores e acima.","question_toks":["Encontre","o","nome","e","o","ponto","de","citação","das","universidades","cujos","pontos","de","reputação","estão","entre","os","3","melhores","e","acima","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT T1.University_Name , T2.Citation_point FROM University AS T1 JOIN Overall_ranking AS T2 ON T1.university_id = T2.university_id ORDER BY T2.Reputation_point DESC LIMIT 3","query_toks":["SELECT","T1.University_Name",",","T2.Citation_point","FROM","University","AS","T1","JOIN","Overall_ranking","AS","T2","ON","T1.university_id","=","T2.university_id","ORDER","BY","T2.Reputation_point","DESC","LIMIT","3"],"query_toks_no_value":["select","t1",".","university_name",",","t2",".","citation_point","from","university","as","t1","join","overall_ranking","as","t2","on","t1",".","university_id","=","t2",".","university_id","order","by","t2",".","reputation_point","desc","limit","value"],"question":"Qual é o nome e o ponto de citação das universidades com os 3 melhores pontos de reputação?","question_toks":["Qual","é","o","nome","e","o","ponto","de","citação","das","universidades","com","os","3","melhores","pontos","de","reputação","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT state FROM university WHERE enrollment < 3000 GROUP BY state HAVING count(*) > 2","query_toks":["SELECT","state","FROM","university","WHERE","enrollment","<","3000","GROUP","BY","state","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","state","from","university","where","enrollment","<","value","group","by","state","having","count","(","*",")",">","value"],"question":"Quais estados têm mais de duas universidades com matrícula inferior a 3000?","question_toks":["Quais","estados","têm","mais","de","duas","universidades","com","matrícula","inferior","a","3000","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],3000.0,null]],"groupBy":[[0,4,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"university_rank","query":"SELECT state FROM university WHERE enrollment < 3000 GROUP BY state HAVING count(*) > 2","query_toks":["SELECT","state","FROM","university","WHERE","enrollment","<","3000","GROUP","BY","state","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","state","from","university","where","enrollment","<","value","group","by","state","having","count","(","*",")",">","value"],"question":"Quais são os estados que têm mais de 2 universidades com uma matrícula inferior a 3000?","question_toks":["Quais","são","os","estados","que","têm","mais","de","2","universidades","com","uma","matrícula","inferior","a","3000","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,4,[0,[0,7,false],null],3000.0,null]],"groupBy":[[0,4,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies WHERE rating = 'null'","query_toks":["SELECT","title","FROM","movies","WHERE","rating","=","'null","'"],"query_toks_no_value":["select","title","from","movies","where","rating","=","value"],"question":"Encontre os títulos dos filmes que não têm nenhuma classificação.","question_toks":["Encontre","os","títulos","dos","filmes","que","não","têm","nenhuma","classificação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"null\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies WHERE rating = 'null'","query_toks":["SELECT","title","FROM","movies","WHERE","rating","=","'null","'"],"query_toks_no_value":["select","title","from","movies","where","rating","=","value"],"question":"Quais são os nomes dos filmes que não têm nenhuma classificação?","question_toks":["Quais","são","os","nomes","dos","filmes","que","não","têm","nenhuma","classificação","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"null\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies WHERE rating = 'G'","query_toks":["SELECT","title","FROM","movies","WHERE","rating","=","'G","'"],"query_toks_no_value":["select","title","from","movies","where","rating","=","value"],"question":"Encontre os nomes dos filmes cuja classificação é 'G'.","question_toks":["Encontre","os","nomes","dos","filmes","cuja","classificação","é","'","G","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies WHERE rating = 'G'","query_toks":["SELECT","title","FROM","movies","WHERE","rating","=","'G","'"],"query_toks_no_value":["select","title","from","movies","where","rating","=","value"],"question":"Quais são os nomes dos filmes que têm classificação 'G'?","question_toks":["Quais","são","os","nomes","dos","filmes","que","têm","classificação","'","G","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon'","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value"],"question":"Encontre o título do filme que é exibido no cinema Odeon.","question_toks":["Encontre","o","título","do","filme","que","é","exibido","no","cinema","Odeon","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon'","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value"],"question":"Quais são os títulos dos filmes que estão sendo exibidos no cinema Odeon?","question_toks":["Quais","são","os","títulos","dos","filmes","que","estão","sendo","exibidos","no","cinema","Odeon","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title , T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie","query_toks":["SELECT","T1.title",",","T2.name","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie"],"query_toks_no_value":["select","t1",".","title",",","t2",".","name","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie"],"question":"Encontre os nomes dos filmes que estão sendo exibidos em qualquer cinema e o nome do respectivo cinema.","question_toks":["Encontre","os","nomes","dos","filmes","que","estão","sendo","exibidos","em","qualquer","cinema","e","o","nome","do","respectivo","cinema","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title , T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie","query_toks":["SELECT","T1.title",",","T2.name","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie"],"query_toks_no_value":["select","t1",".","title",",","t2",".","name","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie"],"question":"Quais são os nomes dos filmes que são exibidos em qualquer cinema e o nome do respectivo cinema?","question_toks":["Quais","são","os","nomes","dos","filmes","que","são","exibidos","em","qualquer","cinema","e","o","nome","do","respectivo","cinema","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) FROM movies WHERE rating = 'G'","query_toks":["SELECT","count","(","*",")","FROM","movies","WHERE","rating","=","'G","'"],"query_toks_no_value":["select","count","(","*",")","from","movies","where","rating","=","value"],"question":"Encontre o número de filmes cuja classificação é 'G'.","question_toks":["Encontre","o","número","de","filmes","cuja","classificação","é","'","G","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) FROM movies WHERE rating = 'G'","query_toks":["SELECT","count","(","*",")","FROM","movies","WHERE","rating","=","'G","'"],"query_toks_no_value":["select","count","(","*",")","from","movies","where","rating","=","value"],"question":"Quantos filmes tiveram classificação 'G'?","question_toks":["Quantos","filmes","tiveram","classificação","'","G","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie","query_toks":["SELECT","count","(","*",")","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie"],"query_toks_no_value":["select","count","(","*",")","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie"],"question":"Conte quantos filmes estão em exibição em todos os cinemas.","question_toks":["Conte","quantos","filmes","estão","em","exibição","em","todos","os","cinemas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie","query_toks":["SELECT","count","(","*",")","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie"],"query_toks_no_value":["select","count","(","*",")","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie"],"question":"Conte quantos filmes estão em exibição nos cinemas.","question_toks":["Conte","quantos","filmes","estão","em","exibição","nos","cinemas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie","query_toks":["SELECT","count","(","DISTINCT","T1.code",")","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie"],"query_toks_no_value":["select","count","(","distinct","t1",".","code",")","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie"],"question":"Quantos filmes distintos estão em cartaz nos cinemas?","question_toks":["Quantos","filmes","distintos","estão","em","cartaz","nos","cinemas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[3,[0,[0,1,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(DISTINCT T1.code) FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie","query_toks":["SELECT","count","(","DISTINCT","T1.code",")","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie"],"query_toks_no_value":["select","count","(","distinct","t1",".","code",")","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie"],"question":"Quantos filmes diferentes estão em exibição?","question_toks":["Quantos","filmes","diferentes","estão","em","exibição","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[3,[0,[0,1,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(DISTINCT name) FROM movietheaters","query_toks":["SELECT","count","(","DISTINCT","name",")","FROM","movietheaters"],"query_toks_no_value":["select","count","(","distinct","name",")","from","movietheaters"],"question":"Quantos cinemas distintos existem?","question_toks":["Quantos","cinemas","distintos","existem","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(DISTINCT name) FROM movietheaters","query_toks":["SELECT","count","(","DISTINCT","name",")","FROM","movietheaters"],"query_toks_no_value":["select","count","(","distinct","name",")","from","movietheaters"],"question":"Quantos cinemas diferentes existem?","question_toks":["Quantos","cinemas","diferentes","existem","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,5,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT rating FROM movies WHERE title LIKE '%Citizen%'","query_toks":["SELECT","rating","FROM","movies","WHERE","title","LIKE","'","%","Citizen","%","'"],"query_toks_no_value":["select","rating","from","movies","where","title","like","value"],"question":"Encontre a classificação do filme cujo nome inclui a palavra 'Citizen'.","question_toks":["Encontre","a","classificação","do","filme","cujo","nome","inclui","a","palavra","'Citizen","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%Citizen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT rating FROM movies WHERE title LIKE '%Citizen%'","query_toks":["SELECT","rating","FROM","movies","WHERE","title","LIKE","'","%","Citizen","%","'"],"query_toks_no_value":["select","rating","from","movies","where","title","like","value"],"question":"Qual é a classificação do filme que tem um nome incluindo uma palavra como 'Citizen'?","question_toks":["Qual","é","a","classificação","do","filme","que","tem","um","nome","incluindo","uma","palavra","como","'Citizen","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,9,[0,[0,2,false],null],"\"%Citizen%\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies WHERE rating = 'G' OR rating = 'PG'","query_toks":["SELECT","title","FROM","movies","WHERE","rating","=","'G","'","OR","rating","=","'PG","'"],"query_toks_no_value":["select","title","from","movies","where","rating","=","value","or","rating","=","value"],"question":"Encontre o nome dos cinemas que estão exibindo filmes com classificação 'G' ou 'PG'.","question_toks":["Encontre","o","nome","dos","cinemas","que","estão","exibindo","filmes","com","classificação","'","G","'","ou","'PG","'","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null],"or",[false,2,[0,[0,3,false],null],"\"PG\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies WHERE rating = 'G' OR rating = 'PG'","query_toks":["SELECT","title","FROM","movies","WHERE","rating","=","'G","'","OR","rating","=","'PG","'"],"query_toks_no_value":["select","title","from","movies","where","rating","=","value","or","rating","=","value"],"question":"Quais são os nomes dos cinemas que estão exibindo filmes com classificação 'G' ou 'PG'?","question_toks":["Quais","são","os","nomes","dos","cinemas","que","estão","exibindo","filmes","com","classificação","'","G","'","ou","'PG","'","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null],"or",[false,2,[0,[0,3,false],null],"\"PG\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' OR T2.name = 'Imperial'","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'","OR","T2.name","=","'Imperial","'"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value","or","t2",".","name","=","value"],"question":"Encontre o nome dos filmes que são exibidos no cinema Odeon ou Imperial.","question_toks":["Encontre","o","nome","dos","filmes","que","são","exibidos","no","cinema","Odeon","ou","Imperial","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null],"or",[false,2,[0,[0,5,false],null],"\"Imperial\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' OR T2.name = 'Imperial'","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'","OR","T2.name","=","'Imperial","'"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value","or","t2",".","name","=","value"],"question":"Quais são os títulos de todos os filmes que foram exibidos no cinema Odeon ou Imperial?","question_toks":["Quais","são","os","títulos","de","todos","os","filmes","que","foram","exibidos","no","cinema","Odeon","ou","Imperial","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null],"or",[false,2,[0,[0,5,false],null],"\"Imperial\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' INTERSECT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Imperial'","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'","INTERSECT","SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Imperial","'"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value","intersect","select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value"],"question":"Encontre o nome do filme que está em exibição tanto no cinema Odeon quanto no cinema Imperial.","question_toks":["Encontre","o","nome","do","filme","que","está","em","exibição","tanto","no","cinema","Odeon","quanto","no","cinema","Imperial","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Imperial\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon' INTERSECT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Imperial'","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'","INTERSECT","SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Imperial","'"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value","intersect","select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value"],"question":"Qual filme está em exibição tanto no Odeon quanto no Imperial?","question_toks":["Qual","filme","está","em","exibição","tanto","no","Odeon","quanto","no","Imperial","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Imperial\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies EXCEPT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon'","query_toks":["SELECT","title","FROM","movies","EXCEPT","SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'"],"query_toks_no_value":["select","title","from","movies","except","select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value"],"question":"Encontre o nome de todos os filmes que não são exibidos no cinema Odeon.","question_toks":["Encontre","o","nome","de","todos","os","filmes","que","não","são","exibidos","no","cinema","Odeon","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"movie_2","query":"SELECT title FROM movies EXCEPT SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T2.name = 'Odeon'","query_toks":["SELECT","title","FROM","movies","EXCEPT","SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T2.name","=","'Odeon","'"],"query_toks_no_value":["select","title","from","movies","except","select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t2",".","name","=","value"],"question":"Quais são os nomes de todos os filmes que não estão em exibição no cinema Odeon?","question_toks":["Quais","são","os","nomes","de","todos","os","filmes","que","não","estão","em","exibição","no","cinema","Odeon","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,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,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"Odeon\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"movie_2","query":"SELECT title FROM movies ORDER BY title","query_toks":["SELECT","title","FROM","movies","ORDER","BY","title"],"query_toks_no_value":["select","title","from","movies","order","by","title"],"question":"Liste em ordem alfabética os títulos de todos os filmes.","question_toks":["Liste","em","ordem","alfabética","os","títulos","de","todos","os","filmes","."],"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":"movie_2","query":"SELECT title FROM movies ORDER BY title","query_toks":["SELECT","title","FROM","movies","ORDER","BY","title"],"query_toks_no_value":["select","title","from","movies","order","by","title"],"question":"Quais são os nomes dos filmes em ordem alfabética?","question_toks":["Quais","são","os","nomes","dos","filmes","em","ordem","alfabética","?"],"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":"movie_2","query":"SELECT title FROM movies ORDER BY rating","query_toks":["SELECT","title","FROM","movies","ORDER","BY","rating"],"query_toks_no_value":["select","title","from","movies","order","by","rating"],"question":"Encontre os títulos de todos os filmes ordenados por suas classificações.","question_toks":["Encontre","os","títulos","de","todos","os","filmes","ordenados","por","suas","classificações","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies ORDER BY rating","query_toks":["SELECT","title","FROM","movies","ORDER","BY","rating"],"query_toks_no_value":["select","title","from","movies","order","by","rating"],"question":"Quais são os nomes dos filmes ordenados por classificação?","question_toks":["Quais","são","os","nomes","dos","filmes","ordenados","por","classificação","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,3,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","name","FROM","movietheaters","GROUP","BY","name","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","movietheaters","group","by","name","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome do cinema que está exibindo o maior número de filmes.","question_toks":["Encontre","o","nome","do","cinema","que","está","exibindo","o","maior","número","de","filmes","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"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":"movie_2","query":"SELECT name FROM movietheaters GROUP BY name ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","name","FROM","movietheaters","GROUP","BY","name","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","movietheaters","group","by","name","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do cinema que exibe mais filmes?","question_toks":["Qual","é","o","nome","do","cinema","que","exibe","mais","filmes","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"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":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie GROUP BY T1.title ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","GROUP","BY","T1.title","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","group","by","t1",".","title","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome do filme que é exibido no maior número de cinemas.","question_toks":["Encontre","o","nome","do","filme","que","é","exibido","no","maior","número","de","cinemas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T1.title FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie GROUP BY T1.title ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.title","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","GROUP","BY","T1.title","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","title","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","group","by","t1",".","title","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do filme que está sendo exibido no maior número de cinemas?","question_toks":["Qual","é","o","nome","do","filme","que","está","sendo","exibido","no","maior","número","de","cinemas","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,2,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) , rating FROM movies GROUP BY rating","query_toks":["SELECT","count","(","*",")",",","rating","FROM","movies","GROUP","BY","rating"],"query_toks_no_value":["select","count","(","*",")",",","rating","from","movies","group","by","rating"],"question":"Encontre o número de filmes em cada classificação.","question_toks":["Encontre","o","número","de","filmes","em","cada","classificação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) , rating FROM movies GROUP BY rating","query_toks":["SELECT","count","(","*",")",",","rating","FROM","movies","GROUP","BY","rating"],"query_toks_no_value":["select","count","(","*",")",",","rating","from","movies","group","by","rating"],"question":"Quantos filmes existem para cada classificação?","question_toks":["Quantos","filmes","existem","para","cada","classificação","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating","query_toks":["SELECT","count","(","*",")",",","rating","FROM","movies","WHERE","rating","!","=","'null","'","GROUP","BY","rating"],"query_toks_no_value":["select","count","(","*",")",",","rating","from","movies","where","rating","!","=","value","group","by","rating"],"question":"Encontre o número de filmes cuja classificação não é null.","question_toks":["Encontre","o","número","de","filmes","cuja","classificação","não","é","null","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,7,[0,[0,3,false],null],"\"null\"",null]],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT count(*) , rating FROM movies WHERE rating != 'null' GROUP BY rating","query_toks":["SELECT","count","(","*",")",",","rating","FROM","movies","WHERE","rating","!","=","'null","'","GROUP","BY","rating"],"query_toks_no_value":["select","count","(","*",")",",","rating","from","movies","where","rating","!","=","value","group","by","rating"],"question":"Quantos filmes têm uma classificação que não é null?","question_toks":["Quantos","filmes","têm","uma","classificação","que","não","é","null","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,7,[0,[0,3,false],null],"\"null\"",null]],"groupBy":[[0,3,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1","query_toks":["SELECT","name","FROM","movietheaters","GROUP","BY","name","HAVING","count","(","*",")",">","=","1"],"query_toks_no_value":["select","name","from","movietheaters","group","by","name","having","count","(","*",")",">","=","value"],"question":"Encontre o nome dos cinemas que têm pelo menos um filme em exibição.","question_toks":["Encontre","o","nome","dos","cinemas","que","têm","pelo","menos","um","filme","em","exibição","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,5,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT name FROM movietheaters GROUP BY name HAVING count(*) >= 1","query_toks":["SELECT","name","FROM","movietheaters","GROUP","BY","name","HAVING","count","(","*",")",">","=","1"],"query_toks_no_value":["select","name","from","movietheaters","group","by","name","having","count","(","*",")",">","=","value"],"question":"Quais são os nomes de cada cinema com pelo menos um filme em exibição?","question_toks":["Quais","são","os","nomes","de","cada","cinema","com","pelo","menos","um","filme","em","exibição","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,5,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null'","query_toks":["SELECT","DISTINCT","name","FROM","MovieTheaters","WHERE","Movie","=","'null","'"],"query_toks_no_value":["select","distinct","name","from","movietheaters","where","movie","=","value"],"question":"Selecione o nome de todos os cinemas que não estão exibindo um filme atualmente.","question_toks":["Selecione","o","nome","de","todos","os","cinemas","que","não","estão","exibindo","um","filme","atualmente","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"null\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT DISTINCT name FROM MovieTheaters WHERE Movie = 'null'","query_toks":["SELECT","DISTINCT","name","FROM","MovieTheaters","WHERE","Movie","=","'null","'"],"query_toks_no_value":["select","distinct","name","from","movietheaters","where","movie","=","value"],"question":"Quais são os nomes de todos os cinemas que não estão exibindo nenhum filme?","question_toks":["Quais","são","os","nomes","de","todos","os","cinemas","que","não","estão","exibindo","nenhum","filme","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"null\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T1.rating = 'G'","query_toks":["SELECT","T2.name","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T1.rating","=","'G","'"],"query_toks_no_value":["select","t2",".","name","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t1",".","rating","=","value"],"question":"Encontre o nome dos cinemas que estão exibindo os filmes cuja classificação é 'G'.","question_toks":["Encontre","o","nome","dos","cinemas","que","estão","exibindo","os","filmes","cuja","classificação","é","'","G","'","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT T2.name FROM movies AS T1 JOIN movietheaters AS T2 ON T1.code = T2.movie WHERE T1.rating = 'G'","query_toks":["SELECT","T2.name","FROM","movies","AS","T1","JOIN","movietheaters","AS","T2","ON","T1.code","=","T2.movie","WHERE","T1.rating","=","'G","'"],"query_toks_no_value":["select","t2",".","name","from","movies","as","t1","join","movietheaters","as","t2","on","t1",".","code","=","t2",".","movie","where","t1",".","rating","=","value"],"question":"Quais são os nomes dos cinemas que exibem filmes com classificação 'G'?","question_toks":["Quais","são","os","nomes","dos","cinemas","que","exibem","filmes","com","classificação","'","G","'","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,5,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"G\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies","query_toks":["SELECT","title","FROM","movies"],"query_toks_no_value":["select","title","from","movies"],"question":"Selecione o título de todos os filmes.","question_toks":["Selecione","o","título","de","todos","os","filmes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT title FROM movies","query_toks":["SELECT","title","FROM","movies"],"query_toks_no_value":["select","title","from","movies"],"question":"Quais são todos os nomes dos filmes?","question_toks":["Quais","são","todos","os","nomes","dos","filmes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT DISTINCT rating FROM movies","query_toks":["SELECT","DISTINCT","rating","FROM","movies"],"query_toks_no_value":["select","distinct","rating","from","movies"],"question":"Mostre todas as classificações distintas no banco de dados.","question_toks":["Mostre","todas","as","classificações","distintas","no","banco","de","dados","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT DISTINCT rating FROM movies","query_toks":["SELECT","DISTINCT","rating","FROM","movies"],"query_toks_no_value":["select","distinct","rating","from","movies"],"question":"Quais são as diferentes classificações de filmes?","question_toks":["Quais","são","as","diferentes","classificações","de","filmes","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[true,[[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT * FROM movies WHERE rating = 'null'","query_toks":["SELECT","*","FROM","movies","WHERE","rating","=","'null","'"],"query_toks_no_value":["select","*","from","movies","where","rating","=","value"],"question":"Mostre todas as informações de todos os filmes sem classificação.","question_toks":["Mostre","todas","as","informações","de","todos","os","filmes","sem","classificação","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"null\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT * FROM movies WHERE rating = 'null'","query_toks":["SELECT","*","FROM","movies","WHERE","rating","=","'null","'"],"query_toks_no_value":["select","*","from","movies","where","rating","=","value"],"question":"Qual é todas as informações sobre os filmes sem classificação?","question_toks":["Qual","é","todas","as","informações","sobre","os","filmes","sem","classificação","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"null\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"movie_2","query":"SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null')","query_toks":["SELECT","Title","FROM","Movies","WHERE","Code","NOT","IN","(","SELECT","Movie","FROM","MovieTheaters","WHERE","Movie","!","=","'null","'",")"],"query_toks_no_value":["select","title","from","movies","where","code","not","in","(","select","movie","from","movietheaters","where","movie","!","=","value",")"],"question":"Mostre os títulos dos filmes que não estão sendo exibidos em nenhum cinema.","question_toks":["Mostre","os","títulos","dos","filmes","que","não","estão","sendo","exibidos","em","nenhum","cinema","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,7,[0,[0,6,false],null],"\"null\"",null]],"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":"movie_2","query":"SELECT Title FROM Movies WHERE Code NOT IN (SELECT Movie FROM MovieTheaters WHERE Movie != 'null')","query_toks":["SELECT","Title","FROM","Movies","WHERE","Code","NOT","IN","(","SELECT","Movie","FROM","MovieTheaters","WHERE","Movie","!","=","'null","'",")"],"query_toks_no_value":["select","title","from","movies","where","code","not","in","(","select","movie","from","movietheaters","where","movie","!","=","value",")"],"question":"Quais são os nomes dos filmes que não estão sendo exibidos em nenhum cinema?","question_toks":["Quais","são","os","nomes","dos","filmes","que","não","estão","sendo","exibidos","em","nenhum","cinema","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,7,[0,[0,6,false],null],"\"null\"",null]],"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":"planet_1","query":"SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1","query_toks":["SELECT","T2.Name","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Recipient","=","T2.AccountNumber","ORDER","BY","T1.Weight","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","order","by","t1",".","weight","desc","limit","value"],"question":"Quem recebeu o pacote mais pesado?","question_toks":["Quem","recebeu","o","pacote","mais","pesado","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,21,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber ORDER BY T1.Weight DESC LIMIT 1","query_toks":["SELECT","T2.Name","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Recipient","=","T2.AccountNumber","ORDER","BY","T1.Weight","DESC","LIMIT","1"],"query_toks_no_value":["select","t2",".","name","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","order","by","t1",".","weight","desc","limit","value"],"question":"Qual é o nome do cliente que recebeu o pacote mais pesado?","question_toks":["Qual","é","o","nome","do","cliente","que","recebeu","o","pacote","mais","pesado","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,21,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"Leo Wong\";","query_toks":["SELECT","sum","(","T1.Weight",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''",";"],"query_toks_no_value":["select","sum","(","t1",".","weight",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Qual é o peso total de todos os pacotes que o cliente Leo Wong enviou?","question_toks":["Qual","é","o","peso","total","de","todos","os","pacotes","que","o","cliente","Leo","Wong","enviou","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[4,[0,[0,21,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"Leo Wong\";","query_toks":["SELECT","sum","(","T1.Weight",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''",";"],"query_toks_no_value":["select","sum","(","t1",".","weight",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Qual é o peso total de todos os pacotes que Leo Wong enviou?","question_toks":["Qual","é","o","peso","total","de","todos","os","pacotes","que","Leo","Wong","enviou","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[4,[0,[0,21,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT POSITION FROM Employee WHERE Name = \"Amy Wong\";","query_toks":["SELECT","POSITION","FROM","Employee","WHERE","Name","=","``","Amy","Wong","''",";"],"query_toks_no_value":["select","position","from","employee","where","name","=","value"],"question":"Qual é a posição de Amy Wong?","question_toks":["Qual","é","a","posição","de","Amy","Wong","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Amy Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT POSITION FROM Employee WHERE Name = \"Amy Wong\";","query_toks":["SELECT","POSITION","FROM","Employee","WHERE","Name","=","``","Amy","Wong","''",";"],"query_toks_no_value":["select","position","from","employee","where","name","=","value"],"question":"Qual posição Amy Wong ocupa?","question_toks":["Qual","posição","Amy","Wong","ocupa","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Amy Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Salary , POSITION FROM Employee WHERE Name = \"Turanga Leela\";","query_toks":["SELECT","Salary",",","POSITION","FROM","Employee","WHERE","Name","=","``","Turanga","Leela","''",";"],"query_toks_no_value":["select","salary",",","position","from","employee","where","name","=","value"],"question":"Qual é o salário e a posição de Turanga Leela?","question_toks":["Qual","é","o","salário","e","a","posição","de","Turanga","Leela","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Turanga Leela\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Salary , POSITION FROM Employee WHERE Name = \"Turanga Leela\";","query_toks":["SELECT","Salary",",","POSITION","FROM","Employee","WHERE","Name","=","``","Turanga","Leela","''",";"],"query_toks_no_value":["select","salary",",","position","from","employee","where","name","=","value"],"question":"Qual é o salário e a posição do funcionário chamado Turanga Leela?","question_toks":["Qual","é","o","salário","e","a","posição","do","funcionário","chamado","Turanga","Leela","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,3,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Turanga Leela\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT avg(Salary) FROM Employee WHERE POSITION = \"Intern\";","query_toks":["SELECT","avg","(","Salary",")","FROM","Employee","WHERE","POSITION","=","``","Intern","''",";"],"query_toks_no_value":["select","avg","(","salary",")","from","employee","where","position","=","value"],"question":"Qual é o salário médio de todos os empregos de intern?","question_toks":["Qual","é","o","salário","médio","de","todos","os","empregos","de","intern","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Intern\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT avg(Salary) FROM Employee WHERE POSITION = \"Intern\";","query_toks":["SELECT","avg","(","Salary",")","FROM","Employee","WHERE","POSITION","=","``","Intern","''",";"],"query_toks_no_value":["select","avg","(","salary",")","from","employee","where","position","=","value"],"question":"Qual é o salário médio de um intern?","question_toks":["Qual","é","o","salário","médio","de","um","intern","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Intern\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = \"Physician\";","query_toks":["SELECT","T1.Level","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","WHERE","T2.position","=","``","Physician","''",";"],"query_toks_no_value":["select","t1",".","level","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","where","t2",".","position","=","value"],"question":"Qual é o nível do Physician?","question_toks":["Qual","é","o","nível","do","Physician","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Physician\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.Level FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID WHERE T2.position = \"Physician\";","query_toks":["SELECT","T1.Level","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","WHERE","T2.position","=","``","Physician","''",";"],"query_toks_no_value":["select","t1",".","level","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","where","t2",".","position","=","value"],"question":"Qual é o nível de autorização de um physician?","question_toks":["Qual","é","o","nível","de","autorização","de","um","physician","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,15,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Physician\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"Leo Wong\";","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Liste o número do pacote de todos os pacotes enviados por Leo Wong.","question_toks":["Liste","o","número","do","pacote","de","todos","os","pacotes","enviados","por","Leo","Wong","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"Leo Wong\";","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Qual é o número de todos os pacotes que Leo Wong enviou?","question_toks":["Qual","é","o","número","de","todos","os","pacotes","que","Leo","Wong","enviou","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"select t1.packagenumber from package as t1 join client as t2 on t1.recipient = t2.accountnumber where t2.name = \"leo wong\";","query_toks":["select","t1.packagenumber","from","package","as","t1","join","client","as","t2","on","t1.recipient","=","t2.accountnumber","where","t2.name","=","\"leo wong\"",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Liste todos os números de pacotes recebidos por Leo Wong.","question_toks":["Liste","todos","os","números","de","pacotes","recebidos","por","Leo","Wong","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"leo wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = \"Leo Wong\";","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Recipient","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Quais são todos os números de pacotes recebidos por Leo Wong?","question_toks":["Quais","são","todos","os","números","de","pacotes","recebidos","por","Leo","Wong","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT DISTINCT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber OR T1.Recipient = T2.AccountNumber WHERE T2.Name = \"Leo Wong\"","query_toks":["SELECT","DISTINCT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","OR","T1.Recipient","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''"],"query_toks_no_value":["select","distinct","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","or","t1",".","recipient","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Liste todos os pacotes enviados ou recebidos por Leo Wong.","question_toks":["Liste","todos","os","pacotes","enviados","ou","recebidos","por","Leo","Wong","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[true,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT DISTINCT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber OR T1.Recipient = T2.AccountNumber WHERE T2.Name = \"Leo Wong\"","query_toks":["SELECT","DISTINCT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","OR","T1.Recipient","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''"],"query_toks_no_value":["select","distinct","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","or","t1",".","recipient","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Quais são todos os números de pacotes diferentes que Leo Wong enviou ou recebeu?","question_toks":["Quais","são","todos","os","números","de","pacotes","diferentes","que","Leo","Wong","enviou","ou","recebeu","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[true,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"Ogden Wernstrom\" INTERSECT SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = \"Leo Wong\"","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","Ogden","Wernstrom","''","INTERSECT","SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Recipient","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value","intersect","select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Conte o número de pacotes enviados por Ogden Wernstrom e recebidos por Leo Wong.","question_toks":["Conte","o","número","de","pacotes","enviados","por","Ogden","Wernstrom","e","recebidos","por","Leo","Wong","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Ogden Wernstrom\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"Ogden Wernstrom\" INTERSECT SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Recipient = T2.AccountNumber WHERE T2.Name = \"Leo Wong\"","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","Ogden","Wernstrom","''","INTERSECT","SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Recipient","=","T2.AccountNumber","WHERE","T2.Name","=","``","Leo","Wong","''"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value","intersect","select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Quantos pacotes foram enviados por Ogden Wernstrom e recebidos por Leo Wong?","question_toks":["Quantos","pacotes","foram","enviados","por","Ogden","Wernstrom","e","recebidos","por","Leo","Wong","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Ogden Wernstrom\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Leo Wong\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"John Zoidfarb\";","query_toks":["SELECT","T1.Contents","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","John","Zoidfarb","''",";"],"query_toks_no_value":["select","t1",".","contents","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Quais são os conteúdos do pacote enviado por John Zoidfarb?","question_toks":["Quais","são","os","conteúdos","do","pacote","enviado","por","John","Zoidfarb","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,20,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"John Zoidfarb\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.Contents FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name = \"John Zoidfarb\";","query_toks":["SELECT","T1.Contents","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","=","``","John","Zoidfarb","''",";"],"query_toks_no_value":["select","t1",".","contents","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","=","value"],"question":"Quais são os conteúdos dos pacotes de todos os enviados por John Zoidfarb?","question_toks":["Quais","são","os","conteúdos","dos","pacotes","de","todos","os","enviados","por","John","Zoidfarb","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,20,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"John Zoidfarb\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber , max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE \"John\";","query_toks":["SELECT","T1.PackageNumber",",","max","(","T1.Weight",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","LIKE","``","John","''",";"],"query_toks_no_value":["select","t1",".","packagenumber",",","max","(","t1",".","weight",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","like","value"],"question":"Qual é o pacote mais pesado enviado pelos clientes cujo nome contém 'John'? Liste o número do pacote e o peso.","question_toks":["Qual","é","o","pacote","mais","pesado","enviado","pelos","clientes","cujo","nome","contém","'John","'","?","Liste","o","número","do","pacote","e","o","peso","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]],[1,[0,[0,21,false],null]]]],"where":[[false,9,[0,[0,17,false],null],"\"John\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber , max(T1.Weight) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber WHERE T2.Name LIKE \"John\";","query_toks":["SELECT","T1.PackageNumber",",","max","(","T1.Weight",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","WHERE","T2.Name","LIKE","``","John","''",";"],"query_toks_no_value":["select","t1",".","packagenumber",",","max","(","t1",".","weight",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","where","t2",".","name","like","value"],"question":"Qual é o número do pacote e o peso do pacote mais pesado que foi enviado por um cliente chamado John ou algo semelhante?","question_toks":["Qual","é","o","número","do","pacote","e","o","peso","do","pacote","mais","pesado","que","foi","enviado","por","um","cliente","chamado","John","ou","algo","semelhante","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,19,false],null]],[1,[0,[0,21,false],null]]]],"where":[[false,9,[0,[0,17,false],null],"\"John\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;","query_toks":["SELECT","PackageNumber",",","Weight","FROM","PACKAGE","ORDER","BY","Weight","ASC","LIMIT","3",";"],"query_toks_no_value":["select","packagenumber",",","weight","from","package","order","by","weight","asc","limit","value"],"question":"Liste o número do pacote e o peso dos 3 pacotes mais leves.","question_toks":["Liste","o","número","do","pacote","e","o","peso","dos","3","pacotes","mais","leves","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,21,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT PackageNumber , Weight FROM PACKAGE ORDER BY Weight ASC LIMIT 3;","query_toks":["SELECT","PackageNumber",",","Weight","FROM","PACKAGE","ORDER","BY","Weight","ASC","LIMIT","3",";"],"query_toks_no_value":["select","packagenumber",",","weight","from","package","order","by","weight","asc","limit","value"],"question":"Qual é o número do pacote e o peso dos 3 pacotes mais leves?","question_toks":["Qual","é","o","número","do","pacote","e","o","peso","dos","3","pacotes","mais","leves","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,21,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","GROUP","BY","T1.Sender","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","group","by","t1",".","sender","order","by","count","(","*",")","desc","limit","value"],"question":"Quem enviou o maior número de pacotes? Liste o nome do cliente e o número de pacotes enviados por esse cliente.","question_toks":["Quem","enviou","o","maior","número","de","pacotes","?","Liste","o","nome","do","cliente","e","o","número","de","pacotes","enviados","por","esse","cliente","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","GROUP","BY","T1.Sender","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","group","by","t1",".","sender","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do cliente que enviou mais pacotes e quantos foram?","question_toks":["Qual","é","o","nome","do","cliente","que","enviou","mais","pacotes","e","quantos","foram","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"select t2.name , count(*) from package as t1 join client as t2 on t1.recipient = t2.accountnumber group by t1.recipient order by count(*) limit 1;","query_toks":["select","t2.name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1.recipient","=","t2.accountnumber","group","by","t1.recipient","order","by","count","(","*",")","limit","1",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","group","by","t1",".","recipient","order","by","count","(","*",")","limit","value"],"question":"Quem recebeu o menor número de pacotes? Liste o nome do cliente e o número de pacotes recebidos por esse cliente.","question_toks":["Quem","recebeu","o","menor","número","de","pacotes","?","Liste","o","nome","do","cliente","e","o","número","de","pacotes","recebidos","por","esse","cliente","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"select t2.name , count(*) from package as t1 join client as t2 on t1.recipient = t2.accountnumber group by t1.recipient order by count(*) limit 1;","query_toks":["select","t2.name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1.recipient","=","t2.accountnumber","group","by","t1.recipient","order","by","count","(","*",")","limit","1",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1",".","recipient","=","t2",".","accountnumber","group","by","t1",".","recipient","order","by","count","(","*",")","limit","value"],"question":"Qual é o menor número de pacotes recebidos e por quem?","question_toks":["Qual","é","o","menor","número","de","pacotes","recebidos","e","por","quem","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,23,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,23,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count(*) > 1;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","GROUP","BY","T1.Sender","HAVING","count","(","*",")",">","1",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","group","by","t1",".","sender","having","count","(","*",")",">","value"],"question":"Quem enviou mais de um pacote? Liste o nome do cliente.","question_toks":["Quem","enviou","mais","de","um","pacote","?","Liste","o","nome","do","cliente","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber GROUP BY T1.Sender HAVING count(*) > 1;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","GROUP","BY","T1.Sender","HAVING","count","(","*",")",">","1",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","group","by","t1",".","sender","having","count","(","*",")",">","value"],"question":"Qual é o nome de todos os clientes que enviaram mais de um pacote?","question_toks":["Qual","é","o","nome","de","todos","os","clientes","que","enviaram","mais","de","um","pacote","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Coordinates FROM Planet WHERE Name = \"Mars\";","query_toks":["SELECT","Coordinates","FROM","Planet","WHERE","Name","=","``","Mars","''",";"],"query_toks_no_value":["select","coordinates","from","planet","where","name","=","value"],"question":"Quais são as coordenadas do planeta Mars?","question_toks":["Quais","são","as","coordenadas","do","planeta","Mars","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Coordinates FROM Planet WHERE Name = \"Mars\";","query_toks":["SELECT","Coordinates","FROM","Planet","WHERE","Name","=","``","Mars","''",";"],"query_toks_no_value":["select","coordinates","from","planet","where","name","=","value"],"question":"Quais são as coordenadas do planeta chamado Mars?","question_toks":["Quais","são","as","coordenadas","do","planeta","chamado","Mars","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Name , Coordinates FROM Planet ORDER BY Name","query_toks":["SELECT","Name",",","Coordinates","FROM","Planet","ORDER","BY","Name"],"query_toks_no_value":["select","name",",","coordinates","from","planet","order","by","name"],"question":"Liste os nomes e coordenadas de todos os planetas em ordem alfabética de nome.","question_toks":["Liste","os","nomes","e","coordenadas","de","todos","os","planetas","em","ordem","alfabética","de","nome","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Name , Coordinates FROM Planet ORDER BY Name","query_toks":["SELECT","Name",",","Coordinates","FROM","Planet","ORDER","BY","Name"],"query_toks_no_value":["select","name",",","coordinates","from","planet","order","by","name"],"question":"Quais são os nomes e as coordenadas de todos os planetas em ordem alfabética pelo nome?","question_toks":["Quais","são","os","nomes","e","as","coordenadas","de","todos","os","planetas","em","ordem","alfabética","pelo","nome","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,7,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = \"Phillip J. Fry\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Employee","AS","T2","ON","T1.Manager","=","T2.EmployeeID","WHERE","T2.Name","=","``","Phillip","J.","Fry","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","employee","as","t2","on","t1",".","manager","=","t2",".","employeeid","where","t2",".","name","=","value"],"question":"Liste todos os IDs de remessa sob a gestão de Phillip J. Fry.","question_toks":["Liste","todos","os","IDs","de","remessa","sob","a","gestão","de","Phillip","J.","Fry","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Phillip J. Fry\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID WHERE T2.Name = \"Phillip J. Fry\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Employee","AS","T2","ON","T1.Manager","=","T2.EmployeeID","WHERE","T2.Name","=","``","Phillip","J.","Fry","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","employee","as","t2","on","t1",".","manager","=","t2",".","employeeid","where","t2",".","name","=","value"],"question":"Quais são os ids de remessa de cada entrega gerenciada por Phillip J Fry?","question_toks":["Quais","são","os","ids","de","remessa","de","cada","entrega","gerenciada","por","Phillip","J","Fry","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,2,false],null],"\"Phillip J. Fry\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Date FROM Shipment;","query_toks":["SELECT","Date","FROM","Shipment",";"],"query_toks_no_value":["select","date","from","shipment"],"question":"Liste as datas de todos os envios.","question_toks":["Liste","as","datas","de","todos","os","envios","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Date FROM Shipment;","query_toks":["SELECT","Date","FROM","Shipment",";"],"query_toks_no_value":["select","date","from","shipment"],"question":"Quais são as datas de cada remessa no banco de dados?","question_toks":["Quais","são","as","datas","de","cada","remessa","no","banco","de","dados","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name = \"Mars\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","WHERE","T2.Name","=","``","Mars","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","where","t2",".","name","=","value"],"question":"Liste todos os ids de envio para o planeta Mars.","question_toks":["Liste","todos","os","ids","de","envio","para","o","planeta","Mars","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID WHERE T2.Name = \"Mars\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","WHERE","T2.Name","=","``","Mars","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","where","t2",".","name","=","value"],"question":"Quais são os ids de envio para o planeta Mars?","question_toks":["Quais","são","os","ids","de","envio","para","o","planeta","Mars","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = \"Mars\" AND T3.Name = \"Turanga Leela\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","JOIN","Employee","AS","T3","ON","T3.EmployeeID","=","T1.Manager","WHERE","T2.Name","=","``","Mars","''","AND","T3.Name","=","``","Turanga","Leela","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","join","employee","as","t3","on","t3",".","employeeid","=","t1",".","manager","where","t2",".","name","=","value","and","t3",".","name","=","value"],"question":"Liste todos os ids de remessa para o planeta Mars e sob a gestão de Turanga Leela.","question_toks":["Liste","todos","os","ids","de","remessa","para","o","planeta","Mars","e","sob","a","gestão","de","Turanga","Leela","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null],"and",[false,2,[0,[0,1,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null],"and",[false,2,[0,[0,2,false],null],"\"Turanga Leela\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = \"Mars\" AND T3.Name = \"Turanga Leela\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","JOIN","Employee","AS","T3","ON","T3.EmployeeID","=","T1.Manager","WHERE","T2.Name","=","``","Mars","''","AND","T3.Name","=","``","Turanga","Leela","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","join","employee","as","t3","on","t3",".","employeeid","=","t1",".","manager","where","t2",".","name","=","value","and","t3",".","name","=","value"],"question":"Quais são os ids de todos os envios no planeta Mars que são gerenciados por Turanga Leela?","question_toks":["Quais","são","os","ids","de","todos","os","envios","no","planeta","Mars","que","são","gerenciados","por","Turanga","Leela","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null],"and",[false,2,[0,[0,1,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null],"and",[false,2,[0,[0,2,false],null],"\"Turanga Leela\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = \"Mars\" OR T3.Name = \"Turanga Leela\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","JOIN","Employee","AS","T3","ON","T3.EmployeeID","=","T1.Manager","WHERE","T2.Name","=","``","Mars","''","OR","T3.Name","=","``","Turanga","Leela","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","join","employee","as","t3","on","t3",".","employeeid","=","t1",".","manager","where","t2",".","name","=","value","or","t3",".","name","=","value"],"question":"Liste todos os IDs de remessa no planeta Mars ou sob a gestão de Turanga Leela.","question_toks":["Liste","todos","os","IDs","de","remessa","no","planeta","Mars","ou","sob","a","gestão","de","Turanga","Leela","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null],"and",[false,2,[0,[0,1,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null],"or",[false,2,[0,[0,2,false],null],"\"Turanga Leela\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.ShipmentID FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID JOIN Employee AS T3 ON T3.EmployeeID = T1.Manager WHERE T2.Name = \"Mars\" OR T3.Name = \"Turanga Leela\";","query_toks":["SELECT","T1.ShipmentID","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","JOIN","Employee","AS","T3","ON","T3.EmployeeID","=","T1.Manager","WHERE","T2.Name","=","``","Mars","''","OR","T3.Name","=","``","Turanga","Leela","''",";"],"query_toks_no_value":["select","t1",".","shipmentid","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","join","employee","as","t3","on","t3",".","employeeid","=","t1",".","manager","where","t2",".","name","=","value","or","t3",".","name","=","value"],"question":"Quais são os ids de todas as remessas no planeta Marte que Turanga Leela gerencia?","question_toks":["Quais","são","os","ids","de","todas","as","remessas","no","planeta","Marte","que","Turanga","Leela","gerencia","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null],"and",[false,2,[0,[0,1,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null],"or",[false,2,[0,[0,2,false],null],"\"Turanga Leela\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","GROUP","BY","T1.Planet",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","group","by","t1",".","planet"],"question":"Qual é o total de remessas em cada planeta? Liste o nome do planeta e o total de remessas.","question_toks":["Qual","é","o","total","de","remessas","em","cada","planeta","?","Liste","o","nome","do","planeta","e","o","total","de","remessas","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","GROUP","BY","T1.Planet",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","group","by","t1",".","planet"],"question":"Quantas remessas ocorrem em cada planeta?","question_toks":["Quantas","remessas","ocorrem","em","cada","planeta","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T2.Name","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","GROUP","BY","T1.Planet","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t2",".","name","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","group","by","t1",".","planet","order","by","count","(","*",")","desc","limit","value"],"question":"Qual planeta tem mais remessas? Liste o nome do planeta.","question_toks":["Qual","planeta","tem","mais","remessas","?","Liste","o","nome","do","planeta","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name FROM Shipment AS T1 JOIN Planet AS T2 ON T1.Planet = T2.PlanetID GROUP BY T1.Planet ORDER BY count(*) DESC LIMIT 1;","query_toks":["SELECT","T2.Name","FROM","Shipment","AS","T1","JOIN","Planet","AS","T2","ON","T1.Planet","=","T2.PlanetID","GROUP","BY","T1.Planet","ORDER","BY","count","(","*",")","DESC","LIMIT","1",";"],"query_toks_no_value":["select","t2",".","name","from","shipment","as","t1","join","planet","as","t2","on","t1",".","planet","=","t2",".","planetid","group","by","t1",".","planet","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do planeta com mais remessas?","question_toks":["Qual","é","o","nome","do","planeta","com","mais","remessas","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID GROUP BY T1.Manager;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","Shipment","AS","T1","JOIN","Employee","AS","T2","ON","T1.Manager","=","T2.EmployeeID","GROUP","BY","T1.Manager",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","shipment","as","t1","join","employee","as","t2","on","t1",".","manager","=","t2",".","employeeid","group","by","t1",".","manager"],"question":"Liste o nome do gerente e o número de remessas sob sua gestão.","question_toks":["Liste","o","nome","do","gerente","e","o","número","de","remessas","sob","sua","gestão","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name , count(*) FROM Shipment AS T1 JOIN Employee AS T2 ON T1.Manager = T2.EmployeeID GROUP BY T1.Manager;","query_toks":["SELECT","T2.Name",",","count","(","*",")","FROM","Shipment","AS","T1","JOIN","Employee","AS","T2","ON","T1.Manager","=","T2.EmployeeID","GROUP","BY","T1.Manager",";"],"query_toks_no_value":["select","t2",".","name",",","count","(","*",")","from","shipment","as","t1","join","employee","as","t2","on","t1",".","manager","=","t2",".","employeeid","group","by","t1",".","manager"],"question":"Quais são o número de remessas gerenciadas e os nomes de cada gerente?","question_toks":["Quais","são","o","número","de","remessas","gerenciadas","e","os","nomes","de","cada","gerente","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID WHERE T3.Name = \"Mars\";","query_toks":["SELECT","sum","(","T1.Weight",")","FROM","PACKAGE","AS","T1","JOIN","Shipment","AS","T2","ON","T1.Shipment","=","T2.ShipmentID","JOIN","Planet","AS","T3","ON","T2.Planet","=","T3.PlanetID","WHERE","T3.Name","=","``","Mars","''",";"],"query_toks_no_value":["select","sum","(","t1",".","weight",")","from","package","as","t1","join","shipment","as","t2","on","t1",".","shipment","=","t2",".","shipmentid","join","planet","as","t3","on","t2",".","planet","=","t3",".","planetid","where","t3",".","name","=","value"],"question":"Calcule o peso total dos pacotes enviados para Mars.","question_toks":["Calcule","o","peso","total","dos","pacotes","enviados","para","Mars","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[4,[0,[0,21,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT sum(T1.Weight) FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID WHERE T3.Name = \"Mars\";","query_toks":["SELECT","sum","(","T1.Weight",")","FROM","PACKAGE","AS","T1","JOIN","Shipment","AS","T2","ON","T1.Shipment","=","T2.ShipmentID","JOIN","Planet","AS","T3","ON","T2.Planet","=","T3.PlanetID","WHERE","T3.Name","=","``","Mars","''",";"],"query_toks_no_value":["select","sum","(","t1",".","weight",")","from","package","as","t1","join","shipment","as","t2","on","t1",".","shipment","=","t2",".","shipmentid","join","planet","as","t3","on","t2",".","planet","=","t3",".","planetid","where","t3",".","name","=","value"],"question":"Qual é o peso total de todos os pacotes enviados para Mars?","question_toks":["Qual","é","o","peso","total","de","todos","os","pacotes","enviados","para","Mars","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[4,[0,[0,21,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"select t3.name , sum(t1.weight) from package as t1 join shipment as t2 on t1.shipment = t2.shipmentid join planet as t3 on t2.planet = t3.planetid group by t2.planet;","query_toks":["select","t3.name",",","sum","(","t1.weight",")","from","package","as","t1","join","shipment","as","t2","on","t1.shipment","=","t2.shipmentid","join","planet","as","t3","on","t2.planet","=","t3.planetid","group","by","t2.planet",";"],"query_toks_no_value":["select","t3",".","name",",","sum","(","t1",".","weight",")","from","package","as","t1","join","shipment","as","t2","on","t1",".","shipment","=","t2",".","shipmentid","join","planet","as","t3","on","t2",".","planet","=","t3",".","planetid","group","by","t2",".","planet"],"question":"Calcule o peso total dos pacotes enviados em cada planeta. Mostre o nome de cada planeta.","question_toks":["Calcule","o","peso","total","dos","pacotes","enviados","em","cada","planeta",".","Mostre","o","nome","de","cada","planeta","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[4,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"select t3.name , sum(t1.weight) from package as t1 join shipment as t2 on t1.shipment = t2.shipmentid join planet as t3 on t2.planet = t3.planetid group by t2.planet;","query_toks":["select","t3.name",",","sum","(","t1.weight",")","from","package","as","t1","join","shipment","as","t2","on","t1.shipment","=","t2.shipmentid","join","planet","as","t3","on","t2.planet","=","t3.planetid","group","by","t2.planet",";"],"query_toks_no_value":["select","t3",".","name",",","sum","(","t1",".","weight",")","from","package","as","t1","join","shipment","as","t2","on","t1",".","shipment","=","t2",".","shipmentid","join","planet","as","t3","on","t2",".","planet","=","t3",".","planetid","group","by","t2",".","planet"],"question":"Qual é o peso total dos pacotes para cada planeta? Liste seu nome.","question_toks":["Qual","é","o","peso","total","dos","pacotes","para","cada","planeta","?","Liste","seu","nome","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]],[4,[0,[0,21,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T3.Name FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID GROUP BY T2.Planet HAVING sum(T1.Weight) > 30;","query_toks":["SELECT","T3.Name","FROM","PACKAGE","AS","T1","JOIN","Shipment","AS","T2","ON","T1.Shipment","=","T2.ShipmentID","JOIN","Planet","AS","T3","ON","T2.Planet","=","T3.PlanetID","GROUP","BY","T2.Planet","HAVING","sum","(","T1.Weight",")",">","30",";"],"query_toks_no_value":["select","t3",".","name","from","package","as","t1","join","shipment","as","t2","on","t1",".","shipment","=","t2",".","shipmentid","join","planet","as","t3","on","t2",".","planet","=","t3",".","planetid","group","by","t2",".","planet","having","sum","(","t1",".","weight",")",">","value"],"question":"Qual planeta tem peso total de envio superior a 30? Liste o nome do planeta.","question_toks":["Qual","planeta","tem","peso","total","de","envio","superior","a","30","?","Liste","o","nome","do","planeta","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,3,[0,[4,21,false],null],30.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T3.Name FROM PACKAGE AS T1 JOIN Shipment AS T2 ON T1.Shipment = T2.ShipmentID JOIN Planet AS T3 ON T2.Planet = T3.PlanetID GROUP BY T2.Planet HAVING sum(T1.Weight) > 30;","query_toks":["SELECT","T3.Name","FROM","PACKAGE","AS","T1","JOIN","Shipment","AS","T2","ON","T1.Shipment","=","T2.ShipmentID","JOIN","Planet","AS","T3","ON","T2.Planet","=","T3.PlanetID","GROUP","BY","T2.Planet","HAVING","sum","(","T1.Weight",")",">","30",";"],"query_toks_no_value":["select","t3",".","name","from","package","as","t1","join","shipment","as","t2","on","t1",".","shipment","=","t2",".","shipmentid","join","planet","as","t3","on","t2",".","planet","=","t3",".","planetid","group","by","t2",".","planet","having","sum","(","t1",".","weight",")",">","value"],"question":"Quais são os nomes de todos os planetas que têm um peso total de remessa superior a 30?","question_toks":["Quais","são","os","nomes","de","todos","os","planetas","que","têm","um","peso","total","de","remessa","superior","a","30","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,3,[0,[4,21,false],null],30.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = \"Zapp Brannigan\" AND T4.Name = \"Omicron Persei 8\";","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","JOIN","Shipment","AS","T3","ON","T1.Shipment","=","T3.ShipmentID","JOIN","Planet","AS","T4","ON","T3.Planet","=","T4.PlanetID","WHERE","T2.Name","=","``","Zapp","Brannigan","''","AND","T4.Name","=","``","Omicron","Persei","8","''",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","join","shipment","as","t3","on","t1",".","shipment","=","t3",".","shipmentid","join","planet","as","t4","on","t3",".","planet","=","t4",".","planetid","where","t2",".","name","=","value","and","t4",".","name","=","value"],"question":"Liste o número do pacote enviado no planeta Omicron Persei 8 e enviado por Zapp Brannigan.","question_toks":["Liste","o","número","do","pacote","enviado","no","planeta","Omicron","Persei","8","e","enviado","por","Zapp","Brannigan","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null],"and",[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Zapp Brannigan\"",null],"and",[false,2,[0,[0,7,false],null],"\"Omicron Persei 8\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = \"Zapp Brannigan\" AND T4.Name = \"Omicron Persei 8\";","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","JOIN","Shipment","AS","T3","ON","T1.Shipment","=","T3.ShipmentID","JOIN","Planet","AS","T4","ON","T3.Planet","=","T4.PlanetID","WHERE","T2.Name","=","``","Zapp","Brannigan","''","AND","T4.Name","=","``","Omicron","Persei","8","''",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","join","shipment","as","t3","on","t1",".","shipment","=","t3",".","shipmentid","join","planet","as","t4","on","t3",".","planet","=","t4",".","planetid","where","t2",".","name","=","value","and","t4",".","name","=","value"],"question":"Qual é o número de pacotes enviados por Zapp Brannigan e despachados para Omicron Persei 8?","question_toks":["Qual","é","o","número","de","pacotes","enviados","por","Zapp","Brannigan","e","despachados","para","Omicron","Persei","8","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null],"and",[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Zapp Brannigan\"",null],"and",[false,2,[0,[0,7,false],null],"\"Omicron Persei 8\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = \"Zapp Brannigan\" OR T4.Name = \"Omicron Persei 8\";","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","JOIN","Shipment","AS","T3","ON","T1.Shipment","=","T3.ShipmentID","JOIN","Planet","AS","T4","ON","T3.Planet","=","T4.PlanetID","WHERE","T2.Name","=","``","Zapp","Brannigan","''","OR","T4.Name","=","``","Omicron","Persei","8","''",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","join","shipment","as","t3","on","t1",".","shipment","=","t3",".","shipmentid","join","planet","as","t4","on","t3",".","planet","=","t4",".","planetid","where","t2",".","name","=","value","or","t4",".","name","=","value"],"question":"Liste o número dos pacotes enviados para o planeta Omicron Persei 8 ou enviados por Zapp Brannigan.","question_toks":["Liste","o","número","dos","pacotes","enviados","para","o","planeta","Omicron","Persei","8","ou","enviados","por","Zapp","Brannigan","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null],"and",[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Zapp Brannigan\"",null],"or",[false,2,[0,[0,7,false],null],"\"Omicron Persei 8\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T1.PackageNumber FROM PACKAGE AS T1 JOIN Client AS T2 ON T1.Sender = T2.AccountNumber JOIN Shipment AS T3 ON T1.Shipment = T3.ShipmentID JOIN Planet AS T4 ON T3.Planet = T4.PlanetID WHERE T2.Name = \"Zapp Brannigan\" OR T4.Name = \"Omicron Persei 8\";","query_toks":["SELECT","T1.PackageNumber","FROM","PACKAGE","AS","T1","JOIN","Client","AS","T2","ON","T1.Sender","=","T2.AccountNumber","JOIN","Shipment","AS","T3","ON","T1.Shipment","=","T3.ShipmentID","JOIN","Planet","AS","T4","ON","T3.Planet","=","T4.PlanetID","WHERE","T2.Name","=","``","Zapp","Brannigan","''","OR","T4.Name","=","``","Omicron","Persei","8","''",";"],"query_toks_no_value":["select","t1",".","packagenumber","from","package","as","t1","join","client","as","t2","on","t1",".","sender","=","t2",".","accountnumber","join","shipment","as","t3","on","t1",".","shipment","=","t3",".","shipmentid","join","planet","as","t4","on","t3",".","planet","=","t4",".","planetid","where","t2",".","name","=","value","or","t4",".","name","=","value"],"question":"Qual é o número de pacotes enviados para o planeta Omicron Persei 8 ou enviados por Zapp Brannigan?","question_toks":["Qual","é","o","número","de","pacotes","enviados","para","o","planeta","Omicron","Persei","8","ou","enviados","por","Zapp","Brannigan","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,22,false],null],[0,16,false],null],"and",[false,2,[0,[0,18,false],null],[0,9,false],null],"and",[false,2,[0,[0,12,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,17,false],null],"\"Zapp Brannigan\"",null],"or",[false,2,[0,[0,7,false],null],"\"Omicron Persei 8\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT PackageNumber , Weight FROM PACKAGE WHERE Weight BETWEEN 10 AND 30;","query_toks":["SELECT","PackageNumber",",","Weight","FROM","PACKAGE","WHERE","Weight","BETWEEN","10","AND","30",";"],"query_toks_no_value":["select","packagenumber",",","weight","from","package","where","weight","between","value","and","value"],"question":"Quais pacotes têm peso entre 10 e 30? Liste o número do pacote e o peso.","question_toks":["Quais","pacotes","têm","peso","entre","10","e","30","?","Liste","o","número","do","pacote","e","o","peso","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,21,false],null]]]],"where":[[false,1,[0,[0,21,false],null],10.0,30.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT PackageNumber , Weight FROM PACKAGE WHERE Weight BETWEEN 10 AND 30;","query_toks":["SELECT","PackageNumber",",","Weight","FROM","PACKAGE","WHERE","Weight","BETWEEN","10","AND","30",";"],"query_toks_no_value":["select","packagenumber",",","weight","from","package","where","weight","between","value","and","value"],"question":"Quais são os números e pesos dos pacotes que estão entre 10 e 30?","question_toks":["Quais","são","os","números","e","pesos","dos","pacotes","que","estão","entre","10","e","30","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,21,false],null]]]],"where":[[false,1,[0,[0,21,false],null],10.0,30.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Name FROM Employee EXCEPT SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = \"Mars\";","query_toks":["SELECT","Name","FROM","Employee","EXCEPT","SELECT","T2.Name","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","JOIN","Planet","AS","T3","ON","T1.Planet","=","T3.PlanetID","WHERE","T3.Name","=","``","Mars","''",";"],"query_toks_no_value":["select","name","from","employee","except","select","t2",".","name","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","where","t3",".","name","=","value"],"question":"Quais funcionários não têm autorização em Mars? Liste o nome dos funcionários.","question_toks":["Quais","funcionários","não","têm","autorização","em","Mars","?","Liste","o","nome","dos","funcionários","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"planet_1","query":"SELECT Name FROM Employee EXCEPT SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = \"Mars\";","query_toks":["SELECT","Name","FROM","Employee","EXCEPT","SELECT","T2.Name","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","JOIN","Planet","AS","T3","ON","T1.Planet","=","T3.PlanetID","WHERE","T3.Name","=","``","Mars","''",";"],"query_toks_no_value":["select","name","from","employee","except","select","t2",".","name","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","where","t3",".","name","=","value"],"question":"Quais são os nomes de todos os funcionários que não têm autorização em Mars?","question_toks":["Quais","são","os","nomes","de","todos","os","funcionários","que","não","têm","autorização","em","Mars","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Mars\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"planet_1","query":"SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = \"Omega III\";","query_toks":["SELECT","T2.Name","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","JOIN","Planet","AS","T3","ON","T1.Planet","=","T3.PlanetID","WHERE","T3.Name","=","``","Omega","III","''",";"],"query_toks_no_value":["select","t2",".","name","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","where","t3",".","name","=","value"],"question":"Quais funcionários têm autorização em Omega III? Liste os nomes dos funcionários.","question_toks":["Quais","funcionários","têm","autorização","em","Omega","III","?","Liste","os","nomes","dos","funcionários","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Omega III\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T2.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID WHERE T3.Name = \"Omega III\";","query_toks":["SELECT","T2.Name","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","JOIN","Planet","AS","T3","ON","T1.Planet","=","T3.PlanetID","WHERE","T3.Name","=","``","Omega","III","''",";"],"query_toks_no_value":["select","t2",".","name","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","where","t3",".","name","=","value"],"question":"Quais são os nomes de todos os funcionários com autorização em Omega III?","question_toks":["Quais","são","os","nomes","de","todos","os","funcionários","com","autorização","em","Omega","III","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"Omega III\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T3.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID GROUP BY T1.Planet HAVING count(*) = 1;","query_toks":["SELECT","T3.Name","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","JOIN","Planet","AS","T3","ON","T1.Planet","=","T3.PlanetID","GROUP","BY","T1.Planet","HAVING","count","(","*",")","=","1",";"],"query_toks_no_value":["select","t3",".","name","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","group","by","t1",".","planet","having","count","(","*",")","=","value"],"question":"Quais planetas que têm exatamente um funcionário com autorização? Liste os nomes dos planetas.","question_toks":["Quais","planetas","que","têm","exatamente","um","funcionário","com","autorização","?","Liste","os","nomes","dos","planetas","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT T3.Name FROM Has_Clearance AS T1 JOIN Employee AS T2 ON T1.Employee = T2.EmployeeID JOIN Planet AS T3 ON T1.Planet = T3.PlanetID GROUP BY T1.Planet HAVING count(*) = 1;","query_toks":["SELECT","T3.Name","FROM","Has_Clearance","AS","T1","JOIN","Employee","AS","T2","ON","T1.Employee","=","T2.EmployeeID","JOIN","Planet","AS","T3","ON","T1.Planet","=","T3.PlanetID","GROUP","BY","T1.Planet","HAVING","count","(","*",")","=","1",";"],"query_toks_no_value":["select","t3",".","name","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","group","by","t1",".","planet","having","count","(","*",")","=","value"],"question":"Quais são os nomes de todos os planetas com um funcionário que tem autorização?","question_toks":["Quais","são","os","nomes","de","todos","os","planetas","com","um","funcionário","que","tem","autorização","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,14,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Name FROM Employee WHERE Salary BETWEEN 5000 AND 10000","query_toks":["SELECT","Name","FROM","Employee","WHERE","Salary","BETWEEN","5000","AND","10000"],"query_toks_no_value":["select","name","from","employee","where","salary","between","value","and","value"],"question":"Quais funcionários têm salários entre 5000 e 10000? Liste os nomes dos funcionários.","question_toks":["Quais","funcionários","têm","salários","entre","5000","e","10000","?","Liste","os","nomes","dos","funcionários","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,1,[0,[0,4,false],null],5000.0,10000.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Name FROM Employee WHERE Salary BETWEEN 5000 AND 10000","query_toks":["SELECT","Name","FROM","Employee","WHERE","Salary","BETWEEN","5000","AND","10000"],"query_toks_no_value":["select","name","from","employee","where","salary","between","value","and","value"],"question":"Quais são os nomes dos funcionários que têm salários entre 5000 e 10000?","question_toks":["Quais","são","os","nomes","dos","funcionários","que","têm","salários","entre","5000","e","10000","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,1,[0,[0,4,false],null],5000.0,10000.0]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"planet_1","query":"SELECT Name FROM Employee WHERE Salary > 5000 OR Salary > (SELECT avg(salary) FROM employee)","query_toks":["SELECT","Name","FROM","Employee","WHERE","Salary",">","5000","OR","Salary",">","(","SELECT","avg","(","salary",")","FROM","employee",")"],"query_toks_no_value":["select","name","from","employee","where","salary",">","value","or","salary",">","(","select","avg","(","salary",")","from","employee",")"],"question":"Encontre o nome dos funcionários cujo salário está acima do salário médio ou mais de 5000.","question_toks":["Encontre","o","nome","dos","funcionários","cujo","salário","está","acima","do","salário","médio","ou","mais","de","5000","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,4,false],null],5000.0,null],"or",[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"planet_1","query":"SELECT Name FROM Employee WHERE Salary > 5000 OR Salary > (SELECT avg(salary) FROM employee)","query_toks":["SELECT","Name","FROM","Employee","WHERE","Salary",">","5000","OR","Salary",">","(","SELECT","avg","(","salary",")","FROM","employee",")"],"query_toks_no_value":["select","name","from","employee","where","salary",">","value","or","salary",">","(","select","avg","(","salary",")","from","employee",")"],"question":"Quais são os nomes de todos os funcionários que têm um salário maior que a média ou mais de 5000?","question_toks":["Quais","são","os","nomes","de","todos","os","funcionários","que","têm","um","salário","maior","que","a","média","ou","mais","de","5000","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,3,[0,[0,4,false],null],5000.0,null],"or",[false,3,[0,[0,4,false],null],{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,4,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":"planet_1","query":"select count(*) from employee where employeeid not in ( select t2.employeeid from has_clearance as t1 join employee as t2 on t1.employee = t2.employeeid join planet as t3 on t1.planet = t3.planetid where t3.name = \"mars\" );","query_toks":["select","count","(","*",")","from","employee","where","employeeid","not","in","(","select","t2.employeeid","from","has_clearance","as","t1","join","employee","as","t2","on","t1.employee","=","t2.employeeid","join","planet","as","t3","on","t1.planet","=","t3.planetid","where","t3.name","=","\"mars\"",")",";"],"query_toks_no_value":["select","count","(","*",")","from","employee","where","employeeid","not","in","(","select","t2",".","employeeid","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","where","t3",".","name","=","value",")"],"question":"Encontre o número de funcionários que não têm autorização em Mars.","question_toks":["Encontre","o","número","de","funcionários","que","não","têm","autorização","em","Mars","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"mars\"",null]],"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":"planet_1","query":"select count(*) from employee where employeeid not in ( select t2.employeeid from has_clearance as t1 join employee as t2 on t1.employee = t2.employeeid join planet as t3 on t1.planet = t3.planetid where t3.name = \"mars\" );","query_toks":["select","count","(","*",")","from","employee","where","employeeid","not","in","(","select","t2.employeeid","from","has_clearance","as","t1","join","employee","as","t2","on","t1.employee","=","t2.employeeid","join","planet","as","t3","on","t1.planet","=","t3.planetid","where","t3.name","=","\"mars\"",")",";"],"query_toks_no_value":["select","count","(","*",")","from","employee","where","employeeid","not","in","(","select","t2",".","employeeid","from","has_clearance","as","t1","join","employee","as","t2","on","t1",".","employee","=","t2",".","employeeid","join","planet","as","t3","on","t1",".","planet","=","t3",".","planetid","where","t3",".","name","=","value",")"],"question":"Qual é o número de funcionários que não têm autorização em Mars?","question_toks":["Qual","é","o","número","de","funcionários","que","não","têm","autorização","em","Mars","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",3],["table_unit",0],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,1,false],null],"and",[false,2,[0,[0,14,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"mars\"",null]],"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":"video_game","query":"SELECT count(*) FROM game","query_toks":["SELECT","count","(","*",")","FROM","game"],"query_toks_no_value":["select","count","(","*",")","from","game"],"question":"Quantos jogos existem?","question_toks":["Quantos","jogos","existem","?"],"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":"video_game","query":"SELECT count(*) FROM game","query_toks":["SELECT","count","(","*",")","FROM","game"],"query_toks_no_value":["select","count","(","*",")","from","game"],"question":"Conte o número de jogos.","question_toks":["Conte","o","número","de","jogos","."],"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":"video_game","query":"SELECT Title , Developers FROM game ORDER BY Units_sold_Millions DESC","query_toks":["SELECT","Title",",","Developers","FROM","game","ORDER","BY","Units_sold_Millions","DESC"],"query_toks_no_value":["select","title",",","developers","from","game","order","by","units_sold_millions","desc"],"question":"Liste o Título e os Desenvolvedores de todos os jogos ordenados pelo número de unidades vendidas do maior para o menor.","question_toks":["Liste","o","Título","e","os","Desenvolvedores","de","todos","os","jogos","ordenados","pelo","número","de","unidades","vendidas","do","maior","para","o","menor","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Title , Developers FROM game ORDER BY Units_sold_Millions DESC","query_toks":["SELECT","Title",",","Developers","FROM","game","ORDER","BY","Units_sold_Millions","DESC"],"query_toks_no_value":["select","title",",","developers","from","game","order","by","units_sold_millions","desc"],"question":"Quais são os títulos e desenvolvedores de todos os jogos, ordenados por unidades vendidas em ordem decrescente?","question_toks":["Quais","são","os","títulos","e","desenvolvedores","de","todos","os","jogos",",","ordenados","por","unidades","vendidas","em","ordem","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,11,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT avg(Units_sold_Millions) FROM game WHERE developers != 'Nintendo'","query_toks":["SELECT","avg","(","Units_sold_Millions",")","FROM","game","WHERE","developers","!","=","'Nintendo","'"],"query_toks_no_value":["select","avg","(","units_sold_millions",")","from","game","where","developers","!","=","value"],"question":"Qual é a média de unidades vendidas em milhões dos jogos que não foram desenvolvidos pela Nintendo?","question_toks":["Qual","é","a","média","de","unidades","vendidas","em","milhões","dos","jogos","que","não","foram","desenvolvidos","pela","Nintendo","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[[false,7,[0,[0,9,false],null],"\"Nintendo\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT avg(Units_sold_Millions) FROM game WHERE developers != 'Nintendo'","query_toks":["SELECT","avg","(","Units_sold_Millions",")","FROM","game","WHERE","developers","!","=","'Nintendo","'"],"query_toks_no_value":["select","avg","(","units_sold_millions",")","from","game","where","developers","!","=","value"],"question":"Retorne a média do número de unidades vendidas em milhões para jogos não desenvolvidos pela Nintendo.","question_toks":["Retorne","a","média","do","número","de","unidades","vendidas","em","milhões","para","jogos","não","desenvolvidos","pela","Nintendo","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[[false,7,[0,[0,9,false],null],"\"Nintendo\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Platform_name , Market_district FROM platform","query_toks":["SELECT","Platform_name",",","Market_district","FROM","platform"],"query_toks_no_value":["select","platform_name",",","market_district","from","platform"],"question":"Quais são os nomes e os distritos de mercado de todas as plataformas?","question_toks":["Quais","são","os","nomes","e","os","distritos","de","mercado","de","todas","as","plataformas","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Platform_name , Market_district FROM platform","query_toks":["SELECT","Platform_name",",","Market_district","FROM","platform"],"query_toks_no_value":["select","platform_name",",","market_district","from","platform"],"question":"Retorne todos os nomes de plataformas e os respectivos distritos de mercado.","question_toks":["Retorne","todos","os","nomes","de","plataformas","e","os","respectivos","distritos","de","mercado","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Platform_name , Platform_ID FROM platform WHERE Download_rank = 1","query_toks":["SELECT","Platform_name",",","Platform_ID","FROM","platform","WHERE","Download_rank","=","1"],"query_toks_no_value":["select","platform_name",",","platform_id","from","platform","where","download_rank","=","value"],"question":"Quais são os nomes e ids das plataformas cujo ranking de download é 1?","question_toks":["Quais","são","os","nomes","e","ids","das","plataformas","cujo","ranking","de","download","é","1","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,4,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Platform_name , Platform_ID FROM platform WHERE Download_rank = 1","query_toks":["SELECT","Platform_name",",","Platform_ID","FROM","platform","WHERE","Download_rank","=","1"],"query_toks_no_value":["select","platform_name",",","platform_id","from","platform","where","download_rank","=","value"],"question":"Retorne os nomes e ids de todas as plataformas com o ranking de download igual a 1.","question_toks":["Retorne","os","nomes","e","ids","de","todas","as","plataformas","com","o","ranking","de","download","igual","a","1","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,1,false],null]]]],"where":[[false,2,[0,[0,4,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT max(Rank_of_the_year) , min(Rank_of_the_year) FROM player","query_toks":["SELECT","max","(","Rank_of_the_year",")",",","min","(","Rank_of_the_year",")","FROM","player"],"query_toks_no_value":["select","max","(","rank_of_the_year",")",",","min","(","rank_of_the_year",")","from","player"],"question":"Quais são o maior e o menor ranking do ano dos jogadores?","question_toks":["Quais","são","o","maior","e","o","menor","ranking","do","ano","dos","jogadores","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[1,[0,[0,13,false],null]],[2,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT max(Rank_of_the_year) , min(Rank_of_the_year) FROM player","query_toks":["SELECT","max","(","Rank_of_the_year",")",",","min","(","Rank_of_the_year",")","FROM","player"],"query_toks_no_value":["select","max","(","rank_of_the_year",")",",","min","(","rank_of_the_year",")","from","player"],"question":"Dê o ranking máximo e mínimo do ano entre todos os jogadores.","question_toks":["Dê","o","ranking","máximo","e","mínimo","do","ano","entre","todos","os","jogadores","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[1,[0,[0,13,false],null]],[2,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT count(*) FROM player WHERE Rank_of_the_year <= 3","query_toks":["SELECT","count","(","*",")","FROM","player","WHERE","Rank_of_the_year","<","=","3"],"query_toks_no_value":["select","count","(","*",")","from","player","where","rank_of_the_year","<","=","value"],"question":"Conte quantos jogadores têm classificação do ano menor que 3.","question_toks":["Conte","quantos","jogadores","têm","classificação","do","ano","menor","que","3","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,6,[0,[0,13,false],null],3.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT count(*) FROM player WHERE Rank_of_the_year <= 3","query_toks":["SELECT","count","(","*",")","FROM","player","WHERE","Rank_of_the_year","<","=","3"],"query_toks_no_value":["select","count","(","*",")","from","player","where","rank_of_the_year","<","=","value"],"question":"Conte o número de jogadores que têm um ranking do ano de no máximo 3.","question_toks":["Conte","o","número","de","jogadores","que","têm","um","ranking","do","ano","de","no","máximo","3","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,6,[0,[0,13,false],null],3.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Player_name FROM player ORDER BY Player_name ASC","query_toks":["SELECT","Player_name","FROM","player","ORDER","BY","Player_name","ASC"],"query_toks_no_value":["select","player_name","from","player","order","by","player_name","asc"],"question":"Liste todos os nomes dos jogadores em ordem alfabética ascendente.","question_toks":["Liste","todos","os","nomes","dos","jogadores","em","ordem","alfabética","ascendente","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,14,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Player_name FROM player ORDER BY Player_name ASC","query_toks":["SELECT","Player_name","FROM","player","ORDER","BY","Player_name","ASC"],"query_toks_no_value":["select","player_name","from","player","order","by","player_name","asc"],"question":"Quais são os nomes de todos os jogadores em ordem alfabética?","question_toks":["Quais","são","os","nomes","de","todos","os","jogadores","em","ordem","alfabética","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["asc",[[0,[0,14,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Player_name , College FROM player ORDER BY Rank_of_the_year DESC","query_toks":["SELECT","Player_name",",","College","FROM","player","ORDER","BY","Rank_of_the_year","DESC"],"query_toks_no_value":["select","player_name",",","college","from","player","order","by","rank_of_the_year","desc"],"question":"Liste os nomes e faculdades de todos os jogadores em ordem decrescente de classificação do ano.","question_toks":["Liste","os","nomes","e","faculdades","de","todos","os","jogadores","em","ordem","decrescente","de","classificação","do","ano","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,13,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Player_name , College FROM player ORDER BY Rank_of_the_year DESC","query_toks":["SELECT","Player_name",",","College","FROM","player","ORDER","BY","Rank_of_the_year","DESC"],"query_toks_no_value":["select","player_name",",","college","from","player","order","by","rank_of_the_year","desc"],"question":"Quais são os nomes e faculdades de todos os jogadores, ordenados por classificação do ano em ordem decrescente?","question_toks":["Quais","são","os","nomes","e","faculdades","de","todos","os","jogadores",",","ordenados","por","classificação","do","ano","em","ordem","decrescente","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,16,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,13,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT T3.Player_name , T3.rank_of_the_year FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T1.Title = \"Super Mario World\"","query_toks":["SELECT","T3.Player_name",",","T3.rank_of_the_year","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T1.Title","=","``","Super","Mario","World","''"],"query_toks_no_value":["select","t3",".","player_name",",","t3",".","rank_of_the_year","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t1",".","title","=","value"],"question":"Mostre os nomes e a classificação dos jogadores que jogaram o jogo intitulado \"Super Mario World\".","question_toks":["Mostre","os","nomes","e","a","classificação","dos","jogadores","que","jogaram","o","jogo","intitulado","``","Super","Mario","World","''","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Super Mario World\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT T3.Player_name , T3.rank_of_the_year FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T1.Title = \"Super Mario World\"","query_toks":["SELECT","T3.Player_name",",","T3.rank_of_the_year","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T1.Title","=","``","Super","Mario","World","''"],"query_toks_no_value":["select","t3",".","player_name",",","t3",".","rank_of_the_year","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t1",".","title","=","value"],"question":"Quais são os nomes e classificações dos jogadores que jogaram o jogo com o título \"Super Mario World\"?","question_toks":["Quais","são","os","nomes","e","classificações","dos","jogadores","que","jogaram","o","jogo","com","o","título","``","Super","Mario","World","''","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Super Mario World\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT DISTINCT T1.Developers FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Auburn\"","query_toks":["SELECT","DISTINCT","T1.Developers","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.College","=","``","Auburn","''"],"query_toks_no_value":["select","distinct","t1",".","developers","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","college","=","value"],"question":"Mostre o desenvolvedor distinto dos jogos jogados por jogadores que vão para a faculdade \"Auburn\".","question_toks":["Mostre","o","desenvolvedor","distinto","dos","jogos","jogados","por","jogadores","que","vão","para","a","faculdade","``","Auburn","''","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Auburn\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT DISTINCT T1.Developers FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Auburn\"","query_toks":["SELECT","DISTINCT","T1.Developers","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.College","=","``","Auburn","''"],"query_toks_no_value":["select","distinct","t1",".","developers","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","college","=","value"],"question":"Quais são os diferentes desenvolvedores de jogos que são jogados por jogadores que frequentam a faculdade de Auburn?","question_toks":["Quais","são","os","diferentes","desenvolvedores","de","jogos","que","são","jogados","por","jogadores","que","frequentam","a","faculdade","de","Auburn","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[true,[[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Auburn\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT avg(Units_sold_Millions) FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.Position = \"Guard\"","query_toks":["SELECT","avg","(","Units_sold_Millions",")","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.Position","=","``","Guard","''"],"query_toks_no_value":["select","avg","(","units_sold_millions",")","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","position","=","value"],"question":"Qual é a média do número de unidades vendidas em milhões de jogos jogados por jogadores com a posição \"Guard\"?","question_toks":["Qual","é","a","média","do","número","de","unidades","vendidas","em","milhões","de","jogos","jogados","por","jogadores","com","a","posição","``","Guard","''","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"Guard\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT avg(Units_sold_Millions) FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.Position = \"Guard\"","query_toks":["SELECT","avg","(","Units_sold_Millions",")","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.Position","=","``","Guard","''"],"query_toks_no_value":["select","avg","(","units_sold_millions",")","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","position","=","value"],"question":"Retorne a média do número de unidades vendidas em milhões entre os jogos jogados por jogadores que têm a posição Guard.","question_toks":["Retorne","a","média","do","número","de","unidades","vendidas","em","milhões","entre","os","jogos","jogados","por","jogadores","que","têm","a","posição","Guard","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[5,[0,[0,11,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"Guard\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT T1.Title , T2.Platform_name FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID = T2.Platform_ID","query_toks":["SELECT","T1.Title",",","T2.Platform_name","FROM","game","AS","T1","JOIN","platform","AS","T2","ON","T1.Platform_ID","=","T2.Platform_ID"],"query_toks_no_value":["select","t1",".","title",",","t2",".","platform_name","from","game","as","t1","join","platform","as","t2","on","t1",".","platform_id","=","t2",".","platform_id"],"question":"Liste o título e o nome da plataforma dos jogos.","question_toks":["Liste","o","título","e","o","nome","da","plataforma","dos","jogos","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT T1.Title , T2.Platform_name FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID = T2.Platform_ID","query_toks":["SELECT","T1.Title",",","T2.Platform_name","FROM","game","AS","T1","JOIN","platform","AS","T2","ON","T1.Platform_ID","=","T2.Platform_ID"],"query_toks_no_value":["select","t1",".","title",",","t2",".","platform_name","from","game","as","t1","join","platform","as","t2","on","t1",".","platform_id","=","t2",".","platform_id"],"question":"Quais são os títulos e os nomes das plataformas de todos os jogos?","question_toks":["Quais","são","os","títulos","e","os","nomes","das","plataformas","de","todos","os","jogos","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID = T2.Platform_ID WHERE T2.Market_district = \"Asia\" OR T2.Market_district = \"USA\"","query_toks":["SELECT","T1.Title","FROM","game","AS","T1","JOIN","platform","AS","T2","ON","T1.Platform_ID","=","T2.Platform_ID","WHERE","T2.Market_district","=","``","Asia","''","OR","T2.Market_district","=","``","USA","''"],"query_toks_no_value":["select","t1",".","title","from","game","as","t1","join","platform","as","t2","on","t1",".","platform_id","=","t2",".","platform_id","where","t2",".","market_district","=","value","or","t2",".","market_district","=","value"],"question":"Liste o título dos jogos com plataformas que têm distrito de mercado na Asia ou nos USA.","question_toks":["Liste","o","título","dos","jogos","com","plataformas","que","têm","distrito","de","mercado","na","Asia","ou","nos","USA","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Asia\"",null],"or",[false,2,[0,[0,3,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT T1.Title FROM game AS T1 JOIN platform AS T2 ON T1.Platform_ID = T2.Platform_ID WHERE T2.Market_district = \"Asia\" OR T2.Market_district = \"USA\"","query_toks":["SELECT","T1.Title","FROM","game","AS","T1","JOIN","platform","AS","T2","ON","T1.Platform_ID","=","T2.Platform_ID","WHERE","T2.Market_district","=","``","Asia","''","OR","T2.Market_district","=","``","USA","''"],"query_toks_no_value":["select","t1",".","title","from","game","as","t1","join","platform","as","t2","on","t1",".","platform_id","=","t2",".","platform_id","where","t2",".","market_district","=","value","or","t2",".","market_district","=","value"],"question":"Quais são os títulos dos jogos que têm plataformas nos distritos de mercado da Asia ou dos USA?","question_toks":["Quais","são","os","títulos","dos","jogos","que","têm","plataformas","nos","distritos","de","mercado","da","Asia","ou","dos","USA","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,10,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"Asia\"",null],"or",[false,2,[0,[0,3,false],null],"\"USA\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Franchise , COUNT(*) FROM game GROUP BY Franchise","query_toks":["SELECT","Franchise",",","COUNT","(","*",")","FROM","game","GROUP","BY","Franchise"],"query_toks_no_value":["select","franchise",",","count","(","*",")","from","game","group","by","franchise"],"question":"Liste o nome de cada franquia e o número de jogos pertencentes a essa franquia.","question_toks":["Liste","o","nome","de","cada","franquia","e","o","número","de","jogos","pertencentes","a","essa","franquia","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Franchise , COUNT(*) FROM game GROUP BY Franchise","query_toks":["SELECT","Franchise",",","COUNT","(","*",")","FROM","game","GROUP","BY","Franchise"],"query_toks_no_value":["select","franchise",",","count","(","*",")","from","game","group","by","franchise"],"question":"Quantos jogos existem de cada franquia?","question_toks":["Quantos","jogos","existem","de","cada","franquia","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Franchise FROM game GROUP BY Franchise ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Franchise","FROM","game","GROUP","BY","Franchise","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","franchise","from","game","group","by","franchise","order","by","count","(","*",")","desc","limit","value"],"question":"Liste o nome da franquia que tem o maior número de jogos.","question_toks":["Liste","o","nome","da","franquia","que","tem","o","maior","número","de","jogos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Franchise FROM game GROUP BY Franchise ORDER BY COUNT(*) DESC LIMIT 1","query_toks":["SELECT","Franchise","FROM","game","GROUP","BY","Franchise","ORDER","BY","COUNT","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","franchise","from","game","group","by","franchise","order","by","count","(","*",")","desc","limit","value"],"question":"Qual franquia tem mais jogos?","question_toks":["Qual","franquia","tem","mais","jogos","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Franchise FROM game GROUP BY Franchise HAVING COUNT(*) >= 2","query_toks":["SELECT","Franchise","FROM","game","GROUP","BY","Franchise","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","franchise","from","game","group","by","franchise","having","count","(","*",")",">","=","value"],"question":"Liste os nomes das franquias que têm pelo menos dois jogos.","question_toks":["Liste","os","nomes","das","franquias","que","têm","pelo","menos","dois","jogos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Franchise FROM game GROUP BY Franchise HAVING COUNT(*) >= 2","query_toks":["SELECT","Franchise","FROM","game","GROUP","BY","Franchise","HAVING","COUNT","(","*",")",">","=","2"],"query_toks_no_value":["select","franchise","from","game","group","by","franchise","having","count","(","*",")",">","=","value"],"question":"Quais são os nomes das franquias que têm dois ou mais jogos?","question_toks":["Quais","são","os","nomes","das","franquias","que","têm","dois","ou","mais","jogos","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM game_player)","query_toks":["SELECT","Player_name","FROM","player","WHERE","Player_ID","NOT","IN","(","SELECT","Player_ID","FROM","game_player",")"],"query_toks_no_value":["select","player_name","from","player","where","player_id","not","in","(","select","player_id","from","game_player",")"],"question":"Liste o nome dos jogadores que não jogam nenhuma partida.","question_toks":["Liste","o","nome","dos","jogadores","que","não","jogam","nenhuma","partida","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[true,8,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,17,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":"video_game","query":"SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM game_player)","query_toks":["SELECT","Player_name","FROM","player","WHERE","Player_ID","NOT","IN","(","SELECT","Player_ID","FROM","game_player",")"],"query_toks_no_value":["select","player_name","from","player","where","player_id","not","in","(","select","player_id","from","game_player",")"],"question":"Quais são os nomes dos jogadores que não jogam nenhuma partida?","question_toks":["Quais","são","os","nomes","dos","jogadores","que","não","jogam","nenhuma","partida","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,14,false],null]]]],"where":[[true,8,[0,[0,12,false],null],{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,17,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":"video_game","query":"SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Oklahoma\" INTERSECT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Auburn\"","query_toks":["SELECT","T1.Title","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.College","=","``","Oklahoma","''","INTERSECT","SELECT","T1.Title","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.College","=","``","Auburn","''"],"query_toks_no_value":["select","t1",".","title","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","college","=","value","intersect","select","t1",".","title","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","college","=","value"],"question":"Mostre o título dos jogos que são jogados por jogadores da faculdade \"Oklahoma\" e por jogadores da faculdade \"Auburn\".","question_toks":["Mostre","o","título","dos","jogos","que","são","jogados","por","jogadores","da","faculdade","``","Oklahoma","''","e","por","jogadores","da","faculdade","``","Auburn","''","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Oklahoma\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Auburn\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"video_game","query":"SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Oklahoma\" INTERSECT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.College = \"Auburn\"","query_toks":["SELECT","T1.Title","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.College","=","``","Oklahoma","''","INTERSECT","SELECT","T1.Title","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.College","=","``","Auburn","''"],"query_toks_no_value":["select","t1",".","title","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","college","=","value","intersect","select","t1",".","title","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","college","=","value"],"question":"Quais são os títulos dos jogos que são jogados por jogadores da faculdade de Oklahoma ou da faculdade de Auburn?","question_toks":["Quais","são","os","títulos","dos","jogos","que","são","jogados","por","jogadores","da","faculdade","de","Oklahoma","ou","da","faculdade","de","Auburn","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Oklahoma\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,16,false],null],"\"Auburn\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"video_game","query":"SELECT DISTINCT Franchise FROM game","query_toks":["SELECT","DISTINCT","Franchise","FROM","game"],"query_toks_no_value":["select","distinct","franchise","from","game"],"question":"Mostre todas as franquias distintas de jogos.","question_toks":["Mostre","todas","as","franquias","distintas","de","jogos","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT DISTINCT Franchise FROM game","query_toks":["SELECT","DISTINCT","Franchise","FROM","game"],"query_toks_no_value":["select","distinct","franchise","from","game"],"question":"Quais são todas as franquias distintas?","question_toks":["Quais","são","todas","as","franquias","distintas","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[true,[[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"video_game","query":"SELECT Title FROM game EXCEPT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.Position = \"Guard\"","query_toks":["SELECT","Title","FROM","game","EXCEPT","SELECT","T1.Title","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.Position","=","``","Guard","''"],"query_toks_no_value":["select","title","from","game","except","select","t1",".","title","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","position","=","value"],"question":"Mostre o título dos jogos que não são jogados por nenhum jogador que está na posição Guard.","question_toks":["Mostre","o","título","dos","jogos","que","não","são","jogados","por","nenhum","jogador","que","está","na","posição","Guard","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"Guard\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"video_game","query":"SELECT Title FROM game EXCEPT SELECT T1.Title FROM game AS T1 JOIN game_player AS T2 ON T1.Game_ID = T2.Game_ID JOIN player AS T3 ON T2.Player_ID = T3.Player_ID WHERE T3.Position = \"Guard\"","query_toks":["SELECT","Title","FROM","game","EXCEPT","SELECT","T1.Title","FROM","game","AS","T1","JOIN","game_player","AS","T2","ON","T1.Game_ID","=","T2.Game_ID","JOIN","player","AS","T3","ON","T2.Player_ID","=","T3.Player_ID","WHERE","T3.Position","=","``","Guard","''"],"query_toks_no_value":["select","title","from","game","except","select","t1",".","title","from","game","as","t1","join","game_player","as","t2","on","t1",".","game_id","=","t2",".","game_id","join","player","as","t3","on","t2",".","player_id","=","t3",".","player_id","where","t3",".","position","=","value"],"question":"Quais são os títulos dos jogos que não foram jogados por nenhum jogador que joga na posição de Guarda?","question_toks":["Quais","são","os","títulos","dos","jogos","que","não","foram","jogados","por","nenhum","jogador","que","joga","na","posição","de","Guarda","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",1],["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,5,false],null],[0,18,false],null],"and",[false,2,[0,[0,17,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,15,false],null],"\"Guard\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_press","query":"SELECT name FROM press ORDER BY Year_Profits_billion DESC","query_toks":["SELECT","name","FROM","press","ORDER","BY","Year_Profits_billion","DESC"],"query_toks_no_value":["select","name","from","press","order","by","year_profits_billion","desc"],"question":"Liste todos os nomes das editoras em ordem decrescente do lucro do ano.","question_toks":["Liste","todos","os","nomes","das","editoras","em","ordem","decrescente","do","lucro","do","ano","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name FROM press ORDER BY Year_Profits_billion DESC","query_toks":["SELECT","name","FROM","press","ORDER","BY","Year_Profits_billion","DESC"],"query_toks_no_value":["select","name","from","press","order","by","year_profits_billion","desc"],"question":"Ordene todas as editoras pelos lucros do ano em ordem decrescente e retorne os nomes da imprensa.","question_toks":["Ordene","todas","as","editoras","pelos","lucros","do","ano","em","ordem","decrescente","e","retorne","os","nomes","da","imprensa","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,8,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name FROM press WHERE Year_Profits_billion > 15 OR Month_Profits_billion > 1","query_toks":["SELECT","name","FROM","press","WHERE","Year_Profits_billion",">","15","OR","Month_Profits_billion",">","1"],"query_toks_no_value":["select","name","from","press","where","year_profits_billion",">","value","or","month_profits_billion",">","value"],"question":"Quais são os nomes dos editores que tiveram mais de 15 bilhões de lucros a cada ano ou 1 bilhão a cada mês?","question_toks":["Quais","são","os","nomes","dos","editores","que","tiveram","mais","de","15","bilhões","de","lucros","a","cada","ano","ou","1","bilhão","a","cada","mês","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,8,false],null],15.0,null],"or",[false,3,[0,[0,7,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name FROM press WHERE Year_Profits_billion > 15 OR Month_Profits_billion > 1","query_toks":["SELECT","name","FROM","press","WHERE","Year_Profits_billion",">","15","OR","Month_Profits_billion",">","1"],"query_toks_no_value":["select","name","from","press","where","year_profits_billion",">","value","or","month_profits_billion",">","value"],"question":"Encontre a editora cujo lucro anual seja superior a 15 bilhões ou cujo lucro mensal seja superior a 1 bilhão. Retorne os nomes das editoras.","question_toks":["Encontre","a","editora","cujo","lucro","anual","seja","superior","a","15","bilhões","ou","cujo","lucro","mensal","seja","superior","a","1","bilhão",".","Retorne","os","nomes","das","editoras","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,8,false],null],15.0,null],"or",[false,3,[0,[0,7,false],null],1.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT avg(Year_Profits_billion) , max(Year_Profits_billion) FROM press","query_toks":["SELECT","avg","(","Year_Profits_billion",")",",","max","(","Year_Profits_billion",")","FROM","press"],"query_toks_no_value":["select","avg","(","year_profits_billion",")",",","max","(","year_profits_billion",")","from","press"],"question":"Quais são o lucro médio e máximo de um ano para todas as editoras?","question_toks":["Quais","são","o","lucro","médio","e","máximo","de","um","ano","para","todas","as","editoras","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,8,false],null]],[1,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT avg(Year_Profits_billion) , max(Year_Profits_billion) FROM press","query_toks":["SELECT","avg","(","Year_Profits_billion",")",",","max","(","Year_Profits_billion",")","FROM","press"],"query_toks_no_value":["select","avg","(","year_profits_billion",")",",","max","(","year_profits_billion",")","from","press"],"question":"Encontre o lucro médio e máximo anual para cada editora.","question_toks":["Encontre","o","lucro","médio","e","máximo","anual","para","cada","editora","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[5,[0,[0,8,false],null]],[1,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name FROM press ORDER BY Month_Profits_billion DESC LIMIT 1","query_toks":["SELECT","name","FROM","press","ORDER","BY","Month_Profits_billion","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","press","order","by","month_profits_billion","desc","limit","value"],"question":"Encontre o nome da editora cujo lucro mensal é o mais alto.","question_toks":["Encontre","o","nome","da","editora","cujo","lucro","mensal","é","o","mais","alto","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name FROM press ORDER BY Month_Profits_billion DESC LIMIT 1","query_toks":["SELECT","name","FROM","press","ORDER","BY","Month_Profits_billion","DESC","LIMIT","1"],"query_toks_no_value":["select","name","from","press","order","by","month_profits_billion","desc","limit","value"],"question":"Qual é a editora com o maior lucro mensal? Diga-me o nome da editora.","question_toks":["Qual","é","a","editora","com","o","maior","lucro","mensal","?","Diga-me","o","nome","da","editora","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,7,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name FROM press WHERE Month_Profits_billion = (SELECT min(Month_Profits_billion) FROM press) OR Month_Profits_billion = (SELECT max(Month_Profits_billion) FROM press)","query_toks":["SELECT","name","FROM","press","WHERE","Month_Profits_billion","=","(","SELECT","min","(","Month_Profits_billion",")","FROM","press",")","OR","Month_Profits_billion","=","(","SELECT","max","(","Month_Profits_billion",")","FROM","press",")"],"query_toks_no_value":["select","name","from","press","where","month_profits_billion","=","(","select","min","(","month_profits_billion",")","from","press",")","or","month_profits_billion","=","(","select","max","(","month_profits_billion",")","from","press",")"],"question":"Encontre o nome da editora cujo lucro mensal é o mais alto ou o mais baixo.","question_toks":["Encontre","o","nome","da","editora","cujo","lucro","mensal","é","o","mais","alto","ou","o","mais","baixo","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null],"or",[false,2,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,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":"book_press","query":"SELECT name FROM press WHERE Month_Profits_billion = (SELECT min(Month_Profits_billion) FROM press) OR Month_Profits_billion = (SELECT max(Month_Profits_billion) FROM press)","query_toks":["SELECT","name","FROM","press","WHERE","Month_Profits_billion","=","(","SELECT","min","(","Month_Profits_billion",")","FROM","press",")","OR","Month_Profits_billion","=","(","SELECT","max","(","Month_Profits_billion",")","FROM","press",")"],"query_toks_no_value":["select","name","from","press","where","month_profits_billion","=","(","select","min","(","month_profits_billion",")","from","press",")","or","month_profits_billion","=","(","select","max","(","month_profits_billion",")","from","press",")"],"question":"Quais são os nomes das editoras que obtém o maior lucro mensal ou o menor lucro mensal?","question_toks":["Quais","são","os","nomes","das","editoras","que","obtém","o","maior","lucro","mensal","ou","o","menor","lucro","mensal","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[2,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},null],"or",[false,2,[0,[0,7,false],null],{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[1,[0,[0,7,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":"book_press","query":"SELECT count(*) FROM author WHERE age < 30","query_toks":["SELECT","count","(","*",")","FROM","author","WHERE","age","<","30"],"query_toks_no_value":["select","count","(","*",")","from","author","where","age","<","value"],"question":"Quantos autores têm menos de 30 anos?","question_toks":["Quantos","autores","têm","menos","de","30","anos","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT count(*) FROM author WHERE age < 30","query_toks":["SELECT","count","(","*",")","FROM","author","WHERE","age","<","30"],"query_toks_no_value":["select","count","(","*",")","from","author","where","age","<","value"],"question":"Conte o número de autores com idade abaixo de 30.","question_toks":["Conte","o","número","de","autores","com","idade","abaixo","de","30","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,4,[0,[0,3,false],null],30.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT avg(age) , gender FROM author GROUP BY gender","query_toks":["SELECT","avg","(","age",")",",","gender","FROM","author","GROUP","BY","gender"],"query_toks_no_value":["select","avg","(","age",")",",","gender","from","author","group","by","gender"],"question":"Encontre a idade média dos autores para cada gênero.","question_toks":["Encontre","a","idade","média","dos","autores","para","cada","gênero","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT avg(age) , gender FROM author GROUP BY gender","query_toks":["SELECT","avg","(","age",")",",","gender","FROM","author","GROUP","BY","gender"],"query_toks_no_value":["select","avg","(","age",")",",","gender","from","author","group","by","gender"],"question":"Para cada gênero, retorne o gênero e a idade média dos autores.","question_toks":["Para","cada","gênero",",","retorne","o","gênero","e","a","idade","média","dos","autores","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[5,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT count(*) , gender FROM author WHERE age > 30 GROUP BY gender","query_toks":["SELECT","count","(","*",")",",","gender","FROM","author","WHERE","age",">","30","GROUP","BY","gender"],"query_toks_no_value":["select","count","(","*",")",",","gender","from","author","where","age",">","value","group","by","gender"],"question":"Encontre o número de autores que têm mais de 30 anos para cada gênero.","question_toks":["Encontre","o","número","de","autores","que","têm","mais","de","30","anos","para","cada","gênero","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,3,false],null],30.0,null]],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT count(*) , gender FROM author WHERE age > 30 GROUP BY gender","query_toks":["SELECT","count","(","*",")",",","gender","FROM","author","WHERE","age",">","30","GROUP","BY","gender"],"query_toks_no_value":["select","count","(","*",")",",","gender","from","author","where","age",">","value","group","by","gender"],"question":"Quantos autores têm mais de 30 anos para cada gênero?","question_toks":["Quantos","autores","têm","mais","de","30","anos","para","cada","gênero","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,4,false],null]]]],"where":[[false,3,[0,[0,3,false],null],30.0,null]],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT title FROM book ORDER BY release_date DESC","query_toks":["SELECT","title","FROM","book","ORDER","BY","release_date","DESC"],"query_toks_no_value":["select","title","from","book","order","by","release_date","desc"],"question":"Liste todos os títulos de livros na ordem de sua data de lançamento, do mais recente para o mais antigo.","question_toks":["Liste","todos","os","títulos","de","livros","na","ordem","de","sua","data","de","lançamento",",","do","mais","recente","para","o","mais","antigo","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT title FROM book ORDER BY release_date DESC","query_toks":["SELECT","title","FROM","book","ORDER","BY","release_date","DESC"],"query_toks_no_value":["select","title","from","book","order","by","release_date","desc"],"question":"Ordene todos os livros em ordem decrescente de data de lançamento e retorne os títulos dos livros.","question_toks":["Ordene","todos","os","livros","em","ordem","decrescente","de","data","de","lançamento","e","retorne","os","títulos","dos","livros","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,15,false],null]]],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT count(*) , book_series FROM book GROUP BY book_series","query_toks":["SELECT","count","(","*",")",",","book_series","FROM","book","GROUP","BY","book_series"],"query_toks_no_value":["select","count","(","*",")",",","book_series","from","book","group","by","book_series"],"question":"Encontre o número de livros para cada série.","question_toks":["Encontre","o","número","de","livros","para","cada","série","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT count(*) , book_series FROM book GROUP BY book_series","query_toks":["SELECT","count","(","*",")",",","book_series","FROM","book","GROUP","BY","book_series"],"query_toks_no_value":["select","count","(","*",")",",","book_series","from","book","group","by","book_series"],"question":"Quantos livros cada série de livros possui? Retorne as contagens e as séries de livros.","question_toks":["Quantos","livros","cada","série","de","livros","possui","?","Retorne","as","contagens","e","as","séries","de","livros","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT title , release_date FROM book ORDER BY sale_amount DESC LIMIT 5","query_toks":["SELECT","title",",","release_date","FROM","book","ORDER","BY","sale_amount","DESC","LIMIT","5"],"query_toks_no_value":["select","title",",","release_date","from","book","order","by","sale_amount","desc","limit","value"],"question":"Encontre os títulos e as datas de publicação dos 5 livros mais vendidos.","question_toks":["Encontre","os","títulos","e","as","datas","de","publicação","dos","5","livros","mais","vendidos","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":5,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT title , release_date FROM book ORDER BY sale_amount DESC LIMIT 5","query_toks":["SELECT","title",",","release_date","FROM","book","ORDER","BY","sale_amount","DESC","LIMIT","5"],"query_toks_no_value":["select","title",",","release_date","from","book","order","by","sale_amount","desc","limit","value"],"question":"Quais são os 5 melhores livros em termos de quantidade de vendas? Me dê seus títulos e datas de lançamento.","question_toks":["Quais","são","os","5","melhores","livros","em","termos","de","quantidade","de","vendas","?","Me","dê","seus","títulos","e","datas","de","lançamento","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,15,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":5,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT book_series FROM book WHERE sale_amount > 1000 INTERSECT SELECT book_series FROM book WHERE sale_amount < 500","query_toks":["SELECT","book_series","FROM","book","WHERE","sale_amount",">","1000","INTERSECT","SELECT","book_series","FROM","book","WHERE","sale_amount","<","500"],"query_toks_no_value":["select","book_series","from","book","where","sale_amount",">","value","intersect","select","book_series","from","book","where","sale_amount","<","value"],"question":"Encontre as séries de livros que têm algum livro vendendo mais de 1000 e algum livro vendendo menos de 500.","question_toks":["Encontre","as","séries","de","livros","que","têm","algum","livro","vendendo","mais","de","1000","e","algum","livro","vendendo","menos","de","500","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,3,[0,[0,14,false],null],1000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,4,[0,[0,14,false],null],500.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_press","query":"SELECT book_series FROM book WHERE sale_amount > 1000 INTERSECT SELECT book_series FROM book WHERE sale_amount < 500","query_toks":["SELECT","book_series","FROM","book","WHERE","sale_amount",">","1000","INTERSECT","SELECT","book_series","FROM","book","WHERE","sale_amount","<","500"],"query_toks_no_value":["select","book_series","from","book","where","sale_amount",">","value","intersect","select","book_series","from","book","where","sale_amount","<","value"],"question":"Quais séries de livros contêm tanto livros com valor de venda acima de 1000 quanto livros com valor de venda abaixo de 500?","question_toks":["Quais","séries","de","livros","contêm","tanto","livros","com","valor","de","venda","acima","de","1000","quanto","livros","com","valor","de","venda","abaixo","de","500","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,3,[0,[0,14,false],null],1000.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[[false,4,[0,[0,14,false],null],500.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id WHERE t2.book_series = 'MM' INTERSECT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id WHERE t2.book_series = 'LT'","query_toks":["SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","WHERE","t2.book_series","=","'MM","'","INTERSECT","SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","WHERE","t2.book_series","=","'LT","'"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","where","t2",".","book_series","=","value","intersect","select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","where","t2",".","book_series","=","value"],"question":"Encontre o nome dos autores que publicam seus livros nas séries \"MM\" e \"LT\".","question_toks":["Encontre","o","nome","dos","autores","que","publicam","seus","livros","nas","séries","``","MM","''","e","``","LT","''","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"MM\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"LT\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id WHERE t2.book_series = 'MM' INTERSECT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id WHERE t2.book_series = 'LT'","query_toks":["SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","WHERE","t2.book_series","=","'MM","'","INTERSECT","SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","WHERE","t2.book_series","=","'LT","'"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","where","t2",".","book_series","=","value","intersect","select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","where","t2",".","book_series","=","value"],"question":"Quais autores publicam livros nas séries \"MM\" e \"LT\"? Me dê os nomes dos autores.","question_toks":["Quais","autores","publicam","livros","nas","séries","``","MM","''","e","``","LT","''","?","Me","dê","os","nomes","dos","autores","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"MM\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,11,false],null],"\"LT\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name , age FROM author WHERE author_id NOT IN (SELECT author_id FROM book)","query_toks":["SELECT","name",",","age","FROM","author","WHERE","author_id","NOT","IN","(","SELECT","author_id","FROM","book",")"],"query_toks_no_value":["select","name",",","age","from","author","where","author_id","not","in","(","select","author_id","from","book",")"],"question":"Encontre o nome e a idade dos autores que não têm nenhum livro registrado.","question_toks":["Encontre","o","nome","e","a","idade","dos","autores","que","não","têm","nenhum","livro","registrado","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,3,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,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":"book_press","query":"select name from author where author_id not in (select author_id from book)","query_toks":["select","name","from","author","where","author_id","not","in","(","select","author_id","from","book",")"],"query_toks_no_value":["select","name","from","author","where","author_id","not","in","(","select","author_id","from","book",")"],"question":"Quais autores no registro não publicaram nenhum livro? Me dê seus nomes.","question_toks":["Quais","autores","no","registro","não","publicaram","nenhum","livro","?","Me","dê","seus","nomes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[true,8,[0,[0,1,false],null],{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,12,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":"book_press","query":"SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id GROUP BY t2.author_id HAVING count(*) > 1","query_toks":["SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","GROUP","BY","t2.author_id","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t2",".","author_id","having","count","(","*",")",">","value"],"question":"Encontre os nomes dos autores que têm mais de um livro no banco de dados.","question_toks":["Encontre","os","nomes","dos","autores","que","têm","mais","de","um","livro","no","banco","de","dados","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id GROUP BY t2.author_id HAVING count(*) > 1","query_toks":["SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","GROUP","BY","t2.author_id","HAVING","count","(","*",")",">","1"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t2",".","author_id","having","count","(","*",")",">","value"],"question":"Quais autores publicaram mais de 1 livro de acordo com o banco de dados? Me dê seus nomes.","question_toks":["Quais","autores","publicaram","mais","de","1","livro","de","acordo","com","o","banco","de","dados","?","Me","dê","seus","nomes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,3,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name , t2.title , t3.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id JOIN press AS t3 ON t2.press_id = t3.press_id ORDER BY t2.sale_amount DESC LIMIT 3","query_toks":["SELECT","t1.name",",","t2.title",",","t3.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","JOIN","press","AS","t3","ON","t2.press_id","=","t3.press_id","ORDER","BY","t2.sale_amount","DESC","LIMIT","3"],"query_toks_no_value":["select","t1",".","name",",","t2",".","title",",","t3",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","join","press","as","t3","on","t2",".","press_id","=","t3",".","press_id","order","by","t2",".","sale_amount","desc","limit","value"],"question":"Encontre o título, o nome do autor e o nome da editora dos 3 livros com melhores vendas.","question_toks":["Encontre","o","título",",","o","nome","do","autor","e","o","nome","da","editora","dos","3","livros","com","melhores","vendas","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,10,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name , t2.title , t3.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id JOIN press AS t3 ON t2.press_id = t3.press_id ORDER BY t2.sale_amount DESC LIMIT 3","query_toks":["SELECT","t1.name",",","t2.title",",","t3.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","JOIN","press","AS","t3","ON","t2.press_id","=","t3.press_id","ORDER","BY","t2.sale_amount","DESC","LIMIT","3"],"query_toks_no_value":["select","t1",".","name",",","t2",".","title",",","t3",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","join","press","as","t3","on","t2",".","press_id","=","t3",".","press_id","order","by","t2",".","sale_amount","desc","limit","value"],"question":"Quais são os 3 livros mais vendidos? Mostre seus títulos, nomes de autores e nomes de editoras.","question_toks":["Quais","são","os","3","livros","mais","vendidos","?","Mostre","seus","títulos",",","nomes","de","autores","e","nomes","de","editoras","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,10,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":3,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT sum(t1.sale_amount) , t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id GROUP BY t1.press_id","query_toks":["SELECT","sum","(","t1.sale_amount",")",",","t2.name","FROM","book","AS","t1","JOIN","press","AS","t2","ON","t1.press_id","=","t2.press_id","GROUP","BY","t1.press_id"],"query_toks_no_value":["select","sum","(","t1",".","sale_amount",")",",","t2",".","name","from","book","as","t1","join","press","as","t2","on","t1",".","press_id","=","t2",".","press_id","group","by","t1",".","press_id"],"question":"Encontre o nome e o total da quantia de vendas de livros de cada editora.","question_toks":["Encontre","o","nome","e","o","total","da","quantia","de","vendas","de","livros","de","cada","editora","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[4,[0,[0,14,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT sum(t1.sale_amount) , t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id GROUP BY t1.press_id","query_toks":["SELECT","sum","(","t1.sale_amount",")",",","t2.name","FROM","book","AS","t1","JOIN","press","AS","t2","ON","t1.press_id","=","t2.press_id","GROUP","BY","t1.press_id"],"query_toks_no_value":["select","sum","(","t1",".","sale_amount",")",",","t2",".","name","from","book","as","t1","join","press","as","t2","on","t1",".","press_id","=","t2",".","press_id","group","by","t1",".","press_id"],"question":"Quais são o nome e o total de vendas de livros de cada editora?","question_toks":["Quais","são","o","nome","e","o","total","de","vendas","de","livros","de","cada","editora","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[4,[0,[0,14,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[[0,13,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT count(*) , t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id WHERE sale_amount > 1000 GROUP BY t2.name","query_toks":["SELECT","count","(","*",")",",","t2.name","FROM","book","AS","t1","JOIN","press","AS","t2","ON","t1.press_id","=","t2.press_id","WHERE","sale_amount",">","1000","GROUP","BY","t2.name"],"query_toks_no_value":["select","count","(","*",")",",","t2",".","name","from","book","as","t1","join","press","as","t2","on","t1",".","press_id","=","t2",".","press_id","where","sale_amount",">","value","group","by","t2",".","name"],"question":"Encontre o número de livros que são vendidos mais de 1000 para cada editora. Liste também o nome da editora.","question_toks":["Encontre","o","número","de","livros","que","são","vendidos","mais","de","1000","para","cada","editora",".","Liste","também","o","nome","da","editora","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,14,false],null],1000.0,null]],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT count(*) , t2.name FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id WHERE sale_amount > 1000 GROUP BY t2.name","query_toks":["SELECT","count","(","*",")",",","t2.name","FROM","book","AS","t1","JOIN","press","AS","t2","ON","t1.press_id","=","t2.press_id","WHERE","sale_amount",">","1000","GROUP","BY","t2.name"],"query_toks_no_value":["select","count","(","*",")",",","t2",".","name","from","book","as","t1","join","press","as","t2","on","t1",".","press_id","=","t2",".","press_id","where","sale_amount",">","value","group","by","t2",".","name"],"question":"Para cada editora, retorne seu nome e o número de livros que têm valor de venda acima de 1000.","question_toks":["Para","cada","editora",",","retorne","seu","nome","e","o","número","de","livros","que","têm","valor","de","venda","acima","de","1000","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[3,[0,[0,0,false],null]],[0,[0,[0,6,false],null]]]],"where":[[false,3,[0,[0,14,false],null],1000.0,null]],"groupBy":[[0,6,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id ORDER BY t2.sale_amount DESC LIMIT 1","query_toks":["SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","ORDER","BY","t2.sale_amount","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","order","by","t2",".","sale_amount","desc","limit","value"],"question":"Qual é o nome do autor do livro mais vendido?","question_toks":["Qual","é","o","nome","do","autor","do","livro","mais","vendido","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id ORDER BY t2.sale_amount DESC LIMIT 1","query_toks":["SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","ORDER","BY","t2.sale_amount","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","order","by","t2",".","sale_amount","desc","limit","value"],"question":"Quem escreveu o livro mais vendido? Me dê o nome do autor.","question_toks":["Quem","escreveu","o","livro","mais","vendido","?","Me","dê","o","nome","do","autor","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":["desc",[[0,[0,14,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name , t1.gender FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id GROUP BY t2.author_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t1.name",",","t1.gender","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","GROUP","BY","t2.author_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name",",","t1",".","gender","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Encontre o nome e o gênero do autor que publicou mais livros.","question_toks":["Encontre","o","nome","e","o","gênero","do","autor","que","publicou","mais","livros","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t1.name , t1.gender FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id GROUP BY t2.author_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","t1.name",",","t1.gender","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","GROUP","BY","t2.author_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","name",",","t1",".","gender","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","group","by","t2",".","author_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quem escreveu o maior número de livros? Me dê o nome e o gênero do autor.","question_toks":["Quem","escreveu","o","maior","número","de","livros","?","Me","dê","o","nome","e","o","gênero","do","autor","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null]]},"select":[false,[[0,[0,[0,2,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT name FROM author EXCEPT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id JOIN press AS t3 ON t2.press_id = t3.press_id WHERE t3.name = 'Accor'","query_toks":["SELECT","name","FROM","author","EXCEPT","SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","JOIN","press","AS","t3","ON","t2.press_id","=","t3.press_id","WHERE","t3.name","=","'Accor","'"],"query_toks_no_value":["select","name","from","author","except","select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","join","press","as","t3","on","t2",".","press_id","=","t3",".","press_id","where","t3",".","name","=","value"],"question":"Encontre os nomes dos autores que não tiveram nenhum livro com a editora \"Accor\".","question_toks":["Encontre","os","nomes","dos","autores","que","não","tiveram","nenhum","livro","com","a","editora","``","Accor","''","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Accor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_press","query":"SELECT name FROM author EXCEPT SELECT t1.name FROM author AS t1 JOIN book AS t2 ON t1.author_id = t2.author_id JOIN press AS t3 ON t2.press_id = t3.press_id WHERE t3.name = 'Accor'","query_toks":["SELECT","name","FROM","author","EXCEPT","SELECT","t1.name","FROM","author","AS","t1","JOIN","book","AS","t2","ON","t1.author_id","=","t2.author_id","JOIN","press","AS","t3","ON","t2.press_id","=","t3.press_id","WHERE","t3.name","=","'Accor","'"],"query_toks_no_value":["select","name","from","author","except","select","t1",".","name","from","author","as","t1","join","book","as","t2","on","t1",".","author_id","=","t2",".","author_id","join","press","as","t3","on","t2",".","press_id","=","t3",".","press_id","where","t3",".","name","=","value"],"question":"Quais autores nunca publicaram sob a editora \"Accor\"? Me dê seus nomes.","question_toks":["Quais","autores","nunca","publicaram","sob","a","editora","``","Accor","''","?","Me","dê","seus","nomes","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",0],["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,1,false],null],[0,12,false],null],"and",[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,6,false],null],"\"Accor\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"book_press","query":"SELECT t2.name , t2.Year_Profits_billion FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id GROUP BY t2.press_id HAVING count(*) > 2","query_toks":["SELECT","t2.name",",","t2.Year_Profits_billion","FROM","book","AS","t1","JOIN","press","AS","t2","ON","t1.press_id","=","t2.press_id","GROUP","BY","t2.press_id","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","t2",".","name",",","t2",".","year_profits_billion","from","book","as","t1","join","press","as","t2","on","t1",".","press_id","=","t2",".","press_id","group","by","t2",".","press_id","having","count","(","*",")",">","value"],"question":"Encontre o nome e o lucro anual em bilhões para as editoras que publicaram mais de dois livros.","question_toks":["Encontre","o","nome","e","o","lucro","anual","em","bilhões","para","as","editoras","que","publicaram","mais","de","dois","livros","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"book_press","query":"SELECT t2.name , t2.Year_Profits_billion FROM book AS t1 JOIN press AS t2 ON t1.press_id = t2.press_id GROUP BY t2.press_id HAVING count(*) > 2","query_toks":["SELECT","t2.name",",","t2.Year_Profits_billion","FROM","book","AS","t1","JOIN","press","AS","t2","ON","t1.press_id","=","t2.press_id","GROUP","BY","t2.press_id","HAVING","count","(","*",")",">","2"],"query_toks_no_value":["select","t2",".","name",",","t2",".","year_profits_billion","from","book","as","t1","join","press","as","t2","on","t1",".","press_id","=","t2",".","press_id","group","by","t2",".","press_id","having","count","(","*",")",">","value"],"question":"Encontre a editora que publicou mais de dois livros e retorne seu nome e lucro anual em bilhões.","question_toks":["Encontre","a","editora","que","publicou","mais","de","dois","livros","e","retorne","seu","nome","e","lucro","anual","em","bilhões","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",1]],"conds":[[false,2,[0,[0,13,false],null],[0,5,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[[0,5,false]],"having":[[false,3,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Authors","query_toks":["SELECT","count","(","*",")","FROM","Authors"],"query_toks_no_value":["select","count","(","*",")","from","authors"],"question":"Conte quantos autores temos.","question_toks":["Conte","quantos","autores","temos","."],"sql":{"from":{"table_units":[["table_unit",4]],"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_Workflow","query":"SELECT author_name FROM Authors","query_toks":["SELECT","author_name","FROM","Authors"],"query_toks_no_value":["select","author_name","from","authors"],"question":"Mostre todos os nomes dos autores.","question_toks":["Mostre","todos","os","nomes","dos","autores","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT author_name , other_details FROM Authors","query_toks":["SELECT","author_name",",","other_details","FROM","Authors"],"query_toks_no_value":["select","author_name",",","other_details","from","authors"],"question":"Mostre os nomes e outros detalhes de todos os autores.","question_toks":["Mostre","os","nomes","e","outros","detalhes","de","todos","os","autores","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT other_details FROM Authors WHERE author_name = \"Addison Denesik\"","query_toks":["SELECT","other_details","FROM","Authors","WHERE","author_name","=","``","Addison","Denesik","''"],"query_toks_no_value":["select","other_details","from","authors","where","author_name","=","value"],"question":"Mostre os outros detalhes do autor Addison Denesik.","question_toks":["Mostre","os","outros","detalhes","do","autor","Addison","Denesik","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Addison Denesik\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Documents","query_toks":["SELECT","count","(","*",")","FROM","Documents"],"query_toks_no_value":["select","count","(","*",")","from","documents"],"question":"Mostre o número de documentos.","question_toks":["Mostre","o","número","de","documentos","."],"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_Workflow","query":"SELECT author_name FROM Documents WHERE document_id = 4","query_toks":["SELECT","author_name","FROM","Documents","WHERE","document_id","=","4"],"query_toks_no_value":["select","author_name","from","documents","where","document_id","=","value"],"question":"Quem é o autor do documento com id 4?","question_toks":["Quem","é","o","autor","do","documento","com","id","4","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,11,false],null],4.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT author_name FROM Documents WHERE document_name = \"Travel to Brazil\"","query_toks":["SELECT","author_name","FROM","Documents","WHERE","document_name","=","``","Travel","to","Brazil","''"],"query_toks_no_value":["select","author_name","from","documents","where","document_name","=","value"],"question":"Quem é o autor do documento \"Travel to Brazil\"?","question_toks":["Quem","é","o","autor","do","documento","``","Travel","to","Brazil","''","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Travel to Brazil\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Documents WHERE author_name = \"Era Kerluke\"","query_toks":["SELECT","count","(","*",")","FROM","Documents","WHERE","author_name","=","``","Era","Kerluke","''"],"query_toks_no_value":["select","count","(","*",")","from","documents","where","author_name","=","value"],"question":"Quantos documentos o autor Era Kerluke escreveu?","question_toks":["Quantos","documentos","o","autor","Era","Kerluke","escreveu","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Era Kerluke\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT document_name , document_description FROM Documents","query_toks":["SELECT","document_name",",","document_description","FROM","Documents"],"query_toks_no_value":["select","document_name",",","document_description","from","documents"],"question":"Mostre os nomes e descrições de todos os documentos.","question_toks":["Mostre","os","nomes","e","descrições","de","todos","os","documentos","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,13,false],null]],[0,[0,[0,14,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT document_id , document_name FROM Documents WHERE author_name = \"Bianka Cummings\"","query_toks":["SELECT","document_id",",","document_name","FROM","Documents","WHERE","author_name","=","``","Bianka","Cummings","''"],"query_toks_no_value":["select","document_id",",","document_name","from","documents","where","author_name","=","value"],"question":"Mostre os ids e nomes de todos os documentos da autora Bianka Cummings.","question_toks":["Mostre","os","ids","e","nomes","de","todos","os","documentos","da","autora","Bianka","Cummings","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,13,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Bianka Cummings\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT T2.author_name , T2.other_details FROM Documents AS T1 JOIN Authors AS T2 ON T1.author_name = T2.author_name WHERE document_name = \"Travel to China\"","query_toks":["SELECT","T2.author_name",",","T2.other_details","FROM","Documents","AS","T1","JOIN","Authors","AS","T2","ON","T1.author_name","=","T2.author_name","WHERE","document_name","=","``","Travel","to","China","''"],"query_toks_no_value":["select","t2",".","author_name",",","t2",".","other_details","from","documents","as","t1","join","authors","as","t2","on","t1",".","author_name","=","t2",".","author_name","where","document_name","=","value"],"question":"Mostre o nome do autor e os detalhes para o documento \"Travel to China\".","question_toks":["Mostre","o","nome","do","autor","e","os","detalhes","para","o","documento","``","Travel","to","China","''","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",4]],"conds":[[false,2,[0,[0,12,false],null],[0,9,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,10,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Travel to China\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT author_name , count(*) FROM Documents GROUP BY author_name","query_toks":["SELECT","author_name",",","count","(","*",")","FROM","Documents","GROUP","BY","author_name"],"query_toks_no_value":["select","author_name",",","count","(","*",")","from","documents","group","by","author_name"],"question":"Mostre todos os nomes de autores e o número de documentos correspondentes a cada um.","question_toks":["Mostre","todos","os","nomes","de","autores","e","o","número","de","documentos","correspondentes","a","cada","um","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT author_name FROM Documents GROUP BY author_name ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","author_name","FROM","Documents","GROUP","BY","author_name","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","author_name","from","documents","group","by","author_name","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o nome do autor com o maior número de documentos?","question_toks":["Qual","é","o","nome","do","autor","com","o","maior","número","de","documentos","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT author_name FROM Documents GROUP BY author_name HAVING count(*) >= 2","query_toks":["SELECT","author_name","FROM","Documents","GROUP","BY","author_name","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","author_name","from","documents","group","by","author_name","having","count","(","*",")",">","=","value"],"question":"Mostre os nomes dos autores com pelo menos dois documentos.","question_toks":["Mostre","os","nomes","dos","autores","com","pelo","menos","dois","documentos","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Business_processes","query_toks":["SELECT","count","(","*",")","FROM","Business_processes"],"query_toks_no_value":["select","count","(","*",")","from","business_processes"],"question":"Quantos processos de negócios temos?","question_toks":["Quantos","processos","de","negócios","temos","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT next_process_id , process_name , process_description FROM Business_processes WHERE process_id = 9","query_toks":["SELECT","next_process_id",",","process_name",",","process_description","FROM","Business_processes","WHERE","process_id","=","9"],"query_toks_no_value":["select","next_process_id",",","process_name",",","process_description","from","business_processes","where","process_id","=","value"],"question":"Mostre o próximo id do processo, nome do processo, descrição do processo para o processo com id 9.","question_toks":["Mostre","o","próximo","id","do","processo",",","nome","do","processo",",","descrição","do","processo","para","o","processo","com","id","9","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,18,false],null]],[0,[0,[0,19,false],null]]]],"where":[[false,2,[0,[0,16,false],null],9.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT process_name FROM Business_processes WHERE process_id = (SELECT next_process_id FROM Business_processes WHERE process_id = 9)","query_toks":["SELECT","process_name","FROM","Business_processes","WHERE","process_id","=","(","SELECT","next_process_id","FROM","Business_processes","WHERE","process_id","=","9",")"],"query_toks_no_value":["select","process_name","from","business_processes","where","process_id","=","(","select","next_process_id","from","business_processes","where","process_id","=","value",")"],"question":"Qual é o nome do processo para o próximo processo do processo com id 9?","question_toks":["Qual","é","o","nome","do","processo","para","o","próximo","processo","do","processo","com","id","9","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,16,false],null],{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]]]],"where":[[false,2,[0,[0,16,false],null],9.0,null]],"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":"cre_Doc_Workflow","query":"SELECT count(*) FROM Process_outcomes","query_toks":["SELECT","count","(","*",")","FROM","Process_outcomes"],"query_toks_no_value":["select","count","(","*",")","from","process_outcomes"],"question":"Mostre o número de resultados de processos.","question_toks":["Mostre","o","número","de","resultados","de","processos","."],"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_Workflow","query":"SELECT process_outcome_code , process_outcome_description FROM Process_outcomes","query_toks":["SELECT","process_outcome_code",",","process_outcome_description","FROM","Process_outcomes"],"query_toks_no_value":["select","process_outcome_code",",","process_outcome_description","from","process_outcomes"],"question":"Liste os códigos e descrições de todos os resultados do processo.","question_toks":["Liste","os","códigos","e","descrições","de","todos","os","resultados","do","processo","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,5,false],null]],[0,[0,[0,6,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT process_outcome_description FROM Process_outcomes WHERE process_outcome_code = \"working\"","query_toks":["SELECT","process_outcome_description","FROM","Process_outcomes","WHERE","process_outcome_code","=","``","working","''"],"query_toks_no_value":["select","process_outcome_description","from","process_outcomes","where","process_outcome_code","=","value"],"question":"Qual é a descrição para o código de resultado do processo working?","question_toks":["Qual","é","a","descrição","para","o","código","de","resultado","do","processo","working","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]]]],"where":[[false,2,[0,[0,5,false],null],"\"working\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Process_status","query_toks":["SELECT","count","(","*",")","FROM","Process_status"],"query_toks_no_value":["select","count","(","*",")","from","process_status"],"question":"Mostre o número de status de processo.","question_toks":["Mostre","o","número","de","status","de","processo","."],"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_Workflow","query":"SELECT process_status_code , process_status_description FROM Process_status","query_toks":["SELECT","process_status_code",",","process_status_description","FROM","Process_status"],"query_toks_no_value":["select","process_status_code",",","process_status_description","from","process_status"],"question":"Liste os códigos e descrições para todos os status de processo.","question_toks":["Liste","os","códigos","e","descrições","para","todos","os","status","de","processo","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[0,[0,[0,8,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT process_status_description FROM Process_status WHERE process_status_code = \"ct\"","query_toks":["SELECT","process_status_description","FROM","Process_status","WHERE","process_status_code","=","``","ct","''"],"query_toks_no_value":["select","process_status_description","from","process_status","where","process_status_code","=","value"],"question":"Qual é a descrição para o código de status do processo ct?","question_toks":["Qual","é","a","descrição","para","o","código","de","status","do","processo","ct","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,7,false],null],"\"ct\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Staff","query_toks":["SELECT","count","(","*",")","FROM","Staff"],"query_toks_no_value":["select","count","(","*",")","from","staff"],"question":"Conte quantos funcionários temos.","question_toks":["Conte","quantos","funcionários","temos","."],"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_Workflow","query":"SELECT staff_id , staff_details FROM Staff","query_toks":["SELECT","staff_id",",","staff_details","FROM","Staff"],"query_toks_no_value":["select","staff_id",",","staff_details","from","staff"],"question":"Mostre os IDs e detalhes de todos os funcionários.","question_toks":["Mostre","os","IDs","e","detalhes","de","todos","os","funcionários","."],"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_Workflow","query":"SELECT staff_details FROM Staff WHERE staff_id = 100","query_toks":["SELECT","staff_details","FROM","Staff","WHERE","staff_id","=","100"],"query_toks_no_value":["select","staff_details","from","staff","where","staff_id","=","value"],"question":"Quais são os detalhes do membro da equipe com id 100?","question_toks":["Quais","são","os","detalhes","do","membro","da","equipe","com","id","100","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,1,false],null],100.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Ref_staff_roles","query_toks":["SELECT","count","(","*",")","FROM","Ref_staff_roles"],"query_toks_no_value":["select","count","(","*",")","from","ref_staff_roles"],"question":"Mostre o número de funções dos funcionários.","question_toks":["Mostre","o","número","de","funções","dos","funcionários","."],"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_Workflow","query":"SELECT staff_role_code , staff_role_description FROM Ref_staff_roles","query_toks":["SELECT","staff_role_code",",","staff_role_description","FROM","Ref_staff_roles"],"query_toks_no_value":["select","staff_role_code",",","staff_role_description","from","ref_staff_roles"],"question":"Liste os códigos e descrições de todos os papéis da equipe.","question_toks":["Liste","os","códigos","e","descrições","de","todos","os","papéis","da","equipe","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,4,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT staff_role_description FROM Ref_staff_roles WHERE staff_role_code = \"HR\"","query_toks":["SELECT","staff_role_description","FROM","Ref_staff_roles","WHERE","staff_role_code","=","``","HR","''"],"query_toks_no_value":["select","staff_role_description","from","ref_staff_roles","where","staff_role_code","=","value"],"question":"Qual é a descrição para o código de função do pessoal HR?","question_toks":["Qual","é","a","descrição","para","o","código","de","função","do","pessoal","HR","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]]]],"where":[[false,2,[0,[0,3,false],null],"\"HR\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(DISTINCT document_id) FROM Documents_processes","query_toks":["SELECT","count","(","DISTINCT","document_id",")","FROM","Documents_processes"],"query_toks_no_value":["select","count","(","distinct","document_id",")","from","documents_processes"],"question":"Quantos documentos têm um processo?","question_toks":["Quantos","documentos","têm","um","processo","?"],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[3,[0,[0,21,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT DISTINCT process_id FROM Documents_processes","query_toks":["SELECT","DISTINCT","process_id","FROM","Documents_processes"],"query_toks_no_value":["select","distinct","process_id","from","documents_processes"],"question":"Liste todos os ids de processos com um documento.","question_toks":["Liste","todos","os","ids","de","processos","com","um","documento","."],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[true,[[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_processes","query_toks":["SELECT","document_id","FROM","Documents","EXCEPT","SELECT","document_id","FROM","Documents_processes"],"query_toks_no_value":["select","document_id","from","documents","except","select","document_id","from","documents_processes"],"question":"Mostre todos os ids de documentos sem um processo.","question_toks":["Mostre","todos","os","ids","de","documentos","sem","um","processo","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,11,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,21,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Doc_Workflow","query":"SELECT process_id FROM Business_processes EXCEPT SELECT process_id FROM Documents_processes","query_toks":["SELECT","process_id","FROM","Business_processes","EXCEPT","SELECT","process_id","FROM","Documents_processes"],"query_toks_no_value":["select","process_id","from","business_processes","except","select","process_id","from","documents_processes"],"question":"Liste todos os ids de processos sem documento.","question_toks":["Liste","todos","os","ids","de","processos","sem","documento","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,16,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,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"cre_Doc_Workflow","query":"SELECT T2.process_outcome_description , T3.process_status_description FROM Documents_processes AS T1 JOIN Process_outcomes AS T2 ON T1.process_outcome_code = T2.process_outcome_code JOIN Process_Status AS T3 ON T1.process_status_code = T3.process_status_code WHERE T1.document_id = 0","query_toks":["SELECT","T2.process_outcome_description",",","T3.process_status_description","FROM","Documents_processes","AS","T1","JOIN","Process_outcomes","AS","T2","ON","T1.process_outcome_code","=","T2.process_outcome_code","JOIN","Process_Status","AS","T3","ON","T1.process_status_code","=","T3.process_status_code","WHERE","T1.document_id","=","0"],"query_toks_no_value":["select","t2",".","process_outcome_description",",","t3",".","process_status_description","from","documents_processes","as","t1","join","process_outcomes","as","t2","on","t1",".","process_outcome_code","=","t2",".","process_outcome_code","join","process_status","as","t3","on","t1",".","process_status_code","=","t3",".","process_status_code","where","t1",".","document_id","=","value"],"question":"Qual é a descrição do resultado do processo e a descrição do status do processo para o documento com id 0?","question_toks":["Qual","é","a","descrição","do","resultado","do","processo","e","a","descrição","do","status","do","processo","para","o","documento","com","id","0","?"],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,23,false],null],[0,5,false],null],"and",[false,2,[0,[0,24,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]]]],"where":[[false,2,[0,[0,21,false],null],0.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT T3.process_name FROM Documents_processes AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id JOIN Business_processes AS T3 ON T1.process_id = T3.process_id WHERE T2.document_name = \"Travel to Brazil\"","query_toks":["SELECT","T3.process_name","FROM","Documents_processes","AS","T1","JOIN","Documents","AS","T2","ON","T1.document_id","=","T2.document_id","JOIN","Business_processes","AS","T3","ON","T1.process_id","=","T3.process_id","WHERE","T2.document_name","=","``","Travel","to","Brazil","''"],"query_toks_no_value":["select","t3",".","process_name","from","documents_processes","as","t1","join","documents","as","t2","on","t1",".","document_id","=","t2",".","document_id","join","business_processes","as","t3","on","t1",".","process_id","=","t3",".","process_id","where","t2",".","document_name","=","value"],"question":"Qual é o nome do processo para o documento \"Travel to Brazil\"?","question_toks":["Qual","é","o","nome","do","processo","para","o","documento","``","Travel","to","Brazil","''","?"],"sql":{"from":{"table_units":[["table_unit",7],["table_unit",5],["table_unit",6]],"conds":[[false,2,[0,[0,21,false],null],[0,11,false],null],"and",[false,2,[0,[0,22,false],null],[0,16,false],null]]},"select":[false,[[0,[0,[0,18,false],null]]]],"where":[[false,2,[0,[0,13,false],null],"\"Travel to Brazil\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT process_id , count(*) FROM Documents_processes GROUP BY process_id","query_toks":["SELECT","process_id",",","count","(","*",")","FROM","Documents_processes","GROUP","BY","process_id"],"query_toks_no_value":["select","process_id",",","count","(","*",")","from","documents_processes","group","by","process_id"],"question":"Mostre todos os ids de processo e o número de documentos em cada processo.","question_toks":["Mostre","todos","os","ids","de","processo","e","o","número","de","documentos","em","cada","processo","."],"sql":{"from":{"table_units":[["table_unit",7]],"conds":[]},"select":[false,[[0,[0,[0,22,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,22,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(*) FROM Staff_in_processes WHERE document_id = 0 AND process_id = 9","query_toks":["SELECT","count","(","*",")","FROM","Staff_in_processes","WHERE","document_id","=","0","AND","process_id","=","9"],"query_toks_no_value":["select","count","(","*",")","from","staff_in_processes","where","document_id","=","value","and","process_id","=","value"],"question":"Conte quantos funcionários estão no documento com id 0 e no processo com id 9.","question_toks":["Conte","quantos","funcionários","estão","no","documento","com","id","0","e","no","processo","com","id","9","."],"sql":{"from":{"table_units":[["table_unit",8]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[false,2,[0,[0,25,false],null],0.0,null],"and",[false,2,[0,[0,26,false],null],9.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT staff_id , count(*) FROM Staff_in_processes GROUP BY staff_id","query_toks":["SELECT","staff_id",",","count","(","*",")","FROM","Staff_in_processes","GROUP","BY","staff_id"],"query_toks_no_value":["select","staff_id",",","count","(","*",")","from","staff_in_processes","group","by","staff_id"],"question":"Mostre todos os ids de funcionários e o número de processos de documentos para cada funcionário.","question_toks":["Mostre","todos","os","ids","de","funcionários","e","o","número","de","processos","de","documentos","para","cada","funcionário","."],"sql":{"from":{"table_units":[["table_unit",8]],"conds":[]},"select":[false,[[0,[0,[0,27,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,27,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT staff_role_code , count(*) FROM Staff_in_processes GROUP BY staff_role_code","query_toks":["SELECT","staff_role_code",",","count","(","*",")","FROM","Staff_in_processes","GROUP","BY","staff_role_code"],"query_toks_no_value":["select","staff_role_code",",","count","(","*",")","from","staff_in_processes","group","by","staff_role_code"],"question":"Mostre todos os códigos de função da equipe e o número de processos de documentos para cada função.","question_toks":["Mostre","todos","os","códigos","de","função","da","equipe","e","o","número","de","processos","de","documentos","para","cada","função","."],"sql":{"from":{"table_units":[["table_unit",8]],"conds":[]},"select":[false,[[0,[0,[0,28,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,28,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"cre_Doc_Workflow","query":"SELECT count(DISTINCT staff_role_code) FROM Staff_in_processes WHERE staff_id = 3","query_toks":["SELECT","count","(","DISTINCT","staff_role_code",")","FROM","Staff_in_processes","WHERE","staff_id","=","3"],"query_toks_no_value":["select","count","(","distinct","staff_role_code",")","from","staff_in_processes","where","staff_id","=","value"],"question":"Quantos papéis diferentes o funcionário com id 3 possui?","question_toks":["Quantos","papéis","diferentes","o","funcionário","com","id","3","possui","?"],"sql":{"from":{"table_units":[["table_unit",8]],"conds":[]},"select":[false,[[3,[0,[0,28,true],null]]]],"where":[[false,2,[0,[0,27,false],null],3.0,null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT count(*) FROM Agencies","query_toks":["SELECT","count","(","*",")","FROM","Agencies"],"query_toks_no_value":["select","count","(","*",")","from","agencies"],"question":"Quantas agências temos?","question_toks":["Quantas","agências","temos","?"],"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":"advertising_agencies","query":"SELECT count(*) FROM Agencies","query_toks":["SELECT","count","(","*",")","FROM","Agencies"],"query_toks_no_value":["select","count","(","*",")","from","agencies"],"question":"Conte o número de agências.","question_toks":["Conte","o","número","de","agências","."],"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":"advertising_agencies","query":"SELECT agency_id , agency_details FROM Agencies","query_toks":["SELECT","agency_id",",","agency_details","FROM","Agencies"],"query_toks_no_value":["select","agency_id",",","agency_details","from","agencies"],"question":"Mostre todos os ids e detalhes das agências.","question_toks":["Mostre","todos","os","ids","e","detalhes","das","agências","."],"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":"advertising_agencies","query":"SELECT agency_id , agency_details FROM Agencies","query_toks":["SELECT","agency_id",",","agency_details","FROM","Agencies"],"query_toks_no_value":["select","agency_id",",","agency_details","from","agencies"],"question":"Quais são todos os ids e detalhes das agências?","question_toks":["Quais","são","todos","os","ids","e","detalhes","das","agências","?"],"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":"advertising_agencies","query":"SELECT count(*) FROM Clients","query_toks":["SELECT","count","(","*",")","FROM","Clients"],"query_toks_no_value":["select","count","(","*",")","from","clients"],"question":"Mostre o número de clientes.","question_toks":["Mostre","o","número","de","clientes","."],"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":"advertising_agencies","query":"SELECT count(*) FROM Clients","query_toks":["SELECT","count","(","*",")","FROM","Clients"],"query_toks_no_value":["select","count","(","*",")","from","clients"],"question":"Quantos clientes existem?","question_toks":["Quantos","clientes","existem","?"],"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":"advertising_agencies","query":"SELECT client_id , client_details FROM Clients","query_toks":["SELECT","client_id",",","client_details","FROM","Clients"],"query_toks_no_value":["select","client_id",",","client_details","from","clients"],"question":"Liste todos os ids de clientes e os detalhes dos clientes.","question_toks":["Liste","todos","os","ids","de","clientes","e","os","detalhes","dos","clientes","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id , client_details FROM Clients","query_toks":["SELECT","client_id",",","client_details","FROM","Clients"],"query_toks_no_value":["select","client_id",",","client_details","from","clients"],"question":"Quais são todos os ids e detalhes dos clientes?","question_toks":["Quais","são","todos","os","ids","e","detalhes","dos","clientes","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT agency_id , count(*) FROM Clients GROUP BY agency_id","query_toks":["SELECT","agency_id",",","count","(","*",")","FROM","Clients","GROUP","BY","agency_id"],"query_toks_no_value":["select","agency_id",",","count","(","*",")","from","clients","group","by","agency_id"],"question":"Mostre os ids das agências e o número de clientes para cada agência.","question_toks":["Mostre","os","ids","das","agências","e","o","número","de","clientes","para","cada","agência","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT agency_id , count(*) FROM Clients GROUP BY agency_id","query_toks":["SELECT","agency_id",",","count","(","*",")","FROM","Clients","GROUP","BY","agency_id"],"query_toks_no_value":["select","agency_id",",","count","(","*",")","from","clients","group","by","agency_id"],"question":"Quantos clientes cada agência tem?","question_toks":["Quantos","clientes","cada","agência","tem","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,7,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.agency_id",",","T1.agency_details","FROM","Agencies","AS","T1","JOIN","Clients","AS","T2","ON","T1.agency_id","=","T2.agency_id","GROUP","BY","T1.agency_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","agency_id",",","t1",".","agency_details","from","agencies","as","t1","join","clients","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","group","by","t1",".","agency_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id da agência e os detalhes com o maior número de clientes?","question_toks":["Qual","é","o","id","da","agência","e","os","detalhes","com","o","maior","número","de","clientes","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.agency_id",",","T1.agency_details","FROM","Agencies","AS","T1","JOIN","Clients","AS","T2","ON","T1.agency_id","=","T2.agency_id","GROUP","BY","T1.agency_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","agency_id",",","t1",".","agency_details","from","agencies","as","t1","join","clients","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","group","by","t1",".","agency_id","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne o id da agência e os detalhes da agência com o maior número de clientes.","question_toks":["Retorne","o","id","da","agência","e","os","detalhes","da","agência","com","o","maior","número","de","clientes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id HAVING count(*) >= 2","query_toks":["SELECT","T1.agency_id",",","T1.agency_details","FROM","Agencies","AS","T1","JOIN","Clients","AS","T2","ON","T1.agency_id","=","T2.agency_id","GROUP","BY","T1.agency_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","agency_id",",","t1",".","agency_details","from","agencies","as","t1","join","clients","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","group","by","t1",".","agency_id","having","count","(","*",")",">","=","value"],"question":"Mostre os ids das agências e detalhes com pelo menos 2 clientes.","question_toks":["Mostre","os","ids","das","agências","e","detalhes","com","pelo","menos","2","clientes","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id HAVING count(*) >= 2","query_toks":["SELECT","T1.agency_id",",","T1.agency_details","FROM","Agencies","AS","T1","JOIN","Clients","AS","T2","ON","T1.agency_id","=","T2.agency_id","GROUP","BY","T1.agency_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","t1",".","agency_id",",","t1",".","agency_details","from","agencies","as","t1","join","clients","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","group","by","t1",".","agency_id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids das agências e os detalhes das agências com pelo menos 2 clientes?","question_toks":["Quais","são","os","ids","das","agências","e","os","detalhes","das","agências","com","pelo","menos","2","clientes","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,7,false],null]]},"select":[false,[[0,[0,[0,1,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,1,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id WHERE T1.client_details = 'Mac'","query_toks":["SELECT","T2.agency_details","FROM","Clients","AS","T1","JOIN","Agencies","AS","T2","ON","T1.agency_id","=","T2.agency_id","WHERE","T1.client_details","=","'Mac","'"],"query_toks_no_value":["select","t2",".","agency_details","from","clients","as","t1","join","agencies","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","where","t1",".","client_details","=","value"],"question":"Mostre os detalhes da agência para o cliente com detalhe 'Mac'.","question_toks":["Mostre","os","detalhes","da","agência","para","o","cliente","com","detalhe","'Mac","'","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Mac\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id WHERE T1.client_details = 'Mac'","query_toks":["SELECT","T2.agency_details","FROM","Clients","AS","T1","JOIN","Agencies","AS","T2","ON","T1.agency_id","=","T2.agency_id","WHERE","T1.client_details","=","'Mac","'"],"query_toks_no_value":["select","t2",".","agency_details","from","clients","as","t1","join","agencies","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","where","t1",".","client_details","=","value"],"question":"Quais são os detalhes da agência para clientes com o detalhe Mac?","question_toks":["Quais","são","os","detalhes","da","agência","para","clientes","com","o","detalhe","Mac","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,2,false],null]]]],"where":[[false,2,[0,[0,9,false],null],"\"Mac\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.client_details , T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id","query_toks":["SELECT","T1.client_details",",","T2.agency_details","FROM","Clients","AS","T1","JOIN","Agencies","AS","T2","ON","T1.agency_id","=","T2.agency_id"],"query_toks_no_value":["select","t1",".","client_details",",","t2",".","agency_details","from","clients","as","t1","join","agencies","as","t2","on","t1",".","agency_id","=","t2",".","agency_id"],"question":"Mostre os detalhes de todos os clientes e os detalhes de seus agentes correspondentes.","question_toks":["Mostre","os","detalhes","de","todos","os","clientes","e","os","detalhes","de","seus","agentes","correspondentes","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.client_details , T2.agency_details FROM Clients AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id","query_toks":["SELECT","T1.client_details",",","T2.agency_details","FROM","Clients","AS","T1","JOIN","Agencies","AS","T2","ON","T1.agency_id","=","T2.agency_id"],"query_toks_no_value":["select","t1",".","client_details",",","t2",".","agency_details","from","clients","as","t1","join","agencies","as","t2","on","t1",".","agency_id","=","t2",".","agency_id"],"question":"Quais são os detalhes dos clientes para cada cliente e os detalhes correspondentes de suas agências?","question_toks":["Quais","são","os","detalhes","dos","clientes","para","cada","cliente","e","os","detalhes","correspondentes","de","suas","agências","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,9,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT sic_code , count(*) FROM Clients GROUP BY sic_code","query_toks":["SELECT","sic_code",",","count","(","*",")","FROM","Clients","GROUP","BY","sic_code"],"query_toks_no_value":["select","sic_code",",","count","(","*",")","from","clients","group","by","sic_code"],"question":"Mostre todos os códigos sic e o número de clientes com cada código.","question_toks":["Mostre","todos","os","códigos","sic","e","o","número","de","clientes","com","cada","código","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT sic_code , count(*) FROM Clients GROUP BY sic_code","query_toks":["SELECT","sic_code",",","count","(","*",")","FROM","Clients","GROUP","BY","sic_code"],"query_toks_no_value":["select","sic_code",",","count","(","*",")","from","clients","group","by","sic_code"],"question":"Quantos clientes existem para cada código sic?","question_toks":["Quantos","clientes","existem","para","cada","código","sic","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,8,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,8,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id , client_details FROM Clients WHERE sic_code = \"Bad\";","query_toks":["SELECT","client_id",",","client_details","FROM","Clients","WHERE","sic_code","=","``","Bad","''",";"],"query_toks_no_value":["select","client_id",",","client_details","from","clients","where","sic_code","=","value"],"question":"Mostre todos os ids de clientes e detalhes com o código sic \"Bad\".","question_toks":["Mostre","todos","os","ids","de","clientes","e","detalhes","com","o","código","sic","``","Bad","''","."],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"Bad\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id , client_details FROM Clients WHERE sic_code = \"Bad\";","query_toks":["SELECT","client_id",",","client_details","FROM","Clients","WHERE","sic_code","=","``","Bad","''",";"],"query_toks_no_value":["select","client_id",",","client_details","from","clients","where","sic_code","=","value"],"question":"Quais são os ids e detalhes dos clientes com o código sic Bad?","question_toks":["Quais","são","os","ids","e","detalhes","dos","clientes","com","o","código","sic","Bad","?"],"sql":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[[false,2,[0,[0,8,false],null],"\"Bad\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id","query_toks":["SELECT","T1.agency_id",",","T1.agency_details","FROM","Agencies","AS","T1","JOIN","Clients","AS","T2","ON","T1.agency_id","=","T2.agency_id"],"query_toks_no_value":["select","t1",".","agency_id",",","t1",".","agency_details","from","agencies","as","t1","join","clients","as","t2","on","t1",".","agency_id","=","t2",".","agency_id"],"question":"Mostre todos os ids e detalhes das agências que têm um cliente.","question_toks":["Mostre","todos","os","ids","e","detalhes","das","agências","que","têm","um","cliente","."],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,7,false],null]]},"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":"advertising_agencies","query":"SELECT T1.agency_id , T1.agency_details FROM Agencies AS T1 JOIN Clients AS T2 ON T1.agency_id = T2.agency_id","query_toks":["SELECT","T1.agency_id",",","T1.agency_details","FROM","Agencies","AS","T1","JOIN","Clients","AS","T2","ON","T1.agency_id","=","T2.agency_id"],"query_toks_no_value":["select","t1",".","agency_id",",","t1",".","agency_details","from","agencies","as","t1","join","clients","as","t2","on","t1",".","agency_id","=","t2",".","agency_id"],"question":"Quais são os ids das agências e os detalhes das agências para todas as agências que têm um cliente?","question_toks":["Quais","são","os","ids","das","agências","e","os","detalhes","das","agências","para","todas","as","agências","que","têm","um","cliente","?"],"sql":{"from":{"table_units":[["table_unit",0],["table_unit",2]],"conds":[[false,2,[0,[0,1,false],null],[0,7,false],null]]},"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":"advertising_agencies","query":"SELECT agency_id FROM Agencies EXCEPT SELECT agency_id FROM Clients","query_toks":["SELECT","agency_id","FROM","Agencies","EXCEPT","SELECT","agency_id","FROM","Clients"],"query_toks_no_value":["select","agency_id","from","agencies","except","select","agency_id","from","clients"],"question":"Mostre todos os ids de agências sem nenhum cliente.","question_toks":["Mostre","todos","os","ids","de","agências","sem","nenhum","cliente","."],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"advertising_agencies","query":"SELECT agency_id FROM Agencies EXCEPT SELECT agency_id FROM Clients","query_toks":["SELECT","agency_id","FROM","Agencies","EXCEPT","SELECT","agency_id","FROM","Clients"],"query_toks_no_value":["select","agency_id","from","agencies","except","select","agency_id","from","clients"],"question":"Quais são os ids das agências que não têm nenhum cliente?","question_toks":["Quais","são","os","ids","das","agências","que","não","têm","nenhum","cliente","?"],"sql":{"from":{"table_units":[["table_unit",0]],"conds":[]},"select":[false,[[0,[0,[0,1,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",2]],"conds":[]},"select":[false,[[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"advertising_agencies","query":"SELECT count(*) FROM Invoices","query_toks":["SELECT","count","(","*",")","FROM","Invoices"],"query_toks_no_value":["select","count","(","*",")","from","invoices"],"question":"Quantas faturas temos?","question_toks":["Quantas","faturas","temos","?"],"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":"advertising_agencies","query":"SELECT count(*) FROM Invoices","query_toks":["SELECT","count","(","*",")","FROM","Invoices"],"query_toks_no_value":["select","count","(","*",")","from","invoices"],"question":"Conte o número de faturas.","question_toks":["Conte","o","número","de","faturas","."],"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":"advertising_agencies","query":"SELECT invoice_id , invoice_status , invoice_details FROM Invoices","query_toks":["SELECT","invoice_id",",","invoice_status",",","invoice_details","FROM","Invoices"],"query_toks_no_value":["select","invoice_id",",","invoice_status",",","invoice_details","from","invoices"],"question":"Mostre os ids, códigos de status e detalhes de todas as faturas para os clientes.","question_toks":["Mostre","os","ids",",","códigos","de","status","e","detalhes","de","todas","as","faturas","para","os","clientes","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_id , invoice_status , invoice_details FROM Invoices","query_toks":["SELECT","invoice_id",",","invoice_status",",","invoice_details","FROM","Invoices"],"query_toks_no_value":["select","invoice_id",",","invoice_status",",","invoice_details","from","invoices"],"question":"Quais são os ids, status e detalhes de todas as faturas?","question_toks":["Quais","são","os","ids",",","status","e","detalhes","de","todas","as","faturas","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id , count(*) FROM Invoices GROUP BY client_id","query_toks":["SELECT","client_id",",","count","(","*",")","FROM","Invoices","GROUP","BY","client_id"],"query_toks_no_value":["select","client_id",",","count","(","*",")","from","invoices","group","by","client_id"],"question":"Mostre todos os ids de clientes e o número de faturas para cada cliente.","question_toks":["Mostre","todos","os","ids","de","clientes","e","o","número","de","faturas","para","cada","cliente","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id , count(*) FROM Invoices GROUP BY client_id","query_toks":["SELECT","client_id",",","count","(","*",")","FROM","Invoices","GROUP","BY","client_id"],"query_toks_no_value":["select","client_id",",","count","(","*",")","from","invoices","group","by","client_id"],"question":"Quantas faturas existem para cada id de cliente?","question_toks":["Quantas","faturas","existem","para","cada","id","de","cliente","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.client_id , T2.client_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id = T2.client_id GROUP BY T1.client_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.client_id",",","T2.client_details","FROM","Invoices","AS","T1","JOIN","Clients","AS","T2","ON","T1.client_id","=","T2.client_id","GROUP","BY","T1.client_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","client_id",",","t2",".","client_details","from","invoices","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id","group","by","t1",".","client_id","order","by","count","(","*",")","desc","limit","value"],"question":"Liste o id do cliente e os detalhes com o maior número de faturas.","question_toks":["Liste","o","id","do","cliente","e","os","detalhes","com","o","maior","número","de","faturas","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.client_id , T2.client_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id = T2.client_id GROUP BY T1.client_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.client_id",",","T2.client_details","FROM","Invoices","AS","T1","JOIN","Clients","AS","T2","ON","T1.client_id","=","T2.client_id","GROUP","BY","T1.client_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","client_id",",","t2",".","client_details","from","invoices","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id","group","by","t1",".","client_id","order","by","count","(","*",")","desc","limit","value"],"question":"Quais são o id do cliente e os detalhes do cliente com mais faturas?","question_toks":["Quais","são","o","id","do","cliente","e","os","detalhes","do","cliente","com","mais","faturas","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2]],"conds":[[false,2,[0,[0,11,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,11,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id FROM Invoices GROUP BY client_id HAVING count(*) >= 2","query_toks":["SELECT","client_id","FROM","Invoices","GROUP","BY","client_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","client_id","from","invoices","group","by","client_id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids dos clientes com pelo menos 2 faturas?","question_toks":["Quais","são","os","ids","dos","clientes","com","pelo","menos","2","faturas","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id FROM Invoices GROUP BY client_id HAVING count(*) >= 2","query_toks":["SELECT","client_id","FROM","Invoices","GROUP","BY","client_id","HAVING","count","(","*",")",">","=","2"],"query_toks_no_value":["select","client_id","from","invoices","group","by","client_id","having","count","(","*",")",">","=","value"],"question":"Retorne os ids dos clientes com duas ou mais faturas.","question_toks":["Retorne","os","ids","dos","clientes","com","duas","ou","mais","faturas","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,11,false],null]]]],"where":[],"groupBy":[[0,11,false]],"having":[[false,5,[0,[3,0,false],null],2.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_status , count(*) FROM Invoices GROUP BY invoice_status","query_toks":["SELECT","invoice_status",",","count","(","*",")","FROM","Invoices","GROUP","BY","invoice_status"],"query_toks_no_value":["select","invoice_status",",","count","(","*",")","from","invoices","group","by","invoice_status"],"question":"Mostre todos os códigos de status de fatura e o número de faturas com cada status.","question_toks":["Mostre","todos","os","códigos","de","status","de","fatura","e","o","número","de","faturas","com","cada","status","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_status , count(*) FROM Invoices GROUP BY invoice_status","query_toks":["SELECT","invoice_status",",","count","(","*",")","FROM","Invoices","GROUP","BY","invoice_status"],"query_toks_no_value":["select","invoice_status",",","count","(","*",")","from","invoices","group","by","invoice_status"],"question":"Quantas faturas existem para cada código de status?","question_toks":["Quantas","faturas","existem","para","cada","código","de","status","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_status FROM Invoices GROUP BY invoice_status ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","invoice_status","FROM","Invoices","GROUP","BY","invoice_status","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","invoice_status","from","invoices","group","by","invoice_status","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o código de status da fatura com o maior número de faturas?","question_toks":["Qual","é","o","código","de","status","da","fatura","com","o","maior","número","de","faturas","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_status FROM Invoices GROUP BY invoice_status ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","invoice_status","FROM","Invoices","GROUP","BY","invoice_status","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","invoice_status","from","invoices","group","by","invoice_status","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne o status da fatura que tem o maior número de faturas.","question_toks":["Retorne","o","status","da","fatura","que","tem","o","maior","número","de","faturas","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[[0,12,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.invoice_status , T1.invoice_details , T2.client_id , T2.client_details , T3.agency_id , T3.agency_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id = T2.client_id JOIN Agencies AS T3 ON T2.agency_id = T3.agency_id","query_toks":["SELECT","T1.invoice_status",",","T1.invoice_details",",","T2.client_id",",","T2.client_details",",","T3.agency_id",",","T3.agency_details","FROM","Invoices","AS","T1","JOIN","Clients","AS","T2","ON","T1.client_id","=","T2.client_id","JOIN","Agencies","AS","T3","ON","T2.agency_id","=","T3.agency_id"],"query_toks_no_value":["select","t1",".","invoice_status",",","t1",".","invoice_details",",","t2",".","client_id",",","t2",".","client_details",",","t3",".","agency_id",",","t3",".","agency_details","from","invoices","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id","join","agencies","as","t3","on","t2",".","agency_id","=","t3",".","agency_id"],"question":"Mostre todos os códigos e detalhes de status de fatura, juntamente com o id e detalhes do cliente e o id e detalhes da agência.","question_toks":["Mostre","todos","os","códigos","e","detalhes","de","status","de","fatura",",","juntamente","com","o","id","e","detalhes","do","cliente","e","o","id","e","detalhes","da","agência","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,6,false],null],"and",[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]],[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":"advertising_agencies","query":"SELECT T1.invoice_status , T1.invoice_details , T2.client_id , T2.client_details , T3.agency_id , T3.agency_details FROM Invoices AS T1 JOIN Clients AS T2 ON T1.client_id = T2.client_id JOIN Agencies AS T3 ON T2.agency_id = T3.agency_id","query_toks":["SELECT","T1.invoice_status",",","T1.invoice_details",",","T2.client_id",",","T2.client_details",",","T3.agency_id",",","T3.agency_details","FROM","Invoices","AS","T1","JOIN","Clients","AS","T2","ON","T1.client_id","=","T2.client_id","JOIN","Agencies","AS","T3","ON","T2.agency_id","=","T3.agency_id"],"query_toks_no_value":["select","t1",".","invoice_status",",","t1",".","invoice_details",",","t2",".","client_id",",","t2",".","client_details",",","t3",".","agency_id",",","t3",".","agency_details","from","invoices","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id","join","agencies","as","t3","on","t2",".","agency_id","=","t3",".","agency_id"],"question":"Quais são os status das faturas, os detalhes das faturas e os respectivos ids e detalhes dos clientes, além do id e detalhes da agência?","question_toks":["Quais","são","os","status","das","faturas",",","os","detalhes","das","faturas","e","os","respectivos","ids","e","detalhes","dos","clientes",",","além","do","id","e","detalhes","da","agência","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",2],["table_unit",0]],"conds":[[false,2,[0,[0,11,false],null],[0,6,false],null],"and",[false,2,[0,[0,7,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]],[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]],[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":"advertising_agencies","query":"SELECT meeting_type , other_details FROM meetings","query_toks":["SELECT","meeting_type",",","other_details","FROM","meetings"],"query_toks_no_value":["select","meeting_type",",","other_details","from","meetings"],"question":"Liste todos os códigos e detalhes dos tipos de reunião.","question_toks":["Liste","todos","os","códigos","e","detalhes","dos","tipos","de","reunião","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_type , other_details FROM meetings","query_toks":["SELECT","meeting_type",",","other_details","FROM","meetings"],"query_toks_no_value":["select","meeting_type",",","other_details","from","meetings"],"question":"Quais são todos os tipos de reunião e outros detalhes?","question_toks":["Quais","são","todos","os","tipos","de","reunião","e","outros","detalhes","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[0,[0,[0,22,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_outcome , purpose_of_meeting FROM meetings","query_toks":["SELECT","meeting_outcome",",","purpose_of_meeting","FROM","meetings"],"query_toks_no_value":["select","meeting_outcome",",","purpose_of_meeting","from","meetings"],"question":"Mostre todos os resultados e propósitos das reuniões.","question_toks":["Mostre","todos","os","resultados","e","propósitos","das","reuniões","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_outcome , purpose_of_meeting FROM meetings","query_toks":["SELECT","meeting_outcome",",","purpose_of_meeting","FROM","meetings"],"query_toks_no_value":["select","meeting_outcome",",","purpose_of_meeting","from","meetings"],"question":"Quais são todos os resultados e propósitos das reuniões?","question_toks":["Quais","são","todos","os","resultados","e","propósitos","das","reuniões","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[0,[0,[0,21,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.payment_id , T1.payment_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id = T2.invoice_id WHERE T2.invoice_status = 'Working'","query_toks":["SELECT","T1.payment_id",",","T1.payment_details","FROM","Payments","AS","T1","JOIN","Invoices","AS","T2","ON","T1.invoice_id","=","T2.invoice_id","WHERE","T2.invoice_status","=","'Working","'"],"query_toks_no_value":["select","t1",".","payment_id",",","t1",".","payment_details","from","payments","as","t1","join","invoices","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id","where","t2",".","invoice_status","=","value"],"question":"Mostre todos os ids de pagamento e detalhes para faturas cujo status é 'Working'.","question_toks":["Mostre","todos","os","ids","de","pagamento","e","detalhes","para","faturas","cujo","status","é","'Working","'","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,24,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,25,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Working\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.payment_id , T1.payment_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id = T2.invoice_id WHERE T2.invoice_status = 'Working'","query_toks":["SELECT","T1.payment_id",",","T1.payment_details","FROM","Payments","AS","T1","JOIN","Invoices","AS","T2","ON","T1.invoice_id","=","T2.invoice_id","WHERE","T2.invoice_status","=","'Working","'"],"query_toks_no_value":["select","t1",".","payment_id",",","t1",".","payment_details","from","payments","as","t1","join","invoices","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id","where","t2",".","invoice_status","=","value"],"question":"Quais são todos os ids de pagamento e detalhes de pagamento para faturas com status Working?","question_toks":["Quais","são","todos","os","ids","de","pagamento","e","detalhes","de","pagamento","para","faturas","com","status","Working","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,24,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,25,false],null]]]],"where":[[false,2,[0,[0,12,false],null],"\"Working\"",null]],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_id , invoice_status FROM Invoices EXCEPT SELECT T1.invoice_id , T1.invoice_status FROM Invoices AS T1 JOIN Payments AS T2 ON T1.invoice_id = T2.invoice_id","query_toks":["SELECT","invoice_id",",","invoice_status","FROM","Invoices","EXCEPT","SELECT","T1.invoice_id",",","T1.invoice_status","FROM","Invoices","AS","T1","JOIN","Payments","AS","T2","ON","T1.invoice_id","=","T2.invoice_id"],"query_toks_no_value":["select","invoice_id",",","invoice_status","from","invoices","except","select","t1",".","invoice_id",",","t1",".","invoice_status","from","invoices","as","t1","join","payments","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id"],"question":"Mostre todos os ids de faturas e status sem um pagamento.","question_toks":["Mostre","todos","os","ids","de","faturas","e","status","sem","um","pagamento","."],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,10,false],null],[0,24,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"advertising_agencies","query":"SELECT invoice_id , invoice_status FROM Invoices EXCEPT SELECT T1.invoice_id , T1.invoice_status FROM Invoices AS T1 JOIN Payments AS T2 ON T1.invoice_id = T2.invoice_id","query_toks":["SELECT","invoice_id",",","invoice_status","FROM","Invoices","EXCEPT","SELECT","T1.invoice_id",",","T1.invoice_status","FROM","Invoices","AS","T1","JOIN","Payments","AS","T2","ON","T1.invoice_id","=","T2.invoice_id"],"query_toks_no_value":["select","invoice_id",",","invoice_status","from","invoices","except","select","t1",".","invoice_id",",","t1",".","invoice_status","from","invoices","as","t1","join","payments","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id"],"question":"Quais são os ids e status das faturas sem pagamento?","question_toks":["Quais","são","os","ids","e","status","das","faturas","sem","pagamento","?"],"sql":{"from":{"table_units":[["table_unit",3]],"conds":[]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,10,false],null],[0,24,false],null]]},"select":[false,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}},{"db_id":"advertising_agencies","query":"SELECT count(*) FROM Payments","query_toks":["SELECT","count","(","*",")","FROM","Payments"],"query_toks_no_value":["select","count","(","*",")","from","payments"],"question":"Quantos pagamentos temos?","question_toks":["Quantos","pagamentos","temos","?"],"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":"advertising_agencies","query":"SELECT count(*) FROM Payments","query_toks":["SELECT","count","(","*",")","FROM","Payments"],"query_toks_no_value":["select","count","(","*",")","from","payments"],"question":"Conte o número de pagamentos.","question_toks":["Conte","o","número","de","pagamentos","."],"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":"advertising_agencies","query":"SELECT payment_id , invoice_id , payment_details FROM Payments","query_toks":["SELECT","payment_id",",","invoice_id",",","payment_details","FROM","Payments"],"query_toks_no_value":["select","payment_id",",","invoice_id",",","payment_details","from","payments"],"question":"Liste todos os ids de pagamento e seus correspondentes ids de fatura e detalhes.","question_toks":["Liste","todos","os","ids","de","pagamento","e","seus","correspondentes","ids","de","fatura","e","detalhes","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,24,false],null]],[0,[0,[0,25,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT payment_id , invoice_id , payment_details FROM Payments","query_toks":["SELECT","payment_id",",","invoice_id",",","payment_details","FROM","Payments"],"query_toks_no_value":["select","payment_id",",","invoice_id",",","payment_details","from","payments"],"question":"Quais são os ids de pagamento, ids de fatura e detalhes de pagamento para todos os pagamentos?","question_toks":["Quais","são","os","ids","de","pagamento",",","ids","de","fatura","e","detalhes","de","pagamento","para","todos","os","pagamentos","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,23,false],null]],[0,[0,[0,24,false],null]],[0,[0,[0,25,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT DISTINCT T1.invoice_id , T1.invoice_status FROM Invoices AS T1 JOIN Payments AS T2 ON T1.invoice_id = T2.invoice_id","query_toks":["SELECT","DISTINCT","T1.invoice_id",",","T1.invoice_status","FROM","Invoices","AS","T1","JOIN","Payments","AS","T2","ON","T1.invoice_id","=","T2.invoice_id"],"query_toks_no_value":["select","distinct","t1",".","invoice_id",",","t1",".","invoice_status","from","invoices","as","t1","join","payments","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id"],"question":"Mostre todos os diferentes ids de fatura e status dos pagamentos.","question_toks":["Mostre","todos","os","diferentes","ids","de","fatura","e","status","dos","pagamentos","."],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,10,false],null],[0,24,false],null]]},"select":[true,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT DISTINCT T1.invoice_id , T1.invoice_status FROM Invoices AS T1 JOIN Payments AS T2 ON T1.invoice_id = T2.invoice_id","query_toks":["SELECT","DISTINCT","T1.invoice_id",",","T1.invoice_status","FROM","Invoices","AS","T1","JOIN","Payments","AS","T2","ON","T1.invoice_id","=","T2.invoice_id"],"query_toks_no_value":["select","distinct","t1",".","invoice_id",",","t1",".","invoice_status","from","invoices","as","t1","join","payments","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id"],"question":"Quais são os IDs de fatura e status distintos para todos os pagamentos?","question_toks":["Quais","são","os","IDs","de","fatura","e","status","distintos","para","todos","os","pagamentos","?"],"sql":{"from":{"table_units":[["table_unit",3],["table_unit",5]],"conds":[[false,2,[0,[0,10,false],null],[0,24,false],null]]},"select":[true,[[0,[0,[0,10,false],null]],[0,[0,[0,12,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_id , count(*) FROM Payments GROUP BY invoice_id","query_toks":["SELECT","invoice_id",",","count","(","*",")","FROM","Payments","GROUP","BY","invoice_id"],"query_toks_no_value":["select","invoice_id",",","count","(","*",")","from","payments","group","by","invoice_id"],"question":"Mostre todos os ids de fatura e o número de pagamentos para cada fatura.","question_toks":["Mostre","todos","os","ids","de","fatura","e","o","número","de","pagamentos","para","cada","fatura","."],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,24,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,24,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT invoice_id , count(*) FROM Payments GROUP BY invoice_id","query_toks":["SELECT","invoice_id",",","count","(","*",")","FROM","Payments","GROUP","BY","invoice_id"],"query_toks_no_value":["select","invoice_id",",","count","(","*",")","from","payments","group","by","invoice_id"],"question":"Quantos pagamentos existem para cada fatura?","question_toks":["Quantos","pagamentos","existem","para","cada","fatura","?"],"sql":{"from":{"table_units":[["table_unit",5]],"conds":[]},"select":[false,[[0,[0,[0,24,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,24,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.invoice_id , T2.invoice_status , T2.invoice_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id = T2.invoice_id GROUP BY T1.invoice_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.invoice_id",",","T2.invoice_status",",","T2.invoice_details","FROM","Payments","AS","T1","JOIN","Invoices","AS","T2","ON","T1.invoice_id","=","T2.invoice_id","GROUP","BY","T1.invoice_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","invoice_id",",","t2",".","invoice_status",",","t2",".","invoice_details","from","payments","as","t1","join","invoices","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id","group","by","t1",".","invoice_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id da fatura, o código de status e os detalhes da fatura com o maior número de pagamentos?","question_toks":["Qual","é","o","id","da","fatura",",","o","código","de","status","e","os","detalhes","da","fatura","com","o","maior","número","de","pagamentos","?"],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,24,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,24,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,24,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.invoice_id , T2.invoice_status , T2.invoice_details FROM Payments AS T1 JOIN Invoices AS T2 ON T1.invoice_id = T2.invoice_id GROUP BY T1.invoice_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.invoice_id",",","T2.invoice_status",",","T2.invoice_details","FROM","Payments","AS","T1","JOIN","Invoices","AS","T2","ON","T1.invoice_id","=","T2.invoice_id","GROUP","BY","T1.invoice_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","invoice_id",",","t2",".","invoice_status",",","t2",".","invoice_details","from","payments","as","t1","join","invoices","as","t2","on","t1",".","invoice_id","=","t2",".","invoice_id","group","by","t1",".","invoice_id","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne os ids das faturas, status e detalhes para as faturas com mais pagamentos.","question_toks":["Retorne","os","ids","das","faturas",",","status","e","detalhes","para","as","faturas","com","mais","pagamentos","."],"sql":{"from":{"table_units":[["table_unit",5],["table_unit",3]],"conds":[[false,2,[0,[0,24,false],null],[0,10,false],null]]},"select":[false,[[0,[0,[0,24,false],null]],[0,[0,[0,12,false],null]],[0,[0,[0,13,false],null]]]],"where":[],"groupBy":[[0,24,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT count(*) FROM Staff","query_toks":["SELECT","count","(","*",")","FROM","Staff"],"query_toks_no_value":["select","count","(","*",")","from","staff"],"question":"Quantos funcionários temos?","question_toks":["Quantos","funcionários","temos","?"],"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":"advertising_agencies","query":"SELECT count(*) FROM Staff","query_toks":["SELECT","count","(","*",")","FROM","Staff"],"query_toks_no_value":["select","count","(","*",")","from","staff"],"question":"Conte o número de funcionários.","question_toks":["Conte","o","número","de","funcionários","."],"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":"advertising_agencies","query":"SELECT agency_id , count(*) FROM Staff GROUP BY agency_id","query_toks":["SELECT","agency_id",",","count","(","*",")","FROM","Staff","GROUP","BY","agency_id"],"query_toks_no_value":["select","agency_id",",","count","(","*",")","from","staff","group","by","agency_id"],"question":"Mostre os ids das agências e o número de funcionários em cada agência.","question_toks":["Mostre","os","ids","das","agências","e","o","número","de","funcionários","em","cada","agência","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT agency_id , count(*) FROM Staff GROUP BY agency_id","query_toks":["SELECT","agency_id",",","count","(","*",")","FROM","Staff","GROUP","BY","agency_id"],"query_toks_no_value":["select","agency_id",",","count","(","*",")","from","staff","group","by","agency_id"],"question":"Retorne os ids das agências e o número de funcionários em cada uma.","question_toks":["Retorne","os","ids","das","agências","e","o","número","de","funcionários","em","cada","uma","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,4,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.agency_id , T2.agency_details FROM Staff AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.agency_id",",","T2.agency_details","FROM","Staff","AS","T1","JOIN","Agencies","AS","T2","ON","T1.agency_id","=","T2.agency_id","GROUP","BY","T1.agency_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","agency_id",",","t2",".","agency_details","from","staff","as","t1","join","agencies","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","group","by","t1",".","agency_id","order","by","count","(","*",")","desc","limit","value"],"question":"Qual é o id do agente e os detalhes da agência com mais funcionários?","question_toks":["Qual","é","o","id","do","agente","e","os","detalhes","da","agência","com","mais","funcionários","?"],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,4,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.agency_id , T2.agency_details FROM Staff AS T1 JOIN Agencies AS T2 ON T1.agency_id = T2.agency_id GROUP BY T1.agency_id ORDER BY count(*) DESC LIMIT 1","query_toks":["SELECT","T1.agency_id",",","T2.agency_details","FROM","Staff","AS","T1","JOIN","Agencies","AS","T2","ON","T1.agency_id","=","T2.agency_id","GROUP","BY","T1.agency_id","ORDER","BY","count","(","*",")","DESC","LIMIT","1"],"query_toks_no_value":["select","t1",".","agency_id",",","t2",".","agency_details","from","staff","as","t1","join","agencies","as","t2","on","t1",".","agency_id","=","t2",".","agency_id","group","by","t1",".","agency_id","order","by","count","(","*",")","desc","limit","value"],"question":"Retorne o id e os detalhes da agência com mais funcionários.","question_toks":["Retorne","o","id","e","os","detalhes","da","agência","com","mais","funcionários","."],"sql":{"from":{"table_units":[["table_unit",1],["table_unit",0]],"conds":[[false,2,[0,[0,4,false],null],[0,1,false],null]]},"select":[false,[[0,[0,[0,4,false],null]],[0,[0,[0,2,false],null]]]],"where":[],"groupBy":[[0,4,false]],"having":[],"orderBy":["desc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_outcome , count(*) FROM Meetings GROUP BY meeting_outcome","query_toks":["SELECT","meeting_outcome",",","count","(","*",")","FROM","Meetings","GROUP","BY","meeting_outcome"],"query_toks_no_value":["select","meeting_outcome",",","count","(","*",")","from","meetings","group","by","meeting_outcome"],"question":"Mostre os códigos de resultado das reuniões e o número de reuniões em cada resultado.","question_toks":["Mostre","os","códigos","de","resultado","das","reuniões","e","o","número","de","reuniões","em","cada","resultado","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_outcome , count(*) FROM Meetings GROUP BY meeting_outcome","query_toks":["SELECT","meeting_outcome",",","count","(","*",")","FROM","Meetings","GROUP","BY","meeting_outcome"],"query_toks_no_value":["select","meeting_outcome",",","count","(","*",")","from","meetings","group","by","meeting_outcome"],"question":"Quantas reuniões tiveram cada resultado da reunião?","question_toks":["Quantas","reuniões","tiveram","cada","resultado","da","reunião","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,16,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,16,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id , count(*) FROM Meetings GROUP BY client_id","query_toks":["SELECT","client_id",",","count","(","*",")","FROM","Meetings","GROUP","BY","client_id"],"query_toks_no_value":["select","client_id",",","count","(","*",")","from","meetings","group","by","client_id"],"question":"Liste os ids dos clientes e o número de reuniões para cada cliente.","question_toks":["Liste","os","ids","dos","clientes","e","o","número","de","reuniões","para","cada","cliente","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT client_id , count(*) FROM Meetings GROUP BY client_id","query_toks":["SELECT","client_id",",","count","(","*",")","FROM","Meetings","GROUP","BY","client_id"],"query_toks_no_value":["select","client_id",",","count","(","*",")","from","meetings","group","by","client_id"],"question":"Quantas reuniões existem para cada id de cliente?","question_toks":["Quantas","reuniões","existem","para","cada","id","de","cliente","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,15,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,15,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_type , count(*) FROM Meetings GROUP BY meeting_type","query_toks":["SELECT","meeting_type",",","count","(","*",")","FROM","Meetings","GROUP","BY","meeting_type"],"query_toks_no_value":["select","meeting_type",",","count","(","*",")","from","meetings","group","by","meeting_type"],"question":"Mostre os códigos dos tipos de reunião e o número de reuniões para cada cliente.","question_toks":["Mostre","os","códigos","dos","tipos","de","reunião","e","o","número","de","reuniões","para","cada","cliente","."],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_type , count(*) FROM Meetings GROUP BY meeting_type","query_toks":["SELECT","meeting_type",",","count","(","*",")","FROM","Meetings","GROUP","BY","meeting_type"],"query_toks_no_value":["select","meeting_type",",","count","(","*",")","from","meetings","group","by","meeting_type"],"question":"Quantas reuniões existem para cada tipo de reunião?","question_toks":["Quantas","reuniões","existem","para","cada","tipo","de","reunião","?"],"sql":{"from":{"table_units":[["table_unit",4]],"conds":[]},"select":[false,[[0,[0,[0,17,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,17,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.meeting_id , T1.meeting_outcome , T1.meeting_type , T2.client_details FROM meetings AS T1 JOIN clients AS T2 ON T1.client_id = T2.client_id","query_toks":["SELECT","T1.meeting_id",",","T1.meeting_outcome",",","T1.meeting_type",",","T2.client_details","FROM","meetings","AS","T1","JOIN","clients","AS","T2","ON","T1.client_id","=","T2.client_id"],"query_toks_no_value":["select","t1",".","meeting_id",",","t1",".","meeting_outcome",",","t1",".","meeting_type",",","t2",".","client_details","from","meetings","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id"],"question":"Mostre todos os ids de reuniões, resultados de reuniões, tipos de reuniões e os detalhes do cliente que está participando.","question_toks":["Mostre","todos","os","ids","de","reuniões",",","resultados","de","reuniões",",","tipos","de","reuniões","e","os","detalhes","do","cliente","que","está","participando","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,15,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.meeting_id , T1.meeting_outcome , T1.meeting_type , T2.client_details FROM meetings AS T1 JOIN clients AS T2 ON T1.client_id = T2.client_id","query_toks":["SELECT","T1.meeting_id",",","T1.meeting_outcome",",","T1.meeting_type",",","T2.client_details","FROM","meetings","AS","T1","JOIN","clients","AS","T2","ON","T1.client_id","=","T2.client_id"],"query_toks_no_value":["select","t1",".","meeting_id",",","t1",".","meeting_outcome",",","t1",".","meeting_type",",","t2",".","client_details","from","meetings","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id"],"question":"Quais são os ids das reuniões, os resultados das reuniões, os tipos de reuniões e os detalhes dos clientes para todas as reuniões?","question_toks":["Quais","são","os","ids","das","reuniões",",","os","resultados","das","reuniões",",","os","tipos","de","reuniões","e","os","detalhes","dos","clientes","para","todas","as","reuniões","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2]],"conds":[[false,2,[0,[0,15,false],null],[0,6,false],null]]},"select":[false,[[0,[0,[0,14,false],null]],[0,[0,[0,16,false],null]],[0,[0,[0,17,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_id , count(*) FROM Staff_in_meetings GROUP BY meeting_id","query_toks":["SELECT","meeting_id",",","count","(","*",")","FROM","Staff_in_meetings","GROUP","BY","meeting_id"],"query_toks_no_value":["select","meeting_id",",","count","(","*",")","from","staff_in_meetings","group","by","meeting_id"],"question":"Mostre os ids das reuniões e o número de funcionários em cada reunião.","question_toks":["Mostre","os","ids","das","reuniões","e","o","número","de","funcionários","em","cada","reunião","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,26,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT meeting_id , count(*) FROM Staff_in_meetings GROUP BY meeting_id","query_toks":["SELECT","meeting_id",",","count","(","*",")","FROM","Staff_in_meetings","GROUP","BY","meeting_id"],"query_toks_no_value":["select","meeting_id",",","count","(","*",")","from","staff_in_meetings","group","by","meeting_id"],"question":"Conte o número de funcionários em cada reunião por id da reunião.","question_toks":["Conte","o","número","de","funcionários","em","cada","reunião","por","id","da","reunião","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,26,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,26,false]],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT staff_id , count(*) FROM Staff_in_meetings GROUP BY staff_id ORDER BY count(*) ASC LIMIT 1;","query_toks":["SELECT","staff_id",",","count","(","*",")","FROM","Staff_in_meetings","GROUP","BY","staff_id","ORDER","BY","count","(","*",")","ASC","LIMIT","1",";"],"query_toks_no_value":["select","staff_id",",","count","(","*",")","from","staff_in_meetings","group","by","staff_id","order","by","count","(","*",")","asc","limit","value"],"question":"Mostre o id do funcionário e o número de reuniões assistidas pelo funcionário que participou de alguma reunião, mas teve a menor participação.","question_toks":["Mostre","o","id","do","funcionário","e","o","número","de","reuniões","assistidas","pelo","funcionário","que","participou","de","alguma","reunião",",","mas","teve","a","menor","participação","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,27,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,27,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT staff_id , count(*) FROM Staff_in_meetings GROUP BY staff_id ORDER BY count(*) ASC LIMIT 1;","query_toks":["SELECT","staff_id",",","count","(","*",")","FROM","Staff_in_meetings","GROUP","BY","staff_id","ORDER","BY","count","(","*",")","ASC","LIMIT","1",";"],"query_toks_no_value":["select","staff_id",",","count","(","*",")","from","staff_in_meetings","group","by","staff_id","order","by","count","(","*",")","asc","limit","value"],"question":"Qual é o id do funcionário que participou do menor número de reuniões, mas participou de alguma reunião?","question_toks":["Qual","é","o","id","do","funcionário","que","participou","do","menor","número","de","reuniões",",","mas","participou","de","alguma","reunião","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,27,false],null]],[3,[0,[0,0,false],null]]]],"where":[],"groupBy":[[0,27,false]],"having":[],"orderBy":["asc",[[0,[3,0,false],null]]],"limit":1,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT count(DISTINCT staff_id) FROM Staff_in_meetings","query_toks":["SELECT","count","(","DISTINCT","staff_id",")","FROM","Staff_in_meetings"],"query_toks_no_value":["select","count","(","distinct","staff_id",")","from","staff_in_meetings"],"question":"Quantos funcionários participaram de uma reunião?","question_toks":["Quantos","funcionários","participaram","de","uma","reunião","?"],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[3,[0,[0,27,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT count(DISTINCT staff_id) FROM Staff_in_meetings","query_toks":["SELECT","count","(","DISTINCT","staff_id",")","FROM","Staff_in_meetings"],"query_toks_no_value":["select","count","(","distinct","staff_id",")","from","staff_in_meetings"],"question":"Retorne o número de funcionários distintos que participaram de uma reunião.","question_toks":["Retorne","o","número","de","funcionários","distintos","que","participaram","de","uma","reunião","."],"sql":{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[3,[0,[0,27,true],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT count(*) FROM Staff WHERE staff_id NOT IN ( SELECT staff_id FROM Staff_in_meetings )","query_toks":["SELECT","count","(","*",")","FROM","Staff","WHERE","staff_id","NOT","IN","(","SELECT","staff_id","FROM","Staff_in_meetings",")"],"query_toks_no_value":["select","count","(","*",")","from","staff","where","staff_id","not","in","(","select","staff_id","from","staff_in_meetings",")"],"question":"Quantos funcionários não participaram de nenhuma reunião?","question_toks":["Quantos","funcionários","não","participaram","de","nenhuma","reunião","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,27,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":"advertising_agencies","query":"SELECT count(*) FROM Staff WHERE staff_id NOT IN ( SELECT staff_id FROM Staff_in_meetings )","query_toks":["SELECT","count","(","*",")","FROM","Staff","WHERE","staff_id","NOT","IN","(","SELECT","staff_id","FROM","Staff_in_meetings",")"],"query_toks_no_value":["select","count","(","*",")","from","staff","where","staff_id","not","in","(","select","staff_id","from","staff_in_meetings",")"],"question":"Conte o número de funcionários que não participaram de nenhuma reunião.","question_toks":["Conte","o","número","de","funcionários","que","não","participaram","de","nenhuma","reunião","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[3,[0,[0,0,false],null]]]],"where":[[true,8,[0,[0,3,false],null],{"from":{"table_units":[["table_unit",6]],"conds":[]},"select":[false,[[0,[0,[0,27,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":"advertising_agencies","query":"SELECT T1.client_id , T1.client_details FROM Clients AS T1 JOIN meetings AS T2 ON T1.client_id = T2.client_id UNION SELECT T1.client_id , T1.client_details FROM Clients AS T1 JOIN invoices AS T2 ON T1.client_id = T2.client_id","query_toks":["SELECT","T1.client_id",",","T1.client_details","FROM","Clients","AS","T1","JOIN","meetings","AS","T2","ON","T1.client_id","=","T2.client_id","UNION","SELECT","T1.client_id",",","T1.client_details","FROM","Clients","AS","T1","JOIN","invoices","AS","T2","ON","T1.client_id","=","T2.client_id"],"query_toks_no_value":["select","t1",".","client_id",",","t1",".","client_details","from","clients","as","t1","join","meetings","as","t2","on","t1",".","client_id","=","t2",".","client_id","union","select","t1",".","client_id",",","t1",".","client_details","from","clients","as","t1","join","invoices","as","t2","on","t1",".","client_id","=","t2",".","client_id"],"question":"Quais são os ids e detalhes dos clientes que participaram de alguma reunião ou têm alguma fatura?","question_toks":["Quais","são","os","ids","e","detalhes","dos","clientes","que","participaram","de","alguma","reunião","ou","têm","alguma","fatura","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.client_id , T1.client_details FROM Clients AS T1 JOIN meetings AS T2 ON T1.client_id = T2.client_id UNION SELECT T1.client_id , T1.client_details FROM Clients AS T1 JOIN invoices AS T2 ON T1.client_id = T2.client_id","query_toks":["SELECT","T1.client_id",",","T1.client_details","FROM","Clients","AS","T1","JOIN","meetings","AS","T2","ON","T1.client_id","=","T2.client_id","UNION","SELECT","T1.client_id",",","T1.client_details","FROM","Clients","AS","T1","JOIN","invoices","AS","T2","ON","T1.client_id","=","T2.client_id"],"query_toks_no_value":["select","t1",".","client_id",",","t1",".","client_details","from","clients","as","t1","join","meetings","as","t2","on","t1",".","client_id","=","t2",".","client_id","union","select","t1",".","client_id",",","t1",".","client_details","from","clients","as","t1","join","invoices","as","t2","on","t1",".","client_id","=","t2",".","client_id"],"question":"Retorne os ids e detalhes dos clientes que participaram de uma reunião ou tiveram uma fatura.","question_toks":["Retorne","os","ids","e","detalhes","dos","clientes","que","participaram","de","uma","reunião","ou","tiveram","uma","fatura","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,9,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"except":null}},{"db_id":"advertising_agencies","query":"SELECT staff_id , staff_details FROM staff WHERE staff_details LIKE \"%s%\" GROUP BY staff_id HAVING count(*) >= 1","query_toks":["SELECT","staff_id",",","staff_details","FROM","staff","WHERE","staff_details","LIKE","``","%","s","%","''","GROUP","BY","staff_id","HAVING","count","(","*",")",">","=","1"],"query_toks_no_value":["select","staff_id",",","staff_details","from","staff","where","staff_details","like","value","group","by","staff_id","having","count","(","*",")",">","=","value"],"question":"Quais são os ids e detalhes da equipe que participaram de pelo menos 1 reunião e têm o detalhe com a letra 's'?","question_toks":["Quais","são","os","ids","e","detalhes","da","equipe","que","participaram","de","pelo","menos","1","reunião","e","têm","o","detalhe","com","a","letra","'s","'","?"],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%s%\"",null]],"groupBy":[[0,3,false]],"having":[[false,5,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT staff_id , staff_details FROM staff WHERE staff_details LIKE \"%s%\" GROUP BY staff_id HAVING count(*) >= 1","query_toks":["SELECT","staff_id",",","staff_details","FROM","staff","WHERE","staff_details","LIKE","``","%","s","%","''","GROUP","BY","staff_id","HAVING","count","(","*",")",">","=","1"],"query_toks_no_value":["select","staff_id",",","staff_details","from","staff","where","staff_details","like","value","group","by","staff_id","having","count","(","*",")",">","=","value"],"question":"Retorne os ids e detalhes da equipe que participaram de pelo menos 1 reunião e têm um \"s\" em seus detalhes.","question_toks":["Retorne","os","ids","e","detalhes","da","equipe","que","participaram","de","pelo","menos","1","reunião","e","têm","um","``","s","''","em","seus","detalhes","."],"sql":{"from":{"table_units":[["table_unit",1]],"conds":[]},"select":[false,[[0,[0,[0,3,false],null]],[0,[0,[0,5,false],null]]]],"where":[[false,9,[0,[0,5,false],null],"\"%s%\"",null]],"groupBy":[[0,3,false]],"having":[[false,5,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.client_id , T1.sic_code , T1.agency_id FROM clients AS T1 JOIN meetings AS T2 ON T1.client_id = T2.client_id GROUP BY T1.client_id HAVING count(*) = 1 INTERSECT SELECT T1.client_id , T1.sic_code , T1.agency_id FROM clients AS T1 JOIN invoices AS T2 ON T1.client_id = T2.client_id","query_toks":["SELECT","T1.client_id",",","T1.sic_code",",","T1.agency_id","FROM","clients","AS","T1","JOIN","meetings","AS","T2","ON","T1.client_id","=","T2.client_id","GROUP","BY","T1.client_id","HAVING","count","(","*",")","=","1","INTERSECT","SELECT","T1.client_id",",","T1.sic_code",",","T1.agency_id","FROM","clients","AS","T1","JOIN","invoices","AS","T2","ON","T1.client_id","=","T2.client_id"],"query_toks_no_value":["select","t1",".","client_id",",","t1",".","sic_code",",","t1",".","agency_id","from","clients","as","t1","join","meetings","as","t2","on","t1",".","client_id","=","t2",".","client_id","group","by","t1",".","client_id","having","count","(","*",")","=","value","intersect","select","t1",".","client_id",",","t1",".","sic_code",",","t1",".","agency_id","from","clients","as","t1","join","invoices","as","t2","on","t1",".","client_id","=","t2",".","client_id"],"question":"Quais são o id, o código sic e o id da agência do cliente que participou de 1 reunião e possui alguma fatura?","question_toks":["Quais","são","o","id",",","o","código","sic","e","o","id","da","agência","do","cliente","que","participou","de","1","reunião","e","possui","alguma","fatura","?"],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.client_id , T1.sic_code , T1.agency_id FROM clients AS T1 JOIN meetings AS T2 ON T1.client_id = T2.client_id GROUP BY T1.client_id HAVING count(*) = 1 INTERSECT SELECT T1.client_id , T1.sic_code , T1.agency_id FROM clients AS T1 JOIN invoices AS T2 ON T1.client_id = T2.client_id","query_toks":["SELECT","T1.client_id",",","T1.sic_code",",","T1.agency_id","FROM","clients","AS","T1","JOIN","meetings","AS","T2","ON","T1.client_id","=","T2.client_id","GROUP","BY","T1.client_id","HAVING","count","(","*",")","=","1","INTERSECT","SELECT","T1.client_id",",","T1.sic_code",",","T1.agency_id","FROM","clients","AS","T1","JOIN","invoices","AS","T2","ON","T1.client_id","=","T2.client_id"],"query_toks_no_value":["select","t1",".","client_id",",","t1",".","sic_code",",","t1",".","agency_id","from","clients","as","t1","join","meetings","as","t2","on","t1",".","client_id","=","t2",".","client_id","group","by","t1",".","client_id","having","count","(","*",")","=","value","intersect","select","t1",".","client_id",",","t1",".","sic_code",",","t1",".","agency_id","from","clients","as","t1","join","invoices","as","t2","on","t1",".","client_id","=","t2",".","client_id"],"question":"Retorne os ids, códigos sic e ids de agência dos clientes que participaram de 1 reunião e tiveram uma fatura.","question_toks":["Retorne","os","ids",",","códigos","sic","e","ids","de","agência","dos","clientes","que","participaram","de","1","reunião","e","tiveram","uma","fatura","."],"sql":{"from":{"table_units":[["table_unit",2],["table_unit",4]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[[0,6,false]],"having":[[false,2,[0,[3,0,false],null],1.0,null]],"orderBy":[],"limit":null,"intersect":{"from":{"table_units":[["table_unit",2],["table_unit",3]],"conds":[[false,2,[0,[0,6,false],null],[0,11,false],null]]},"select":[false,[[0,[0,[0,6,false],null]],[0,[0,[0,8,false],null]],[0,[0,[0,7,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null},"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.start_date_time , T1.end_date_time , T2.client_details , T4.staff_details FROM meetings AS T1 JOIN clients AS T2 ON T1.client_id = T2.client_id JOIN staff_in_meetings AS T3 ON T1.meeting_id = T3.meeting_id JOIN staff AS T4 ON T3.staff_id = T4.staff_id","query_toks":["SELECT","T1.start_date_time",",","T1.end_date_time",",","T2.client_details",",","T4.staff_details","FROM","meetings","AS","T1","JOIN","clients","AS","T2","ON","T1.client_id","=","T2.client_id","JOIN","staff_in_meetings","AS","T3","ON","T1.meeting_id","=","T3.meeting_id","JOIN","staff","AS","T4","ON","T3.staff_id","=","T4.staff_id"],"query_toks_no_value":["select","t1",".","start_date_time",",","t1",".","end_date_time",",","t2",".","client_details",",","t4",".","staff_details","from","meetings","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id","join","staff_in_meetings","as","t3","on","t1",".","meeting_id","=","t3",".","meeting_id","join","staff","as","t4","on","t3",".","staff_id","=","t4",".","staff_id"],"question":"Liste a hora de início, a hora de término de cada reunião e os detalhes correspondentes do cliente e da equipe.","question_toks":["Liste","a","hora","de","início",",","a","hora","de","término","de","cada","reunião","e","os","detalhes","correspondentes","do","cliente","e","da","equipe","."],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",6],["table_unit",1]],"conds":[[false,2,[0,[0,15,false],null],[0,6,false],null],"and",[false,2,[0,[0,14,false],null],[0,26,false],null],"and",[false,2,[0,[0,27,false],null],[0,3,false],null]]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,20,false],null]],[0,[0,[0,9,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}},{"db_id":"advertising_agencies","query":"SELECT T1.start_date_time , T1.end_date_time , T2.client_details , T4.staff_details FROM meetings AS T1 JOIN clients AS T2 ON T1.client_id = T2.client_id JOIN staff_in_meetings AS T3 ON T1.meeting_id = T3.meeting_id JOIN staff AS T4 ON T3.staff_id = T4.staff_id","query_toks":["SELECT","T1.start_date_time",",","T1.end_date_time",",","T2.client_details",",","T4.staff_details","FROM","meetings","AS","T1","JOIN","clients","AS","T2","ON","T1.client_id","=","T2.client_id","JOIN","staff_in_meetings","AS","T3","ON","T1.meeting_id","=","T3.meeting_id","JOIN","staff","AS","T4","ON","T3.staff_id","=","T4.staff_id"],"query_toks_no_value":["select","t1",".","start_date_time",",","t1",".","end_date_time",",","t2",".","client_details",",","t4",".","staff_details","from","meetings","as","t1","join","clients","as","t2","on","t1",".","client_id","=","t2",".","client_id","join","staff_in_meetings","as","t3","on","t1",".","meeting_id","=","t3",".","meeting_id","join","staff","as","t4","on","t3",".","staff_id","=","t4",".","staff_id"],"question":"Quais são os horários de início e fim de cada reunião, bem como os detalhes correspondentes do cliente e da equipe dos participantes?","question_toks":["Quais","são","os","horários","de","início","e","fim","de","cada","reunião",",","bem","como","os","detalhes","correspondentes","do","cliente","e","da","equipe","dos","participantes","?"],"sql":{"from":{"table_units":[["table_unit",4],["table_unit",2],["table_unit",6],["table_unit",1]],"conds":[[false,2,[0,[0,15,false],null],[0,6,false],null],"and",[false,2,[0,[0,14,false],null],[0,26,false],null],"and",[false,2,[0,[0,27,false],null],[0,3,false],null]]},"select":[false,[[0,[0,[0,19,false],null]],[0,[0,[0,20,false],null]],[0,[0,[0,9,false],null]],[0,[0,[0,5,false],null]]]],"where":[],"groupBy":[],"having":[],"orderBy":[],"limit":null,"intersect":null,"union":null,"except":null}}]