Learning Qualitative Models by Demonstration