is not postgresql code example Example: postgresql not in SELECT * FROM public.queries where status_id not in (4,5,6)