Question: How many U.S. towns have an area less than 24000000 square kilometres or that are the birthplace of pianist Tony Scott?
Choices: 5
6
7
8
9
10
11
12
13
14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" .  { ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "24000000"^^xsd:double ) .  } UNION { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Tony Scott" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "pianist" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
24000000 square kilometre
<
function: FilterConcept
dependencies: 1
inputs: town of the United States
function: Find
inputs: pianist
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Tony Scott
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: place of birth
forward
function: FilterConcept
dependencies: 7
inputs: town of the United States
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 9