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" = '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;145 rows
| get_mother_college | Religion | count |
|---|---|---|
| Academy | 1 | |
| College of Arts and Humanities | SDA | 285 |
| College of Arts and Humanities | 164 | |
| College of Arts and Humanities | RC | 39 |
| College of Arts and Humanities | CHR | 18 |
| College of Arts and Humanities | None | 9 |
| College of Arts and Humanities | BAC | 9 |
| College of Arts and Humanities | INC | 5 |
| College of Arts and Humanities | SDA-REFORM | 5 |
| College of Arts and Humanities | BAP | 4 |
| College of Arts and Humanities | ISL | 4 |
| College of Arts and Humanities | AGNO | 3 |
| College of Arts and Humanities | CCF | 2 |
| College of Arts and Humanities | 2 | |
| College of Arts and Humanities | VCC | 2 |
| College of Arts and Humanities | PIC | 1 |
| College of Arts and Humanities | EVC | 1 |
| College of Arts and Humanities | UCCP | 1 |
| College of Arts and Humanities | N/A | 1 |
| College of Arts and Humanities | JW | 1 |
| College of Business | SDA | 352 |
| College of Business | 158 | |
| College of Business | None | 85 |
| College of Business | RC | 50 |
| College of Business | CHR | 21 |
| College of Business | BAC | 10 |
| College of Business | INC | 7 |
| College of Business | SDA-REFORM | 5 |
| College of Business | PROT | 2 |
| College of Business | BAP | 2 |
| College of Business | CCF | 2 |
| College of Business | VCC | 2 |
| College of Business | PIC | 2 |
| College of Business | BUD | 2 |
| College of Business | AGNO | 1 |
| College of Business | COG | 1 |
| College of Business | EVC | 1 |
| College of Business | MET | 1 |
| College of Business | ANGLICAN | 1 |
| College of Business | ISL | 1 |
| College of Business | UCCP | 1 |
| College of Business | N/A | 1 |
| College of Business | PENTE | 1 |
| College of Business | 1 | |
| College of Dentistry | SDA | 274 |
| College of Dentistry | 116 | |
| College of Dentistry | RC | 69 |
| College of Dentistry | CHR | 20 |
| College of Dentistry | None | 19 |
| College of Dentistry | BAC | 19 |
| College of Dentistry | INC | 4 |
| College of Dentistry | PENTE | 2 |
| College of Dentistry | JIL | 2 |
| College of Dentistry | MOR | 2 |
| College of Dentistry | PROT | 2 |
| College of Dentistry | ISL | 2 |
| College of Dentistry | SDA-REFORM | 2 |
| College of Dentistry | UCG | 1 |
| College of Dentistry | HIN | 1 |
| College of Dentistry | MET | 1 |
| College of Dentistry | JW | 1 |
| College of Dentistry | AGNO | 1 |
| College of Dentistry | COG | 1 |
| College of Dentistry | ADD | 1 |
| College of Dentistry | VCC | 1 |
| College of Dentistry | JMC | 1 |
| College of Health | SDA | 299 |
| College of Health | 106 | |
| College of Health | RC | 55 |
| College of Health | None | 50 |
| College of Health | N/A | 9 |
| College of Health | CHR | 8 |
| College of Health | BAP | 7 |
| College of Health | BAC | 7 |
| College of Health | PROT | 4 |
| College of Health | SDA-REFORM | 3 |
| College of Health | ISL | 3 |
| College of Health | VCC | 2 |
| College of Health | INC | 1 |
| College of Health | ADD | 1 |
| College of Health | PIC | 1 |
| College of Health | CCF | 1 |
| College of Health | MET | 1 |
| College of Health | UCCP | 1 |
| College of Health | PENTE | 1 |
| College of Health | EVC | 1 |
| College of Medicine | 107 | |
| College of Medicine | SDA | 93 |
| College of Medicine | RC | 27 |
| College of Medicine | BAC | 10 |
| College of Medicine | CHR | 4 |
| College of Medicine | JIL | 2 |
| College of Medicine | ADD | 1 |
| College of Medicine | N/A | 1 |
| College of Medicine | PIC | 1 |
| College of Medicine | MESJUD | 1 |
| College of Medicine | PENTE | 1 |
| College of Nursing | SDA | 546 |
| College of Nursing | 350 | |
| College of Nursing | RC | 81 |
| College of Nursing | None | 57 |
| College of Nursing | CHR | 23 |
| College of Nursing | BAC | 21 |
| College of Nursing | SDA-REFORM | 8 |
| College of Nursing | PROT | 7 |
| College of Nursing | INC | 7 |
| College of Nursing | ISL | 4 |
| College of Nursing | BAP | 3 |
| College of Nursing | PENTE | 3 |
| College of Nursing | N/A | 3 |
| College of Nursing | AGNO | 2 |
| College of Nursing | UCCP | 1 |
| College of Nursing | VCC | 1 |
| College of Nursing | UCG | 1 |
| College of Nursing | PIC | 1 |
| College of Nursing | ATHEIST | 1 |
| College of Nursing | BUD | 1 |
| College of Science, Engineering and Technology | SDA | 122 |
| College of Science, Engineering and Technology | 43 | |
| College of Science, Engineering and Technology | RC | 14 |
| College of Science, Engineering and Technology | None | 9 |
| College of Science, Engineering and Technology | CHR | 3 |
| College of Science, Engineering and Technology | SDA-REFORM | 2 |
| College of Science, Engineering and Technology | PROT | 2 |
| College of Science, Engineering and Technology | BAC | 1 |
| College of Teacher Education | SDA | 222 |
| College of Teacher Education | 72 | |
| College of Teacher Education | SDA-REFORM | 8 |
| College of Teacher Education | RC | 8 |
| College of Teacher Education | None | 6 |
| College of Teacher Education | CHR | 5 |
| College of Teacher Education | EVC | 3 |
| College of Teacher Education | BAC | 2 |
| College of Teacher Education | ISL | 2 |
| College of Teacher Education | VCC | 2 |
| College of Teacher Education | PROT | 1 |
| College of Teacher Education | INC | 1 |
| College of Teacher Education | PIC | 1 |
| College of Teacher Education | BAP | 1 |
| College of Theology | SDA | 115 |
| College of Theology | 26 | |
| College of Theology | None | 8 |
| College of Theology | CHR | 1 |
| 11 | ||
| 1 |