Question: How many tasks does each project have? List the task count and the project detail.
Schema: create table projects (project_details varchar, project_id varchar, PRIMARY KEY (project_details)); create table tasks (project_id varchar, PRIMARY KEY (project_id))
SQL: select count(*), t1.project_details from projects as t1 join tasks as t2 on t1.project_id = t2.project_id group by t1.project_id