1. A system in which a computer generates a recursive query and executes the recursive query, prior to executing a program subjected to prefetching, to prefetch data necessary to execute the program from a database and supply the data to the program, the recursive query including an initial query that generates an initial table, a next recursive query that generates a next intermediate table that satisfies a selection condition from an intermediate table that is one of the initial table and a most recent table that is generated by a most recent recursive query, and a final query that generates and outputs a final table from individual intermediate tables including the next intermediate table.