feat: support use sql to construct graph for loader (#263)