Automatic creation of advanced query panel