Qualitative Reasoning under Uncertain Knowledge