CREATE TABLE student (stuid DECIMAL, lname TEXT, fname TEXT, age DECIMAL, sex TEXT, major DECIMAL, advisor DECIMAL, city_code TEXT)
CREATE TABLE visits_restaurant (stuid DECIMAL, resid DECIMAL, time TIME, spent DECIMAL)
CREATE TABLE restaurant_type (restypeid DECIMAL, restypename TEXT, restypedescription TEXT)
CREATE TABLE type_of_restaurant (resid DECIMAL, restypeid DECIMAL)
CREATE TABLE restaurant (resid DECIMAL, resname TEXT, address TEXT, rating DECIMAL)

At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.
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
SELECT "restaurant"."resname", SUM("visits_restaurant"."spent") FROM "visits_restaurant" JOIN "restaurant" ON "restaurant"."resid" = "visits_restaurant"."resid" GROUP BY "restaurant"."resid" ORDER BY SUM("visits_restaurant"."spent") NULLS FIRST LIMIT 1