Database schema:

CREATE TABLE divisions (
	division TEXT NOT NULL -- example: ['D1', 'B1'],
	name TEXT -- example: ['Division 1A', 'Bundesliga'],
	country TEXT -- example: ['Deutschland', 'Belgium'],
	PRIMARY KEY (division)
)


CREATE TABLE matchs (
	"Div" TEXT -- example: ['D1', 'B1'],
	"Date" DATE -- example: ['2020-08-08', '2020-08-09'],
	"HomeTeam" TEXT -- example: ['Antwerp', 'Club Brugge'],
	"AwayTeam" TEXT -- example: ['Mouscron', 'Charleroi'],
	"FTHG" INTEGER -- example: ['0', '1'],
	"FTAG" INTEGER -- example: ['0', '1'],
	"FTR" TEXT -- example: ['A', 'D'],
	season INTEGER -- example: ['2020', '2021'],
	CONSTRAINT fk_matchs_divisions FOREIGN KEY("Div") REFERENCES divisions (division)
)

Question: Which team won the match of the Bundesliga division on 2020/10/2?
Evidence: Bundesliga is the name of division; Date = '2020/10/2'; won the match refers to FTR = 'H';

SQL:
SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam WHEN T1.FTR = 'A' THEN T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-10-02' AND T2.name = 'Bundesliga'