CREATE TABLE Student (Spent NUMBER)
CREATE TABLE Visits_Restaurant (Spent NUMBER)

How long does student Linda Smith spend on the restaurant in total?
SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith"
SELECT SUM("Spent") FROM "Student" JOIN "Visits_Restaurant" ON "Student"."StuID" = "Visits_Restaurant"."StuID" WHERE "Linda" = "Student"."Fname" AND "Smith" = "Student"."Lname"