> ## Documentation Index
> Fetch the complete documentation index at: https://kumo.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/kumoai/images/docs/0464c7e-image.png" alt="" />
