Human also does reasoning and reference in a similar order, usually first determines the function before filling in the variables, but not the inverse.
we present a top-down hierarchical sequence-to-tree (seq2tree) model which explicitly models the tree structure.