Question: The Mazda Familia, also marketed prominently as the Mazda 323 and Mazda Protegé, was a small family car that was manufactured by Mazda between 1963 and 2003, the Familia line was replaced by the Mazda3/Axela for 2004, a compact car manufactured in which country, by Mazda?

Context paragraphs:
Mazda Familia: The Mazda Familia, also marketed prominently as the Mazda 323 and Mazda Protegé, was a small family car that was manufactured by Mazda between 1963 and 2003.  The Familia line was replaced by the Mazda3/Axela for 2004.

Mazda Motor Indonesia: PT.  Mazda Motor Indonesia was an official distributor company of the Mazda Motor Corporation from 2006 to 2017.  It was preceded by the former joint venture between the Mazda Motor Corporation and the IndoMobil Group, PT.  National Motors.  The company is located in Jakarta, Indonesia and has once built two different Mazda Familia based car models.  The manufacturing company and joint venture with IndoMobil Group was founded in 1985 and discontinued in 1997.  The PA monthly production of approximately 1,500 units were planned.

Mazda3: The Mazda3 or Mazda 3 (known as the Mazda Axela in Japan, a combination of "accelerate" and "excellent") is a compact car manufactured in Japan by Mazda.  It was introduced in 2003 as a 2004 model, replacing the Familia/323/Protegé.  A performance-oriented version of the Mazda3 is marketed as the Mazdaspeed3 in North America, Mazdaspeed Axela in Japan and the Mazda3 MPS in Europe.

Mazda Kiyora: The Mazda Kiyora is a concept car made by Mazda.  It was first introduced in a 2008 Paris Auto Show.  It is the next generation urban compact car intended to replace the Mazda2.  It is a design study for next-generation compact car and also an engineering study of high fuel-efficiency gasoline engine.  The design theme of the Mazda Kiyora is water.  It is applied to a city, a new trend in the automotive market due to environmental concerns.  The Mazda Kiyora achieves 32 km/L of fuel efficiency and 90g/km of CO emission.

Bahman Group: Bahman Group (Persian: ‎ ‎ ) is an Iran-based manufacturer of vehicles under license by Mazda.  Bahman Group was founded in 1952 under the title of Iran Khalij Co by Mr. Amanollah Sarbaz and his son.  They have since then manufactured, under license, versions of Mazda's trucks, including versions of the Mazda B-Series pickups and the previous generation Mazda 323 and Mazda 3.  They also manufacture Isuzu buses and FAW trucks.  Currently, the group is headed by Mohammad Reza Soroush.

Mercury Tracer: The Mercury Tracer is a compact car that was marketed by Mercury from 1987 for the 1988 model year until 1999.  The replacement for the Ford Escort-derived Lynx, the first generation of the Tracer was a modified version of the Asia-Pacific market Ford Laser, itself a variant of the Mazda 323.  In 1990 for the 1991 model year, the Tracer became the Mercury counterpart of the Ford Escort in North America.  All three generations of the Tracer were based on variations of the Mazda 323/Protegé.

Mazda Demio: The Mazda Demio is a supermini manufactured and marketed globally by Mazda since 1996, currently in its fourth generation.  The Demio is marketed prominently as the Mazda2 and under previous nameplates including Mazda 121, Mazda Metro and Ford Festiva Mini Wagon.

Mercury Lynx: The Mercury Lynx is a compact car that was produced by Mercury for model years 1981 to 1987.  It was a rebadged version of the Ford Escort.  In 1987, the Lynx was dropped after slumping sales (although at one point, it was Mercury's best-selling car).  In 1988, Mercury launched the Tracer as the Lynx's replacement.  The Tracer was based on the Mazda 323, was built in Mexico and Japan (depending on model), and shared nothing with the Lynx.

Mazda E engine: The iron-block, alloy head E family was an evolution of Mazda's xC design.  It was released in June 1980 with the introduction of the first front-wheel drive Mazda Familias and Ford Lasers.  Some later variants of the E5-powered Mazda Familia and Ford Laser in Japan incorporated a full-time 4WD drivetrain.  All E engines were chain-driven, 8-valve SOHC.  Notable features include siamesed cylinders, aluminium rocker arms and pistons, thin block walls, and single valve springs - all in the interest of reducing weight.

Mazda B-Series: The Mazda B-Series is a pickup truck that was first manufactured in 1961 by Mazda.  Since the launch of the B-Series, Mazda has used the engine displacement to determine each model's name; the B1500 had a 1.5 L engine and the B2600 had a 2.6 L engine.  In Japan, the name Mazda Proceed was used for the compact pickup.  Other names used for this line include Mazda Bravo (Australia), Mazda Bounty (New Zealand), Mazda Magnum/Thunder/Fighter (Thailand), and Mazda Drifter (South Africa).

Supporting paragraphs: Mazda Familia Mazda3
Answer: Japan