query-f68dfab07c3ebb216e7530c2ef6e0d9f
Schools between San Jose, CA and Sacramento, CA Schools between San Jose, CA and Sacramento, CA Ecoles entre San Jose et Sacramento en Californie Schools between San Jose, CA and Sacramento, CA Schools between San Jose, CA and Sacramento, CA Scholen tussen San Jose, CA en Sacramento, CA Skolor mellan San Jose, CA och Sacramento, CA Schools between San Jose, CA and Sacramento, CA Schools between San Jose, CA and Sacramento, CA Schools between San Jose, CA and Sacramento, CA
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#>
# Schools between San Jose, CA and Sacramento, CA
#defaultView:Map
SELECT *
WHERE
{
wd:Q16553 wdt:P625 ?SJloc .
wd:Q18013 wdt:P625 ?SCloc .
SERVICE wikibase:box {
?place wdt:P625 ?location .
bd:serviceParam wikibase:cornerWest ?SJloc .
bd:serviceParam wikibase:cornerEast ?SCloc .
}
?place wdt:P31/wdt:P279* wd:Q3914 .
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/zh
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?SCloc"):::projected
v1("?SJloc"):::projected
v4("?location"):::projected
v3("?place"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c10(["wd:Q3914"]):::iri
c3(["wd:Q18013"]):::iri
c1(["wd:Q16553"]):::iri
c1 --"wdt:P625"--> v1
c3 --"wdt:P625"--> v2
subgraph s1["http://wikiba.se/ontology#box"]
style s1 stroke-width:4px;
v3 --"wdt:P625"--> v4
c5 --"wikibase:cornerWest"--> v1
c5 --"wikibase:cornerEast"--> v2
end
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c10