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" = '1') 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;155 rows
get_mother_collegeReligioncount
AcademySDA1
College of Arts and HumanitiesSDA370
College of Arts and HumanitiesRC51
College of Arts and Humanities37
College of Arts and HumanitiesCHR21
College of Arts and HumanitiesBAC15
College of Arts and HumanitiesAGNO7
College of Arts and HumanitiesBAP5
College of Arts and HumanitiesSDA-REFORM5
College of Arts and HumanitiesISL4
College of Arts and HumanitiesINC3
College of Arts and HumanitiesN/A3
College of Arts and HumanitiesNone2
College of Arts and HumanitiesEVC2
College of Arts and HumanitiesCCF2
College of Arts and HumanitiesATHEIST1
College of Arts and HumanitiesHIN1
College of Arts and HumanitiesPENTE1
College of Arts and HumanitiesJIL1
College of Arts and HumanitiesUCCP1
College of Arts and HumanitiesPROT1
College of Arts and HumanitiesMET1
College of Arts and HumanitiesPIC1
College of BusinessSDA492
College of BusinessRC69
College of Business40
College of BusinessCHR21
College of BusinessBAC12
College of BusinessINC8
College of BusinessSDA-REFORM5
College of BusinessBAP4
College of BusinessISL3
College of BusinessVCC2
College of BusinessCCF2
College of BusinessBUD2
College of BusinessPROT2
College of BusinessUCCP2
College of BusinessNone1
College of BusinessN/A1
College of BusinessCOG1
College of BusinessPENTE1
College of BusinessANGLICAN1
College of BusinessMOR1
College of BusinessAGNO1
College of BusinessMET1
College of BusinessTJC1
College of DentistrySDA286
College of DentistryRC87
College of Dentistry40
College of DentistryBAC23
College of DentistryCHR20
College of DentistryINC6
College of DentistryPROT4
College of DentistryMOR3
College of DentistryJMC2
College of DentistryJIL2
College of DentistryISL2
College of DentistryHIN2
College of DentistrySDA-REFORM2
College of DentistryPENTE2
College of DentistryMET1
College of DentistryADD1
College of DentistryVCC1
College of DentistryJW1
College of DentistryAGNO1
College of DentistryNone1
College of DentistryUCG1
College of DentistryCOG1
College of EducationSDA229
College of Education13
College of EducationRC12
College of EducationSDA-REFORM9
College of EducationCHR6
College of EducationBAC3
College of EducationBAP2
College of EducationNone1
College of EducationINC1
College of EducationPENTE1
College of EducationEVC1
College of HealthSDA406
College of HealthRC80
College of Health44
College of HealthCHR12
College of HealthNone11
College of HealthBAC11
College of HealthBAP11
College of HealthN/A10
College of HealthSDA-REFORM6
College of HealthISL5
College of HealthPIC3
College of HealthPROT3
College of HealthEVC2
College of HealthINC2
College of HealthADD1
College of HealthATHEIST1
College of HealthUCCP1
College of HealthVCC1
College of HealthCCF1
College of HealthPENTE1
College of HealthMET1
College of HealthANGLICAN1
College of MedicineSDA92
College of MedicineRC26
College of Medicine19
College of MedicineBAC11
College of MedicineCHR4
College of MedicineJIL2
College of MedicinePENTE1
College of MedicineADD1
College of MedicinePIC1
College of MedicineN/A1
College of MedicineMESJUD1
College of MedicineNone1
College of NursingSDA677
College of NursingRC133
College of Nursing92
College of NursingCHR34
College of NursingBAC25
College of NursingPROT9
College of NursingSDA-REFORM9
College of NursingNone8
College of NursingPENTE7
College of NursingISL6
College of NursingINC5
College of NursingBAP3
College of NursingN/A2
College of NursingPIC2
College of NursingAGNO2
College of NursingADD2
College of NursingBUD1
College of NursingVCC1
College of NursingMET1
College of NursingCCF1
College of NursingCOG1
College of NursingJIL1
College of NursingATHEIST1
College of NursingUCCP1
College of NursingKingdom of Jesus Christ1
College of NursingMOR1
College of Science and TechnologySDA134
College of Science and TechnologyRC19
College of Science and Technology16
College of Science and TechnologyNone4
College of Science and TechnologyCHR3
College of Science and TechnologyBAC3
College of Science and TechnologySDA-REFORM2
College of Science and TechnologyMOR1
College of Science and TechnologyPROT1
College of TheologySDA128
College of Theology1
College of TheologyCHR1
SDA6
RC2
1
None1