Simple Question (Direct)
Simple Question
Q1124206
P140
Q874405
USER
What is the religion associated with Pietro Maffi ?
(Q1124206,P140,c(Q874405))
action filter_type
action find
entity Q1124206
relation P140
type Q874405
['Q1124206', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { resource:Q1124206 property:P140 ?s . ?s rdf:type ontology:Q874405 }
Pietro Maffi
action filter_type
action find
entity Pietro Maffi
relation religion
type social group
['Pietro Maffi', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { resource:Pietro_Maffi property:religion ?s . ?s rdf:type ontology:social_group }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q1124206,P140,c(Q874405))
action filter_type
action find
entity Q1124206
relation P140
type Q874405
The religion associated with Pietro Maffi is Holy [ANSWER]
['Q1124206', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { resource:Q1124206 property:P140 ?s . ?s rdf:type ontology:Q874405 }
Catholicism
The religion associated with Pietro Maffi is Holy Catholicism
Catholicism
action filter_type
action find
entity Pietro Maffi
relation religion
type social group
['Pietro Maffi', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { resource:Pietro_Maffi property:religion ?s . ?s rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1124206
P39
Q12737077
USER
Which occupations were the positions occupied by that person ?
(Q1841,P39,c(Q12737077))
action filter_type
action find
entity Q1124206
relation P39
type Q12737077
['Q1841', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q1124206 property:P39 ?x }
Pietro Maffi
action filter_type
action find
entity Pietro Maffi
relation position held
type occupation
['Catholicism', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Pietro_Maffi property:position_held ?x }
[]
occupation
Q45722 Q29182 Q49476
SYSTEM
cardinal, bishop, archbishop
Q45722 Q29182 Q49476
(Q1841,P39,c(Q12737077))
action filter_type
action find
entity Q1124206
relation P39
type Q12737077
[ANSWERS] were the positions occupied by that person
['Q1841', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q1124206 property:P39 ?x }
cardinal bishop archbishop
Cardinal, bishop and archbishop were the positions occupied by that person
cardinal bishop archbishop
action filter_type
action find
entity Pietro Maffi
relation position held
type occupation
['Catholicism', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Pietro_Maffi property:position_held ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29182 Q23574283
P39
Q502895
USER
How many people were appointed for the position of bishop and archbishop of Paris ?
(c(Q502895),P39,Q29182) (c(Q502895),P39,Q23574283)
action count
action intersection
action filter_type
action find_reverse
entity Q29182
relation P39
type Q502895
action filter_type
action find_reverse
entity Q23574283
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q29182'] [{'concept': 'Q502895'}, 'P39', 'Q23574283']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:P39 resource:Q29182 . ?a rdf:type ontology:Q502895 . ?a rdf:type ontology:Q502895 . ?a property:P39 resource:Q23574283 }
bishop archbishop of Paris
action count
action intersection
action filter_type
action find_reverse
entity bishop
relation position held
type common name
action filter_type
action find_reverse
entity archbishop of Paris
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'bishop'] [{'concept': 'common name'}, 'position held', 'archbishop of Paris']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:position_held resource:bishop . ?a rdf:type ontology:common_name . ?a rdf:type ontology:common_name . ?a property:position_held resource:archbishop_of_Paris }
[]
common name
SYSTEM
2
Q206389 Q712078
(c(Q502895),P39,Q29182) (c(Q502895),P39,Q23574283)
action count
action intersection
action filter_type
action find_reverse
entity Q29182
relation P39
type Q502895
action filter_type
action find_reverse
entity Q23574283
relation P39
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q29182'] [{'concept': 'Q502895'}, 'P39', 'Q23574283']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:P39 resource:Q29182 . ?a rdf:type ontology:Q502895 . ?a rdf:type ontology:Q502895 . ?a property:P39 resource:Q23574283 }
Pierre Veuillot Léon-Adolphe Amette
2
action count
action intersection
action filter_type
action find_reverse
entity bishop
relation position held
type common name
action filter_type
action find_reverse
entity archbishop of Paris
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'bishop'] [{'concept': 'common name'}, 'position held', 'archbishop of Paris']
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { ?a property:position_held resource:bishop . ?a rdf:type ontology:common_name . ?a rdf:type ontology:common_name . ?a property:position_held resource:archbishop_of_Paris }
[]