Question: What is the number of big cities with a population under 5200 and that has FC St. Pauli
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> "big city" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "5200"^^xsd:double ) . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "FC St. Pauli" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
5200
<
function: FilterConcept
dependencies: 1
inputs: big city
function: Find
inputs: FC St. Pauli
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: big city
function: And
dependencies: 2
5
function: Count
dependencies: 6