query: PREFIX wd: <http://www.wikidata.org/entity/>
  PREFIX wdt: <http://www.wikidata.org/prop/direct/>
  PREFIX wikibase: <http://wikiba.se/ontology#>
  PREFIX p: <http://www.wikidata.org/prop/>
  PREFIX ps: <http://www.wikidata.org/prop/statement/>
  PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  #Sample query to start a list of statements using the qualifer P5800
  
  SELECT ?item ?itemLabel ?property ?propertyLabel ?value ?valueLabel ?qualifierP5800value
  WHERE
  {
      ?prop pq:P5800 ?qualifierP5800value .
      hint:Query hint:optimizer "None" .
    ?item ?p ?prop .
    ?property wikibase:claim ?p .
      ?property wikibase:statementProperty ?ps .
      ?prop ?ps ?value .
  
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en"  }
  }
  LIMIT 20