Same thing as the postgres sql filter