The Lahore High Court ruled Monday that Mr. Sharif is not qualified to run in Thursday 's election because of convictions related to his overthrow in a 1999 military coup .