Output a Realm object name and its realmlist
<p>I would like search for my favourite  school names and its favourite student names like the following from my main table.</p>

<p>POINT GREY<br>
kent<br>
jane <br>
michelle<br></p>

<p>MAGGEE<br>
gary<br>
john<br>
shirley<br></p>

<p>However, I can only achieve getting the favourites student names using realm query:</p>

<pre><code>RealmResults&lt;Student&gt; fav = realm.where(Student.class)
                              .equalTo("Favourite", "Yes")
                             .findAll();
</code></pre>

<p>My question is how to list my favourite schools and their favourite students in realm.  Many Thanks.</p>

<p>My School class</p>

<pre><code>public class School extends RealmObject {

@Required
private String SchoolID;
private String SchoolName;
private RealmList&lt;Student&gt; Students;

//getters, setters;
</code></pre>

<p>}</p>

<p>My Student Class</p>

<pre><code>public class Student extends RealmObject{

@Required
private String StudentID;
private String StudentName;
private Boolean Favorite;

 //getters, setters;
</code></pre>

<p>}</p>