Bind to a query object rather than an iterator, it is more generic