At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.
create table visits_restaurant (id varchar, PRIMARY KEY (id)); create table restaurant (id varchar, PRIMARY KEY (id))
select restaurant.resname, sum(visits_restaurant.spent) from visits_restaurant join restaurant on visits_restaurant.resid = restaurant.resid group by restaurant.resid order by sum(visits_restaurant.spent) limit 1