delayed entity-related validation. still need to figure out how to validate selectFields during parsing when local variable declarations come afterwards..