5, "flight": "KL169", "utc": "23:41:00" } ] } ] } { "results": [ { "airline": "KL", "destinationairport": "ATL", "id": 36159, "schedule": [ { "day": 1, "flight": "KL672", "utc": "19:19:00" }, { "day": 2, "flight": "KL173", "utc": "07:18:00" }, { "day": 5, "flight": "KL169", "utc": "23:41:00" } ], "sourceairport": "ABQ" } ] } SELECT ARRAY v FOR v IN schedule WHEN v.utc > "19:00" AND v.day = 5 END AS fri_evening_flights FROM `travel-sample` WHERE type="route" AND airline="KL" AND sourceairport="ABQ" AND destinationairport="ATL" AND ANY v IN schedule SATISFIES v.utc > "19:00" END LIMIT 1; SELECT id, airline, sourceairport, destinationairport, schedule FROM `travel-sample` WHERE type="route" AND airline="KL" AND sourceairport="ABQ" AND destinationairport="ATL" LIMIT 1; ྻΛߜΓࠐΈ ઌఔͷΫΤϦ