[OPENENGSB-3776] fetch query service and fix compile errors