Question: How many former French regions have official website http://www.nordpasdecalais.fr or have the capital Bruges?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "former French region" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://www.nordpasdecalais.fr" .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Bruges" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.nordpasdecalais.fr
function: FilterConcept
dependencies: 1
inputs: former French region
function: Find
inputs: Bruges
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: former French region
function: Or
dependencies: 2
5
function: Count
dependencies: 6