SELECT t1.*,a.num FROM (
SELECT SUM(t.total_profit) total_profit,
SUM(t.main_business_income) main_business_income,
COUNT(t.name_of_legal_representa) name_of_legal_representa,
t.administrative_division
FROM LEGAL_PERSON_INFORMATION t
GROUP BY t.administrative_division
) t1 left JOIN (SELECT i.administrative_area,COUNT(1) num FROM investment_projects_info i GROUP BY i.administrative_area) a
ON t1.administrative_division = a.administrative_area
WHERE t1.administrative_division = '370501'