title: Sequelize Complex And/OR
body: <p>I want to do a statement like this in Sequelize.</p>
  
  <pre><code>Select * from table WHERE completed = 0 AND tracking = 1 AND ((FromNumber = +15625554444 AND ToNumber = +17145554444) OR (FromNumber = +17145554444 AND ToNumber = +15625554444))
  </code></pre>
  
  <p>How would I do this query in Sequelize? I looked in the documentation but am very confused and keep running into weird queries in my attempts thus far.</p>
  
  <p>My actual code attempt thus far while experimenting is this, but it doesn't mean anything since it doesn't work right now. <strong>I am not sure what the syntax should look like for this type of AND/Or Scenario.</strong></p>
  
  <pre><code>var setNumberData = await models["texts"].findOne({
      where: {
        completed: 0,
        agentNumber: agentData.number,
        trackingNumber: obj.To,
        [Op.and]: [
          {to: realTo},
          {[Op.or] : [{from: agentData.number}]}
        ],
        // [Op.and]: [{to: obj.To}],
        // [Op.or]: [{from: obj.To}],
        // [Op.and]: [{to: obj.From}]
      }
    });
  </code></pre>