Question: Which one among the country of Ireland, with a diplomatic relation with Zambia, is the largest?
Choices:
County Wicklow
County Sligo
County Waterford
County Cork
County Mayo
County Donegal
County Kerry
County Meath
County Roscommon
County Monaghan
Program:
function: Find
inputs: Zambia
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Ireland
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: county of Ireland
function: SelectAmong
dependencies: 5
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ireland" . ?e <country> ?e_1 . ?e_1 <pred:name> "Ireland" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Zambia" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: County Cork