British Airways and American Airlines are both part of the Oneworld alliance and I have frequent flier numbers for both of them - for American AAdvantage and British Airways Executive Club. And they're both in Expedia.
So let's say I buy a plane ticket from the United States to Europe. I assume only one frequent flier number gets the miles. But which one?