query GetOwnerOptions($statecode: Int, $domainname: String) {
  selectLead: leads(statecode: $statecode, owner_domainname: $domainname) {
    customerid
    leadid
    fullname
    evo_opportunityid
    evo_agent_accountid
    evo_double_agent_accountid
    evo_broker_accountid
    evo_fin_department_accountid
    accountidData {
      evo_address_legalidData {
        evo_region_fias_id
        evo_city_fias_id
      }
    }
    evo_inn
    link
  }
  selectOpportunity: opportunities(
    statecode: $statecode
    owner_domainname: $domainname
  ) {
    opportunityid
    name
    accountid
    evo_leadid
    evo_client_riskid
    parentaccountid
    evo_programsolution
    accountidData {
      evo_address_legalidData {
        evo_region_fias_id
        evo_city_fias_id
      }
    }
    link
  }
}
