Question: Which independent city that is an administrative division of Virginia (whose subreddit is Virginia) has the largest area?
Choices:
Falls Church
Winchester
Hampton
Virginia Beach
Lynchburg
Staunton
Danville
Suffolk
Richmond
Roanoke
Program:
function: Find
inputs: Virginia
function: FilterStr
dependencies: 0
inputs: subreddit
Virginia
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: independent city
function: SelectAmong
dependencies: 3
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Virginia" . ?e_1 <subreddit> ?pv_1 . ?pv_1 <pred:value> "Virginia" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Virginia Beach