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;33 rows
| get_mother_college | Religion | count |
|---|---|---|
| College of Arts and Humanities | SDA | 31 |
| College of Arts and Humanities | RC | 6 |
| College of Arts and Humanities | 4 | |
| College of Arts and Humanities | CCF | 1 |
| College of Arts and Humanities | ATHEIST | 1 |
| College of Arts and Humanities | INC | 1 |
| College of Arts and Humanities | SDA-REFORM | 1 |
| College of Business | SDA | 23 |
| College of Business | RC | 8 |
| College of Business | CHR | 2 |
| College of Business | BAP | 1 |
| College of Business | 1 | |
| College of Business | CCF | 1 |
| College of Dentistry | SDA | 12 |
| College of Dentistry | RC | 4 |
| College of Dentistry | BAC | 2 |
| College of Dentistry | 1 | |
| College of Education | RC | 5 |
| College of Education | SDA | 3 |
| College of Education | 2 | |
| College of Education | EVC | 2 |
| College of Education | ISL | 1 |
| College of Health | SDA | 19 |
| College of Health | 4 | |
| College of Health | RC | 3 |
| College of Health | BAC | 1 |
| College of Health | VCC | 1 |
| College of Nursing | SDA | 13 |
| College of Nursing | RC | 4 |
| College of Nursing | BAC | 1 |
| College of Nursing | 1 | |
| College of Science and Technology | SDA | 1 |
| College of Theology | SDA | 1 |