Question: What is the connection between Lafayette (the one that is the headquarter location of University of Louisiana at Lafayette) to United States of America?
Choices:
occupant
composer
risk factor
edition or translation of
costume designer
voice actor
officeholder
country
manufacturer
candidate
Answer: country
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Lafayette" . ?e_3 <headquarters_location> ?e_1 . ?e_3 <pred:name> "University of Louisiana at Lafayette" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: University of Louisiana at Lafayette
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Lafayette
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4