BEIJING — Rafael Nadal stayed on course to wrest the top ranking from Novak Djokovic by rallying for a 2-6, 6-4, 6-1 win over Fabio Fognini of Italy in the China Open quarterfinals Friday. Nadal, who needs to reach the final to have a chance of regaining No. 1 for the first time in two years, was down a set and a break but changed the tempo with a timely service break. Defending champion Djokovic progressed with an impressive 6-1, 6-2 win over American Sam Querry in just 53 minutes. Also, top-ranked Serena Williams brushed aside former No. 1 Caroline Wozniacki 6-1, 6-4 to raise her record to 6-1 against the Dane and set up a next-round clash with No. 4-ranked Agnieszka Radwanska. Nadal seemed to struggle at times with a niggling left knee injury but wore down Fognini after that hard-fought service break in the seventh game of the second set. “I was able to fight, to change a little bit the dynamic of the match,” Nadal said. “The players who are in the top position of the rankings, it's because they are able to win when things are not going well.” Fognini started fluently as he broke and led 3-0. He was soon leading 5-1 but failed to serve out and had to break Nadal again with a superb cross-court return to clinch the set. Fognini again ran up a 3-0 lead in the second and was serving with a lead of 4-2 before Nadal seized control. It was the third straight victory over Fognini for Nadal, who next plays fourth-seeded Tomas Berdych of the Czech Republic. Berdych scored a 7-5, 6-2 win over John Isner to improve his record to 3-2 against the American. In other women's matches, former Wimbledon champion Petra Kvitova beat local favorite Li Na 4-6, 6-2, 6-4 to set up a semifinal with Jelena Jankovic. Jankovic also came from a set down to beat Lucie Safarova of the Czech Republic 6-7 (3), 6-4, 6-4. Djokovic, who needs to retain the title to have any chance of holding Nadal at bay, was in sparkling form. He needed only 52 minutes to dismantle Querrey as his love affair with Beijing continued. He will meet Richard Gasquet of France, who claimed victory over Spain's Ferrer 6-3, 6-4. Del Potro in last four Top-seeded Juan Martin del Potro overcame Alexandr Dolgopolov of Ukraine 4-6, 6-4, 6-2 to reach the Japan Open semifinals Friday. Del Potro broke Dolgopolov twice in the second set and again to go up 3-1 in the third set at Ariake Colosseum. He closed out the match with another break when Dolgopolov's return was long. “Everything today was difficult,” del Potro said. “At the beginning of the match, I hit my forehand well and he was always able to return it. I was still fighting and broke him in the second set and that gave me confidence for the third set.” The Argentine will face sixth-seeded Nicolas Almagro of Spain in the semis Saturday. Almagro beat local favorite and defending champion Kei Nishikori 7-6 (2), 5-7, 6-3. Third-seeded Milos Raonic of Canada hit 11 aces in a 6-3, 6-3 quarterfinal win over Lukas Lacko of Slovakia, lining up a semi with Ivan Dodig of Croatia. Dodig beat Jarkko Nieminen of Finland 6-2, 7-6 (3).