query-e05acc8ab395372c0d9f2f47adb46cd1

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item (GROUP_CONCAT(?place; separator=", ") as ?places) WHERE {
  ?item wdt:P106 wd:Q4964182. # restrict to philosophers

  ?item wdt:P19 ?birthPlace . # get the birthplace
  ?birthPlace wdt:P131*/rdfs:label ?place . # follow P131 any number of times, and take the label
  FILTER(LANG(?place) = "en")
}
GROUP BY ?item
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?birthPlace") v2("?item"):::projected v1("?place"):::projected v4("?places") a1((" ")) c3(["wd:Q4964182"]):::iri f0[["?place = 'en'"]] f0 --> v1 v2 --"wdt:P106"--> c3 v2 --"wdt:P19"--> v3 v3 --"wdt:P131"--> a1 a1 --"rdfs:label"--> v1 bind2[/"?place"/] v1 --o bind2 bind2 --as--o v4