BRISBANE, Australia — Australia advanced to the Davis Cup semifinals after Nick Kyrgios beat late substitute Sam Querrey of the United States 7-6 (4), 6-3, 6-4 in the first reverse singles match Sunday, clinching the quarterfinal 3-1 with a match to spare.

On a hard court at Pat Rafter Arena, Kyrgios and his singles partner Jordan Thompson gave Australia a 2-0 lead Friday before the Americans staved off elimination Saturday when Jack Sock, who lost to Thompson on Friday, and partner Steve Johnson beat Sam Groth and John Peers, 3-6, 6-3, 6-2, 2-6, 6-3.

Querrey was supposed to be Johnson’s doubles partner, but American captain Jim Courier pulled a swap, putting Sock into doubles and allowing Querrey to be fresh for Kyrgios.