How to get entries with or it is possible to do like this:

$users = Entry::find()
  -&gt;userLevel('&gt;3')
  -&gt;or group('admin')


So in database level,the sql will go like this:

select * from users
  where users.userLevel &gt; 3 or users.group='admin'


Many many thanks!!
Yes but not like you tried it. You have to work on Yii2 level and not with Crafts Query

// prefix for content column tables
// if you want to select fields in the field layout do
// $prefix . 'fieldHandle'
$prefix = Craft::$app-&gt;getContent()-&gt;contentTable . '.' . Craft::$app-&gt;getFields()-&gt;oldFieldColumnPrefix; 

$user = User::find()
    -&gt;andWhere(
        new OrCondition(
            ['&gt;','users.userLevel', 3],
            ['=', 'users.group', 'admin'] 
        )
    )
    -&gt;all();


However: keep in mind this SQL will likely produce errors because there is neither a users.group column nor a users.userLevel column in the database

Just as an example for more complex search:

$prefix = Craft::$app-&gt;getContent()-&gt;contentTable . '.' . Craft::$app-&gt;getFields()-&gt;oldFieldColumnPrefix;
$criteria = [
    'where'     =&gt; new OrCondition(
        [
            [
                'between',
                $prefix . 'startDate',
                Db::prepareDateForDb($startDateDb),
                Db::prepareDateForDb($endDate)
            ],
            new AndCondition(
                [

                    ['=', $prefix . 'recurring', 1],
                    ['&lt;=', $prefix . 'startDate', $startDateDb-&gt;format('Y-m-d H:i:s')]
                ]
            )
        ]
    ),
    'orderBy'   =&gt; ['startDate' =&gt; SORT_ASC],
    'sectionId' =&gt; 10,
];

$query = Entry::find();
\Craft::configure($query, $criteria);