I haven’t used JSONata within HA, but there are some good examples here, including and/or conditions (example #3).