Question: What television series originates in the sovereign state that has Papua New Guinea–Philippines diplomatic relations with Papua New Guinea?
Choices:
Dubai
WWE Superstars
Savannah
Bewitched
Breaking Bad
Fargo
Eat Bulaga!
Scrubs
Love of Life
The Green Hornet
Answer: Eat Bulaga!
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Papua New Guinea" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Papua New Guinea–Philippines relations" .   }
Program:
function: Find
inputs: Papua New Guinea
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Papua New Guinea–Philippines relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country of origin
backward
function: FilterConcept
dependencies: 4
inputs: television series
function: What
dependencies: 5