query-97c977dbaa04fc40246025afa4e0ac8a
The websites of acting US senatorsI'm trying to select the websites of acting US senators. I got the websites of all senators:
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?official_website WHERE {
?person wdt:P39 wd:Q4416090.
?person wdt:P856 ?official_website.
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;
v2("?official_website"):::projected
v1("?person"):::projected
c5(["bd:serviceParam"]):::iri
c2(["wd:Q4416090"]):::iri
c7(["en"]):::literal
v1 --"wdt:P39"--> c2
v1 --"wdt:P856"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end