a.
db.games,profiles .find({
  \"$and\": [{
     \"games.defense_interceptions
<\":{ \"$gt\" : 0 }
  },{
  \"$and\": [{
     \"$where\": \"this. games.team ==
this.â€SEA†\"
  },{
  \"$and\": [{
     \" games.year\" : â€1990â€
  },{  \"$where\": \"this. games.player_id ==
this. profiles.player_id\"
  }]
  }]
  }]
},{
  \"games.game_number\": 1,
  \"profiles.name\": 1
}
);
b.
db.profilesnatural join games .group({
\"key\":{
\"year\": true
},
\"initial\": {
\"countstar\":0
},
\"reduce\": function( obj , prev ){
if (true != null ) if ( true instanceof Array)prev.countstar +=
true.length;
else prev.countstar++;
},
\"finalize\": function( prev ){
},
\"cond\": {
  \"$where\": \"this.name == this.â€John David Crow†\"
}
});