CREATE TABLE table_204_371 (id DECIMAL, "team" TEXT, "competition" TEXT, "category" TEXT, "appearances\ start" DECIMAL, "appearances\ sub" DECIMAL, "goals" DECIMAL, "team record" TEXT)

where did japan only score four goals ?
SELECT "competition" FROM table_204_371 WHERE "team" = 'japan' AND "goals" = 4
SELECT "competition" FROM "table_204_371" WHERE "goals" = 4 AND "team" = 'japan'