Take a query string and returns an array of elements.