Postgresql не в

SELECT * FROM public.queries where status_id not in (4,5,6)
GutoTrosla