From Frasier:
When Daphne gets dumped by Rodney a guy she met at a bar cause he hooked up with Adelle a woman who has dumped Niles too and whom he met at the same bar too, Niles goes to the bar to meet her and tell her the news thinking that he may also try and get his way to winning Daphne’s heart, but then as the conversation goes he decides that it is not the best moment to tell Daphne of his feelings. While amidst the conversation they discover that when they met their respective objects of affection they have just been dumped by they have been sitting on two seats that are next to each other. Daphne makes the assumption of them meeting at that bar and asks Niles what he thinks that in such a hypothetical situation they would have said to each other.
Niles replies (while trying to hide his feelings for Daphne):
I would have asked you: Is this seat taken?
You would have answered: No.
And then you would have said: Daphne.
And I would have replied: And I am Niles.
And then I would have asked you: What are you doing for the rest of your life?
Following that Daphne said in a friendly tone: I love you Dr. Crane.
Niles took a deep breath and said: I love you too Daphne.
And then he sipped his drink…