How long does student Linda Smith spend on the restaurant in total?
create table visits_restaurant (spent integer, PRIMARY KEY (spent)); create table student (spent integer, PRIMARY KEY (spent))
select sum(spent) from student join visits_restaurant on student.stuid = visits_restaurant.stuid where student.fname = "linda" and student.lname = "smith"