Add support for passing arrays and subquerys into SELECT