The sample I posted previously was not a good sampling so I have posted a better data sample. The field names are first in the same order as the data. The query should create 2 fields "PREVODOMETER" AND "MPG"
VEHICLEID,ODOMETER,PRODUCT,TRANTIME,QUANTITY,AGENCY...