Turf to dirt (from the chart at the above link) is 4 through 7. The field name in the table schema is sfshift. Adding the following line to a sql expression will make the expression flag turf to dirt horses:
AND SFSHIFT BETWEEN 4 AND 7
Alternately, you could use something like the following 2 lines:
AND SFSHIFT >= 4 AND SFSHIFT <= 7
dirt-to-turf
Dirt to turf (from the chart at the above link) is 8 through 11. The field name in the table schema is sfshift. Adding the following line to a sql expression will make the expression flag dirt to turf horses:
AND SFSHIFT BETWEEN 8 AND 11
Alternately, you could use something like the following 2 lines: