Question: How many counties in Texas are in the same country that has the citizen Marcel Duchamp as of 1955?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_citizenship> ?e_1 . ?e_2 <pred:name> "Marcel Duchamp" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <country_of_citizenship> ; <pred:fact_t> ?e_1 ] <start_time> ?qpv . ?qpv <pred:year> 1955 .   }
Program:
function: Find
inputs: Marcel Duchamp
function: Relate
dependencies: 0
inputs: country of citizenship
forward
function: QFilterYear
dependencies: 1
inputs: start time
1955
=
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: county of Texas
function: Count
dependencies: 5