Question: What university is headquartered in London (the one that is the headquarter location of Royal Society) and uses 'Study by night' as its motto text ?
Choices:
University of Melbourne
San Diego State University
McMaster University
Guildhall School of Music and Drama
King's College London
Royal College of Music
London School of Economics
University of Hamburg
Birkbeck, University of London
Panjab University
Program:
function: Find
inputs: Royal Society
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: London
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: university
function: FindAll
function: FilterStr
dependencies: 6
inputs: motto text
Study by night
function: FilterConcept
dependencies: 7
inputs: university
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "university" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "London" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "Royal Society" .  ?e <motto_text> ?pv . ?pv <pred:value> "Study by night" .  }
Answer: Birkbeck, University of London