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 v: <http://www.wikidata.org/prop/statement/>
  PREFIX q: <http://www.wikidata.org/prop/qualifier/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  
  SELECT ?p ?pLabel ?w ?wLabel WHERE {
    ?p wdt:P527 ?w .
    ?w wdt:P279 ?p .
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "en" .
    }
  }