Kapacitor + tickscript two fields query

How to create a query for two fields that will set the threshold both the same and it will trigger the alerts