Move PathQueryElement#childMatch to PathQuery.