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;80 rows
| get_mother_college | Religion | count |
|---|---|---|
| College of Arts and Humanities | SDA | 110 |
| College of Arts and Humanities | 17 | |
| College of Arts and Humanities | RC | 11 |
| College of Arts and Humanities | CHR | 9 |
| College of Arts and Humanities | BAC | 5 |
| College of Arts and Humanities | SDA-REFORM | 2 |
| College of Arts and Humanities | INC | 2 |
| College of Arts and Humanities | ISL | 1 |
| College of Arts and Humanities | MET | 1 |
| College of Arts and Humanities | PIC | 1 |
| College of Arts and Humanities | EVC | 1 |
| College of Arts and Humanities | CCF | 1 |
| College of Arts and Humanities | HIN | 1 |
| College of Arts and Humanities | ATHEIST | 1 |
| College of Business | SDA | 130 |
| College of Business | 53 | |
| College of Business | RC | 28 |
| College of Business | CHR | 9 |
| College of Business | INC | 5 |
| College of Business | None | 5 |
| College of Business | BAC | 4 |
| College of Business | PROT | 2 |
| College of Business | PIC | 1 |
| College of Business | UCCP | 1 |
| College of Business | SDA-REFORM | 1 |
| College of Business | N/A | 1 |
| College of Business | CCF | 1 |
| College of Business | ISL | 1 |
| College of Business | BAP | 1 |
| College of Dentistry | SDA | 62 |
| College of Dentistry | RC | 16 |
| College of Dentistry | CHR | 5 |
| College of Dentistry | 4 | |
| College of Dentistry | MOR | 1 |
| College of Dentistry | INC | 1 |
| College of Dentistry | BAC | 1 |
| College of Education | SDA | 38 |
| College of Education | RC | 6 |
| College of Education | 3 | |
| College of Education | SDA-REFORM | 3 |
| College of Education | EVC | 2 |
| College of Education | ISL | 1 |
| College of Education | BAC | 1 |
| College of Education | CHR | 1 |
| College of Education | INC | 1 |
| College of Education | None | 1 |
| College of Health | SDA | 121 |
| College of Health | RC | 17 |
| College of Health | 16 | |
| College of Health | BAP | 3 |
| College of Health | ISL | 2 |
| College of Health | VCC | 2 |
| College of Health | CHR | 2 |
| College of Health | SDA-REFORM | 2 |
| College of Health | BAC | 2 |
| College of Health | PROT | 2 |
| College of Health | PIC | 1 |
| College of Health | CCF | 1 |
| College of Nursing | SDA | 164 |
| College of Nursing | RC | 35 |
| College of Nursing | 22 | |
| College of Nursing | BAC | 5 |
| College of Nursing | CHR | 3 |
| College of Nursing | SDA-REFORM | 2 |
| College of Nursing | INC | 2 |
| College of Nursing | PENTE | 2 |
| College of Nursing | CCF | 1 |
| College of Nursing | PIC | 1 |
| College of Nursing | None | 1 |
| College of Nursing | AGNO | 1 |
| College of Nursing | ISL | 1 |
| College of Science and Technology | SDA | 24 |
| College of Science and Technology | RC | 1 |
| College of Science and Technology | 1 | |
| College of Science and Technology | PROT | 1 |
| College of Science and Technology | BAC | 1 |
| College of Science and Technology | MOR | 1 |
| College of Theology | SDA | 44 |
| College of Theology | CHR | 1 |
| SDA | 1 |