CREATE TABLE assignedto (scientist DECIMAL, project TEXT)
CREATE TABLE projects (code TEXT, name TEXT, hours DECIMAL)
CREATE TABLE scientists (ssn DECIMAL, name TEXT)

What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name.
SELECT T1.name, T3.name, T3.hours FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist JOIN projects AS T3 ON T2.project = T3.code ORDER BY T3.name, T1.name
SELECT "T1"."name", "T3"."name", "T3"."hours" FROM "scientists" AS "T1" JOIN "assignedto" AS "T2" ON "T1"."ssn" = "T2"."scientist" JOIN "projects" AS "T3" ON "T2"."project" = "T3"."code" ORDER BY "T3"."name" NULLS FIRST, "T1"."name" NULLS FIRST