Qataris are holding marathon talks in Tehran trying to reach a deal between the US and Iran before the midterms for more than 12 hours on Friday in an effort to reach an agreement to resume direct negotiations between the US and Iran and prevent an outbreak of war after the midterms, according to diplomatic sources.