Add pattern relationships to QueryGraph