Let recursive queries be restricted by result max