machinestatus smart date query