Assuming we are watching the full view of a subject:
{* Fetch all the related objects from the node that is being viewed *}
{def $teachers=fetch('content','related_objects',hash('object_id', $node.object.id, 'all_relations', true()))}
{* Foreach related teacher, show the attributes *}
{foreach $teachers as $teacher}
{attribute_view_gui attribute=$teacher.main_node.data_map.name}<br/>
{attribute_view_gui attribute=$teacher.main_node.data_map.qualification}<br/>
{attribute_view_gui attribute=$teacher.main_node.data_map.experience}<br/><br/>
{/foreach}