query parent in class