title: Neo4j WHERE NOT clause for different nodes not working
body: <p>I will explain briefly my query:</p>
  <pre><code>match (a)-[:requires]-(b), 
        (a)-[:instanceOf]-&gt;(n)&lt;-[:superclassOf*]-(c:Host_configuration),
        (h)-[:instanceOf]-&gt;(z)&lt;-[:superclassOf*]-(t:Host)  
  where not b = h 
  return distinct a, b
  </code></pre>
  <p>My wish is to return all <code>(a)-[:requires]-(b)</code> patterns (where <code>a</code> is somehow a subclass of <code>Host_configuration</code> but <code>b</code> is not a subclass of <code>Host</code>. <br>
  This query however returns <strong>also</strong> nodes that actually are subclasses of <code>Host</code>
  <br>
  <strong>EDIT</strong><br>
  I don't want to retrieve all <code>a</code> elements connected to <code>b</code> elements that are not tied to <code>Host</code>. I want to retrieve all patterns between <code>a</code> and <code>b</code> that are not like <code>(a)-[:requires]-(h)</code></p>