With two outs and the bases loaded, Avila lined a base hit into right field against Roberto Osuna (3-4). Ben Zobrist scored easily and Javier Baez slid in safely just ahead of the throw from Jose Bautista.
Avila threw his arms in the air when it was over, then was mobbed by happy teammates near first base. The improbable rally also included two batters reaching on swing-and-miss strikeouts, and Kyle Schwarber scoring on a wild pitch.
Toronto grabbed the lead with two runs in the top of the inning on Kevin Pillar's RBI single off Koji Uehara, and Norichika Aoki's bases-loaded loaded walk against Justin Wilson (4-4).