Natural language → SQL chatbot

Ask a business question in plain English. The app converts it into a SQLite query and executes it against a demo store database.

Demo schema

  • customers(id, name, country, segment)
  • products(id, name, category, price)
  • orders(id, customer_id, order_date, status, shipping_days)
  • order_items(id, order_id, product_id, quantity, unit_price)

Notes

  • This starter uses simple rule-based parsing for reliability and zero external dependencies.
  • It is deliberately read-only: only SELECT statements are executed.
  • You can later swap parse_question_to_sql() for an LLM-based implementation while keeping the same UI.