199(b)(2) says the QBI deduction is the lesser of 20% of QBI, or 50% of wages. Sec. 199(b)(2) doesn't say anything about excluding wages paid to an S corporation shareholder; wages paid to shareholders are included in the 50% calculation.