Sort results by number of matching words
Add a fulltext index on content and use &quot;match&quot;, as in
SELECT *, match(content)
  against ('you surround' IN NATURAL LANGUAGE MODE) as score
  FROM Sentence
  Order by score desc

See this fiddle