\echo '--- KPI CARDS ---'
SELECT *
FROM mv_hot.edge_oee_kpi_cards_demo
ORDER BY sort_order;

\echo '--- PARETO ---'
SELECT
  ranking,
  cause,
  hours_month,
  monthly_cost_eur,
  recommended_action
FROM mv_hot.edge_oee_pareto_demo
ORDER BY ranking;

\echo '--- TIMELINE OF00481 ---'
SELECT
  time,
  time_end,
  order_id,
  machine_name,
  source,
  state,
  detail,
  duration_min,
  cost_eur
FROM mv_hot.edge_oee_order_timeline_demo
WHERE order_id = 'OF00481'
ORDER BY time, sort_order;

\echo '--- DATA QUALITY ---'
SELECT *
FROM mv_hot.edge_oee_data_quality_dashboard_demo
ORDER BY sort_order;

\echo '--- ACTIONS ---'
SELECT *
FROM mv_hot.edge_oee_actions_demo;

\echo '--- QUALITY CASE ---'
SELECT *
FROM mv_hot.edge_oee_quality_case_demo;
