Question: Who is Democratic Party's candidate for the next President of the United States election?
Choices:
Paul Simon
John McCain
Sylvester Stallone
Richard Gere
Rahul Dev Burman
Barack Obama
James E. Reilly
David Byrne
Simon Cowell
William Henry Harrison
Program:
function: Find
inputs: President of the United States
function: Relate
dependencies: 0
inputs: office contested
backward
function: FilterConcept
dependencies: 1
inputs: United States presidential election
function: Relate
dependencies: 2
inputs: candidate
forward
function: QFilterStr
dependencies: 3
inputs: member of political party
Democratic Party
function: FilterConcept
dependencies: 4
inputs: human
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <candidate> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "United States presidential election" . ?e_1 <office_contested> ?e_2 . ?e_2 <pred:name> "President of the United States" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <candidate> ; <pred:fact_t> ?e ] <member_of_political_party> ?qpv . ?qpv <pred:value> "Democratic Party" .  }
Answer: Barack Obama