Have you ever been in a long-distance relationship?

Literal

Long-distance romance [object-を] done-experience [topic-は] exist [question-か].

遠距離恋愛 ('long-distance romance') is a four-kanji compound that functions as a single concept. ~たことはありますか is the standard polite experience-question pattern. A clean, practical sentence for conversation practice.