Fix extdiff query for changed contests structure.