Flavien Prat discovered he had ridden the second placed outsider Country House to victory after Maximum Security was disqualified.