query-343ffbb4c423461d441728d00e502d35
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?q ?qLabel $genderLabel $url $goog WHERE {
$q wdt:P31 wd:Q5 ;
p:P6872 $n .
OPTIONAL {
$q wdt:P21 $gender .
}
OPTIONAL {
$q wdt:P2671 $google .
}
OPTIONAL {
$q wdt:P646 $freebase .
}
$n ps:P6872 wd:Q164746 .
OPTIONAL {
$n pq:P2699 $url .
}
BIND(COALESCE(?google, ?freebase) as ?goog) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?freebase")
v3("?gender")
v7("?goog"):::projected
v4("?google")
v2("?n")
v1("?q"):::projected
v6("?url"):::projected
c11(["bd:serviceParam"]):::iri
c8(["wd:Q164746"]):::iri
c2(["wd:Q5"]):::iri
c13(["fr,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P6872"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P21".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P2671".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P646".-> v5
end
v2 --"p:statement/P6872"--> c8
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P2699".-> v6
end
bind0[/"?google?freebase"/]
v4 --o bind0
v5 --o bind0
bind0 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end