def execute
    begin
      @response = OData::Resource.new(build_query_uri, @rest_options).get
    rescue Exception => e
      handle_exception(e)
    end
    return Integer(@response.body) if @response.body =~ /\A\d+\z/
    handle_collection_result(@response.body)
  end
def execute
    begin
      @response = OData::Resource.new(build_query_uri, @rest_options).get
    rescue Exception => e
      handle_exception(e)
    end
    return Integer(@response.body) if @response.body =~ /\A\d+\z/
    handle_collection_result(@response.body)
  end
Performs query operations (Read) against the server.
 Typically this returns an array of record instances, except in the case of count queries
 @raise [ServiceError] if there is an error when talking to the service