Wrote the query for getting a user's entities. Will need to tweak html
in the front end.