# `Lotus.AI.Actions.ExecuteStatement`
[🔗](https://github.com/elixir-lotus/lotus/blob/v1.0.0/lib/lotus/ai/actions/execute_statement.ex#L1)

Executes a query statement against a data source.

Used by the investigation agent to run queries and analyze results.
Returns column names, row count, and a preview of the first rows
(capped to avoid overwhelming the LLM context).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
