Question: What person with the occupation of judge was born in Virginia, which has a population of 2677773?
Choices:
David Mills
David Byrne
William Henry Harrison
Sylvester Stallone
Henry King
John Logan
Richard Gere
William McKinley
William Howard Taft
Max Fleischer
Program:
function: Find
inputs: judge
function: Relate
dependencies: 0
inputs: occupation
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Virginia
function: FilterNum
dependencies: 3
inputs: population
2677773
=
function: Relate
dependencies: 4
inputs: place of birth
backward
function: FilterConcept
dependencies: 5
inputs: human
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "judge" .  ?e <place_of_birth> ?e_2 . ?e_2 <pred:name> "Virginia" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2677773"^^xsd:double .  }
Answer: John Logan