Graphical Query Builder for trails