Question: What is the project id and detail for the project with at least two documents?
Schema: create table projects (project_id varchar, project_details varchar, PRIMARY KEY (project_id)); create table documents (project_id varchar, PRIMARY KEY (project_id))
SQL: select t1.project_id, t1.project_details from projects as t1 join documents as t2 on t1.project_id = t2.project_id group by t1.project_id having count(*) > 2