> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/sdgm/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/sdgm/_mcp/server.

# Putting It All Together

> Suggest Edits

## Writing Predictive Queries

As mentioned previously, predictive queries are mainly used to generate a training table that gets attached to a graph. Subsequently, you must use an existing graph or create one prior to creating your predictive query.

In the predictive query text area of the “Write PQuery” page, you can write your specific PQL that reflects your predictive task.