Question: Which state of the united states shares a border with Virginia where The Vampire Diaries was filmed (the subject of this statement is Kentucky–Virginia border)
Choices:
Iowa
West Virginia
Massachusetts
Maryland
North Carolina
Kentucky
Illinois
Hawaii
Colorado
Ohio
Program:
function: Find
inputs: The Vampire Diaries
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: Virginia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: QFilterStr
dependencies: 4
inputs: statement is subject of
Kentucky–Virginia border
function: FilterConcept
dependencies: 5
inputs: state of the United States
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Virginia" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "The Vampire Diaries" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Kentucky–Virginia border" .  }
Answer: Kentucky