title: How to extract Parent.Parent field value from SOQL Query?
body: <p>This is my query</p>
  <pre><code>SOBject acc = [Select Id, Name, (Select Id, Account.Parent.Parent.Name, Name from Contacts__r) from Sales_Location__c where Id ='a005j000009xxxBAxU'];
  Contact abc =(Contact)(acc.getSobjects('Contacts__r')).get(0);
  System.debug(abc.get('Account.Parent.Parent.Name'));
  </code></pre>
  <p>But instead of using get() if I  directly use abc.Account.Parent.Parent.Name, I am getting result. But I don't know why  my code fails in case of get().  In Actual scenario abc is of SObject type that's why I need to use get() here.</p>