Вы можете попробовать что-то вроде этого;поскольку он будет привязан только к учетной записи или контакту, только один набор данных будет возвращать значения.
<?xml version="1.0"?>
<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="quote">
<attribute name="name"/> <attribute name="statecode"/> <attribute name="totalamount"/> <attribute name="customerid"/> <attribute name="quoteid"/> <order descending="false" attribute="name"/> -<link-entity name="account" alias="a_ce7d47f5258c4f20a6778ef6c718fa3b" link-type="outer" visible="false" to="customerid" from="accountid">
<attribute name="address1_line1"/>
</link-entity> -<link-entity name="contact" alias="quotecustomeridcontactcontactid" link-type="outer" visible="false" to="customerid" from="contactid">
<attribute name="address1_line1"/>
</link-entity>
</entity>
</fetch>