Question: What is the connection between George Miller (the one whose children number is 2) to lawyer?
Choices:
occupant
dialect of
participant of
composer
designated as terrorist by
official color
director
residence
occupation
organizer
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "George Miller" . ?e_1 <number_of_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2"^^xsd:double . ?e_2 <pred:name> "lawyer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: George Miller
function: FilterNum
dependencies: 0
inputs: number of children
2
=
function: Find
inputs: lawyer
function: QueryRelation
dependencies: 1
2