CREATE TABLE Visits_Restaurant (Id VARCHAR)
CREATE TABLE Restaurant (Id VARCHAR)

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