query exam: select examnr and generate point groups