Simple Question (Direct)
Simple Question
Q313426
P21
Q290
USER
Which sex does Ferdinand II, Archduke of Austria have ?
(Q313426,P21,c(Q290))
action filter_type
action find
entity Q313426
relation P21
type Q290
['Q313426', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q313426 property:P21 ?w . ?w rdf:type ontology:Q290 }
Ferdinand II, Archduke of Austria
action filter_type
action find
entity Ferdinand II, Archduke of Austria
relation gender
type sex
['Ferdinand II, Archduke of Austria', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Ferdinand_II,_Archduke_of_Austria property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q313426,P21,c(Q290))
action filter_type
action find
entity Q313426
relation P21
type Q290
Ferdinand II , Archduke of Austria has a [ANSWER]
['Q313426', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q313426 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
Ferdinand II , Archduke of Austria has a male
male
action filter_type
action find
entity Ferdinand II, Archduke of Austria
relation gender
type sex
['Ferdinand II, Archduke of Austria', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Ferdinand_II,_Archduke_of_Austria property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q313426
P22
Q502895
USER
Who are the offspring of Ferdinand II, Archduke of Austria ?
(c(Q502895),P22,Q313426)
action filter_type
action find_reverse
entity Q313426
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q313426']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q313426 }
Ferdinand II, Archduke of Austria
action filter_type
action find_reverse
entity Ferdinand II, Archduke of Austria
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ferdinand II, Archduke of Austria']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Ferdinand_II,_Archduke_of_Austria }
[]
common name
Q501498 Q235540 Q440350
SYSTEM
Margrave Andrew of Burgau, Anna of Tyrol, Charles, Margrave of Burgau
Q501498 Q235540 Q440350 Q4785862
(c(Q502895),P22,Q313426)
action filter_type
action find_reverse
entity Q313426
relation P22
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q313426']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q313426 }
Margrave Andrew of Burgau Anna of Tyrol Charles, Margrave of Burgau Archduchess Maria of Austria
The offspring of Ferdinand II , Archduke of Austria are the Margrave Andrew of Burgau, Anna of Tyrol and Charles, Margrave of Burgau
Margrave Andrew of Burgau Anna of Tyrol Charles, Margrave of Burgau
action filter_type
action find_reverse
entity Ferdinand II, Archduke of Austria
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ferdinand II, Archduke of Austria']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Ferdinand_II,_Archduke_of_Austria }
[]
Clarification
Simple Question|Single Entity|Indirect
Q440350
P7
Q502895
USER
Who are siblings of that one ?
(c(Q502895),P7,Q440350)
action filter_type
action find_reverse
entity Q440350
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q440350']
SELECT DISTINCT ?s WHERE { ?s property:P7 resource:Q440350 . ?s rdf:type ontology:Q502895 }
Charles, Margrave of Burgau
action filter_type
action find_reverse
entity Charles, Margrave of Burgau
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Charles, Margrave of Burgau']
SELECT DISTINCT ?s WHERE { ?s property:brother resource:Charles,_Margrave_of_Burgau . ?s rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q440350
SYSTEM
Did you mean Charles, Margrave of Burgau ?
Q501498 Q235540 Q440350
(c(Q502895),P7,Q501498) (c(Q502895),P7,Q235540) (c(Q502895),P7,Q440350)
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q501498'] [{'concept': 'Q502895'}, 'P7', 'Q235540'] [{'concept': 'Q502895'}, 'P7', 'Q440350']
SELECT DISTINCT ?s WHERE { ?s property:P7 resource:Q440350 . ?s rdf:type ontology:Q502895 }
Margrave Andrew of Burgau Anna of Tyrol Charles, Margrave of Burgau
Did you mean Charles, Margrave of Burgau ?
Charles, Margrave of Burgau
[{'concept': 'common name'}, 'brother', 'Margrave Andrew of Burgau'] [{'concept': 'common name'}, 'brother', 'Anna of Tyrol'] [{'concept': 'common name'}, 'brother', 'Charles, Margrave of Burgau']
SELECT DISTINCT ?s WHERE { ?s property:brother resource:Charles,_Margrave_of_Burgau . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P7,Q440350)
[{'concept': 'Q502895'}, 'P7', 'Q440350']
[{'concept': 'common name'}, 'brother', 'Charles, Margrave of Burgau']
[]
Q501498 Q4785862 Q235540
SYSTEM
Margrave Andrew of Burgau, Archduchess Maria of Austria, Anna of Tyrol
Q501498 Q235540 Q4785862
(c(Q502895),P7,Q440350)
action filter_type
action find_reverse
entity Q440350
relation P7
type Q502895
Siblings of that one are the [ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q440350']
SELECT DISTINCT ?s WHERE { ?s property:P7 resource:Q440350 . ?s rdf:type ontology:Q502895 }
Margrave Andrew of Burgau Anna of Tyrol Archduchess Maria of Austria
Siblings of that one are the Margrave Andrew of Burgau, Archduchess Maria of Austria and Anna of Tyrol
Margrave Andrew of Burgau Archduchess Maria of Austria Anna of Tyrol
action filter_type
action find_reverse
entity Charles, Margrave of Burgau
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Charles, Margrave of Burgau']
SELECT DISTINCT ?s WHERE { ?s property:brother resource:Charles,_Margrave_of_Burgau . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q235540
P9
Q502895
USER
Who is Anna of Tyrol a sibling of ?
(Q235540,P9,c(Q502895))
action filter_type
action find
entity Q235540
relation P9
type Q502895
['Q235540', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q235540 property:P9 ?w . ?w rdf:type ontology:Q502895 }
Anna of Tyrol
action filter_type
action find
entity Anna of Tyrol
relation sister
type common name
['Anna of Tyrol', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Anna_of_Tyrol property:sister ?w . ?w rdf:type ontology:common_name }
[]
common name
Q4785862
SYSTEM
Archduchess Maria of Austria
Q4785862
(Q235540,P9,c(Q502895))
action filter_type
action find
entity Q235540
relation P9
type Q502895
Is Anna of Tyrol a sibling of the [ANSWER]
['Q235540', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q235540 property:P9 ?w . ?w rdf:type ontology:Q502895 }
Archduchess Maria of Austria
Is Anna of Tyrol a sibling of the Archduchess Maria of Austria
Archduchess Maria of Austria
action filter_type
action find
entity Anna of Tyrol
relation sister
type common name
['Anna of Tyrol', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Anna_of_Tyrol property:sister ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15916215
Q502895
USER
And also tell me about Zhao Hao?
(Q15916215,P9,c(Q502895))
action filter_type
action find
entity Q15916215
relation P9
type Q502895
['Q15916215', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q15916215 property:P9 ?b . ?b rdf:type ontology:Q502895 }
Zhao Hao
action filter_type
action find
entity Zhao Hao
relation sister
type common name
['Zhao Hao', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Zhao_Hao property:sister ?b . ?b rdf:type ontology:common_name }
[]
common name
Q16603752 Q10949351 Q16603723
SYSTEM
Princess Weiguo Chugo Dazhang, Princess Baoan, Princess Hanguo Weiguo Dazhang
Q16603752 Q10949351 Q16603723 Q16603585
(Q15916215,P9,c(Q502895))
action filter_type
action find
entity Q15916215
relation P9
type Q502895
[ANSWERS]
['Q15916215', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q15916215 property:P9 ?b . ?b rdf:type ontology:Q502895 }
Princess Weiguo Chugo Dazhang Princess Baoan Princess Hanguo Weiguo Dazhang Princess Shuguo
Princess Weiguo Chugo Dazhang Princess Baoan Princess Hanguo Weiguo Dazhang
action filter_type
action find
entity Zhao Hao
relation sister
type common name
['Zhao Hao', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Zhao_Hao property:sister ?b . ?b rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15916215
P9
Q502895
USER
Did Zhao Hao have those ones as sister ?
(Q15916215,P9,Q16603752) (Q15916215,P9,Q10949351) (Q15916215,P9,Q16603723)
action is_in
entity prev_answer
action find
entity Q15916215
relation P9
['Q15916215', 'P9', 'Q16603752'] ['Q15916215', 'P9', 'Q10949351'] ['Q15916215', 'P9', 'Q16603723']
ASK WHERE { resource:Q15916215 property:P9 ?u . VALUES ( ?u ) { ( resource:Q16603752 ) ( resource:Q10949351 ) ( resource:Q16603723 ) } }
Zhao Hao
action is_in
entity prev_answer
action find
entity Zhao Hao
relation sister
['Zhao Hao', 'sister', 'Princess Weiguo Chugo Dazhang'] ['Zhao Hao', 'sister', 'Princess Baoan'] ['Zhao Hao', 'sister', 'Princess Hanguo Weiguo Dazhang']
ASK WHERE { resource:Zhao_Hao property:sister ?u . VALUES ( ?u ) { ( resource:Princess_Weiguo_Chugo_Dazhang ) ( resource:Princess_Baoan ) ( resource:Princess_Hanguo_Weiguo_Dazhang ) } }
[]
common name
SYSTEM
YES
(Q15916215,P9,Q16603752) (Q15916215,P9,Q10949351) (Q15916215,P9,Q16603723)
action is_in
entity prev_answer
action find
entity Q15916215
relation P9
[ANSWER]
['Q15916215', 'P9', 'Q16603752'] ['Q15916215', 'P9', 'Q10949351'] ['Q15916215', 'P9', 'Q16603723']
ASK WHERE { resource:Q15916215 property:P9 ?u . VALUES ( ?u ) { ( resource:Q16603752 ) ( resource:Q10949351 ) ( resource:Q16603723 ) } }
Yes
action is_in
entity prev_answer
action find
entity Zhao Hao
relation sister
['Zhao Hao', 'sister', 'Princess Weiguo Chugo Dazhang'] ['Zhao Hao', 'sister', 'Princess Baoan'] ['Zhao Hao', 'sister', 'Princess Hanguo Weiguo Dazhang']
ASK WHERE { resource:Zhao_Hao property:sister ?u . VALUES ( ?u ) { ( resource:Princess_Weiguo_Chugo_Dazhang ) ( resource:Princess_Baoan ) ( resource:Princess_Hanguo_Weiguo_Dazhang ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1285898 Q4785862
P40
Q502895
USER
Which people have Archduchess Maria of Austria or Edmund, Earl of Rutland as an offspring ?
OR((c(Q502895),P40,Q4785862), (c(Q502895),P40,Q1285898))
action filter_type
action union
action find_reverse
entity Q4785862
relation P40
action find_reverse
entity Q1285898
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q4785862'], [{'concept': 'Q502895'}, 'P40', 'Q1285898']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P40 resource:Q4785862 } UNION { ?i property:P40 resource:Q1285898 } } . ?i rdf:type ontology:Q502895 }
Edmund, Earl of Rutland Archduchess Maria of Austria
action filter_type
action union
action find_reverse
entity Archduchess Maria of Austria
relation child
action find_reverse
entity Edmund, Earl of Rutland
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Archduchess Maria of Austria'], [{'concept': 'common name'}, 'child', 'Edmund, Earl of Rutland']]}
SELECT DISTINCT ?i WHERE { { { ?i property:child resource:Archduchess_Maria_of_Austria } UNION { ?i property:child resource:Edmund,_Earl_of_Rutland } } . ?i rdf:type ontology:common_name }
[]
common name
Q313426 Q509449 Q238004 Q312137
SYSTEM
Ferdinand II, Archduke of Austria, Anna Juliana Gonzaga, Cecily Neville, Duchess of York, Richard of York, 3rd Duke of York
Q313426 Q509449 Q238004 Q312137
OR((c(Q502895),P40,Q4785862), (c(Q502895),P40,Q1285898))
action filter_type
action union
action find_reverse
entity Q4785862
relation P40
action find_reverse
entity Q1285898
relation P40
type Q502895
[ANSWERS]
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q4785862'], [{'concept': 'Q502895'}, 'P40', 'Q1285898']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P40 resource:Q4785862 } UNION { ?i property:P40 resource:Q1285898 } } . ?i rdf:type ontology:Q502895 }
Ferdinand II, Archduke of Austria Anna Juliana Gonzaga Cecily Neville, Duchess of York Richard of York, 3rd Duke of York
Ferdinand II, Archduke of Austria, Anna Juliana Gonzaga, Cecily Neville, Duchess of York and Richard of York, 3rd Duke of York have Archduchess Maria of Austria or Edmund, Earl of Rutland as an offspring
Ferdinand II, Archduke of Austria Anna Juliana Gonzaga Cecily Neville, Duchess of York Richard of York, 3rd Duke of York
action filter_type
action union
action find_reverse
entity Archduchess Maria of Austria
relation child
action find_reverse
entity Edmund, Earl of Rutland
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Archduchess Maria of Austria'], [{'concept': 'common name'}, 'child', 'Edmund, Earl of Rutland']]}
SELECT DISTINCT ?i WHERE { { { ?i property:child resource:Archduchess_Maria_of_Austria } UNION { ?i property:child resource:Edmund,_Earl_of_Rutland } } . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q313426 Q509449 Q238004 Q312137
P25
Q502895
USER
Who were the mom of those ones ?
(Q313426,P25,c(Q502895)) (Q509449,P25,c(Q502895)) (Q238004,P25,c(Q502895)) (Q312137,P25,c(Q502895))
action filter_type
action find
entity prev_answer
relation P25
type Q502895
['Q313426', 'P25', {'concept': 'Q502895'}] ['Q509449', 'P25', {'concept': 'Q502895'}] ['Q238004', 'P25', {'concept': 'Q502895'}] ['Q312137', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?b property:P25 ?j . ?j rdf:type ontology:Q502895 . VALUES ( ?b ) { ( resource:Q313426 ) ( resource:Q509449 ) ( resource:Q238004 ) } }
Ferdinand II, Archduke of Austria Anna Juliana Gonzaga Cecily Neville, Duchess of York Richard of York, 3rd Duke of York
action filter_type
action find
entity prev_answer
relation mother
type common name
['Ferdinand II, Archduke of Austria', 'mother', {'concept': 'common name'}] ['Anna Juliana Gonzaga', 'mother', {'concept': 'common name'}] ['Cecily Neville, Duchess of York', 'mother', {'concept': 'common name'}] ['Richard of York, 3rd Duke of York', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?b property:mother ?j . ?j rdf:type ontology:common_name . VALUES ( ?b ) { ( resource:Ferdinand_II,_Archduke_of_Austria ) ( resource:Anna_Juliana_Gonzaga ) ( resource:Cecily_Neville,_Duchess_of_York ) } }
[]
common name
Q233335 Q535583 Q269302
SYSTEM
Anne of Bohemia and Hungary, Joan Beaufort, Countess of Westmorland, Archduchess Eleanor of Austria
Q233335 Q269302 Q535583 Q256983
(Q313426,P25,c(Q502895)) (Q509449,P25,c(Q502895)) (Q238004,P25,c(Q502895)) (Q312137,P25,c(Q502895))
action filter_type
action find
entity prev_answer
relation P25
type Q502895
The mom of those ones were Queen [ANSWERS]
['Q313426', 'P25', {'concept': 'Q502895'}] ['Q509449', 'P25', {'concept': 'Q502895'}] ['Q238004', 'P25', {'concept': 'Q502895'}] ['Q312137', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?b property:P25 ?j . ?j rdf:type ontology:Q502895 . VALUES ( ?b ) { ( resource:Q313426 ) ( resource:Q509449 ) ( resource:Q238004 ) } }
Anne of Bohemia and Hungary Archduchess Eleanor of Austria Joan Beaufort, Countess of Westmorland Anne de Mortimer
The mom of those ones were Queen Anne of Bohemia and Hungary, Joan Beaufort, Countess of Westmorland and Archduchess Eleanor of Austria
Anne of Bohemia and Hungary Joan Beaufort, Countess of Westmorland Archduchess Eleanor of Austria
action filter_type
action find
entity prev_answer
relation mother
type common name
['Ferdinand II, Archduke of Austria', 'mother', {'concept': 'common name'}] ['Anna Juliana Gonzaga', 'mother', {'concept': 'common name'}] ['Cecily Neville, Duchess of York', 'mother', {'concept': 'common name'}] ['Richard of York, 3rd Duke of York', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?b property:mother ?j . ?j rdf:type ontology:common_name . VALUES ( ?b ) { ( resource:Ferdinand_II,_Archduke_of_Austria ) ( resource:Anna_Juliana_Gonzaga ) ( resource:Cecily_Neville,_Duchess_of_York ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q233335
P1038
Q502895
USER
Who are related to that one ?
(c(Q502895),P1038,Q233335)
action filter_type
action find_reverse
entity Q233335
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q233335']
SELECT DISTINCT ?y WHERE { ?y property:P1038 resource:Q233335 . ?y rdf:type ontology:Q502895 }
Anne of Bohemia and Hungary
action filter_type
action find_reverse
entity Anne of Bohemia and Hungary
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Anne of Bohemia and Hungary']
SELECT DISTINCT ?y WHERE { ?y property:relative resource:Anne_of_Bohemia_and_Hungary . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q233335
SYSTEM
Did you mean Anne of Bohemia and Hungary ?
Q233335 Q535583 Q269302
(c(Q502895),P1038,Q233335) (c(Q502895),P1038,Q535583) (c(Q502895),P1038,Q269302)
[ANSWER]
[{'concept': 'Q502895'}, 'P1038', 'Q233335'] [{'concept': 'Q502895'}, 'P1038', 'Q535583'] [{'concept': 'Q502895'}, 'P1038', 'Q269302']
SELECT DISTINCT ?y WHERE { ?y property:P1038 resource:Q233335 . ?y rdf:type ontology:Q502895 }
Anne of Bohemia and Hungary Joan Beaufort, Countess of Westmorland Archduchess Eleanor of Austria
Did you mean Anne of Bohemia and Hungary ?
Anne of Bohemia and Hungary
[{'concept': 'common name'}, 'relative', 'Anne of Bohemia and Hungary'] [{'concept': 'common name'}, 'relative', 'Joan Beaufort, Countess of Westmorland'] [{'concept': 'common name'}, 'relative', 'Archduchess Eleanor of Austria']
SELECT DISTINCT ?y WHERE { ?y property:relative resource:Anne_of_Bohemia_and_Hungary . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P1038,Q233335)
[{'concept': 'Q502895'}, 'P1038', 'Q233335']
[{'concept': 'common name'}, 'relative', 'Anne of Bohemia and Hungary']
[]
Q157077 Q32500
SYSTEM
Mary of Hungary, Charles V
Q157077 Q32500
(c(Q502895),P1038,Q233335)
action filter_type
action find_reverse
entity Q233335
relation P1038
type Q502895
[ANSWERS] are related to that one
[{'concept': 'Q502895'}, 'P1038', 'Q233335']
SELECT DISTINCT ?y WHERE { ?y property:P1038 resource:Q233335 . ?y rdf:type ontology:Q502895 }
Mary of Hungary Charles V
Mary of Hungary and Charles V are related to that one
Mary of Hungary Charles V
action filter_type
action find_reverse
entity Anne of Bohemia and Hungary
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Anne of Bohemia and Hungary']
SELECT DISTINCT ?y WHERE { ?y property:relative resource:Anne_of_Bohemia_and_Hungary . ?y rdf:type ontology:common_name }
[]