title: How to perform RealmQuery for two conditions
body: <p>I'm trying to get an object from a list but with two specific conditions.</p>
  
  <p>Here's the models</p>
  
  <pre><code>Class Car extends RealmObject{
      int id;
      RealmList&lt;Model&gt; models;
      /*
      other .. 
       */
  }
  
  Class Model extends RealmObject{
      int id;
       /*
      other .. 
       */
  }
  </code></pre>
  
  <p>I get all the cars like this</p>
  
  <pre><code>RealmResults&lt;Product&gt; cars = realm.where(Car.class).findAll();
  </code></pre>
  
  <p>When I'm trying to get a specific car that has NO models.. I do this.</p>
  
  <pre><code>Car theCar = realm.where(Car.class).equalTo("id", selectedCar.getId()).findFirst();
  </code></pre>
  
  <p>But now.. I want to get a specific car that has a specific model ???</p>
  
  <pre><code>// this doesn't work
  Car theCar = realm.where(Car.class).equalTo("id", selectedCar.getId())
                    .where(Model.class).equalTo("id", selectedModel.getId())
                    .findFirst();
  </code></pre>