The paper presents a system for querying treebanks in a uniform way. The system is able to work with both dependency and constituency\nbased treebanks in any language. We demonstrate its abilities on 11 different treebanks. The query language used by the system\nprovides many features not available in other existing systems while still keeping the performance efficient. The paper also describes\nthe conversion of ten treebanks into a common XML-based format used by the system, touching the question of standards and formats.\nThe paper then shows several examples of linguistically interesting questions that the system is able to answer, for example browsing\nverbal clauses without subjects or extraposed relative clauses, generating the underlying grammar in a constituency treebank, searching\nfor non-projective edges in a dependency treebank, or word-order typology of a language based on the treebank. The performance of\nseveral implementations of the system is also discussed by measuring the time requirements of some of the queries.