fix BlackBeanQueryWriter class
added new feature: inherited