query-52563b9ba86fe581cc7f46bf6dfbc3fd

rq turtle/ttl

Schools between San Jose, CA and Sacramento, CA (times out !) =

Use at

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#>
#added before 2016-10
 # 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

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