IBM interview question

Join queries using primary and foreign key.