Realm database queuing


RealmResults set1 = realm.where(Person.class).equalTo(“”, “Fluffy”).findAll();
RealmResults set2 = set1.where(Person.class).equalTo(“dogs.color”, “Brown”).findAll();
RealmResults set3 = set2.where(Person.class).equalTo(“dogs.color”, “Yellow”).findAll();

i don’t understand this query sets as set1 is having all persons and then in set 2 we have all dogs having brown color how set3 can be queried to get the color have yellow ?
we already have filtered in set 2 which dogs have brown color will set3 filter from original persons list ? can u please mention result of each set.