Add fix for constructing Extract Operator RR during windowing plan generation + Add test 50 to ptf_general_queries.q