Add the sub-components of calculations into the analytical view. The matching logic correctly identifies the various components, and combines them into what is defined by the user's query. For example:
sum(a)
and sum(b)
.select sum(a)/sum(b)
, the matching algorithm uses the sum(a)
and sum(b)
from the analytical view.