How do I query for two columns to be equal using Sequelize?
<pre><code>db.WorkbookQuestion.count({
  where: {
    QuestionId: dbQuestion.id,
    AnswerSelectedId: db.sequelize.col('CorrectAnswerId')
  }
});
</code></pre>

<p>The query generates this SQL: <code>SELECT count(*) AS "count" FROM "WorkbookQuestions" AS "WorkbookQuestion" WHERE "WorkbookQuestion"."QuestionId" = 1103 AND "CorrectAnswerId";</code></p>

<p>How do I get it to be more like <code>AnswerSelectedId = CorrectAnswerId</code>?</p>