Question: Which has more weddings annually, Normandy (the one whose Twitter username is RegionNormandie) or Corsica (the one that is an administrative division of France)?
Choices:
Normandy
keytar
John Milton
Harvard Law School
Brittany
Corsica
University of the Witwatersrand
Olivia Williams
Exeter
Martinique
Program:
function: Find
inputs: Normandy
function: FilterStr
dependencies: 0
inputs: Twitter username
RegionNormandie
function: Find
inputs: France
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
forward
function: Find
inputs: Corsica
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: annual number of weddings
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Normandy" . ?e <Twitter_username> ?pv_1 . ?pv_1 <pred:value> "RegionNormandie" . } UNION { ?e <pred:name> "Corsica" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "France" . } ?e <annual_number_of_weddings> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Normandy