Totalling the durations recorded in my table

Yes, this is possible (although it’s not yet documented). You can use <%current page %> in your query.

This is based on the template variables that also seem to work in queries.