title: A possible Spring Data Bug with SDN Neo4J Cypher Query
body: <p>The following query should return the account sorted by the number "followers" in desc order, with a limit.</p>
  
  <p>It takes 2 variables as params (maxCount and limit). MaxCount refers to a numbers of followers. so if maxCount is 100, then return only those accounts that have followers less than 100.</p>
  
  <p>If I run this query in a Spring Data Neo4j App. It seems to ignore maxCount constraint e.g. If I set maxCount equal to 2 and have account1 with 3 followers and account2 with 1 follower. It seems to incorrectly return both accounts when it should only return account2 which has only 1 follower.</p>
  
  <p>Query</p>
  
  <pre><code>@Query("MATCH (a:Account)&lt;-[:follows]-(b:Account) WITH a, COLLECT(b)
  AS bs WHERE SIZE(bs) &lt; {0} RETURN a ORDER BY SIZE(bs) DESC LIMIT {1}")
  List&lt;Account&gt; findCappedSortedAccountByFollowers(int maxCount, int resultSize);
  </code></pre>
  
  <p>It works if I enter it directly into Neo4j Console</p>
  
  <p>Perhaps this is Spring Data Bug?</p>
  
  <p>SDN Version: 4.1.3.RELEASE</p>
  
  <p>OGM Embedded Driver Version: 2.0.5</p>
  
  <p>Small App to demonstrate problem available <a href="https://1drv.ms/u/s!AsgXB_MymYNJcsZbsI9Pup2rQSU" rel="nofollow">here</a></p>