What constitutes a leading question?
Until recently, I assumed it was the same as a "loaded question" in a casual context, like a question in a push polls designed to bias the answer. But through answers here, it's become clear to me that the legal meaning of a leading question is something with much more nuance.
I understand that leading questions generally aren't allowed on direct examination, with a few exceptions, but are fine on cross-examination. But I am not understanding the difference between these two formulations:
Leading: You were at Seagull’s Pub the night of October 31st, right?
Not leading: Where were you the night of October 31st?
The former introduces the idea that they were at Seagull's Pub. Is that the only difference? Would it still be a leading question if it was rephrased as, "Were you at Seagull's Pub the night of October 31st?"
If the answer is specific to a jurisdiction, I am especially interested in US law and how it is most often practiced at both the federal and state levels.