Question: Who is the author of Harry Potter and the Goblet of Fire (the one whose publication date is 2005-11-06) , based on Harry Potter and the Goblet of Fire (the one whose first line is The villagers of Little Hangleton still called it "the Riddle House" even though it has been many years since the Riddle family had lived there.) ?
Choices:
Leo Tolstoy
J. K. Rowling
55
Ian McEwan
Department of Statistics Singapore
Jack Kerouac
117233744
Cormac McCarthy
J. G. Ballard
Frank Herbert
Answer: J. K. Rowling
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Harry Potter and the Goblet of Fire" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2005-11-06"^^xsd:date . ?e_2 <pred:name> "Harry Potter and the Goblet of Fire" . ?e_2 <first_line> ?pv_1 . ?pv_1 <pred:value> "The villagers of Little Hangleton still called it \"the Riddle House\" even though it has been many years since the Riddle family had lived there." . ?e_1 <based_on> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <based_on> ; <pred:fact_t> ?e_2 ] <author> ?qpv .  }
Program:
function: Find
inputs: Harry Potter and the Goblet of Fire
function: FilterDate
dependencies: 0
inputs: publication date
2005-11-06
=
function: Find
inputs: Harry Potter and the Goblet of Fire
function: FilterStr
dependencies: 2
inputs: first line
The villagers of Little Hangleton still called it "the Riddle House" even though it has been many years since the Riddle family had lived there.
function: QueryRelationQualifier
dependencies: 1
3
inputs: based on
author