MobilePhone, Pref_Comm_Method__c, Phone_Ext__c, OtherPhone, Primary_Specialty__c, Secondary_Specialty__c, Status__c, Department,AccountId,(SELECT Name from Contact_Addresses__r) FROM Contact
But the problem is that output for some records which have multiple records for the same id are combining in one records having semicolon.
for example, if for Id 100, inner query has 4 records, then all are getting merge into one records like 100|a;b;c;d, but I wantit to be in 4 records like 100|a, 100|b, 100|c, 100|d