Query Builder

Build a filter with conditions and AND / OR groups, or ask a question, then press Apply. The grid lists the orders that match and the SQL card shows the parameterised WHERE clause you would run on your database. The rules are kept in your session, so every visitor has their own.

Filter the orders

No conditions yet. Add one or ask a question.

Orders
40 of 40 orders
CustomerCountryTotalOrder datePaid
Alba TextilesSpain32,912026-01-05✓
Alpine FoodsFrance411,042026-01-12
Atlas MotorsGermany789,172026-01-19✓
Beacon ToolsItaly1.167,302026-01-26✓
Blue HarbourUnited Kingdom65,432026-02-02✓
Castle BakerySpain443,562026-02-09
Cedar LogisticsFrance821,692026-02-16✓
Delta PharmaGermany1.199,822026-02-23✓
Eagle OpticsItaly97,952026-03-02✓
Fjord FisheriesUnited Kingdom476,082026-03-09
Granite WorksSpain854,212026-03-16✓
Harbor WinesFrance1.232,342026-03-23✓
Iris FashionGermany130,472026-03-30✓
Juniper LabsItaly508,602026-04-06
Kestrel AirUnited Kingdom886,732026-04-13✓
Lumen LightingSpain1.264,862026-04-20✓
Maple PaperFrance162,992026-04-27✓
Nova CeramicsGermany541,122026-05-04
Orion SteelItaly919,252026-05-11✓
Pioneer SeedsUnited Kingdom1.297,382026-05-18✓
Alba TextilesSpain195,512026-05-25✓
Alpine FoodsFrance573,642026-06-01
Atlas MotorsGermany951,772026-06-08✓
Beacon ToolsItaly1.329,902026-06-15✓
Blue HarbourUnited Kingdom228,032026-06-22✓
Castle BakerySpain606,162026-06-29
Cedar LogisticsFrance984,292026-07-06✓
Delta PharmaGermany1.362,422026-07-13✓
Eagle OpticsItaly260,552026-07-20✓
Fjord FisheriesUnited Kingdom638,682026-07-27
Granite WorksSpain1.016,812026-08-03✓
Harbor WinesFrance1.394,942026-08-10✓
Iris FashionGermany293,072026-08-17✓
Juniper LabsItaly671,202026-08-24
Kestrel AirUnited Kingdom1.049,332026-08-31✓
Lumen LightingSpain1.427,462026-09-07✓
Maple PaperFrance325,592026-09-14✓
Nova CeramicsGermany703,722026-09-21
Orion SteelItaly1.081,852026-09-28✓
Pioneer SeedsUnited Kingdom1.459,982026-10-05✓
Try this
  • Press Add condition, pick Country, keep equals and choose Spain, then press Apply: the grid lists the orders from Spain and the SQL card shows country = :qb1 with its parameter.
  • Press Add group, switch the new group to OR and give it two conditions, Total greater than 1000 or Paid equals false, then press Apply.
  • Type a question in the Ask box and press Ask: country is Spain and total over 500, total between 200 and 800 or paid is false. The assistant turns it into rules and applies them. Edit those rules and press Apply again.
  • Reload the page: the rules come back from your session. Another browser starts with no rules.
  • Press Clear: every order is listed again.
SQL for your database
SQL
SELECT customer, country, total, order_date, paid
FROM orders
Parameters

No parameters, every order is selected.

Rules JSON, kept in your session
{"c":"and","r":[]}