Selection from a lot of workpieces to be inspected