added range support for AQL