Added java code for OR-1 single date query.