Implement simple typeahead based on the expression tree