rquery_apply_to_data_frame function

Execute optree in an environment where d is the only data.