add LocationId to Reference and query result