I have declared an array variable as
select array(select "account_id" from [some where clause]) as negateArray;
Note that I return