Below is my current query. I Program is a master to Application object. Application is also a details to the Contact object. How can I modify my query to get the first name of the contact?
[Select Name,Seminar1__r.Name,Seminar2__r.Name,Seminar3__r.Name,Seminar4__r.Name,Seminar5__r.Name,Seminar6__r.Name,Seminar7__r.Name,Seminar8__r.Name,Seminar9__r.Name,Seminar10__r.Name,Seminar11__r.Name From Program__c Where ID = :programID ];