Querytool: Design, Implementation and Applications