You can use postgres aggregate functions for this, specifically bool_or and bool_and aggregate functions
create table bools (
a boolean
);
insert into bools values(true), (true), (false);
select bool_or(a) from bools;
here is a working example https://www.db-fiddle.com/f/fBoZzyXzF4H28tALVupZfC/1