Japan’s Inpex plummeted to a loss in the first half of the year as impairments and lower revenues hit