```dart
import 'package:amplify_flutter/amplify_flutter.dart';

import 'models/ModelProvider.dart';

Future<void> queryPublishedOrWithRatingTwoPosts() async {
  try {
    final posts = await Amplify.DataStore.query(
      Post.classType,
      where: Post.RATING.eq(2).or(Post.STATUS.eq(PostStatus.ACTIVE)),
    );
    safePrint('Posts that are published, or have a rating 2: $posts');
  } on DataStoreException catch (e) {
    safePrint('Something went wrong querying posts: ${e.message}');
  }
}
```
