# Step 5: Run analytic queries

In a new shell/sequel pro window, run the following analytical queries while `iter_stocks` inserts records in the background.

***

Modified at: November 20, 2024

Source: [/cloud/query-data/advanced-query-topics/example-building-a-sample-stock-trade-database/step-5-run-analytic-queries/](https://docs.singlestore.com/cloud/query-data/advanced-query-topics/example-building-a-sample-stock-trade-database/step-5-run-analytic-queries/)

(An index of the documentation is available at /llms.txt)
