start adding the SQL code to port data into wapo_entity_agg