I have a dynamic SQL where it has a information about the person, for e.g.

Table 

```
ID   Name   Address  Age(int)
1    a       Main     30
2    b       CT       35

```

Now how can I get all Person their `Age < 40 or Age >= 30 or Age <= 50` etc. What I am trying to do is pass " <30 " or " >40 " etc as parameter and query accordingly.