Question: What university is the school of Michael Moore (the one whose children number is 1) and has the Twitter username of EdinburghUni?
Choices:
McMaster University
Imperial College London
McNeese State University
Panjab University
University of Edinburgh
King's College London
University of Tehran
University of Manchester
Presidency University
Pennsylvania State University
Program:
function: Find
inputs: Michael Moore
function: FilterNum
dependencies: 0
inputs: number of children
1
=
function: Relate
dependencies: 1
inputs: educated at
forward
function: FilterConcept
dependencies: 2
inputs: university
function: FindAll
function: FilterStr
dependencies: 4
inputs: Twitter username
EdinburghUni
function: FilterConcept
dependencies: 5
inputs: university
function: And
dependencies: 3
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "university" . ?e_1 <educated_at> ?e . ?e_1 <pred:name> "Michael Moore" . ?e_1 <number_of_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "1"^^xsd:double .  ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "EdinburghUni" .  }
Answer: University of Edinburgh