Added test reproducing problem with queries using temporal operators

Added reproducer for https://bugzilla.redhat.com/show_bug.cgi?id=980775.