title: How to compare user input with rules and facts?
body: <p>i want to build this solution:
  Prolog ask me for my preferred weather dates and show me the best match (not the exact match, depends on degree).</p>
  
  <p>For example:
  Given list </p>
  
  <pre><code>Monday = [hot, sunny, 30] //30 degree
  Tuesday = [hot, cloudy, 25]
  Wednesday = [hot, sunny, 25]
  </code></pre>
  
  <p>Question 1:
  Do you like it hot or cold?
  Answer1: hot</p>
  
  <p>Question 2:
  Do you like it sunny or cloudy?
  Answer2: sunny</p>
  
  <p>Question 3:
  What is the minimum of temperature?
  Answer3: 22</p>
  
  <p><strong>-> Now Prolog should answers this:</strong></p>
  
  <p>The best day for your vacation is:</p>
  
  <pre><code>Monday = [hot, sunny, 30] 
  Wednesday = [hot, sunny, 25]
  </code></pre>
  
  <p><strong>My Code:</strong></p>
  
  <pre><code>/* Ask all Questions */
  go: -
    q1,
    q2,
    q3.
  
  /* Questions 1 */
  q1: -
    abolish(q1 / 1), /* clear clause, if q1 is used by user manually */
    write('Do you like it hot or cold?'),
    read(Q1),
    asserta(q1(Q1)).
  
  /*same for Q2 and Q3*/
  </code></pre>
  
  <p>At the end I have this:</p>
  
  <pre><code>  q1(hot)
  q2(sunny)
  q3(22)
  </code></pre>
  
  <p>I can compare this to a list, so I have [hot, sunny, 22] (don't know why but I can do this)</p>
  
  <p>Now i really don't know how to compare the pre-lists with my answers. Don't know to compare the temperature.</p>
  
  <p><strong>Can anybody help me with an example? I really want to learn about Prolog, but I don't know how to handle with this problem.</strong></p>