expose as_query on criteria objects