PREFIX gesli: <https://gesli.example/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?sequence ?nodeName ?deadlineName ?plannedTime ?cutoffTime ?actualTime ?isCompleted ?isDelayed
WHERE {
  ?node gesli:nodeSequence ?sequence ;
        rdfs:label ?nodeName .

  OPTIONAL { ?node gesli:deadlineName ?deadlineName . }
  OPTIONAL { ?node gesli:plannedTime ?plannedTime . }
  OPTIONAL { ?node gesli:cutoffTime ?cutoffTime . }
  OPTIONAL { ?node gesli:actualTime ?actualTime . }
  OPTIONAL { ?node gesli:isCompleted ?isCompleted . }
  OPTIONAL { ?node gesli:isDelayed ?isDelayed . }
}
ORDER BY ?sequence
