query-22a2a5ca67c93f9092c19a5517bad803

rq turtle/ttl

The following query uses these:

Use at

SELECT ?e (COUNT(?v) as ?events)
{
  SELECT ?e (CONCAT(?event,"'",?date) as ?v) WHERE { 
  VALUES (?e ?event ?date) {
  ("James" "Belgium" "70")
  ("Mary" "worldwide" "71")
  ("Mary" "worldwide" "72")
  ("Mary" "worldwide" "73")
  ("Mary" "France" "76")
  }
  }
}
GROUP BY ?e

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?date") v1("?e"):::projected v2("?event") v5("?events") v4("?v"):::projected bind0[/VALUES ?date ?e ?event/] bind0-->v1 bind0-->v2 bind0-->v3 bind00(["James"]) bind00 --> bind0 bind01(["Belgium"]) bind01 --> bind0 bind02(["70"]) bind02 --> bind0 bind03(["Mary"]) bind03 --> bind0 bind04(["worldwide"]) bind04 --> bind0 bind05(["71"]) bind05 --> bind0 bind06(["Mary"]) bind06 --> bind0 bind07(["worldwide"]) bind07 --> bind0 bind08(["72"]) bind08 --> bind0 bind09(["Mary"]) bind09 --> bind0 bind010(["worldwide"]) bind010 --> bind0 bind011(["73"]) bind011 --> bind0 bind012(["Mary"]) bind012 --> bind0 bind013(["France"]) bind013 --> bind0 bind014(["76"]) bind014 --> bind0 bind1[/"concat(?event,''',?date)"/] v2 --o bind1 v3 --o bind1 bind1 --as--o v4 bind3[/"count(?v)"/] v4 --o bind3 bind3 --as--o v5