You can create a subquery and have that final win_percent in the outermost query. The query should look like this:
SELECT a.*,
(win / total) * 100 as win_percent
FROM (
SELECT
@team team,
COUNT(CASE WHEN home = @team then 1 ELSE NULL END) as home,
COUNT(CASE WHEN away = @team then 1 ELSE NULL END) as away,
COUNT(CASE WHEN (away = @team or home = @team) then 1 ELSE NULL END) as total,
COUNT(CASE WHEN winner = @team and (home = @team or away = @team) then 1 ELSE NULL END) as win,
COUNT(CASE WHEN (home = @team or away = @team) and (winner <> @team and winner <> "0") then 1 ELSE NULL END) as lost,
COUNT(CASE WHEN winner = "0" and (home = @team or away = @team) then 1 ELSE NULL END) as tie,
(869 / 1928) * 100 as win_percent
from matches
) AS a
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…