query-e2434a59affd7513f6b3f8d98e31537a
olympic gold medalist born in Maryland SELECT DISTINCT ?person ?personLabel WHERE { ?person p:P1344 ?statement . ?statement pq:P166 wd:Q15243387 . ?person wdt:P19 ?birthplace . ?birthplace wdt:P131* wd:Q1391 SERVICE wikibase:label { bd:serviceParam wikibase: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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#olympic gold medalist born in Maryland
SELECT DISTINCT ?person ?personLabel WHERE {
?person p:P1344 ?statement .
?statement pq:P166 wd:Q15243387 .
?person wdt:P19 ?birthplace .
?birthplace wdt:P131* wd:Q1391
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?birthplace")
v1("?person"):::projected
v2("?statement")
c8(["bd:serviceParam"]):::iri
c6(["wd:Q1391"]):::iri
c3(["wd:Q15243387"]):::iri
c10(["en"]):::literal
v1 --"p:P1344"--> v2
v2 --"p:qualifier/P166"--> c3
v1 --"p:direct/P19"--> v3
v3 --"p:direct/P131"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end