human
Schema:
Activity (actid, activity_name)
Participates_in (stuid, actid)
Faculty_Participates_in (FacID, actid)
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Faculty (FacID, Lname, Fname, Rank, Sex, Phone, Room, Building)
Please answer with SQL.
assistant
Sure, I understand.
human
I want to know the names of advisors available
assistant
SELECT fname , lname FROM Faculty;
human
Could you tell me the names of advisors for female students?
assistant
SELECT T2.fname , T2.lname FROM student AS T1 JOIN faculty AS T2 ON T2.FacID = T1.advisor WHERE T1.sex = "F" ;