select get_mother_college, "Religion", count(*) from (select "Religion", get_mother_college(get_student_course) from students2, (select *, get_student_course(20000000+"Student ID") from (select distinct ("Student ID") from grades where "Year" = 2025 and "Semester" = '2') as foo) as bar where students2."Student ID" = bar."Student ID" order by get_mother_college, get_student_course) as bar2 group by get_mother_college, "Religion" order by get_mother_college, count desc;132 rows
get_mother_collegeReligioncount
College of Arts and HumanitiesSDA307
College of Arts and HumanitiesRC39
College of Arts and Humanities32
College of Arts and HumanitiesCHR20
College of Arts and HumanitiesBAC12
College of Arts and HumanitiesSDA-REFORM5
College of Arts and HumanitiesAGNO5
College of Arts and HumanitiesINC4
College of Arts and HumanitiesISL3
College of Arts and HumanitiesCCF2
College of Arts and HumanitiesBAP2
College of Arts and HumanitiesEVC2
College of Arts and HumanitiesPIC1
College of Arts and HumanitiesN/A1
College of Arts and HumanitiesBUD1
College of Arts and HumanitiesMET1
College of Arts and HumanitiesNone1
College of Arts and HumanitiesUCCP1
College of Arts and HumanitiesATHEIST1
College of Arts and HumanitiesVCC1
College of BusinessSDA410
College of Business84
College of BusinessRC59
College of BusinessCHR24
College of BusinessNone12
College of BusinessBAC10
College of BusinessINC8
College of BusinessSDA-REFORM5
College of BusinessCCF3
College of BusinessPROT3
College of BusinessISL3
College of BusinessBUD2
College of BusinessN/A2
College of BusinessBAP2
College of BusinessVCC2
College of BusinessUCCP2
College of BusinessPENTE1
College of BusinessMOR1
College of BusinessAGNO1
College of BusinessPIC1
College of BusinessCOG1
College of BusinessMET1
College of BusinessANGLICAN1
College of DentistrySDA226
College of DentistryRC55
College of Dentistry35
College of DentistryBAC18
College of DentistryCHR15
College of DentistryMOR3
College of DentistryINC3
College of DentistryJMC2
College of DentistrySDA-REFORM2
College of DentistryPENTE2
College of DentistryHIN2
College of DentistryJW1
College of DentistryMET1
College of DentistryISL1
College of DentistryNone1
College of DentistryAGNO1
College of DentistryADD1
College of DentistryUCG1
College of DentistryCOG1
College of DentistryVCC1
College of DentistryJIL1
College of EducationSDA170
College of Education11
College of EducationRC9
College of EducationSDA-REFORM6
College of EducationCHR6
College of EducationEVC3
College of EducationBAC2
College of EducationVCC1
College of EducationINC1
College of EducationISL1
College of EducationPENTE1
College of HealthSDA355
College of HealthRC64
College of Health40
College of HealthBAP11
College of HealthBAC10
College of HealthCHR8
College of HealthISL4
College of HealthPROT4
College of HealthSDA-REFORM4
College of HealthN/A3
College of HealthVCC2
College of HealthINC2
College of HealthNone2
College of HealthPIC2
College of HealthEVC2
College of HealthCCF1
College of HealthUCCP1
College of HealthADD1
College of HealthANGLICAN1
College of NursingSDA608
College of NursingRC107
College of Nursing74
College of NursingCHR27
College of NursingBAC23
College of NursingPROT8
College of NursingSDA-REFORM6
College of NursingINC6
College of NursingNone5
College of NursingBAP5
College of NursingPENTE5
College of NursingISL4
College of NursingPIC2
College of NursingN/A2
College of NursingADD2
College of NursingAGNO2
College of NursingMET1
College of NursingCOG1
College of NursingUCG1
College of NursingATHEIST1
College of NursingVCC1
College of NursingMOR1
College of NursingCCF1
College of NursingKingdom of Jesus Christ1
College of NursingUCCP1
College of Science and TechnologySDA128
College of Science and TechnologyRC17
College of Science and Technology13
College of Science and TechnologyBAC3
College of Science and TechnologyCHR3
College of Science and TechnologyNone3
College of Science and TechnologyPROT3
College of Science and TechnologySDA-REFORM2
College of Science and TechnologyMOR1
College of TheologySDA123
College of TheologyCHR1
SDA6
None1