Question: What is the class of an award created before 1953 and located in Latvia ?
Choices:
Riga
BAFTA Award for Best Actress in a Supporting Role
Legion of Merit
Order of the Three Stars
Order of the Star of Romania
Order of the Elephant
BAFTA Award for Best Editing
Latvia
Goya Award for Best Supporting Actress
Le Monde's 100 Books of the Century
Answer: Order of the Three Stars
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "class of award" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1953 ) . ?e <country> ?e_1 . ?e_1 <pred:name> "Latvia" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1953
<
function: FilterConcept
dependencies: 1
inputs: class of award
function: Find
inputs: Latvia
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: class of award
function: And
dependencies: 2
5
function: What
dependencies: 6