Calgary judge to hear challenge of inquiry into oil and gas foes