Add query.c for OCL-objects query functions prev. in manager.c