/**
* Create a new Query instance from the Builder state.
*
* @param array $options
* @return Query
*/
public function getQuery(array $options = array())
{
$query = $this->query;
$query['query'] = $this->expr->getQuery();
$query['newObj'] = $this->expr->getNewObj();
return new Query($this->collection, $query, $options);
}