Use the correct alias when adding query-time restriction to join clauses
tests: correct test_filtering_two_jumps_with_version_at_t3 logic
simplify get_extra_restriction code
tests: specify expected sql for two queries
Merge pull request #29 from brki/querytime_propagation_issue

Fix for the "Querytime propagation issue"