{% set res = result.0 %}
<table class="table table-hover">
    {% for key, value in res %}
        <tr>
            <th>{{ key|replace({'_': ' '})|capitalize }}</th>
            <td>{{ value }}</td>
        </tr>
    {% endfor %}
</table>
