human
Schema:
Scientists (SSN, Name)
Projects (Code, Name, Hours)
AssignedTo (Scientist, Project)
Please answer with SQL.
assistant
Sure, I understand.
human
Fine the name of the project for which a scientist whose name contains 'Smith' is assigned to.
assistant
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%';
human
What is the first name of 'Smith
assistant
SELECT name FROM scientists WHERE name LIKE "%Smith%" ;