Adding some more data tables for hierarchy and team names. Created selection overround sql query