WARNING: This page is about a different car, the 2007 Mazda B3000. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Identifying Accelerator, Speed Control Cable With Associated Components
Courtesy of MAZDA MOTORS CORP.
Fig 2: Idle Air Control Valve, Throttle Position Sensor And EGR Vacuum Regulator Solenoid Connector With Torque Specifications