The Mazda Capella was commonly known in markets outside Japan as the Mazda 626. The Mazda 626's sixth-generation was built on the GF platform and released in 1997 for the 1998 model year.
Follow the lines back from the heater core and whichever line goes to the pump is the return the line from the engine block is the input. Hope this helps