I woul like to know how to retrieve the value on a runtime assembled query like

Constrution in run time

...

Add('SELECT SUM(IVA) AS total FROM TbIVA')

...
How can I get "total" in order to use in the rest of the application?

Thanks for the help