QUERY PLAN
Sort (cost=2.82..2.83 rows=5 width=280)
Sort Key: wls.sort
-> HashAggregate (cost=2.71..2.76 rows=5 width=280)
Group Key: wls.id
-> Hash Join (cost=1.11..2.62 rows=39 width=280)
Hash Cond: (wlso.work_log_scenario_id = wls.id)
-> Seq Scan on tbl_work_log_scenario_options wlso (cost=0.00..1.39 rows=39 width=4)
Filter: (id IS NOT NULL)
-> Hash (cost=1.05..1.05 rows=5 width=280)
-> Seq Scan on tbl_work_log_scenarios wls (cost=0.00..1.05 rows=5 width=280)