title: Why do I get different result?
body: <p>i'm a newbie of SPARQL and probably I'm doing a logical mistake, but this is the problem i have:</p>
  
  <p>i want to retrieve "Freddie_Mercury" from a list of people, each one having rdf:Type like dbo:MusicalArtist too.</p>
  
  <p>The first query I have done is this:</p>
  
  <pre><code>select ?x where{?x a dbo:MusicalArtist; dbo:birthName ?realName. FILTER regex(?realName,"Farrokh Bulsara")}
  </code></pre>
  
  <p>This works great. I get a link to Freddie Mercury page and I can go. 
  But if I run the following python code, Freddie Mercury do not enter in list. Why?</p>
  
  <pre><code> from SPARQLWrapper import SPARQLWrapper, JSON
  #select all people with type MusicalArtist#
  sparql = SPARQLWrapper("http://dbpedia.org/sparql")
  sparql.setQuery(
  """select ?singer where{?singer a dbo:MusicalArtist} """)
  sparql.setReturnFormat(JSON)
  resultsSingers = sparql.query().convert()
  #creating list of singers (only complete name)#
  singerNames = []
  iFoundFreddie = False
  #for result in "bindings"#
  for result in resultsSingers["results"]["bindings"]:
      try:
          #get string in "singer" in "value", after "/resource/"#
          singerN = result["singer"]["value"].split("/resource/")[1]
          #add string to list#
          singerNames.append(singerN)
          if "_Mercury" in singerN:
              iFoundFreddie = True
      except:
          print("",end="")
  
  print(iFoundFreddie)
  </code></pre>