extended DBAgentSelectWithStatementArg to get multiple formulas.