changed queryReconstructor constructor to take planreducer