CREATE TABLE Projects (Code CHAR, Name CHAR, Hours INT)
CREATE TABLE Scientists (SSN INT, Name CHAR)
CREATE TABLE AssignedTo (Scientist INT, Project CHAR)

Find the number of scientists involved for the projects that require more than 300 hours. Show bar chart.
SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name
SELECT "Name", COUNT(*) FROM "Projects" AS "T1" JOIN "AssignedTo" AS "T2" ON "T1"."Code" = "T2"."Project" WHERE "T1"."Hours" > 300 GROUP BY "T1"."Name"