Simple Question (Direct)
Simple Question
Q954636
P140
Q879146
USER
Which Christian denomination does Girolamo Grimaldi-Cavalleroni relate to ?
(Q954636,P140,c(Q879146))
action filter_type
action find
entity Q954636
relation P140
type Q879146
['Q954636', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?l WHERE { resource:Q954636 property:P140 ?l . ?l rdf:type ontology:Q879146 }
Girolamo Grimaldi-Cavalleroni
action filter_type
action find
entity Girolamo Grimaldi-Cavalleroni
relation religion
type Christian denomination
['Girolamo Grimaldi-Cavalleroni', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?l WHERE { resource:Girolamo_Grimaldi-Cavalleroni property:religion ?l . ?l rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q954636,P140,c(Q879146))
action filter_type
action find
entity Q954636
relation P140
type Q879146
Girolamo Grimaldi-Cavalleroni relates the [ANSWER]
['Q954636', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?l WHERE { resource:Q954636 property:P140 ?l . ?l rdf:type ontology:Q879146 }
Roman Catholic Church
Girolamo Grimaldi-Cavalleroni relates the Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Girolamo Grimaldi-Cavalleroni
relation religion
type Christian denomination
['Girolamo Grimaldi-Cavalleroni', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?l WHERE { resource:Girolamo_Grimaldi-Cavalleroni property:religion ?l . ?l rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9592
P463
Q28640
USER
Which profession is a member of that Christian denomination ?
(c(Q28640),P463,Q9592)
action filter_type
action find_reverse
entity Q9592
relation P463
type Q28640
[{'concept': 'Q28640'}, 'P463', 'Q9592']
SELECT DISTINCT ?p WHERE { ?p property:P463 resource:Q9592 . ?p rdf:type ontology:Q28640 }
Roman Catholic Church
action filter_type
action find_reverse
entity Roman Catholic Church
relation member of
type profession
[{'concept': 'profession'}, 'member of', 'Roman Catholic Church']
SELECT DISTINCT ?p WHERE { ?p property:member_of resource:Roman_Catholic_Church . ?p rdf:type ontology:profession }
[]
profession
Q18912855
SYSTEM
almoner of the Order of Saint Lazarus
Q18912855
(c(Q28640),P463,Q9592)
action filter_type
action find_reverse
entity Q9592
relation P463
type Q28640
[ANSWER] is a member of that Christian denomination
[{'concept': 'Q28640'}, 'P463', 'Q9592']
SELECT DISTINCT ?p WHERE { ?p property:P463 resource:Q9592 . ?p rdf:type ontology:Q28640 }
almoner of the Order of Saint Lazarus
Almoner of the Order of Saint Lazarus is a member of that Christian denomination
almoner of the Order of Saint Lazarus
action filter_type
action find_reverse
entity Roman Catholic Church
relation member of
type profession
[{'concept': 'profession'}, 'member of', 'Roman Catholic Church']
SELECT DISTINCT ?p WHERE { ?p property:member_of resource:Roman_Catholic_Church . ?p rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18912855
P39
Q502895
USER
Which person was responsible for occupying the position of that profession ?
(c(Q502895),P39,Q18912855)
action filter_type
action find_reverse
entity Q18912855
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q18912855']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P39 resource:Q18912855 }
almoner of the Order of Saint Lazarus
action filter_type
action find_reverse
entity almoner of the Order of Saint Lazarus
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'almoner of the Order of Saint Lazarus']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:position_held resource:almoner_of_the_Order_of_Saint_Lazarus }
[]
common name
Q18952466
SYSTEM
Abbé Rey
Q18952466
(c(Q502895),P39,Q18912855)
action filter_type
action find_reverse
entity Q18912855
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that profession
[{'concept': 'Q502895'}, 'P39', 'Q18912855']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P39 resource:Q18912855 }
Abbé Rey
Abbé Rey was responsible for occupying the position of that profession
Abbé Rey
action filter_type
action find_reverse
entity almoner of the Order of Saint Lazarus
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'almoner of the Order of Saint Lazarus']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:position_held resource:almoner_of_the_Order_of_Saint_Lazarus }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18912855
P17
Q15617994
USER
Which administrative territory is that profession a part of ?
(Q18952466,P17,c(Q15617994))
action filter_type
action find
entity Q18912855
relation P17
type Q15617994
['Q18952466', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q18912855 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
almoner of the Order of Saint Lazarus
action filter_type
action find
entity almoner of the Order of Saint Lazarus
relation country
type designation for an administrative territorial entity
['Abbé Rey', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:almoner_of_the_Order_of_Saint_Lazarus property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q18952466,P17,c(Q15617994))
action filter_type
action find
entity Q18912855
relation P17
type Q15617994
The [ANSWER] is that profession a part of
['Q18952466', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q18912855 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
France
The France is that profession a part of
France
action filter_type
action find
entity almoner of the Order of Saint Lazarus
relation country
type designation for an administrative territorial entity
['Abbé Rey', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:almoner_of_the_Order_of_Saint_Lazarus property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q4442551 Q40
P530
Q1048835
USER
Does that administrative territory have diplomatic relations with Steschyno and Austria ?
(Q142,P530,Q4442551) (Q142,P530,Q40)
action is_in
entity Q142
action intersection
action find_reverse
entity Q4442551
relation P530
action find_reverse
entity Q40
relation P530
['Q142', 'P530', 'Q4442551'] ['Q142', 'P530', 'Q40']
ASK WHERE { resource:Q142 property:P530 resource:Q4442551 . resource:Q142 property:P530 resource:Q40 }
France Steschyno Austria
action is_in
entity France
action intersection
action find_reverse
entity Steschyno
relation diplomatic relation
action find_reverse
entity Austria
relation diplomatic relation
['France', 'diplomatic relation', 'Steschyno'] ['France', 'diplomatic relation', 'Austria']
ASK WHERE { resource:France property:diplomatic_relation resource:Steschyno . resource:France property:diplomatic_relation resource:Austria }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q142,P530,Q4442551) (Q142,P530,Q40)
action is_in
entity Q142
action intersection
action find_reverse
entity Q4442551
relation P530
action find_reverse
entity Q40
relation P530
[ANSWER]
['Q142', 'P530', 'Q4442551'] ['Q142', 'P530', 'Q40']
ASK WHERE { resource:Q142 property:P530 resource:Q4442551 . resource:Q142 property:P530 resource:Q40 }
NO and YES respectively
action is_in
entity France
action intersection
action find_reverse
entity Steschyno
relation diplomatic relation
action find_reverse
entity Austria
relation diplomatic relation
['France', 'diplomatic relation', 'Steschyno'] ['France', 'diplomatic relation', 'Austria']
ASK WHERE { resource:France property:diplomatic_relation resource:Steschyno . resource:France property:diplomatic_relation resource:Austria }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q18912855 Q830796
P361
Q618779
USER
Is that profession a part of Order of Saint Lazarus ?
(Q18912855,P361,Q830796)
action is_in
entity Q830796
action find
entity Q18912855
relation P361
['Q18912855', 'P361', 'Q830796']
ASK WHERE { resource:Q18912855 property:P361 resource:Q830796 }
almoner of the Order of Saint Lazarus Order of Saint Lazarus
action is_in
entity Order of Saint Lazarus
action find
entity almoner of the Order of Saint Lazarus
relation part of
['almoner of the Order of Saint Lazarus', 'part of', 'Order of Saint Lazarus']
ASK WHERE { resource:almoner_of_the_Order_of_Saint_Lazarus property:part_of resource:Order_of_Saint_Lazarus }
[]
award
SYSTEM
YES
(Q18912855,P361,Q830796)
action is_in
entity Q830796
action find
entity Q18912855
relation P361
[ANSWER]
['Q18912855', 'P361', 'Q830796']
ASK WHERE { resource:Q18912855 property:P361 resource:Q830796 }
Yes
action is_in
entity Order of Saint Lazarus
action find
entity almoner of the Order of Saint Lazarus
relation part of
['almoner of the Order of Saint Lazarus', 'part of', 'Order of Saint Lazarus']
ASK WHERE { resource:almoner_of_the_Order_of_Saint_Lazarus property:part_of resource:Order_of_Saint_Lazarus }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q189550 Q830796
P140
Q874405
USER
Which social groups are the religious affiliation of Order of Saint Lazarus or Imad ad-Din Zengi ?
OR((Q830796,P140,c(Q874405)), (Q189550,P140,c(Q874405)))
action filter_type
action union
action find
entity Q830796
relation P140
action find
entity Q189550
relation P140
type Q874405
{'OR': [['Q830796', 'P140', {'concept': 'Q874405'}], ['Q189550', 'P140', {'concept': 'Q874405'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q189550 property:P140 ?y } UNION { resource:Q830796 property:P140 ?y } } . ?y rdf:type ontology:Q874405 }
Imad ad-Din Zengi Order of Saint Lazarus
action filter_type
action union
action find
entity Order of Saint Lazarus
relation religion
action find
entity Imad ad-Din Zengi
relation religion
type social group
{'OR': [['Order of Saint Lazarus', 'religion', {'concept': 'social group'}], ['Imad ad-Din Zengi', 'religion', {'concept': 'social group'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Imad_ad-Din_Zengi property:religion ?y } UNION { resource:Order_of_Saint_Lazarus property:religion ?y } } . ?y rdf:type ontology:social_group }
[]
social group
Q5043 Q432
SYSTEM
Christianity, Islam
Q5043 Q432
OR((Q830796,P140,c(Q874405)), (Q189550,P140,c(Q874405)))
action filter_type
action union
action find
entity Q830796
relation P140
action find
entity Q189550
relation P140
type Q874405
[ANSWERS] are the religious affiliation of Order of Saint Lazarus or Imad ad-Din Zengi
{'OR': [['Q830796', 'P140', {'concept': 'Q874405'}], ['Q189550', 'P140', {'concept': 'Q874405'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q189550 property:P140 ?y } UNION { resource:Q830796 property:P140 ?y } } . ?y rdf:type ontology:Q874405 }
Christianity Islam
Christianity and Islam are the religious affiliation of Order of Saint Lazarus or Imad ad-Din Zengi
Christianity Islam
action filter_type
action union
action find
entity Order of Saint Lazarus
relation religion
action find
entity Imad ad-Din Zengi
relation religion
type social group
{'OR': [['Order of Saint Lazarus', 'religion', {'concept': 'social group'}], ['Imad ad-Din Zengi', 'religion', {'concept': 'social group'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Imad_ad-Din_Zengi property:religion ?y } UNION { resource:Order_of_Saint_Lazarus property:religion ?y } } . ?y rdf:type ontology:social_group }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3573554
P140
Q2472587
USER
Do Occitans have those social groups as religious affiliation ?
(Q3573554,P140,Q5043) (Q3573554,P140,Q432)
action is_in
entity prev_answer
action find
entity Q3573554
relation P140
['Q3573554', 'P140', 'Q5043'] ['Q3573554', 'P140', 'Q432']
ASK WHERE { resource:Q3573554 property:P140 ?p . VALUES ( ?p ) { ( resource:Q5043 ) ( resource:Q432 ) } }
Occitans
action is_in
entity prev_answer
action find
entity Occitans
relation religion
['Occitans', 'religion', 'Christianity'] ['Occitans', 'religion', 'Islam']
ASK WHERE { resource:Occitans property:religion ?p . VALUES ( ?p ) { ( resource:Christianity ) ( resource:Islam ) } }
[]
people
SYSTEM
YES
(Q3573554,P140,Q5043) (Q3573554,P140,Q432)
action is_in
entity prev_answer
action find
entity Q3573554
relation P140
[ANSWER]
['Q3573554', 'P140', 'Q5043'] ['Q3573554', 'P140', 'Q432']
ASK WHERE { resource:Q3573554 property:P140 ?p . VALUES ( ?p ) { ( resource:Q5043 ) ( resource:Q432 ) } }
Yes
action is_in
entity prev_answer
action find
entity Occitans
relation religion
['Occitans', 'religion', 'Christianity'] ['Occitans', 'religion', 'Islam']
ASK WHERE { resource:Occitans property:religion ?p . VALUES ( ?p ) { ( resource:Christianity ) ( resource:Islam ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18952466
P734
Q82799
USER
Who has the surname Abbé Rey ?
(Q18952466,P734,c(Q82799))
action filter_type
action find
entity Q18952466
relation P734
type Q82799
['Q18952466', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q18952466 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Abbé Rey
action filter_type
action find
entity Abbé Rey
relation family name
type name
['Abbé Rey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Abbé_Rey property:family_name ?g . ?g rdf:type ontology:name }
[]
name
Q419161
SYSTEM
Rey
Q419161
(Q18952466,P734,c(Q82799))
action filter_type
action find
entity Q18952466
relation P734
type Q82799
[ANSWER] has the surname Abbé [ANSWER]
['Q18952466', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { resource:Q18952466 property:P734 ?g . ?g rdf:type ontology:Q82799 }
Rey
Rey has the surname Abbé Rey
Rey
action filter_type
action find
entity Abbé Rey
relation family name
type name
['Abbé Rey', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { resource:Abbé_Rey property:family_name ?g . ?g rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3934163
Q82799
USER
And what about Rhys Isaac?
(Q3934163,P734,c(Q82799))
action filter_type
action find
entity Q3934163
relation P734
type Q82799
['Q3934163', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q3934163 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Rhys Isaac
action filter_type
action find
entity Rhys Isaac
relation family name
type name
['Rhys Isaac', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Rhys_Isaac property:family_name ?e . ?e rdf:type ontology:name }
[]
name
Q24232039
SYSTEM
Isaac
Q24232039
(Q3934163,P734,c(Q82799))
action filter_type
action find
entity Q3934163
relation P734
type Q82799
[ANSWER]
['Q3934163', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q3934163 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Isaac
Isaac
action filter_type
action find
entity Rhys Isaac
relation family name
type name
['Rhys Isaac', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Rhys_Isaac property:family_name ?e . ?e rdf:type ontology:name }
[]