title: how to get mysql query for AI?
body: <p>i have a litle problem here, i try to create some AI that will response the input text, but the problem is</p>
  
  <p>said that we have a database called "AI" that contain column "answer" and "question"</p>
  
  <p>if i try to ask "Hey why are my mobile explode" using query</p>
  
  <pre><code>SELECT * FROM AI where question LIKE "%Hey why are my mobile explode%" LIMIT 1
  </code></pre>
  
  <p>And i have a database record like this...</p>
  
  <pre><code>Question  |   Answer
  ================================
  Explode   | because you got suck
  </code></pre>
  
  <p>I got nothing result from my query, but if i change the record and change the query to like this ...</p>
  
  <p>Query</p>
  
  <pre><code>SELECT * FROM AI where question LIKE "%explode%" LIMIT 1
  </code></pre>
  
  <p>Database</p>
  
  <pre><code>Question                        |   Answer
  =======================================================
  Hey why are my mobile Explode   | because you got suck
  </code></pre>
  
  <p>I got the return..</p>
  
  <p>so the conclusion is, "LIKE" operand is read the value that containing the condition text...</p>
  
  <p>VALUE is the value of Question column
  CONDITION is the condition on LIKE conditional OPERAND</p>
  
  <pre><code>Value = ... are my mobile **explode**
  Condition = **explode**
  </code></pre>
  
  <p>so the case above is MATCH</p>
  
  <p>but , is it possible that we reverse the function?, i mean, how to read the value thats contained on condition text...</p>
  
  <pre><code>Value = ... **explode**
  Condition = "....are my mobile **explode**
  </code></pre>
  
  <p>Thanks before, hopes someone can help me here..</p>