def METHOD_NAME(self, queries):
    if isinstance(queries, str):
        return queries
    if len(queries) > 1:
        raise NotImplementedError(
            "Only a single query is supported for SQLAlchemy backends"
        )
    return queries[0]