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