The following query returns the documents which have an element named "company" -
cts:element-value-query(
xs:QName('company'), '*', ("wildcarded")))
The following query returns the documents which have an element named "company" with an attribute named "name" -
cts:element-attribute-value-query(
xs:QName('company'), xs:QName('name'), '*', ("wildcarded")))