I have a SQL Server 2012 database with a table that contains questions and answers. Simplified structure is like this:
question_id int
question varchar(500)
answer varchar(50)
I'd like to find word pairs or clusters between the question and answer columns. I'm wondering if there is a way to do this in SQL as opposed to R, etc. I've seen a lot of stuff on document clustering, but I'm wondering where to start just in the db itself at the column level.
So, for example, I want to find the answer to this question: when the question column contains word X, how often is it paired with word Y in the answer column?