Added join method to Query