title: How to search in existing contracts? e.g. find the Account contract in existing Accounts by using accountid
body: <p>What should I do to find an existing contracts?</p>
  
  <p>e.g. I have a template which create Account contract. Before creating the contract, I need to search the existing contracts to make sure the account id is not duplicated.  </p>