newly declared variables can be resolved inside select statement clauses

Close #199