Thanks for the information Florian, I tested the query with SP11 and it seems to be working as expected. Can you provide more information about what this comparison system is which you are talking about? This can help us in documenting any such issues that might come up in future.
Thanks,
Ravi.