Purnama, who was Widodo’s deputy when he was running Jakarta, is in a tight race with Agus Yudhoyono, the son of former president Susilo Bambang Yudhoyono, and a former education minister, Anies Baswedan.