WAR and WAW Hazards

Which of these represents a WAR (write-after-read) hazard?

; Sequence A
ADD R1, R2, R3    ; 
SUB R2, R4, R5    ; 

; Sequence B
ADD R1, R2, R3    ;
SUB R4, R1, R5    ;