def translate(self, body, params=None):
        """
        `<Translate SQL into Elasticsearch queries>`_

        :arg body: Specify the query in the `query` element.
        """
        if body in SKIP_IN_PATH:
            raise ValueError("Empty value passed for a required argument 'body'.")
        return self.transport.perform_request(
            "POST", "/_sql/translate", params=params, body=body
        )