Me and a couple friends were playing poker and me and one of my friends had a pair. She had a pair in her hands and I had a pair using one of the cards from the flop. She had a Pair Of Q's, I had a pair of A's. I used an Ace From the table to make my pair and her pair is in her hand, who won?
Assuming you are playing Texas Hold'em. Its the best 5 card hand using ANY combination of your hole cards (Cards in your hand) and the community cards (cards on the table).
You won the hand with a pair of Aces. Pair of Aces > Pair of Queens.