Answer: There are some of both
Step-by-step explanation:
An article about criminals prosecuted by Sonia could be both it depends on this one factor: did Sonia write it? I can't tell you because of the way you formated the question. This could be taken as Sonia wrote it, or Sonia was the prosecutor. If Sonia was the author and the prosecutor, then it is primary. If she was just the prosecutor, then it is probably secondary.
An easy way to tell if the text is primary or secondary is to think, " Was this person there and telling you what happened by what he/she said and heard?"
Primary - an article about criminals prosecuted by Sonia
Secondary – an article about criminals prosecuted by Sonia
A newspaper article about cases won and lost by Sonia again could be taken as Sonia wrote it and was the prosecutor or Sonia was the prosecutor. If she wrote it and was the prosecutor, it is primary. If it is just about Sonia, then it is secondary.
Primary – a newspaper article about cases won and lost by Sonia
Secondary – a newspaper article about cases won and lost by Sonia
A guest appearance by Sonia Sotomayor on a news broadcast would be primary because the information is coming from the prosecutor so you are being told the information from someone who was there.
Primary – a guest appearance by Sonia Sotomayor on a news broadcast
An opinion about a ruling authored by Sonia Sotomayor would be primary because she was there.