Allow using arrays and ranges for where query