Question: How many colleges of the University of Oxford have the official website http://www.balliol.ox.ac.uk/ or are the educational location of Oscar Wilde (whose genre is poetry)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "college of the University of Oxford" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://www.balliol.ox.ac.uk/" .  } UNION { ?e_1 <educated_at> ?e . ?e_1 <pred:name> "Oscar Wilde" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "poetry" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.balliol.ox.ac.uk/
function: FilterConcept
dependencies: 1
inputs: college of the University of Oxford
function: Find
inputs: poetry
function: Relate
dependencies: 3
inputs: genre
backward
function: Find
inputs: Oscar Wilde
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: educated at
forward
function: FilterConcept
dependencies: 7
inputs: college of the University of Oxford
function: Or
dependencies: 2
8
function: Count
dependencies: 9