InfluxQL query to compute CPU Usage Rate % in Grafana

I have Windows exporter data stored in an InfluxDB database. This is the PromQL query to display CPU Usage Rate % in a Graph →

100 - avg(irate(windows_cpu_time_total{job=~"$job",instance=~"$instance",mode=“idle”}[5m]))*100

I’m trying to form an equivalent influxQL query for the CPU Usage Rate % graph.

These are the sample records influxdb measurement windows_cpu_time_total -