Question: How many New York counties have a population that is not 62000 and are named after James Madison who is a participant in the 1st United States Congress?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "62000"^^xsd:double ) . ?e <named_after> ?e_1 . ?e_1 <pred:name> "James Madison" . ?e_2 <participant> ?e_1 . ?e_2 <pred:name> "1st United States Congress" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
62000
!=
function: FilterConcept
dependencies: 1
inputs: county of New York
function: Find
inputs: 1st United States Congress
function: Relate
dependencies: 3
inputs: participant
forward
function: Find
inputs: James Madison
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: county of New York
function: And
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1