```dart import 'package:amplify_flutter/amplify_flutter.dart'; import 'models/ModelProvider.dart'; Future queryPublishedPostsWithRatingFour() async { try { final posts = await Amplify.DataStore.query( Post.classType, where: Post.RATING.eq(4).and(Post.STATUS.eq(PostStatus.ACTIVE)), ); safePrint('Published posts that have a rating 4: $posts'); } on DataStoreException catch (e) { safePrint('Something went wrong querying posts: ${e.message}'); } } ```