LIMERENCE

LOGISTICS

AI-Powered SQL for Logistics

Enable operations teams to track shipments, optimize routes, and monitor warehouse performance without SQL expertise.

GET STARTED

Ask in plain English

Your team asks business questions. Limerence generates the SQL.

Question

What is our average delivery time by carrier this month?

sql
SELECT carrier, ROUND(AVG(EXTRACT(EPOCH FROM (delivered_at - shipped_at)) / 3600), 1) AS avg_hours,
  COUNT(*) AS deliveries
FROM shipments
WHERE shipped_at >= DATE_TRUNC('month', CURRENT_DATE)
  AND delivered_at IS NOT NULL
GROUP BY carrier
ORDER BY avg_hours;
Question

Show me warehouses with inventory below reorder point

sql
SELECT w.name AS warehouse, p.name AS product, i.quantity AS current_stock, i.reorder_point,
  i.reorder_point - i.quantity AS shortfall
FROM inventory i
JOIN warehouses w ON i.warehouse_id = w.id
JOIN products p ON i.product_id = p.id
WHERE i.quantity < i.reorder_point
ORDER BY shortfall DESC;
Question

What percentage of shipments were delivered on time last quarter?

sql
SELECT ROUND(
  COUNT(CASE WHEN delivered_at <= estimated_delivery THEN 1 END)::float / COUNT(*) * 100, 1
) AS on_time_pct,
COUNT(*) AS total_shipments
FROM shipments
WHERE shipped_at >= DATE_TRUNC('quarter', CURRENT_DATE - INTERVAL '3 months')
  AND shipped_at < DATE_TRUNC('quarter', CURRENT_DATE)
  AND delivered_at IS NOT NULL;

Compliance & Security

Self-hosted means your data never leaves your infrastructure.

C-TPAT

Supply chain security tracking with complete chain-of-custody visibility.

ISO 28000

Supply chain security management with audit-ready access controls and logging.

GDPR

Driver and customer PII stays within your infrastructure. Location data processed locally.

Speaks your language

Teach Limerence logistics terminology so it maps business terms to your actual schema.

OTD
On-Time Delivery — percentage of shipments arriving by the promised date
COUNT(CASE WHEN delivered_at <= estimated_delivery THEN 1 END) / COUNT(*)
WMS
Warehouse Management System — tracks inventory movements and locations
inventory_movements.source_system
TMS
Transportation Management System — plans and optimizes freight routes
routes.tms_id
FIFO
First In, First Out — inventory rotation method
ORDER BY received_date ASC
READY?
bash
$ curl -fsSL https://limerence.sh/install.sh | bash
REQUEST A DEMO