which order of chivalry was last awarded on 1917?
Entity Entity Entity
m.072cbw m.0dg2pz m.027p2m
Order of the Medjidie Order of St. Alexander Nevsky Order of St. Andrew
class literal
royalty.order_of_chivalry 1917^^http://www.w3.org/2001/XMLSchema#gYear
royalty.order_of_chivalry type.datetime
Order of Chivalry 1917
none none
royalty.order_of_chivalry.date_last_awarded
Date last awarded
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :royalty.order_of_chivalry . 
VALUES ?x1 { "1917-08:00"^^<http://www.w3.org/2001/XMLSchema#gYear> } 
?x0 :royalty.order_of_chivalry.date_last_awarded ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND royalty.order_of_chivalry (JOIN royalty.order_of_chivalry.date_last_awarded 1917^^http://www.w3.org/2001/XMLSchema#gYear))