Question: Liza Minnelli's birthplace is Hollywood (which is where Terrence Malic works), which country is it a part of?
Choices:
United States of America
Prussia
Costa Rica
England
Denmark
West Germany
Russian Empire
United Arab Republic
Germany
Roman Republic
Program:
function: Find
inputs: Liza Minnelli
function: Find
inputs: Terrence Malick
function: Relate
dependencies: 1
inputs: work location
forward
function: Find
inputs: Hollywood
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Liza Minnelli" . ?e_2 <pred:name> "Hollywood" . ?e_3 <work_location> ?e_2 . ?e_3 <pred:name> "Terrence Malick" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Answer: United States of America