title: QueryDSL: How to SELECT literals as part of a SQLSubQuery?
body: <p>How do I implement <a href="https://stackoverflow.com/a/16392399/14731">https://stackoverflow.com/a/16392399/14731</a> using QueryDSL SQL?</p>
  
  <p>I understand that</p>
  
  <blockquote>
    <p>new SQLSubQuery().from(customer).where(customer.email.eq("foo@example.com"))</p>
  </blockquote>
  
  <p>models</p>
  
  <blockquote>
    <p>select customer where customer.email = 'foo@example.com'</p>
  </blockquote>
  
  <p>but I don't understand how to <strong>select [literal]</strong> such as:</p>
  
  <p><code>select 1 from customer</code> or
  <code>select 'foo@example.com', 0</code></p>
  
  <p>as required by the aforementioned link.</p>