Preparing the data with Query Wizard