CREATE TABLE university (school_id DECIMAL, school TEXT, location TEXT, founded DECIMAL, affiliation TEXT, enrollment DECIMAL, nickname TEXT, primary_conference TEXT)
CREATE TABLE basketball_match (team_id DECIMAL, school_id DECIMAL, team_name TEXT, acc_regular_season TEXT, acc_percent TEXT, acc_home TEXT, acc_road TEXT, all_games TEXT, all_games_percent DECIMAL, all_home TEXT, all_road TEXT, all_neutral TEXT)

Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.
SELECT SUM(enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation
SELECT SUM("enrollment"), "affiliation" FROM "university" WHERE "founded" > 1850 GROUP BY "affiliation"