Children have a certain foundation and can do it directly. It's good to use "draw inferences from one instance" in primary school Olympic Mathematics, which is available in all grades. From simple to complex, each type has examples and analysis, followed by several similar exercises with slight changes for students to draw inferences. At the end of the book, there are ideas and answers to the problem.