IBM interview question

What is foreign key? Write the query for that.