Question: What is the connection between Orange (whose programming language is C++) and Linux?
Choices:
operator
has edition
found
appointed by
film crew member
developer
family name
operating system
afflicts
series spin-off
Program:
function: Find
inputs: C++
function: Relate
dependencies: 0
inputs: programming language
backward
function: Find
inputs: Orange
function: And
dependencies: 1
2
function: Find
inputs: Linux
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Orange" . ?e_1 <programming_language> ?e_3 . ?e_3 <pred:name> "C++" . ?e_2 <pred:name> "Linux" . ?e_1 ?p ?e_2 .  }
Answer: operating system