Updated sematnic analysis for boolean expressions
Fixed set Id as used issue