Oh.
The fact that it was giving different results in 2 different servers with the same data could be an index issue.
I believe this is similar to this thread:
Your filter basically says:
fetch me objects from ** TextChunk** that have references with ** upload_time >=X** while simultaneously having references with ** upload_time <=Y** "
Let me know if this clarifies.
Thanks!