SELECT Name, Account.Name FROM Contact
Custom Objects
SELECT First_Name__c,Last_Name__c, Class__r.Name FROM Student__c