Transitions between Modes of Inquiry in a Rule Discovery Task