ids is a temporary structure to store variables, parameters, name
definitions, and build corresponding QueryTree(s)
key: the name to resolve
value: an IdValue object which contains the name, the paths, and the
corresponding QueryTree (see the definition of IdValue object in
SpeedoQLAbstractVisitor object)