Preparing the sets of queries for measuring perfc