Consider the following table:

```
|row |name    |last_name   |nacionality |team  
|1   |Adam    |Ritch       |USA         |Titans  
|2   |Scoth   |Buffalo     |USA         |Titans  
|3   |Jhon    |Veron       |USA         |Islanders  
|4   |Dylan   |Schdit      |USA         |Bulls  

```

Imagine a form with these fields (name, last\_name, nacionality and team) where none field is mandatory.
I need take into account only the fields that the user informed, **for example**: If the user informed nacionality = USA and team = Titans the aplication need to retrieve the rows 1 and 2.

In my **jpa application** I did:

```
 em.createNativeQuery ("select name from info_people where name = ? and last_name = ? and nacionality = ? and team = ?")

```

**Remark**: the "?" was filled with the values inserted by the user, in this case, the 3 and 4 "?" was filled with the values USA and Titans respectively.

But no row was returned, what is wrong with my query?