QUERY PLAN
Sort (cost=2.90..2.91 rows=5 width=23)
Sort Key: wls.sort
-> HashAggregate (cost=2.79..2.84 rows=5 width=23)
Group Key: wls.id
-> Hash Join (cost=1.11..2.69 rows=39 width=19)
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=19)
-> Seq Scan on tbl_work_log_scenarios wls (cost=0.00..1.05 rows=5 width=19)