Kaito Toba stalked Marcos Ramirez throughout the second race in Valencia while a number of riders fought for third.