CREATE TABLE table_name_47 (date VARCHAR2, competition VARCHAR2, result VARCHAR2)

When is the Competition of friendly match with a Result of 2 1?
SELECT date FROM table_name_47 WHERE competition = "friendly match" AND result = "2–1"
SELECT "date" FROM "table_name_47" WHERE "2–1" = "result" AND "competition" = "friendly match"