 <p>The problem is that your <code>ORDER BY</code> clause is not in the correct place in the query. It should be after the closing bracket that closes the WHERE clause:</p> <pre><code>CONSTRUCT { ?s ?p ?o } WHERE { GRAPH ?g { ?s ?p ?o } ?s &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt; &lt;http://lod.isi.edu/ontology/syllabus/Homework&gt; . ?s &lt;http://lod.isi.edu/ontology/syllabus/hasEventDate&gt; ?date . } ORDER BY ASC(?date) </code></pre> <p>Also note that several of the curly braces in your original query are, although not exactly wrong, superfluous.</p>