This is the code I attempted to create the view and add the multiple distance columns to obtain the total distance:
CREATE OR ALTER VIEW map_view AS SELECT lo