SHANGHAI–Lewis Hamilton set a masterful lap to take pole position for the sprint race at the Formula One Chinese Grand Prix.