fixed best attempt query