Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.
CREATE TABLE university (
    school_id number,
    school text,
    location text,
    founded number,
    affiliation text,
    enrollment number,
    nickname text,
    primary_conference text
)

CREATE TABLE basketball_match (
    team_id number,
    school_id number,
    team_name text,
    acc_regular_season text,
    acc_percent text,
    acc_home text,
    acc_road text,
    all_games text,
    all_games_percent number,
    all_home text,
    all_road text,
    all_neutral text
)
SELECT SUM(enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type. ### Input: CREATE TABLE university (
    school_id number,
    school text,
    location text,
    founded number,
    affiliation text,
    enrollment number,
    nickname text,
    primary_conference text
)

CREATE TABLE basketball_match (
    team_id number,
    school_id number,
    team_name text,
    acc_regular_season text,
    acc_percent text,
    acc_home text,
    acc_road text,
    all_games text,
    all_games_percent number,
    all_home text,
    all_road text,
    all_neutral text
) ### Response: SELECT SUM(enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation