Support passing in arrays in query