The Queen has indulged her passion for horse racing during her tour of Ireland with a visit to one of the world's top stud farms.