Simple Question (Direct)
Simple Question
Q6451746
P53
Q13417114
USER
What dynasty does Bertha belong to ?
(Q6451746,P53,c(Q13417114))
action filter_type
action find
entity Q6451746
relation P53
type Q13417114
['Q6451746', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?r WHERE { resource:Q6451746 property:P53 ?r . ?r rdf:type ontology:Q13417114 }
Bertha
action filter_type
action find
entity Bertha
relation noble family
type noble family
['Bertha', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?r WHERE { resource:Bertha property:noble_family ?r . ?r rdf:type ontology:noble_family }
[]
noble family
Q133602
SYSTEM
Carolingian dynasty
Q133602
(Q6451746,P53,c(Q13417114))
action filter_type
action find
entity Q6451746
relation P53
type Q13417114
Bertha belongs to [ANSWER]
['Q6451746', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?r WHERE { resource:Q6451746 property:P53 ?r . ?r rdf:type ontology:Q13417114 }
Carolingian dynasty
Bertha belongs to Carolingian dynasty
Carolingian dynasty
action filter_type
action find
entity Bertha
relation noble family
type noble family
['Bertha', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?r WHERE { resource:Bertha property:noble_family ?r . ?r rdf:type ontology:noble_family }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6451746
P9
Q502895
USER
Who are Bertha a sister of ?
(c(Q502895),P9,Q6451746)
action filter_type
action find_reverse
entity Q6451746
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q6451746']
SELECT DISTINCT ?x WHERE { ?x property:P9 resource:Q6451746 . ?x rdf:type ontology:Q502895 }
Bertha
action filter_type
action find_reverse
entity Bertha
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Bertha']
SELECT DISTINCT ?x WHERE { ?x property:sister resource:Bertha . ?x rdf:type ontology:common_name }
[]
common name
Q150712 Q157084 Q452407
SYSTEM
Charles the Fat, Carloman of Bavaria, Irmgard of Chiemsee
Q160190 Q150712 Q157084 Q452407 Q24039064 Q15630826
(c(Q502895),P9,Q6451746)
action filter_type
action find_reverse
entity Q6451746
relation P9
type Q502895
Bertha a sister of are King [ANSWERS]
[{'concept': 'Q502895'}, 'P9', 'Q6451746']
SELECT DISTINCT ?x WHERE { ?x property:P9 resource:Q6451746 . ?x rdf:type ontology:Q502895 }
Louis the Younger Charles the Fat Carloman of Bavaria Irmgard of Chiemsee Gisela Hildegarde
Bertha a sister of are King Charles the Fat, Carloman of Bavaria and Irmgard of Chiemsee
Charles the Fat Carloman of Bavaria Irmgard of Chiemsee
action filter_type
action find_reverse
entity Bertha
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Bertha']
SELECT DISTINCT ?x WHERE { ?x property:sister resource:Bertha . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q150712 Q157084 Q452407
P106
Q12737077
USER
Which occupations are the professions of those people ?
(Q150712,P106,c(Q12737077)) (Q157084,P106,c(Q12737077)) (Q452407,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q150712', 'P106', {'concept': 'Q12737077'}] ['Q157084', 'P106', {'concept': 'Q12737077'}] ['Q452407', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?a ) { ( resource:Q160190 ) ( resource:Q150712 ) ( resource:Q157084 ) } . ?z rdf:type ontology:Q12737077 . ?a property:P106 ?z }
Charles the Fat Carloman of Bavaria Irmgard of Chiemsee
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Charles the Fat', 'occupation', {'concept': 'occupation'}] ['Carloman of Bavaria', 'occupation', {'concept': 'occupation'}] ['Irmgard of Chiemsee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?a ) { ( resource:Louis_the_Younger ) ( resource:Charles_the_Fat ) ( resource:Carloman_of_Bavaria ) } . ?z rdf:type ontology:occupation . ?a property:occupation ?z }
[]
occupation
Q116 Q116 Q191808
SYSTEM
nun for 3rd, monarch for 1st, 2nd
Q116 Q116 Q191808
(Q150712,P106,c(Q12737077)) (Q157084,P106,c(Q12737077)) (Q452407,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
[ANSWERS]
['Q150712', 'P106', {'concept': 'Q12737077'}] ['Q157084', 'P106', {'concept': 'Q12737077'}] ['Q452407', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?a ) { ( resource:Q160190 ) ( resource:Q150712 ) ( resource:Q157084 ) } . ?z rdf:type ontology:Q12737077 . ?a property:P106 ?z }
monarch monarch nun
The professions of those people are monarch, monarch and nun
monarch monarch nun
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Charles the Fat', 'occupation', {'concept': 'occupation'}] ['Carloman of Bavaria', 'occupation', {'concept': 'occupation'}] ['Irmgard of Chiemsee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?a ) { ( resource:Louis_the_Younger ) ( resource:Charles_the_Fat ) ( resource:Carloman_of_Bavaria ) } . ?z rdf:type ontology:occupation . ?a property:occupation ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q116
P361
Q1307214
USER
Which form of government is that occupation a part of ?
(Q116,P361,c(Q1307214))
action filter_type
action find
entity Q116
relation P361
type Q1307214
['Q116', 'P361', {'concept': 'Q1307214'}]
SELECT DISTINCT ?i WHERE { resource:Q116 property:P361 ?i . ?i rdf:type ontology:Q1307214 }
monarch
action filter_type
action find
entity monarch
relation part of
type form of government
['monarch', 'part of', {'concept': 'form of government'}]
SELECT DISTINCT ?i WHERE { resource:monarch property:part_of ?i . ?i rdf:type ontology:form_of_government }
[]
form of government
Clarification for simple ques.
Q191808
SYSTEM
Did you mean nun ?
Q116 Q116 Q191808
(Q116,P361,c(Q1307214)) (Q116,P361,c(Q1307214)) (Q191808,P361,c(Q1307214))
[ANSWER]
['Q116', 'P361', {'concept': 'Q1307214'}] ['Q116', 'P361', {'concept': 'Q1307214'}] ['Q191808', 'P361', {'concept': 'Q1307214'}]
SELECT DISTINCT ?i WHERE { resource:Q116 property:P361 ?i . ?i rdf:type ontology:Q1307214 }
monarch monarch nun
Did you mean nun ?
nun
['monarch', 'part of', {'concept': 'form of government'}] ['monarch', 'part of', {'concept': 'form of government'}] ['nun', 'part of', {'concept': 'form of government'}]
SELECT DISTINCT ?i WHERE { resource:monarch property:part_of ?i . ?i rdf:type ontology:form_of_government }
[]
Simple Question (Coreferenced)
USER
No, I meant monarch. Could you tell me the answer for that?
(Q116,P361,c(Q1307214))
Q116
['Q116', 'P361', {'concept': 'Q1307214'}]
['monarch', 'part of', {'concept': 'form of government'}]
[]
Q7269
SYSTEM
monarchy
Q7269
(Q116,P361,c(Q1307214))
action filter_type
action find
entity Q116
relation P361
type Q1307214
[ANSWER] is that occupation a part of
['Q116', 'P361', {'concept': 'Q1307214'}]
SELECT DISTINCT ?i WHERE { resource:Q116 property:P361 ?i . ?i rdf:type ontology:Q1307214 }
monarchy
Monarchy is that occupation a part of
monarchy
action filter_type
action find
entity monarch
relation part of
type form of government
['monarch', 'part of', {'concept': 'form of government'}]
SELECT DISTINCT ?i WHERE { resource:monarch property:part_of ?i . ?i rdf:type ontology:form_of_government }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6451746
P22
Q502895
USER
Who was the father of Bertha ?
(Q6451746,P22,c(Q502895))
action filter_type
action find
entity Q6451746
relation P22
type Q502895
['Q6451746', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q6451746 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Bertha
action filter_type
action find
entity Bertha
relation father
type common name
['Bertha', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Bertha property:father ?u . ?u rdf:type ontology:common_name }
[]
common name
Q152463
SYSTEM
Louis the German
Q152463
(Q6451746,P22,c(Q502895))
action filter_type
action find
entity Q6451746
relation P22
type Q502895
The father of Bertha was named [ANSWER]
['Q6451746', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q6451746 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Louis the German
The father of Bertha was named Louis the German
Louis the German
action filter_type
action find
entity Bertha
relation father
type common name
['Bertha', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Bertha property:father ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q210564
Q502895
USER
And how about Michael VII Doukas?
(Q210564,P22,c(Q502895))
action filter_type
action find
entity Q210564
relation P22
type Q502895
['Q210564', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q210564 property:P22 ?k . ?k rdf:type ontology:Q502895 }
Michael VII Doukas
action filter_type
action find
entity Michael VII Doukas
relation father
type common name
['Michael VII Doukas', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Michael_VII_Doukas property:father ?k . ?k rdf:type ontology:common_name }
[]
common name
Q41660
SYSTEM
Constantine X Doukas
Q41660
(Q210564,P22,c(Q502895))
action filter_type
action find
entity Q210564
relation P22
type Q502895
[ANSWER]
['Q210564', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q210564 property:P22 ?k . ?k rdf:type ontology:Q502895 }
Constantine X Doukas
Constantine X Doukas
action filter_type
action find
entity Michael VII Doukas
relation father
type common name
['Michael VII Doukas', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Michael_VII_Doukas property:father ?k . ?k rdf:type ontology:common_name }
[]