Question: Given three classes A, B, and C, where B is a subclass of A, and C is a subclass of B.

```
(a) (o instanceof B) && (!(o instanceof A))
(b) (o instanceof B) && (!(o instanceof C))
(c) !((o instanceof A) || (o instanceof B))
(d) (o instanceof B)
(e) (o instanceof B) && !((o instanceof A) || (o instanceof C))

```

**Question:** Which option is true only when an object denoted by `reference o` has **actually been instantiated from class B**?

Note: I am unable to understand the question. Even though the object is instantiated from B, we can instantiate objects from any of the classes A, B or C.

What is the question exactly trying to state?

Answer: 
As mentioned in:

[here](https://stackoverflow.com/a/6214704/1303832) and [here](https://stackoverflow.com/a/28450681/1303832)

It is not possible in a simple query, and the solution with dynamicField/copyField is not applicable in my case.
Yes wild card is supported in both terms, phrases, and exact phrases.For more information please refer below link.Specially Wildcard Section.

<https://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#Wildcards>