pass query object to modifyLimitSubquery