Question: At what frequency, in a first-level administrative country subdivision that contains Barcelona Province, does its 230 volt mains voltage work?
Choices:
Tyrosine
774667000000 United States dollar
55 hertz
Abigail Adams
BOFAUS3N
50 hertz
60 hertz
3 milligram per cubic meter
080004
50
Answer: 50 hertz
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Barcelona Province" .  ?e <mains_voltage> ?pv . ?pv <pred:unit> "volt" . ?pv <pred:value> "230"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <mains_voltage> ; <pred:fact_t> ?pv ] <frequency> ?qpv .  }
Program:
function: Find
inputs: Barcelona Province
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: first-level administrative country subdivision
function: QueryAttrQualifier
dependencies: 2
inputs: mains voltage
230 volt
frequency