Database

[{timeRange:[{from:"2.5",to:"3"},{from:"3",to:"3.5"}]}]

Query

db.collection.aggregate([{$match:{timeRange:{$elemMatch:{from:{$in:["2.5","3","3.5"]},to:{$in:["2.5","3","3.5"]}}}}}])

Result