Imperial Oil Ltd. are trading lower after it beat analyst expectations on oil and gas production but reported a higher-than-forecast second-quarter loss.The Calgary-based company reported a net loss of $526 million on revenue of $3.7 billion in the three months ended June 30, down from a net profit of $1.2 billion on revenue of $9.26 billion in the year-earlier period.Analysts had expected a $188 net loss and revenue of $4.244 billion.