Developing an Instance Query provider