Only use subQueryAttributes if limit is set