reteplayground
Select

Physicists born before 1900

SELECT ?p ?who ?year ?description ?image WHERE {
  { SELECT ?p WHERE { ?p wdt:P106 wd:Q169470 } LIMIT 200 }
  ?p rdfs:label ?who . FILTER(LANG(?who) = "en")
  ?p wdt:P569 ?dob . BIND(YEAR(?dob) AS ?year)
  FILTER(?year < 1900)
  OPTIONAL { ?p schema:description ?description . FILTER(…
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → no server, no download — the query runs in your browser.

The query

PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX schema: <http://schema.org/> SELECT ?p ?who ?year ?description ?image WHERE { { SELECT ?p WHERE { ?p wdt:P106 wd:Q169470 } LIMIT 200 } ?p rdfs:label ?who . FILTER(LANG(?who) = "en") ?p wdt:P569 ?dob . BIND(YEAR(?dob) AS ?year) FILTER(?year < 1900) OPTIONAL { ?p schema:description ?description . FILTER(LANG(?description) = "en") } OPTIONAL { ?p wdt:P18 ?image } } ORDER BY ?year LIMIT 25

rete playground · documentation · github.com/caviri/rete