title: ORDA: How can I query field value against a field value?
body: <h1>Background</h1>
  <p>I'm converting old 4D code from class queries to <a href="https://doc.4d.com/4Dv17/4D/17.4/dataClassquery.305-4883385.en.html" rel="nofollow noreferrer">ORDA queries</a>. One thing I can't figure out is how to query with a field vs a field, rather than a field vs a value.</p>
  <p>Edit: I'm using 4D v17.4.</p>
  <h1>Example</h1>
  <p>Classic:</p>
  <pre><code>Query([Customers];[Customers]State=&quot;IN&quot;)
  </code></pre>
  <p>ORDA:</p>
  <pre><code>ds.Customers.query(&quot;State = 'IN'&quot;)
  </code></pre>
  <h1>Goal</h1>
  <p>I want to be able to query a table for results where I'm comparing a field value vs another field value. I can do it in classic querying via the following:</p>
  <pre><code>Query([Customers];[Customers]State#[Customers]AdministrativeRegion)
  </code></pre>
  <h1>What I Tried</h1>
  <pre><code>ds.Customers.query(&quot;State # AdministrativeRegion&quot;) // DOESN'T WORK
  </code></pre>
  <h1>Question</h1>
  <p>Is this possible?</p>