Fixed query for retrieving list of sprints

Please see GHS-9747 and GHS-9321