Question: What ceremonial county of England has the capital Lincoln whose TOID is 4000000074551786?
Choices:
Derbyshire
Cornwall
Lincolnshire
Northumberland
Essex
Somerset
West Midlands
Warwickshire
Buckinghamshire
Tyne and Wear
Program:
function: Find
inputs: Lincoln
function: FilterStr
dependencies: 0
inputs: TOID
4000000074551786
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Lincoln" . ?e_1 <TOID> ?pv . ?pv <pred:value> "4000000074551786" .   }
Answer: Lincolnshire