title: I need to create a complex SQLite statement
body: <p>I need to create a complex SQLite statement.</p>
  
  <p>I need a SQLite statement like this</p>
  
  <pre><code>if ((part ==1 || part == 2) &amp;&amp; isFree==YES)
  </code></pre>
  
  <p>I created statement like this</p>
  
  <pre><code>@"SELECT * FROM book abook WHERE abook.part=0 OR abook.part=1 AND abook.isFree!=0"
  </code></pre>
  
  <p>Could you check please. Is it a correct statement?</p>