Neural logic analogy learning