ok let make it complicated.. :) i ordered an iphone from the US, how will that work here in qatar or in any other countires.. its factory unlocked.. will it work with a qatar sim?

or i still need to make it "openline"?  sound stupid.. but first time to use iphone..