query-9aed153b64fa939755346e2daf5fe755

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (SAMPLE(?p19label) AS ?birthplace) (GROUP_CONCAT(?p106label;SEPARATOR=', ') AS ?occupations) ?fame  {
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P27 wd:Q30 .
  ?item wikibase:sitelinks ?fame . FILTER(?fame>50)
  ?item wdt:P106 ?p106 . ?p106 rdfs:label ?p106label . FILTER(LANG(?p106label)='en')
  ?item wdt:P19 ?p19 . ?p19 rdfs:label ?p19label . FILTER(LANG(?p19label)='en')
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?fame
ORDER BY DESC(?fame) ?itemLabel
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?birthplace") v1("?fame"):::projected v5("?item"):::projected v2("?itemLabel"):::projected v9("?occupations") v6("?p106") v4("?p106label"):::projected v7("?p19") v3("?p19label"):::projected c6(["wd:Q30"]):::iri c12(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?p19label = 'en'"]] f0 --> v3 f1[["?p106label = 'en'"]] f1 --> v4 f2[["?fame > '50^^xsd:integer'"]] f2 --> v1 v5 --"wdt:P31"--> c4 v5 --"wdt:P27"--> c6 v5 --"wikibase:sitelinks"--> v1 v5 --"wdt:P106"--> v6 v6 --"rdfs:label"--> v4 v5 --"wdt:P19"--> v7 v7 --"rdfs:label"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end bind5[/"sample(?p19label)"/] v3 --o bind5 bind5 --as--o v8 bind6[/"?p106label"/] v4 --o bind6 bind6 --as--o v9