Database

[{sports:[{name:"cricket",history:[{from:10,to:30},{from:30,to:30}]}]},{sports:[{name:"cricket",history:[{from:10,to:30},{from:30,to:50}]},{name:"football",history:[{from:10,to:30},{from:30,to:50}]}]}]

Query

db.collection.find({$expr:{$gt:[{$size:{$filter:{input:{$reduce:{input:"$sports.history",initialValue:[],in:{$concatArrays:["$$value","$$this"]}}},cond:{$eq:["$$this.from","$$this.to"]}}}},0]}})

Result