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" = 2026 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;103 rows
| get_mother_college | Religion | count |
|---|---|---|
| College of Arts and Humanities | SDA | 154 |
| College of Arts and Humanities | NR | 29 |
| College of Arts and Humanities | 28 | |
| College of Arts and Humanities | RC | 12 |
| College of Arts and Humanities | BAC | 11 |
| College of Arts and Humanities | CHR | 5 |
| College of Arts and Humanities | INC | 4 |
| College of Arts and Humanities | BAP | 3 |
| College of Arts and Humanities | SDA-REFORM | 3 |
| College of Arts and Humanities | AGNO | 1 |
| College of Arts and Humanities | UCCP | 1 |
| College of Arts and Humanities | EVC | 1 |
| College of Arts and Humanities | N/A | 1 |
| College of Arts and Humanities | PROT | 1 |
| College of Arts and Humanities | VCC | 1 |
| College of Arts and Humanities | CCF | 1 |
| College of Arts and Humanities | ISL | 1 |
| College of Arts and Humanities | PIC | 1 |
| College of Business | SDA | 263 |
| College of Business | NR | 45 |
| College of Business | RC | 31 |
| College of Business | 27 | |
| College of Business | BAC | 10 |
| College of Business | CHR | 10 |
| College of Business | INC | 3 |
| College of Business | PIC | 2 |
| College of Business | BAP | 2 |
| College of Business | PROT | 2 |
| College of Business | SDA-REFORM | 2 |
| College of Business | ISL | 1 |
| College of Business | N/A | 1 |
| College of Business | CCF | 1 |
| College of Business | UCCP | 1 |
| College of Dentistry | SDA | 148 |
| College of Dentistry | RC | 35 |
| College of Dentistry | NR | 29 |
| College of Dentistry | 28 | |
| College of Dentistry | BAC | 12 |
| College of Dentistry | CHR | 10 |
| College of Dentistry | N/A | 2 |
| College of Dentistry | SDA-REFORM | 2 |
| College of Dentistry | ADD | 1 |
| College of Dentistry | PIC | 1 |
| College of Dentistry | MOR | 1 |
| College of Dentistry | INC | 1 |
| College of Dentistry | EVC | 1 |
| College of Dentistry | JIL | 1 |
| College of Dentistry | COG | 1 |
| College of Dentistry | UCG | 1 |
| College of Dentistry | MET | 1 |
| College of Health | SDA | 166 |
| College of Health | RC | 24 |
| College of Health | 23 | |
| College of Health | NR | 15 |
| College of Health | BAP | 6 |
| College of Health | BAC | 6 |
| College of Health | SDA-REFORM | 3 |
| College of Health | PROT | 3 |
| College of Health | VCC | 2 |
| College of Health | N/A | 2 |
| College of Health | ADD | 1 |
| College of Health | CCF | 1 |
| College of Health | INC | 1 |
| College of Health | ISL | 1 |
| College of Health | CHR | 1 |
| College of Health | MET | 1 |
| College of Health | UCCP | 1 |
| College of Health | PENTE | 1 |
| College of Nursing | SDA | 319 |
| College of Nursing | RC | 53 |
| College of Nursing | 51 | |
| College of Nursing | NR | 49 |
| College of Nursing | BAC | 15 |
| College of Nursing | CHR | 6 |
| College of Nursing | INC | 5 |
| College of Nursing | PENTE | 4 |
| College of Nursing | ISL | 3 |
| College of Nursing | SDA-REFORM | 3 |
| College of Nursing | PROT | 3 |
| College of Nursing | N/A | 2 |
| College of Nursing | ATHEIST | 1 |
| College of Nursing | BAP | 1 |
| College of Nursing | AGNO | 1 |
| College of Nursing | PIC | 1 |
| College of Science, Engineering and Technology | SDA | 67 |
| College of Science, Engineering and Technology | NR | 7 |
| College of Science, Engineering and Technology | RC | 6 |
| College of Science, Engineering and Technology | 5 | |
| College of Science, Engineering and Technology | BUD | 1 |
| College of Teacher Education | SDA | 71 |
| College of Teacher Education | NR | 9 |
| College of Teacher Education | RC | 6 |
| College of Teacher Education | 5 | |
| College of Teacher Education | EVC | 4 |
| College of Teacher Education | SDA-REFORM | 4 |
| College of Teacher Education | BAC | 1 |
| College of Teacher Education | N/A | 1 |
| College of Teacher Education | CHR | 1 |
| College of Teacher Education | BAP | 1 |
| College of Theology | SDA | 80 |
| College of Theology | NR | 3 |
| College of Theology | 3 | |
| College of Theology | CHR | 1 |