Simple Question (Direct)
Simple Question
Q1457210
P19
Q56061
USER
Which administrative territory is the place of birth of Friedhelm Hengsbach ?
(Q1457210,P19,c(Q56061))
action filter_type
action find
entity Q1457210
relation P19
type Q56061
['Q1457210', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1457210 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Friedhelm Hengsbach
action filter_type
action find
entity Friedhelm Hengsbach
relation place of birth
type administrative territorial entity
['Friedhelm Hengsbach', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Friedhelm_Hengsbach property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1295
SYSTEM
Dortmund
Q1295
(Q1457210,P19,c(Q56061))
action filter_type
action find
entity Q1457210
relation P19
type Q56061
[ANSWER] is the place of birth of Friedhelm Hengsbach
['Q1457210', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1457210 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Dortmund
Dortmund is the place of birth of Friedhelm Hengsbach
Dortmund
action filter_type
action find
entity Friedhelm Hengsbach
relation place of birth
type administrative territorial entity
['Friedhelm Hengsbach', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Friedhelm_Hengsbach property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1457210
P140
Q879146
USER
What is the religious affiliation of that person ?
(Q1295,P140,c(Q879146))
action filter_type
action find
entity Q1457210
relation P140
type Q879146
['Q1295', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q879146 . resource:Q1457210 property:P140 ?f }
Friedhelm Hengsbach
action filter_type
action find
entity Friedhelm Hengsbach
relation religion
type Christian denomination
['Dortmund', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Christian_denomination . resource:Friedhelm_Hengsbach property:religion ?f }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q1295,P140,c(Q879146))
action filter_type
action find
entity Q1457210
relation P140
type Q879146
The religious affiliation of that person is a [ANSWER]
['Q1295', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q879146 . resource:Q1457210 property:P140 ?f }
Roman Catholic Church
The religious affiliation of that person is a Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Friedhelm Hengsbach
relation religion
type Christian denomination
['Dortmund', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Christian_denomination . resource:Friedhelm_Hengsbach property:religion ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1457210
P611
Q1530022
USER
What religion is that person affiliated to ?
(Q9592,P611,c(Q1530022))
action filter_type
action find
entity Q1457210
relation P611
type Q1530022
['Q9592', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?k WHERE { resource:Q1457210 property:P611 ?k . ?k rdf:type ontology:Q1530022 }
Friedhelm Hengsbach
action filter_type
action find
entity Friedhelm Hengsbach
relation religious order
type religious organization
['Roman Catholic Church', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?k WHERE { resource:Friedhelm_Hengsbach property:religious_order ?k . ?k rdf:type ontology:religious_organization }
[]
religious organization
Q36380
SYSTEM
Society of Jesus
Q36380
(Q9592,P611,c(Q1530022))
action filter_type
action find
entity Q1457210
relation P611
type Q1530022
That person is affiliated to [ANSWER]
['Q9592', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?k WHERE { resource:Q1457210 property:P611 ?k . ?k rdf:type ontology:Q1530022 }
Society of Jesus
That person is affiliated to Society of Jesus
Society of Jesus
action filter_type
action find
entity Friedhelm Hengsbach
relation religious order
type religious organization
['Roman Catholic Church', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?k WHERE { resource:Friedhelm_Hengsbach property:religious_order ?k . ?k rdf:type ontology:religious_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7608349 Q1457210
P27
Q1048835
USER
Which political territories are Friedhelm Hengsbach or Stephanie Mouwandji Itsopault a civilian of ?
OR((Q1457210,P27,c(Q1048835)), (Q7608349,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1457210
relation P27
action find
entity Q7608349
relation P27
type Q1048835
{'OR': [['Q1457210', 'P27', {'concept': 'Q1048835'}], ['Q7608349', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7608349 property:P27 ?e } UNION { resource:Q1457210 property:P27 ?e } } . ?e rdf:type ontology:Q1048835 }
Stephanie Mouwandji Itsopault Friedhelm Hengsbach
action filter_type
action union
action find
entity Friedhelm Hengsbach
relation country of citizenship
action find
entity Stephanie Mouwandji Itsopault
relation country of citizenship
type political territorial entity
{'OR': [['Friedhelm Hengsbach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Stephanie Mouwandji Itsopault', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Stephanie_Mouwandji_Itsopault property:country_of_citizenship ?e } UNION { resource:Friedhelm_Hengsbach property:country_of_citizenship ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1000 Q183
SYSTEM
Gabon, Germany
Q1000 Q183
OR((Q1457210,P27,c(Q1048835)), (Q7608349,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1457210
relation P27
action find
entity Q7608349
relation P27
type Q1048835
[ANSWERS] are Friedhelm Hengsbach or Stephanie Mouwandji Itsopault a civilian of
{'OR': [['Q1457210', 'P27', {'concept': 'Q1048835'}], ['Q7608349', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7608349 property:P27 ?e } UNION { resource:Q1457210 property:P27 ?e } } . ?e rdf:type ontology:Q1048835 }
Gabon Germany
Gabon and Germany are Friedhelm Hengsbach or Stephanie Mouwandji Itsopault a civilian of
Gabon Germany
action filter_type
action union
action find
entity Friedhelm Hengsbach
relation country of citizenship
action find
entity Stephanie Mouwandji Itsopault
relation country of citizenship
type political territorial entity
{'OR': [['Friedhelm Hengsbach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Stephanie Mouwandji Itsopault', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Stephanie_Mouwandji_Itsopault property:country_of_citizenship ?e } UNION { resource:Friedhelm_Hengsbach property:country_of_citizenship ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1652181 Q1457210
P47 P27
Q1048835
USER
Which political territories are Friedhelm Hengsbach an inhabitant of or share the border with Maire de Castroponce ?
OR((Q1457210,P27,c(Q1048835)), (Q1652181,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1457210
relation P27
action find
entity Q1652181
relation P47
type Q1048835
{'OR': [['Q1457210', 'P27', {'concept': 'Q1048835'}], ['Q1652181', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1457210 property:P27 ?q } UNION { resource:Q1652181 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Maire de Castroponce Friedhelm Hengsbach
action filter_type
action union
action find
entity Friedhelm Hengsbach
relation country of citizenship
action find
entity Maire de Castroponce
relation shares border with
type political territorial entity
{'OR': [['Friedhelm Hengsbach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Maire de Castroponce', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Friedhelm_Hengsbach property:country_of_citizenship ?q } UNION { resource:Maire_de_Castroponce property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1766471 Q1652373 Q183 Q1635334 Q1766912 Q138262 Q1765220
SYSTEM
Santa María de la Vega, Fresno de la Polvorosa, Germany, San Adrián del Valle, Pobladura del Valle, Pozuelo del Páramo, Coomonte
Q1766471 Q1652373 Q183 Q1635334 Q1766912 Q138262 Q1765220
OR((Q1457210,P27,c(Q1048835)), (Q1652181,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1457210
relation P27
action find
entity Q1652181
relation P47
type Q1048835
[ANSWERS] are Friedhelm Hengsbach an inhabitant of or share the border with Maire de Castroponce
{'OR': [['Q1457210', 'P27', {'concept': 'Q1048835'}], ['Q1652181', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1457210 property:P27 ?q } UNION { resource:Q1652181 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Santa María de la Vega Fresno de la Polvorosa Germany San Adrián del Valle Pobladura del Valle Pozuelo del Páramo Coomonte
Santa María de la Vega, Fresno de la Polvorosa, Germany, San Adrián del Valle, Pobladura del Valle, Pozuelo del Páramo and Coomonte are Friedhelm Hengsbach an inhabitant of or share the border with Maire de Castroponce
Santa María de la Vega Fresno de la Polvorosa Germany San Adrián del Valle Pobladura del Valle Pozuelo del Páramo Coomonte
action filter_type
action union
action find
entity Friedhelm Hengsbach
relation country of citizenship
action find
entity Maire de Castroponce
relation shares border with
type political territorial entity
{'OR': [['Friedhelm Hengsbach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Maire de Castroponce', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Friedhelm_Hengsbach property:country_of_citizenship ?q } UNION { resource:Maire_de_Castroponce property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1766471 Q1652373 Q183 Q1635334 Q1766912 Q138262 Q1765220
P1313
Q12737077
USER
Which occupations serve as the political office that are fulfilled by the head of the government of those political territories ?
(Q1766471,P1313,c(Q12737077)) (Q1652373,P1313,c(Q12737077)) (Q183,P1313,c(Q12737077)) (Q1635334,P1313,c(Q12737077)) (Q1766912,P1313,c(Q12737077)) (Q138262,P1313,c(Q12737077)) (Q1765220,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
['Q1766471', 'P1313', {'concept': 'Q12737077'}] ['Q1652373', 'P1313', {'concept': 'Q12737077'}] ['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q1635334', 'P1313', {'concept': 'Q12737077'}] ['Q1766912', 'P1313', {'concept': 'Q12737077'}] ['Q138262', 'P1313', {'concept': 'Q12737077'}] ['Q1765220', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?v property:P1313 ?r . VALUES ( ?v ) { ( resource:Q1766471 ) ( resource:Q1652373 ) ( resource:Q183 ) } . ?r rdf:type ontology:Q12737077 }
Santa María de la Vega Fresno de la Polvorosa Germany San Adrián del Valle Pobladura del Valle Pozuelo del Páramo Coomonte
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Santa María de la Vega', 'office held by head of government', {'concept': 'occupation'}] ['Fresno de la Polvorosa', 'office held by head of government', {'concept': 'occupation'}] ['Germany', 'office held by head of government', {'concept': 'occupation'}] ['San Adrián del Valle', 'office held by head of government', {'concept': 'occupation'}] ['Pobladura del Valle', 'office held by head of government', {'concept': 'occupation'}] ['Pozuelo del Páramo', 'office held by head of government', {'concept': 'occupation'}] ['Coomonte', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?v property:office_held_by_head_of_government ?r . VALUES ( ?v ) { ( resource:Santa_María_de_la_Vega ) ( resource:Fresno_de_la_Polvorosa ) ( resource:Germany ) } . ?r rdf:type ontology:occupation }
[]
occupation
Q4970706 Q26695503 Q26694890
SYSTEM
Federal Chancellor of Germany, mayor of Santa María de la Vega, mayor of Fresno de la Polvorosa
Q26695503 Q26694890 Q4970706 Q26693053 Q26695578 Q26691117 Q26695426
(Q1766471,P1313,c(Q12737077)) (Q1652373,P1313,c(Q12737077)) (Q183,P1313,c(Q12737077)) (Q1635334,P1313,c(Q12737077)) (Q1766912,P1313,c(Q12737077)) (Q138262,P1313,c(Q12737077)) (Q1765220,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
[ANSWERS] serve as the political office that are fulfilled by the head of the government of those political territories
['Q1766471', 'P1313', {'concept': 'Q12737077'}] ['Q1652373', 'P1313', {'concept': 'Q12737077'}] ['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q1635334', 'P1313', {'concept': 'Q12737077'}] ['Q1766912', 'P1313', {'concept': 'Q12737077'}] ['Q138262', 'P1313', {'concept': 'Q12737077'}] ['Q1765220', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?v property:P1313 ?r . VALUES ( ?v ) { ( resource:Q1766471 ) ( resource:Q1652373 ) ( resource:Q183 ) } . ?r rdf:type ontology:Q12737077 }
mayor of Santa María de la Vega mayor of Fresno de la Polvorosa Federal Chancellor of Germany mayor of San Adrián del Valle mayor of Pobladura del Valle mayor of Pozuelo del Páramo mayor of Coomonte
Federal Chancellor of Germany, mayor of Santa María de la Vega and mayor of Fresno de la Polvorosa serve as the political office that are fulfilled by the head of the government of those political territories
Federal Chancellor of Germany mayor of Santa María de la Vega mayor of Fresno de la Polvorosa
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Santa María de la Vega', 'office held by head of government', {'concept': 'occupation'}] ['Fresno de la Polvorosa', 'office held by head of government', {'concept': 'occupation'}] ['Germany', 'office held by head of government', {'concept': 'occupation'}] ['San Adrián del Valle', 'office held by head of government', {'concept': 'occupation'}] ['Pobladura del Valle', 'office held by head of government', {'concept': 'occupation'}] ['Pozuelo del Páramo', 'office held by head of government', {'concept': 'occupation'}] ['Coomonte', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?v property:office_held_by_head_of_government ?r . VALUES ( ?v ) { ( resource:Santa_María_de_la_Vega ) ( resource:Fresno_de_la_Polvorosa ) ( resource:Germany ) } . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4970706 Q26695503 Q26694890
P1313
Q1048835
USER
Which political territories have those occupations as title of head of government ?
(c(Q1048835),P1313,Q4970706) (c(Q1048835),P1313,Q26695503) (c(Q1048835),P1313,Q26694890)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q4970706'] [{'concept': 'Q1048835'}, 'P1313', 'Q26695503'] [{'concept': 'Q1048835'}, 'P1313', 'Q26694890']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1048835 . ?p property:P1313 ?q . VALUES ( ?q ) { ( resource:Q26695503 ) ( resource:Q26694890 ) ( resource:Q4970706 ) } }
Federal Chancellor of Germany mayor of Santa María de la Vega mayor of Fresno de la Polvorosa
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Federal Chancellor of Germany'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Santa María de la Vega'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Fresno de la Polvorosa']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_territorial_entity . ?p property:office_held_by_head_of_government ?q . VALUES ( ?q ) { ( resource:mayor_of_Santa_María_de_la_Vega ) ( resource:mayor_of_Fresno_de_la_Polvorosa ) ( resource:Federal_Chancellor_of_Germany ) } }
[]
political territorial entity
Q183 Q1766471 Q1652373
SYSTEM
Germany, Santa María de la Vega, Fresno de la Polvorosa
Q183 Q1766471 Q1652373
(c(Q1048835),P1313,Q4970706) (c(Q1048835),P1313,Q26695503) (c(Q1048835),P1313,Q26694890)
action filter_type
action find_reverse
entity prev_answer
relation P1313
type Q1048835
[ANSWERS] have those occupations as title of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q4970706'] [{'concept': 'Q1048835'}, 'P1313', 'Q26695503'] [{'concept': 'Q1048835'}, 'P1313', 'Q26694890']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1048835 . ?p property:P1313 ?q . VALUES ( ?q ) { ( resource:Q26695503 ) ( resource:Q26694890 ) ( resource:Q4970706 ) } }
Germany Santa María de la Vega Fresno de la Polvorosa
Germany, Santa María de la Vega and Fresno de la Polvorosa have those occupations as title of head of government
Germany Santa María de la Vega Fresno de la Polvorosa
action filter_type
action find_reverse
entity prev_answer
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'Federal Chancellor of Germany'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Santa María de la Vega'] [{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Fresno de la Polvorosa']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_territorial_entity . ?p property:office_held_by_head_of_government ?q . VALUES ( ?q ) { ( resource:mayor_of_Santa_María_de_la_Vega ) ( resource:mayor_of_Fresno_de_la_Polvorosa ) ( resource:Federal_Chancellor_of_Germany ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1652373
P1001
Q12737077
USER
Which occupation applies to jurisdiction over that political territory ?
(c(Q12737077),P1001,Q1652373)
action filter_type
action find_reverse
entity Q1652373
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q1652373']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . ?k property:P1001 resource:Q1652373 }
Fresno de la Polvorosa
action filter_type
action find_reverse
entity Fresno de la Polvorosa
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Fresno de la Polvorosa']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . ?k property:applies_to_jurisdiction resource:Fresno_de_la_Polvorosa }
[]
occupation
Clarification for simple ques.
Q183
SYSTEM
Did you mean Germany ?
Q183 Q1766471 Q1652373
(c(Q12737077),P1001,Q183) (c(Q12737077),P1001,Q1766471) (c(Q12737077),P1001,Q1652373)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q183'] [{'concept': 'Q12737077'}, 'P1001', 'Q1766471'] [{'concept': 'Q12737077'}, 'P1001', 'Q1652373']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . ?k property:P1001 resource:Q1652373 }
Germany Santa María de la Vega Fresno de la Polvorosa
Did you mean Germany ?
Germany
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Santa María de la Vega'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Fresno de la Polvorosa']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . ?k property:applies_to_jurisdiction resource:Fresno_de_la_Polvorosa }
[]
Simple Question (Coreferenced)
USER
No, I meant Fresno de la Polvorosa. Could you tell me the answer for that?
(c(Q12737077),P1001,Q1652373)
Q1652373
[{'concept': 'Q12737077'}, 'P1001', 'Q1652373']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Fresno de la Polvorosa']
[]
Q26694890
SYSTEM
mayor of Fresno de la Polvorosa
Q26694890
(c(Q12737077),P1001,Q1652373)
action filter_type
action find_reverse
entity Q1652373
relation P1001
type Q12737077
[ANSWER] applies to jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q1652373']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . ?k property:P1001 resource:Q1652373 }
mayor of Fresno de la Polvorosa
Mayor of Fresno de la Polvorosa applies to jurisdiction over that political territory
mayor of Fresno de la Polvorosa
action filter_type
action find_reverse
entity Fresno de la Polvorosa
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Fresno de la Polvorosa']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . ?k property:applies_to_jurisdiction resource:Fresno_de_la_Polvorosa }
[]