even better trainingset by optimized random query with prefiltering