title: How to get values from an expression
body: <p>I am using grammar from <a href="https://github.com/antlr/grammars-v4" rel="nofollow noreferrer">https://github.com/antlr/grammars-v4</a> and trying to populate column name and value that comes in the where clause. The problem I am having is how to determine if SQLiteParser.Column_nameContext and value context are part of where. It gets little more complex when there is &quot;and&quot; involved.</p>
  <p>So what I want is to get <code>&quot;a&quot;/&quot;b&quot;</code> (column) and <code>&quot;g&quot;/&quot;h&quot;</code> (value) in below sql:</p>
  <pre><code>select * from table where a = &quot;g&quot; and b = &quot;h&quot;;
  </code></pre>