Query with escaped value