title: Query Builder - whereRaw with subquery
body: <p>I need to create the following query using Laravel Query Builder:</p>
  
  <pre><code>SELECT count(*) FROM table WHERE 1 &lt; (SELECT count(*) FROM x WHERE y=2)
  </code></pre>
  
  <p>the question is - is it possible to do it using query builder?</p>
  
  <p>The only why I was able to achieve it is:</p>
  
  <pre><code>\DB::table('table')-&gt;whereRaw('1 &lt; (SELECT count(*) FROM x WHERE y=2)')-&gt;count();
  </code></pre>
  
  <p>but this way I need to manually put here subquery and it's generating wrong query:</p>
  
  <p><code>SELECT count(*) FROM table WHERE 1 &lt; (SELECT count(*) FROM x WHERE y=2) IS NULL</code> </p>
  
  <p>(<code>is null</code> is added at the end)</p>
  
  <p>Is it possible to use here query builder also for subquery and make it to generate correct SQL?</p>