query-fed5f5493821a0ebd781560bd262bb23
Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth Male lineage of Elizabeth II (Q9682) SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } order by ?depth
Use at
- https://query.wikidata.org/sparql
PREFIX gas: <http://www.bigdata.com/rdf/gas#>
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#>
# Male lineage of Elizabeth II (Q9682)
SELECT ?father ?fatherLabel ?child ?childLabel ?depth WHERE
{
SERVICE gas:service {
gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q9682 ; gas:linkType wdt:P22 ; gas:out ?father ; gas:out1 ?depth ; gas:out2 ?child . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} order by ?depth
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/pt
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/ru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/zh