Question: Which country is the state whose GS1 country code is 577 and what is the ethnic group.
Choices:
Puerto Ricans
Randers FC
White American
Russians
Vejle Boldklub
Aarhus Gymnastikforening
Aarhus
Cajun
Lyngby Boldklub
Germans
Answer: Russians
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state" . ?e_1 <GS1_country_code> ?pv . ?pv <pred:value> "577" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: GS1 country code
577
function: FilterConcept
dependencies: 1
inputs: state
function: Relate
dependencies: 2
inputs: country
backward
function: FilterConcept
dependencies: 3
inputs: ethnic group
function: What
dependencies: 4