title: Comparison operators not supported for type 'System.Linq.IQueryable`1[System.Int32]'
body: <p>I met a issue with LTS
  My code as below:</p>
  
  <pre><code>return from p in _db.Companies
  where p.Deleted == false &amp;&amp;
  (from q in _db.Contacts_Companies
  where q.ContactId == contactId &amp;&amp; q.Deleted == false
  select q.CompanyId).Equals(p.Id)
  select p;
  </code></pre>
  
  <p>I know the issue comes from the CompanyId.Equals(Id)
  they are both Int32, but I am a bit confused that Int32 cannot be compared?
  If I use <strong>Contains</strong>, it wont match my requirement.</p>
  
  <p>How could I overcome this issue?</p>