Question: Find the name of amenities Smith Hall dorm have.
Schema: create table has_amenity (dormid varchar, amenid varchar, PRIMARY KEY (dormid)); create table dorm_amenity (amenity_name varchar, amenid varchar, PRIMARY KEY (amenity_name)); create table dorm (dormid varchar, dorm_name varchar, PRIMARY KEY (dormid))
SQL: 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 where t1.dorm_name = 'smith hall'