renamed query_engine to infile_tree