Question: Which republic that is imported from Scotland (whose citizens are the skót people) has the largest area?
Choices:
Italy
Colombia
Germany
Zimbabwe
France
Tunisia
Sierra Leone
Namibia
Malawi
Bolivia
Program:
function: Find
inputs: Scotland
function: FilterStr
dependencies: 0
inputs: demonym
skót
function: Relate
dependencies: 1
inputs: exported to
forward
function: FilterConcept
dependencies: 2
inputs: republic
function: SelectAmong
dependencies: 3
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e_1 <exported_to> ?e . ?e_1 <pred:name> "Scotland" . ?e_1 <demonym> ?pv_1 . ?pv_1 <pred:value> "skót" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: France