-- Intermediate model: Merged pupil characteristics from census data

select
    urn,
    year,
    phase_type_grouping,
    total_pupils,
    female_pupils,
    male_pupils,
    full_time_pupils,
    part_time_pupils,
    total_boarders,
    fsm_eligible_n,
    fsm_pct,
    eal_pct,
    young_carer_pct,
    ethnicity_white_british_pct,
    ethnicity_white_other_pct,
    ethnicity_gypsy_roma_pct,
    ethnicity_mixed_wbc_pct,
    ethnicity_mixed_wba_pct,
    ethnicity_mixed_wa_pct,
    ethnicity_mixed_other_pct,
    ethnicity_asian_indian_pct,
    ethnicity_asian_pakistani_pct,
    ethnicity_asian_bangladeshi_pct,
    ethnicity_asian_other_pct,
    ethnicity_black_caribbean_pct,
    ethnicity_black_african_pct,
    ethnicity_black_other_pct,
    ethnicity_chinese_pct,
    ethnicity_other_pct,
    ethnicity_unclassified_pct
from {{ ref('stg_ees_census') }}
