QUERY PLAN
Sort (cost=37.48..37.98 rows=200 width=316)
Sort Key: wls.sort
-> HashAggregate (cost=27.83..29.83 rows=200 width=316)
Group Key: wls.id
-> Hash Join (cost=14.50..27.29 rows=219 width=312)
Hash Cond: (wlso.work_log_scenario_id = wls.id)
-> Seq Scan on tbl_work_log_scenario_options wlso (cost=0.00..12.20 rows=219 width=4)
Filter: (id IS NOT NULL)
-> Hash (cost=12.00..12.00 rows=200 width=312)
-> Seq Scan on tbl_work_log_scenarios wls (cost=0.00..12.00 rows=200 width=312)