My task is to fill in this table the output Q by analysing following circuit


 [![enter image description here][1]][1]

My suggestion would be:

[![enter image description here][2]][2]



Would that idea be right?


  [1]: https://i.sstatic.net/AWBIn.png
  [2]: https://i.sstatic.net/z546A.png

in the digital electronics means: S=1 => Q=1 and R=1 => Q=0

Edit: My question is different from the possible duplicate because I should work here with the previous Q (previous stored data).