How I get the name of the taxonomy term reference of the content type
You can refer to this article having detailed information about entity queries.

You should use -&gt;entityCondition('entity_type',  'node')  rather than using -&gt;entityCondition('entity_type',  'taxonomy_term')