{% for section in answers_tree.sections %}

{{ section.title }}

{% for subsection in section.subsections %}

{{ subsection.title}}

{% for entity in subsection.entities %} {% if entity.is_set %} {% if entity.is_collection %} {% for question in entity.questions %}

{{ question.text }}

{% for set in question.sets %} {% if question.is_collection %}

{{ set.id }}:

{% else %}

{{ set.id }}: {{ set.answers.0 }}

{% endif %} {% endfor %} {% endfor %} {% else %} {% for question in entity.questions %}

{{ question.text }}

{% if question.is_collection %} {% else %}

{{ question.answers.0 }}

{% endif %} {% endfor %} {% endif %} {% else %}

{{ entity.text }}

{% if entity.is_collection %} {% else %}

{{ entity.answers.0 }}

{% endif %} {% endif %} {% endfor %} {% endfor %} {% endfor %}