title: How do you store a result to a variable in prolog?
body: <p>I can't seem to find a resource that describes how one could store the result of a query so that I can use it for the next.</p>
  
  <p>What about just obtaining a boolean value from the query?</p>