# Lazy execution
source: https://docs.chalk.ai/docs/chalkdf/concepts/lazy-execution

## Build multiple queries from a shared input before executing one.

Each operation returns a frame describing the next calculation. Keep intermediate frames in variables to build more than one query from the same input.

```python
from chalk import _
from chalkdf import DataFrame

tx = DataFrame({"user": ["a", "a", "b"], "amount": [12, 8, 30]})

large = tx.filter(_.amount >= 10)
users = large.select("user")
users.run()
```

| user · `string` |
| --- |
| a |
| b |

You can still use `large` to sum the amounts, or use `tx` to include all three transactions. The call to [`users.run()`](/dataframe-docs#DataFrame.run) requests the rows for that branch. See [Query execution](/docs/chalkdf/query-execution) for inspecting the plan before requesting results.

See [`DataFrame.run`](/dataframe-docs#DataFrame.run), [`DataFrame.explain_logical`](/dataframe-docs#DataFrame.explain_logical).





