Upgraded formule sqlview to support distinct tema ranges for human and env