query-4e85f18ac33a9fbe5888d397ec46c063
Fellows of the American Society of Genealogists SELECT ?item ?itemLabel ?date ?nom WHERE { ?item wdt:P31 wd:Q5. ?item p:P166 ?fellow. ?fellow ps:P166 wd:Q19604396. ?fellow a wikibase:BestRank. OPTIONAL { ?fellow pq:P585 ?date. } OPTIONAL { ?fellow pq:P1545 ?nom. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
# Fellows of the American Society of Genealogists
SELECT ?item ?itemLabel ?date ?nom
WHERE
{
?item wdt:P31 wd:Q5.
?item p:P166 ?fellow.
?fellow ps:P166 wd:Q19604396.
?fellow a wikibase:BestRank.
OPTIONAL { ?fellow pq:P585 ?date. }
OPTIONAL { ?fellow pq:P1545 ?nom. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?date"):::projected
v2("?fellow")
v1("?item"):::projected
v4("?nom"):::projected
c7(["wikibase:BestRank"]):::iri
c11(["bd:serviceParam"]):::iri
c5(["wd:Q19604396"]):::iri
c2(["wd:Q5"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P166"--> v2
v2 --"p:statement/P166"--> c5
v2 --"a"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P585".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1545".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end