Thread:Semantic-mediawiki.org:Community portal/Could anyone explain unexpected behavior please?

Recently I have finally found this gem: http://sandbox.semantic-mediawiki.org/w/index.php?title=Utilisateur:Cavila/previous_and_next&oldid=2336 - this page describes a nice example of getting previos and next pages against a certain query. And it would be very nice to introduce it to my wiki I'm currently developing. For example, I have 4 pages:


 * Live event:2012/05/26
 * Live event:2012/07/14
 * Live event:2012/12/03
 * Live event:2012/12/21

Each page above is categorized as. So the following query works perfect:  returning all 4 pages.

However, if I add another greater-than predicate specifying a certain page,, I get a syntax error:

Some part "&lt;nowiki>...&lt;/nowiki>" of the query was not understood

I'm really confused on:


 * how the  token got there
 * where the ellipsis came from

Not sure if it's possible to escape it somehow, and initially I thought that  or   might the reason of the issue. So I also tried :   -- that simply gives nothing, and not three pages as it was expected.

If it would help:


 * I'm using SMW 2.3.1, however the current SMW sandbox version is 2.4-alpha (68d3701)
 * is a wiki namespace

Has 2.4 something new that allows these queries to run? At least, the only place I found it described was a personal page of User:Cavila I provided above (or I'm blind to see it in the official documentation).

Thank you in advance.