title: Evaluate SQL expressions in Java?
body: <p>In our project, we need to evaluate SQL statements without any database server. Can you suggest any free Java library that has the ability to evaluate math based SQL statements and return the result?</p>
  
  <p>For example;</p>
  
  <h2>Input</h2>
  
  <p><code>SELECT 2*2 AS RESULT</code></p>
  
  <h2>Output</h2>
  
  <p><code>4</code></p>
  
  <p>Will probably be called as <code>int result = SQLEvaluator.evaluate("SELECT 2*2 AS RESULT");</code></p>