private/xml/fetchCompanyFromCustomer.xml

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
    <attribute name="primarycontactid" />
    <attribute name="accountid" />
    <attribute name="websiteurl" />
    <attribute name="address1_line1" />
    <attribute name="statecode" />
    <attribute name="winvs_location" />
    <attribute name="accountnumber" />
    <attribute name="emailaddress1" />
    <attribute name="telephone1" />
    <order attribute="name" descending="false" />
    <link-entity name="mw_customer" from="mw_accountid" to="accountid" alias="ad">
      <filter type="and">
        <filter type="or">
          <condition attribute="mw_customerid" operator="eq" value="$" />
        </filter>
      </filter>
    </link-entity>
  </entity>
</fetch>