Say I have the following schema and data: create table images( id int not null ); insert into images values(1), (2), (3), (4), (6), (8); I want to perform a query like: select id from images where id not exists in(4, 5, 6); But this doesn't work. The case above should return `5`, since it doesn't exist in the table records.