Question: Winston Churchill, who took part in the Gallipoli Campaign, belonged to the Liberal Party until which date?
Choices:
1949
1953-01-01
1954-11-28
1870-10-12
2009-09-18
2015-08-06
1976-02-26
1918-11-09
1996-08-04
1924-01-01
Program:
function: Find
inputs: Gallipoli Campaign
function: Relate
dependencies: 0
inputs: participant
forward
function: Find
inputs: Winston Churchill
function: And
dependencies: 1
2
function: Find
inputs: Liberal Party
function: QueryRelationQualifier
dependencies: 3
4
inputs: member of political party
end time
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Winston Churchill" . ?e_3 <participant> ?e_1 . ?e_3 <pred:name> "Gallipoli Campaign" . ?e_2 <pred:name> "Liberal Party" . ?e_1 <member_of_political_party> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <member_of_political_party> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Answer: 1924-01-01