があったんだ

there was

→ が
phrase Uncommon #10,750
there was Used to explain or emphasize that something existed or happened in the past. The subject is often clear from context; it can also mean “I had” or “there was” depending on the sentence.
JA: ここに大きな木があったんだ。
EN: There used to be a big tree here.

昔はここに教会があったんだ。

There used to be a church here.

今日の授業で面白い質問があったんだ。

There was an interesting question in today's class.

昔ここには桟橋があったんだ。

There used to be a pier here.

伝えたい事があったんだ

I had something I wanted to tell you.

— ニュー・シネマ・パラダイス (1988)

才能があったんだ

You had talent.

— コーカサスの虜 (1996)

今日、数学のテストがあったんだ。

I had a math test today.

いろんな事があったんだ、リビー

A lot has happened, Libby.

— ダーク・プレイス (2015)

昔は彼らの町の側と俺たちの側があったんだがな

Back then, there was their side of town and our side, you know.

— 罪人たち (2025)

昨日連絡があったんだ獣医からだった

I heard from the vet yesterday.

— REC / レック (2007)

今日、算数のテストがあったんだ。

I had a math test today.

変なことがあったんだ。

Something strange happened.

一体何があったんだ?

What on earth happened?

— ワンス・アポン・ア・タイム・イン・ハリウッド (2019)

これにはちゃんとした理由があったんだ。

There was a good reason for this.

古い道があったんだ

There was an old road.

— 君たちはどう生きるか (2023)

昨日の夜、少し頭痛があったんだ。

I had a slight headache last night.

私には弱点があったんだ、ディーン。

I had a weakness, Dean.

— 教皇選挙 (2024)

以前はここに大きな公園があったんだ。

There used to be a big park here.

客があったんだな

You had a customer, huh.

— サイコ (1960)

誕生日にスポックが言おうとしていた事があったんだ

There was something Spock was trying to say on my birthday.

— スター・トレックII カーンの逆襲 (1982)