Scope Transitions
In the case of a query, a name can have an active role in the execution of the query. A scope
part, when specified in a query or calculator name, will cause execution to switch to the
indicated scope. A simple demonstration is given in tutorial18 CalculateSquareMiles3,
which has two queries:
query surface_area_query(surface_area : country_area);
query au_surface_area_query(surface_area :
australia.country_area);
In the first query, the calculator executes in the global scope while in the second query, the same calculator executes in the Australia scope. The results of the first query are given in imperial units, and in metric units for the second. Note that the calculator must be in the global scope for this to work.
