Question: What country has a city with the postal code of 18181 and a license plate code of A?
Choices:
New Zealand
West Germany
Georgia
Guyana
Netherlands
Malaysia
German Democratic Republic
Ontario
international
Germany
Answer: German Democratic Republic
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "18181" . ?e <licence_plate_code> ?pv . ?pv <pred:value> "A" . [ <pred:fact_h> ?e ; <pred:fact_r> <licence_plate_code> ; <pred:fact_t> ?pv ] <country> ?qpv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
18181
function: FilterConcept
dependencies: 1
inputs: city
function: QueryAttrQualifier
dependencies: 2
inputs: licence plate code
A
country