Question: How many professions are a Wikidata property of London (whose population is 8787892) or lead the United States House of Representatives?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "profession" .  { ?e <Wikidata_property> ?e_1 . ?e_1 <pred:name> "London" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "8787892"^^xsd:double .  } UNION { ?e <organisation_directed_from_the_office_or_person> ?e_1 . ?e_1 <pred:name> "United States House of Representatives" .  } }
Program:
function: Find
inputs: London
function: FilterNum
dependencies: 0
inputs: population
8787892
=
function: Relate
dependencies: 1
inputs: Wikidata property
backward
function: FilterConcept
dependencies: 2
inputs: profession
function: Find
inputs: United States House of Representatives
function: Relate
dependencies: 4
inputs: organisation directed from the office or person
backward
function: FilterConcept
dependencies: 5
inputs: profession
function: Or
dependencies: 3
6
function: Count
dependencies: 7