title: Use second filter when there are multiple entries in SPARQL
body: <p>I have the following query:</p>
  
  <pre><code>PREFIX  owl: &lt;http://carre.kmi.open.ac.uk/ontology/risk.owl#&gt;
  
  SELECT distinct ?name ?value ?condition ?condition_json 
  WHERE
  {
  ?node owl:has_observable_condition ?condition .
  ?node owl:has_risk_evidence_ratio_value ?value .
  ?node owl:has_risk_factor ?factor.
  ?factor owl:has_risk_factor_target ?target.
  ?target owl:has_risk_element_name ?name.
  ?node owl:has_observable_condition_json ?condition_json .
  FILTER regex(str(?condition), "OB_58") .}
  </code></pre>
  
  <p>The results of the query can be found <a href="https://devices.duth.carre-project.eu/sparql?default-graph-uri=http%3A%2F%2Fcarre.kmi.open.ac.uk%2Fpublic&amp;query=PREFIX%20%20owl%3A%20%3Chttp%3A%2F%2Fcarre.kmi.open.ac.uk%2Fontology%2Frisk.owl%23%3E%0D%0A%0D%0ASELECT%20distinct%20%3Fname%20%3Fvalue%20%3Fcondition%20%3Fcondition_json%20%0D%0AWHERE%0D%0A%7B%0D%0A%20%20%3Fnode%20owl%3Ahas_observable_condition%20%3Fcondition%20.%0D%0A%20%20%3Fnode%20owl%3Ahas_risk_evidence_ratio_value%20%3Fvalue%20.%0D%0A%20%20%3Fnode%20owl%3Ahas_risk_factor%20%3Ffactor.%0D%0A%20%20%3Ffactor%20owl%3Ahas_risk_factor_target%20%3Ftarget.%0D%0A%20%20%3Ftarget%20owl%3Ahas_risk_element_name%20%3Fname.%0D%0A%20%20%3Fnode%20owl%3Ahas_observable_condition_json%20%3Fcondition_json%20.FILTER%20regex%28str%28%3Fcondition%29%2C%20%22OB_58%22%29%20.%7D&amp;should-sponge=&amp;format=text%2Fhtml&amp;timeout=0&amp;debug=on" rel="nofollow noreferrer">here</a></p>
  
  <p>As you can see in the first column, all entries (is that the correct term?) have 3 element names, which makes the data repeat themselves 2 times. Is there some way to only show one? (preferably the english one?) I tried </p>
  
  <pre><code>PREFIX  owl: &lt;http://carre.kmi.open.ac.uk/ontology/risk.owl#&gt;
  
  SELECT distinct ?name ?value ?condition ?condition_json 
  WHERE
  {
    ?node owl:has_observable_condition ?condition .
    ?node owl:has_risk_evidence_ratio_value ?value .
    ?node owl:has_risk_factor ?factor.
    ?factor owl:has_risk_factor_target ?target.
    ?target owl:has_risk_element_name ?name.
    ?node owl:has_observable_condition_json ?condition_json .
    FILTER (regex(str(?condition), "OB_58")&amp;&amp;regex(str(?name), "en")) .}
  </code></pre>
  
  <p>but it returns an empty table. <a href="https://stackoverflow.com/questions/15478234/select-only-the-first-object-from-sparql-query">This</a> didn't work (or I couldn't adapt it to my situation).</p>