Tyler is correct, the 747 was operating Amsterdam-San Fran and diverted here, rumor is an issue with a lavatory. It left after about an hour on the ground.
The other one would have been our Amsterdam flight, operated by an A330.
YYC spotter caught the arrival:
K L M D I V 3 R S I O N by
Wee in YYC, on Flickr