Question: Which sovereign state has diplomatic relations with Taiwan (in the subject of Comoros–Taiwan relations) and has diplomatic relations with Georgia (whose mains voltage is 220 volt)?
Choices: Yemen
Lebanon
Algeria
Russian Soviet Federative Socialist Republic
Ireland
Switzerland
Weimar Republic
Laos
Cambodia
Comoros
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Taiwan" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Comoros–Taiwan relations" . ?e_2 <diplomatic_relation> ?e . ?e_2 <pred:name> "Georgia" . ?e_2 <mains_voltage> ?pv . ?pv <pred:unit> "volt" . ?pv <pred:value> "220"^^xsd:double .  }
Program:
function: Find
inputs: Taiwan
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Comoros–Taiwan relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Find
inputs: Georgia
function: FilterNum
dependencies: 4
inputs: mains voltage
220 volt
=
function: Relate
dependencies: 5
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 6
inputs: sovereign state
function: And
dependencies: 3
7
function: What
dependencies: 8
Answer: Comoros