CREATE TABLE Project_Outcomes (project_id INT, outcome_code VARCHAR, outcome_details VARCHAR)
CREATE TABLE Tasks (task_id INT, project_id INT, task_details VARCHAR, "eg Agree Objectives" VARCHAR)
CREATE TABLE Organisations (organisation_id INT, organisation_type VARCHAR, organisation_details VARCHAR)
CREATE TABLE Research_Staff (staff_id INT, employer_organisation_id INT, staff_details VARCHAR)
CREATE TABLE Grants (grant_id INT, organisation_id INT, grant_amount DECIMAL, grant_start_date DATETIME, grant_end_date DATETIME, other_details VARCHAR)
CREATE TABLE Projects (project_id INT, organisation_id INT, project_details VARCHAR)
CREATE TABLE Staff_Roles (role_code VARCHAR, role_description VARCHAR)
CREATE TABLE Organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR)
CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR)
CREATE TABLE Research_Outcomes (outcome_code VARCHAR, outcome_description VARCHAR)
CREATE TABLE Documents (document_id INT, document_type_code VARCHAR, grant_id INT, sent_date DATETIME, response_received_date DATETIME, other_details VARCHAR)
CREATE TABLE Project_Staff (staff_id DOUBLE, project_id INT, role_code VARCHAR, date_from DATETIME, date_to DATETIME, other_details VARCHAR)

how many staff does each project has? List the project id and the number in an ascending order.
SELECT T1.project_id, COUNT(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*)
SELECT "T1"."project_id", COUNT(*) FROM "Project_Staff" AS "T1" JOIN "Projects" AS "T2" ON "T1"."project_id" = "T2"."project_id" GROUP BY "T1"."project_id" ORDER BY COUNT(*) NULLS FIRST