"Hi, my name is so-and-so. I am a [brief description of you, e.g. "student at X university", "resident of...", "software engineer working at..."]. I found you via ... I read your paper on ... and I had a question:
or something like that.
Never say, "I wonder if you could spare some time to answer a question?" Just ask it. If they can spare the time they'll answer, and if they can't, asking if they can won't change that.