CREATE TABLE assignedto (project VARCHAR2, scientist VARCHAR2)
CREATE TABLE projects (name VARCHAR2, code VARCHAR2)
CREATE TABLE scientists (SSN VARCHAR2, name VARCHAR2)

Find the name of the project for which a scientist whose name contains Smith is assigned to.
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%'
SELECT "T2"."name" FROM "assignedto" "T1" JOIN "projects" "T2" ON "T1"."project" = "T2"."code" JOIN "scientists" "T3" ON "T1"."scientist" = "T3"."SSN" AND "T3"."name" LIKE '%Smith%'