How does \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set::fetchAttributeSetData() work?

Context: How does \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set::getSetInfo() work?


$select->assemble():

SELECT 
	`entity`.`attribute_id`
	, `entity`.`attribute_set_id`
	, `entity`.`attribute_group_id`
	, `entity`.`sort_order`
	, `attribute_group`.`sort_order` AS `group_sort_order` 
FROM 
		`eav_entity_attribute` AS `entity`
	LEFT JOIN 
		`eav_attribute_group` AS `attribute_group` 
	ON entity.attribute_group_id = attribute_group.attribute_group_id 
WHERE (entity.attribute_set_id = :attribute_set_id)