GQL Statement

{
:households => V(INTERSECTION(G(final_demand_group),SECTOR(households)),demand).sum,
:buildings => V(INTERSECTION(G(final_demand_group),SECTOR(buildings)),demand).sum,
:transport => V(INTERSECTION(G(final_demand_group),SECTOR(transport)),demand).sum,
:other => V(INTERSECTION(G(final_demand_group),SECTOR(industry)),demand).sum,
:agriculture => V(INTERSECTION(G(final_demand_group),SECTOR(agriculture)),demand).sum,
:industry => V(INTERSECTION(G(final_demand_group),SECTOR(industry)),demand).sum
}.sort_by { |name, demand| demand }.to_a.last[0]

Result

2019 2.9 ms
:industry
MJ
2050 2.46 ms
:industry
MJ

Description

Characteristics

Groups
Unit MJ
File path /app/tmp/etsource/gqueries/modules/scenario_report/main_report/biggest_final_demand_sector_name.gql

References