def METHOD_NAME(self) -> Iterator[AtlasEntity]:
    # Query
    attrs_mapping = [
        (AtlasCommonParams.qualified_name, self._get_query_node_key()),
        ('name', self._query_name),
        ('id', self._query_id),
        ('url', self._url),
        ('queryText', self._query_text)
    ]
    query_entity_attrs = get_entity_attrs(attrs_mapping)
    relationship_list = []  # type: ignore
    add_entity_relationship(
        relationship_list,
        'dashboard',
        AtlasDashboardTypes.metadata,
        DashboardMetadata.DASHBOARD_KEY_FORMAT.format(
            product=self._product,
            cluster=self._cluster,
            dashboard_group=self._dashboard_group_id,
            dashboard_name=self._dashboard_id
        )
    )
    query_entity = AtlasEntity(
        typeName=AtlasDashboardTypes.query,
        operation=AtlasSerializedEntityOperation.CREATE,
        attributes=query_entity_attrs,
        relationships=get_entity_relationships(relationship_list)
    )
    yield query_entity