Simple Question (Direct)
Simple Question
Q1597992
P937
Q56061
USER
Which administrative territory is the work location of Heinrich Klausing ?
(Q1597992,P937,c(Q56061))
action filter_type
action find
entity Q1597992
relation P937
type Q56061
['Q1597992', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q1597992 property:P937 ?b }
Heinrich Klausing
action filter_type
action find
entity Heinrich Klausing
relation work location
type administrative territorial entity
['Heinrich Klausing', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Heinrich_Klausing property:work_location ?b }
[]
administrative territorial entity
Q6837
SYSTEM
Lutherstadt Wittenberg
Q6837
(Q1597992,P937,c(Q56061))
action filter_type
action find
entity Q1597992
relation P937
type Q56061
[ANSWER] is the work location of Heinrich Klausing
['Q1597992', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q1597992 property:P937 ?b }
Lutherstadt Wittenberg
Lutherstadt Wittenberg is the work location of Heinrich Klausing
Lutherstadt Wittenberg
action filter_type
action find
entity Heinrich Klausing
relation work location
type administrative territorial entity
['Heinrich Klausing', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Heinrich_Klausing property:work_location ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1597992
P20
Q515
USER
Where did Heinrich Klausing die ?
(Q1597992,P20,c(Q515))
action filter_type
action find
entity Q1597992
relation P20
type Q515
['Q1597992', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q1597992 property:P20 ?h . ?h rdf:type ontology:Q515 }
Heinrich Klausing
action filter_type
action find
entity Heinrich Klausing
relation place of death
type city
['Heinrich Klausing', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Heinrich_Klausing property:place_of_death ?h . ?h rdf:type ontology:city }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
(Q1597992,P20,c(Q515))
action filter_type
action find
entity Q1597992
relation P20
type Q515
Heinrich Klausing died in [ANSWER]
['Q1597992', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q1597992 property:P20 ?h . ?h rdf:type ontology:Q515 }
Leipzig
Heinrich Klausing died in Leipzig
Leipzig
action filter_type
action find
entity Heinrich Klausing
relation place of death
type city
['Heinrich Klausing', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Heinrich_Klausing property:place_of_death ?h . ?h rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1597992
P106
Q12737077
USER
Which occupations are the professions of Heinrich Klausing ?
(Q1597992,P106,c(Q12737077))
action filter_type
action find
entity Q1597992
relation P106
type Q12737077
['Q1597992', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1597992 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Heinrich Klausing
action filter_type
action find
entity Heinrich Klausing
relation occupation
type occupation
['Heinrich Klausing', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Heinrich_Klausing property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q1622272 Q1234713 Q170790
SYSTEM
university teacher, theologian, mathematician
Q1234713 Q170790 Q11063 Q1622272
(Q1597992,P106,c(Q12737077))
action filter_type
action find
entity Q1597992
relation P106
type Q12737077
The professions of Heinrich Klausing are the [ANSWERS]
['Q1597992', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1597992 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
theologian mathematician astronomer university teacher
The professions of Heinrich Klausing are the university teacher, theologian and mathematician
university teacher theologian mathematician
action filter_type
action find
entity Heinrich Klausing
relation occupation
type occupation
['Heinrich Klausing', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Heinrich_Klausing property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3453398
Q12737077
USER
And what about Rusli Amran?
(Q3453398,P106,c(Q12737077))
action filter_type
action find
entity Q3453398
relation P106
type Q12737077
['Q3453398', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3453398 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Rusli Amran
action filter_type
action find
entity Rusli Amran
relation occupation
type occupation
['Rusli Amran', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Rusli_Amran property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q1930187 Q193391
SYSTEM
journalist, diplomat
Q1930187 Q193391
(Q3453398,P106,c(Q12737077))
action filter_type
action find
entity Q3453398
relation P106
type Q12737077
[ANSWERS]
['Q3453398', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3453398 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
journalist diplomat
journalist diplomat
action filter_type
action find
entity Rusli Amran
relation occupation
type occupation
['Rusli Amran', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Rusli_Amran property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1930187 Q193391
P39
Q502895
USER
Which people held the position of journalist and diplomat ?
(c(Q502895),P39,Q1930187) (c(Q502895),P39,Q193391)
action union
action filter_type
action find_reverse
entity Q1930187
relation P39
type Q502895
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1930187'] [{'concept': 'Q502895'}, 'P39', 'Q193391']
SELECT DISTINCT ?z WHERE { VALUES ( ?u ) { ( resource:Q1930187 ) ( resource:Q193391 ) } . ?z property:P39 ?u }
journalist diplomat
action union
action filter_type
action find_reverse
entity journalist
relation position held
type common name
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'journalist'] [{'concept': 'common name'}, 'position held', 'diplomat']
SELECT DISTINCT ?z WHERE { VALUES ( ?u ) { ( resource:journalist ) ( resource:diplomat ) } . ?z property:position_held ?u }
[]
common name
Q2844607 Q2844607 Q723621
SYSTEM
Amé-Thérèse-Joseph Masclet for 1st, 2nd, Paul Nizan for 3rd
Q2844607 Q2844607 Q20920104 Q20920104 Q723621 Q16912378 Q5945149 Q699131 Q19828328 Q16912378
(c(Q502895),P39,Q1930187) (c(Q502895),P39,Q193391)
action union
action filter_type
action find_reverse
entity Q1930187
relation P39
type Q502895
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q1930187'] [{'concept': 'Q502895'}, 'P39', 'Q193391']
SELECT DISTINCT ?z WHERE { VALUES ( ?u ) { ( resource:Q1930187 ) ( resource:Q193391 ) } . ?z property:P39 ?u }
Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Pierre Barthélémy Pierre Barthélémy Paul Nizan Alexandre Melnik José Rocamora Xiong Xianghui Antonio Caselli Alexandre Melnik
Amé-Thérèse-Joseph Masclet, Amé-Thérèse-Joseph Masclet and Paul Nizan held the position of journalist and diplomat
Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Paul Nizan
action union
action filter_type
action find_reverse
entity journalist
relation position held
type common name
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'journalist'] [{'concept': 'common name'}, 'position held', 'diplomat']
SELECT DISTINCT ?z WHERE { VALUES ( ?u ) { ( resource:journalist ) ( resource:diplomat ) } . ?z property:position_held ?u }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2844607
P138
Q15324
USER
Which body of water is named after that person ?
(c(Q15324),P138,Q2844607)
action filter_type
action find_reverse
entity Q2844607
relation P138
type Q15324
[{'concept': 'Q15324'}, 'P138', 'Q2844607']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q2844607 . ?y rdf:type ontology:Q15324 }
Amé-Thérèse-Joseph Masclet
action filter_type
action find_reverse
entity Amé-Thérèse-Joseph Masclet
relation named after
type body of water
[{'concept': 'body of water'}, 'named after', 'Amé-Thérèse-Joseph Masclet']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:Amé-Thérèse-Joseph_Masclet . ?y rdf:type ontology:body_of_water }
[]
body of water
Clarification for simple ques.
Q723621
SYSTEM
Did you mean Paul Nizan ?
Q2844607 Q2844607 Q723621
(c(Q15324),P138,Q2844607) (c(Q15324),P138,Q2844607) (c(Q15324),P138,Q723621)
[ANSWER]
[{'concept': 'Q15324'}, 'P138', 'Q2844607'] [{'concept': 'Q15324'}, 'P138', 'Q2844607'] [{'concept': 'Q15324'}, 'P138', 'Q723621']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q2844607 . ?y rdf:type ontology:Q15324 }
Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Paul Nizan
Did you mean Paul Nizan ?
Paul Nizan
[{'concept': 'body of water'}, 'named after', 'Amé-Thérèse-Joseph Masclet'] [{'concept': 'body of water'}, 'named after', 'Amé-Thérèse-Joseph Masclet'] [{'concept': 'body of water'}, 'named after', 'Paul Nizan']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:Amé-Thérèse-Joseph_Masclet . ?y rdf:type ontology:body_of_water }
[]
Simple Question (Coreferenced)
USER
No, I meant Amé-Thérèse-Joseph Masclet. Could you tell me the answer for that?
(c(Q15324),P138,Q2844607)
Q2844607
[{'concept': 'Q15324'}, 'P138', 'Q2844607']
[{'concept': 'body of water'}, 'named after', 'Amé-Thérèse-Joseph Masclet']
[]
Q26728723
SYSTEM
Masclet Bay
Q26728723
(c(Q15324),P138,Q2844607)
action filter_type
action find_reverse
entity Q2844607
relation P138
type Q15324
[ANSWER] is named after that person
[{'concept': 'Q15324'}, 'P138', 'Q2844607']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q2844607 . ?y rdf:type ontology:Q15324 }
Masclet Bay
Masclet Bay is named after that person
Masclet Bay
action filter_type
action find_reverse
entity Amé-Thérèse-Joseph Masclet
relation named after
type body of water
[{'concept': 'body of water'}, 'named after', 'Amé-Thérèse-Joseph Masclet']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:Amé-Thérèse-Joseph_Masclet . ?y rdf:type ontology:body_of_water }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26728723
P138
Q502895
USER
Which person is the etymology of that body of water ?
(Q26728723,P138,c(Q502895))
action filter_type
action find
entity Q26728723
relation P138
type Q502895
['Q26728723', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q26728723 property:P138 ?x . ?x rdf:type ontology:Q502895 }
Masclet Bay
action filter_type
action find
entity Masclet Bay
relation named after
type common name
['Masclet Bay', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Masclet_Bay property:named_after ?x . ?x rdf:type ontology:common_name }
[]
common name
Q2844607
SYSTEM
Amé-Thérèse-Joseph Masclet
Q2844607
(Q26728723,P138,c(Q502895))
action filter_type
action find
entity Q26728723
relation P138
type Q502895
[ANSWER] is the etymology of that body of water
['Q26728723', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q26728723 property:P138 ?x . ?x rdf:type ontology:Q502895 }
Amé-Thérèse-Joseph Masclet
Amé-Thérèse-Joseph Masclet is the etymology of that body of water
Amé-Thérèse-Joseph Masclet
action filter_type
action find
entity Masclet Bay
relation named after
type common name
['Masclet Bay', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Masclet_Bay property:named_after ?x . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q995682 Q1597992
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Heinrich Klausing or are bordered by Ulldecona ?
OR((Q1597992,P27,c(Q1048835)), (Q995682,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1597992
relation P27
action find
entity Q995682
relation P47
type Q1048835
{'OR': [['Q1597992', 'P27', {'concept': 'Q1048835'}], ['Q995682', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q995682 property:P47 ?e } UNION { resource:Q1597992 property:P27 ?e } } . ?e rdf:type ontology:Q1048835 }
Ulldecona Heinrich Klausing
action filter_type
action union
action find
entity Heinrich Klausing
relation country of citizenship
action find
entity Ulldecona
relation shares border with
type political territorial entity
{'OR': [['Heinrich Klausing', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ulldecona', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Ulldecona property:shares_border_with ?e } UNION { resource:Heinrich_Klausing property:country_of_citizenship ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1645728 Q613582 Q704847 Q1247246 Q659333 Q2045712 Q183 Q531755 Q1247218 Q987434
SYSTEM
Traiguera, Sant Rafel del Riu, La Sénia, Freginals, Mas de Barberans, San Jorge, Germany, La Galera, Godall, Alcanar
Q1645728 Q613582 Q704847 Q1247246 Q659333 Q2045712 Q183 Q531755 Q1247218 Q987434
OR((Q1597992,P27,c(Q1048835)), (Q995682,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1597992
relation P27
action find
entity Q995682
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Heinrich Klausing or are bordered by Ulldecona
{'OR': [['Q1597992', 'P27', {'concept': 'Q1048835'}], ['Q995682', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q995682 property:P47 ?e } UNION { resource:Q1597992 property:P27 ?e } } . ?e rdf:type ontology:Q1048835 }
Traiguera Sant Rafel del Riu La Sénia Freginals Mas de Barberans San Jorge Germany La Galera Godall Alcanar
Traiguera, Sant Rafel del Riu, La Sénia, Freginals, Mas de Barberans, San Jorge, Germany, La Galera, Godall and Alcanar are the countries of citizenship of Heinrich Klausing or are bordered by Ulldecona
Traiguera Sant Rafel del Riu La Sénia Freginals Mas de Barberans San Jorge Germany La Galera Godall Alcanar
action filter_type
action union
action find
entity Heinrich Klausing
relation country of citizenship
action find
entity Ulldecona
relation shares border with
type political territorial entity
{'OR': [['Heinrich Klausing', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ulldecona', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Ulldecona property:shares_border_with ?e } UNION { resource:Heinrich_Klausing property:country_of_citizenship ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q659333
P1001
Q12737077
USER
Which occupation has jurisdiction over that political territory ?
(c(Q12737077),P1001,Q659333)
action filter_type
action find_reverse
entity Q659333
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q659333']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . ?e property:P1001 resource:Q659333 }
Mas de Barberans
action filter_type
action find_reverse
entity Mas de Barberans
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Mas de Barberans']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . ?e property:applies_to_jurisdiction resource:Mas_de_Barberans }
[]
occupation
Clarification for simple ques.
Q1247246
SYSTEM
Did you mean Freginals ?
Q1645728 Q613582 Q704847 Q1247246 Q659333 Q2045712 Q183 Q531755 Q1247218 Q987434
(c(Q12737077),P1001,Q1645728) (c(Q12737077),P1001,Q613582) (c(Q12737077),P1001,Q704847) (c(Q12737077),P1001,Q1247246) (c(Q12737077),P1001,Q659333) (c(Q12737077),P1001,Q2045712) (c(Q12737077),P1001,Q183) (c(Q12737077),P1001,Q531755) (c(Q12737077),P1001,Q1247218) (c(Q12737077),P1001,Q987434)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q1645728'] [{'concept': 'Q12737077'}, 'P1001', 'Q613582'] [{'concept': 'Q12737077'}, 'P1001', 'Q704847'] [{'concept': 'Q12737077'}, 'P1001', 'Q1247246'] [{'concept': 'Q12737077'}, 'P1001', 'Q659333'] [{'concept': 'Q12737077'}, 'P1001', 'Q2045712'] [{'concept': 'Q12737077'}, 'P1001', 'Q183'] [{'concept': 'Q12737077'}, 'P1001', 'Q531755'] [{'concept': 'Q12737077'}, 'P1001', 'Q1247218'] [{'concept': 'Q12737077'}, 'P1001', 'Q987434']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . ?e property:P1001 resource:Q659333 }
Traiguera Sant Rafel del Riu La Sénia Freginals Mas de Barberans San Jorge Germany La Galera Godall Alcanar
Did you mean Freginals ?
Freginals
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Traiguera'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Sant Rafel del Riu'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'La Sénia'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Freginals'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Mas de Barberans'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'San Jorge'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'La Galera'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Godall'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Alcanar']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . ?e property:applies_to_jurisdiction resource:Mas_de_Barberans }
[]
Simple Question (Coreferenced)
USER
No, I meant Mas de Barberans. Could you tell me the answer for that?
(c(Q12737077),P1001,Q659333)
Q659333
[{'concept': 'Q12737077'}, 'P1001', 'Q659333']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Mas de Barberans']
[]
Q26699483
SYSTEM
mayor of Mas de Barberans
Q26699483
(c(Q12737077),P1001,Q659333)
action filter_type
action find_reverse
entity Q659333
relation P1001
type Q12737077
The [ANSWER] has jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q659333']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . ?e property:P1001 resource:Q659333 }
mayor of Mas de Barberans
The mayor of Mas de Barberans has jurisdiction over that political territory
mayor of Mas de Barberans
action filter_type
action find_reverse
entity Mas de Barberans
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Mas de Barberans']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . ?e property:applies_to_jurisdiction resource:Mas_de_Barberans }
[]