Question: What is the connection between John Williams (the one whose name in native language is John williams) to Labour Party (the one whose member count is 552000)?
Choices:
instrument
public holiday
operating area
symptom of
statistical leader
member of political party
director
had as last meal
has contributing factor
operating system
Answer: member of political party
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Williams" . ?e_1 <name_in_native_language> ?pv . ?pv <pred:value> "John williams" . ?e_2 <pred:name> "Labour Party" . ?e_2 <member_count> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "552000"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Williams
function: FilterStr
dependencies: 0
inputs: name in native language
John williams
function: Find
inputs: Labour Party
function: FilterNum
dependencies: 2
inputs: member count
552000
=
function: QueryRelation
dependencies: 1
3