Find the name of amenities of the dorm where the student with last name Smith is living in.
create table student (stuid varchar, lname varchar, PRIMARY KEY (stuid)); create table dorm (dormid varchar, PRIMARY KEY (dormid)); create table lives_in (dormid varchar, stuid varchar, PRIMARY KEY (dormid)); create table has_amenity (dormid varchar, amenid varchar, PRIMARY KEY (dormid)); create table dorm_amenity (amenity_name varchar, amenid varchar, PRIMARY KEY (amenity_name))
select t3.amenity_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid join lives_in as t4 on t4.dormid = t1.dormid join student as t5 on t5.stuid = t4.stuid where t5.lname = 'smith'