Associated Press The United States was in trouble when Sam Querrey began his Davis Cup match against Thiago Alves on Sunday in Jacksonville, Fla. A few booming serves later, the Americans were headed for the quarterfinals. Querrey beat Alves 4-6, 6-3, 6-4, 7-6 (3) to give the U.S. a dramatic 3-2 victory over Brazil, stepping up after teammate John Isner lost to Thomaz Bellucci to send the countries to the deciding fifth match. “I was very happy with the way I battled through [the match],” Querrey said. “I fought through the tough points and got breaks in the second, third and fourth sets. I was just happy to get through it.” Also advancing Sunday to the quarterfinals were: Canada (over Spain), Italy (over Croatia), Kazakhstan (over Austria) and the Czech Republic (over Switzerland). Clinching spots on Saturday were: France (over Israel), Serbia (over Belgium) and Argentina (over Germany). The other three matchups for the quarterfinals are France-Argentina, Canada-Italy and Czech Republic-Kazakhstan. Canada is in the Davis Cup quarterfinals for the first time. It defeated a five-time champion Spanish team that was missing Rafael Nadal, David Ferrer and Nicolas Almagro because of injuries and fatigue. No. 15-ranked Milos Raonic beat No. 82 Guillermo Garcia-Lopez 6-3, 6-4, 6-2 in the opening reverse singles in Vancouver, British Columbia, to give Canada an insurmountable 3-1 lead. It was the first time since 2000 that a U.S. team needed to win the fifth match to advance, and the 25-year-old Querrey started fast, breaking Alves in the second game. But Alves, ranked No. 141, responded with breaks of his own in the third and ninth games to take the opening set. Querrey responded with a consistent array of cross-court winners to control play the rest of the way. The United States now has nearly three months to get ready for Serbia, which features the world’s No. 1 ranked player in Novak Djokovic. U.S. team captain Jim Courier said the U.S. team welcomes the challenge of taking on the Serbs.