Skip to content

Commit 293fada

Browse files
authored
Update 4. Aggregation Pipelines: Let the Server Do It For You.md
1 parent 455e4b0 commit 293fada

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Introduction to MongoDB in Python/4. Aggregation Pipelines: Let the Server Do It For You.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,9 @@ Possible Answers
208208
- [ ] {"$addFields": {"firstname": 1, "surname": 1}}
209209
- [ ] {"$project": {"firstname": 1, "surname": 1}}
210210
- [ ] {"$project": {"firstname": 1, "surname": 1, "_id": 0}}
211+
## 🦍 How many prizes were awarded to immigrants?
212+
> How many prizes were awarded to people who had no affiliation in their country of birth at the time of the award?
213+
214+
Instructions
215+
- [x] In your aggregation pipeline pipeline, use the "gender" field to limit results to people (that is, not organizations).
216+
- [x] Count prizes for which the laureate's "bornCountry" is not also the "country" of any of their affiliations for the prize. Be sure to use field paths (precede a field name with "$") when appropriate.

0 commit comments

Comments
 (0)