Simple Question (Direct)
Simple Question
Q21973766
P22
Q502895
USER
Which male person was the parent of Juri Zanger ?
(Q21973766,P22,c(Q502895))
action filter_type
action find
entity Q21973766
relation P22
type Q502895
['Q21973766', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q21973766 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Juri Zanger
action filter_type
action find
entity Juri Zanger
relation father
type common name
['Juri Zanger', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Juri_Zanger property:father ?s . ?s rdf:type ontology:common_name }
[]
common name
Q15437915
SYSTEM
Georg Zanger
Q15437915
(Q21973766,P22,c(Q502895))
action filter_type
action find
entity Q21973766
relation P22
type Q502895
[ANSWER] was the parent of Juri Zanger
['Q21973766', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q21973766 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Georg Zanger
Georg Zanger was the parent of Juri Zanger
Georg Zanger
action filter_type
action find
entity Juri Zanger
relation father
type common name
['Juri Zanger', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Juri_Zanger property:father ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21973766
P1038
Q502895
USER
Which people are relatives of Juri Zanger ?
(c(Q502895),P1038,Q21973766)
action filter_type
action find
entity Q21973766
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q21973766']
SELECT DISTINCT ?v WHERE { resource:Q21973766 property:P1038 ?v . ?v rdf:type ontology:Q502895 }
Juri Zanger
action filter_type
action find
entity Juri Zanger
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Juri Zanger']
SELECT DISTINCT ?v WHERE { resource:Juri_Zanger property:relative ?v . ?v rdf:type ontology:common_name }
[]
common name
Q21948558 Q21947089 Q21936946
SYSTEM
Rafael Zanger, Sophie Zanger, Jakob Zanger
Q21948558 Q21947089 Q21936946
(c(Q502895),P1038,Q21973766)
action filter_type
action find
entity Q21973766
relation P1038
type Q502895
[ANSWERS] are relatives of Juri Zanger
[{'concept': 'Q502895'}, 'P1038', 'Q21973766']
SELECT DISTINCT ?v WHERE { resource:Q21973766 property:P1038 ?v . ?v rdf:type ontology:Q502895 }
Rafael Zanger Sophie Zanger Jakob Zanger
Rafael Zanger, Sophie Zanger and Jakob Zanger are relatives of Juri Zanger
Rafael Zanger Sophie Zanger Jakob Zanger
action filter_type
action find
entity Juri Zanger
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Juri Zanger']
SELECT DISTINCT ?v WHERE { resource:Juri_Zanger property:relative ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21973766
P25
Q502895
USER
Which female person has a child named Juri Zanger ?
(Q21973766,P25,c(Q502895))
action filter_type
action find
entity Q21973766
relation P25
type Q502895
['Q21973766', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q21973766 property:P25 ?k . ?k rdf:type ontology:Q502895 }
Juri Zanger
action filter_type
action find
entity Juri Zanger
relation mother
type common name
['Juri Zanger', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Juri_Zanger property:mother ?k . ?k rdf:type ontology:common_name }
[]
common name
Q21974495
SYSTEM
Isabella Schörghuber
Q21974495
(Q21973766,P25,c(Q502895))
action filter_type
action find
entity Q21973766
relation P25
type Q502895
[ANSWER] has a child named Juri Zanger
['Q21973766', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q21973766 property:P25 ?k . ?k rdf:type ontology:Q502895 }
Isabella Schörghuber
Isabella Schörghuber has a child named Juri Zanger
Isabella Schörghuber
action filter_type
action find
entity Juri Zanger
relation mother
type common name
['Juri Zanger', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Juri_Zanger property:mother ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q241859
Q502895
USER
And what about Richenza of Northeim?
(Q241859,P25,c(Q502895))
action filter_type
action find
entity Q241859
relation P25
type Q502895
['Q241859', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q241859 property:P25 ?w }
Richenza of Northeim
action filter_type
action find
entity Richenza of Northeim
relation mother
type common name
['Richenza of Northeim', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Richenza_of_Northeim property:mother ?w }
[]
common name
Q64329
SYSTEM
Gertrude of Brunswick
Q64329
(Q241859,P25,c(Q502895))
action filter_type
action find
entity Q241859
relation P25
type Q502895
[ANSWER]
['Q241859', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q241859 property:P25 ?w }
Gertrude of Brunswick
Gertrude of Brunswick
action filter_type
action find
entity Richenza of Northeim
relation mother
type common name
['Richenza of Northeim', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Richenza_of_Northeim property:mother ?w }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q183 Q241859
P27 P40
Q502895
USER
Which people have Richenza of Northeim as an offspring and are a native of Germany ?
AND((c(Q502895),P40,Q241859), (c(Q502895),P27,Q183))
action filter_type
action intersection
action find_reverse
entity Q241859
relation P40
action find_reverse
entity Q183
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q241859'], [{'concept': 'Q502895'}, 'P27', 'Q183']]}
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q241859 . ?j property:P27 resource:Q183 . ?j rdf:type ontology:Q502895 }
Germany Richenza of Northeim
action filter_type
action intersection
action find_reverse
entity Richenza of Northeim
relation child
action find_reverse
entity Germany
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Richenza of Northeim'], [{'concept': 'common name'}, 'country of citizenship', 'Germany']]}
SELECT DISTINCT ?j WHERE { ?j property:child resource:Richenza_of_Northeim . ?j property:country_of_citizenship resource:Germany . ?j rdf:type ontology:common_name }
[]
common name
Q71460 Q64329
SYSTEM
Henry, Margrave of Frisia, Gertrude of Brunswick
Q71460 Q64329
AND((c(Q502895),P40,Q241859), (c(Q502895),P27,Q183))
action filter_type
action intersection
action find_reverse
entity Q241859
relation P40
action find_reverse
entity Q183
relation P27
type Q502895
[ANSWERS] have Richenza of Northeim as an offspring and are a native of Germany
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q241859'], [{'concept': 'Q502895'}, 'P27', 'Q183']]}
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q241859 . ?j property:P27 resource:Q183 . ?j rdf:type ontology:Q502895 }
Henry, Margrave of Frisia Gertrude of Brunswick
Henry, Margrave of Frisia and Gertrude of Brunswick have Richenza of Northeim as an offspring and are a native of Germany
Henry, Margrave of Frisia Gertrude of Brunswick
action filter_type
action intersection
action find_reverse
entity Richenza of Northeim
relation child
action find_reverse
entity Germany
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Richenza of Northeim'], [{'concept': 'common name'}, 'country of citizenship', 'Germany']]}
SELECT DISTINCT ?j WHERE { ?j property:child resource:Richenza_of_Northeim . ?j property:country_of_citizenship resource:Germany . ?j rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5575615 Q64329
P26
Q502895
USER
Which people are the life partner of Gertrude of Brunswick or Nils Pedersson Bielke ?
OR((c(Q502895),P26,Q64329), (c(Q502895),P26,Q5575615))
action filter_type
action union
action find_reverse
entity Q64329
relation P26
action find_reverse
entity Q5575615
relation P26
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q64329'], [{'concept': 'Q502895'}, 'P26', 'Q5575615']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P26 resource:Q64329 } UNION { ?l property:P26 resource:Q5575615 } } . ?l rdf:type ontology:Q502895 }
Nils Pedersson Bielke Gertrude of Brunswick
action filter_type
action union
action find_reverse
entity Gertrude of Brunswick
relation spouse
action find_reverse
entity Nils Pedersson Bielke
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Gertrude of Brunswick'], [{'concept': 'common name'}, 'spouse', 'Nils Pedersson Bielke']]}
SELECT DISTINCT ?l WHERE { { { ?l property:spouse resource:Gertrude_of_Brunswick } UNION { ?l property:spouse resource:Nils_Pedersson_Bielke } } . ?l rdf:type ontology:common_name }
[]
common name
Q63018 Q71460 Q16595197
SYSTEM
Henry I, Margrave of the Saxon Ostmark, Henry, Margrave of Frisia, Anna Hogenskild
Q63018 Q71460 Q16595197
OR((c(Q502895),P26,Q64329), (c(Q502895),P26,Q5575615))
action filter_type
action union
action find_reverse
entity Q64329
relation P26
action find_reverse
entity Q5575615
relation P26
type Q502895
[ANSWERS] are the life partner of Gertrude of Brunswick or Nils Pedersson Bielke
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q64329'], [{'concept': 'Q502895'}, 'P26', 'Q5575615']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P26 resource:Q64329 } UNION { ?l property:P26 resource:Q5575615 } } . ?l rdf:type ontology:Q502895 }
Henry I, Margrave of the Saxon Ostmark Henry, Margrave of Frisia Anna Hogenskild
Henry I, Margrave of the Saxon Ostmark, Henry, Margrave of Frisia and Anna Hogenskild are the life partner of Gertrude of Brunswick or Nils Pedersson Bielke
Henry I, Margrave of the Saxon Ostmark Henry, Margrave of Frisia Anna Hogenskild
action filter_type
action union
action find_reverse
entity Gertrude of Brunswick
relation spouse
action find_reverse
entity Nils Pedersson Bielke
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Gertrude of Brunswick'], [{'concept': 'common name'}, 'spouse', 'Nils Pedersson Bielke']]}
SELECT DISTINCT ?l WHERE { { { ?l property:spouse resource:Gertrude_of_Brunswick } UNION { ?l property:spouse resource:Nils_Pedersson_Bielke } } . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q63018 Q71460 Q16595197
P26
Q502895
USER
Which people have those ones as spouse ?
(c(Q502895),P26,Q63018) (c(Q502895),P26,Q71460) (c(Q502895),P26,Q16595197)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q63018'] [{'concept': 'Q502895'}, 'P26', 'Q71460'] [{'concept': 'Q502895'}, 'P26', 'Q16595197']
SELECT DISTINCT ?i WHERE { VALUES ( ?u ) { ( resource:Q63018 ) ( resource:Q71460 ) ( resource:Q16595197 ) } . ?i rdf:type ontology:Q502895 . ?u property:P26 ?i }
Henry I, Margrave of the Saxon Ostmark Henry, Margrave of Frisia Anna Hogenskild
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Henry I, Margrave of the Saxon Ostmark'] [{'concept': 'common name'}, 'spouse', 'Henry, Margrave of Frisia'] [{'concept': 'common name'}, 'spouse', 'Anna Hogenskild']
SELECT DISTINCT ?i WHERE { VALUES ( ?u ) { ( resource:Henry_I,_Margrave_of_the_Saxon_Ostmark ) ( resource:Henry,_Margrave_of_Frisia ) ( resource:Anna_Hogenskild ) } . ?i rdf:type ontology:common_name . ?u property:spouse ?i }
[]
common name
Q64329 Q64329 Q5575615
SYSTEM
Nils Pedersson Bielke for 3rd, Gertrude of Brunswick for 1st, 2nd
Q64329 Q64329 Q5575615
(c(Q502895),P26,Q63018) (c(Q502895),P26,Q71460) (c(Q502895),P26,Q16595197)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q63018'] [{'concept': 'Q502895'}, 'P26', 'Q71460'] [{'concept': 'Q502895'}, 'P26', 'Q16595197']
SELECT DISTINCT ?i WHERE { VALUES ( ?u ) { ( resource:Q63018 ) ( resource:Q71460 ) ( resource:Q16595197 ) } . ?i rdf:type ontology:Q502895 . ?u property:P26 ?i }
Gertrude of Brunswick Gertrude of Brunswick Nils Pedersson Bielke
Gertrude of Brunswick, Gertrude of Brunswick and Nils Pedersson Bielke have those ones as spouse
Gertrude of Brunswick Gertrude of Brunswick Nils Pedersson Bielke
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Henry I, Margrave of the Saxon Ostmark'] [{'concept': 'common name'}, 'spouse', 'Henry, Margrave of Frisia'] [{'concept': 'common name'}, 'spouse', 'Anna Hogenskild']
SELECT DISTINCT ?i WHERE { VALUES ( ?u ) { ( resource:Henry_I,_Margrave_of_the_Saxon_Ostmark ) ( resource:Henry,_Margrave_of_Frisia ) ( resource:Anna_Hogenskild ) } . ?i rdf:type ontology:common_name . ?u property:spouse ?i }
[]
Clarification
Simple Question|Single Entity|Indirect
Q64329
P7
Q502895
USER
Who is the brother of that one ?
(Q64329,P7,c(Q502895))
action filter_type
action find
entity Q64329
relation P7
type Q502895
['Q64329', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q64329 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Gertrude of Brunswick
action filter_type
action find
entity Gertrude of Brunswick
relation brother
type common name
['Gertrude of Brunswick', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Gertrude_of_Brunswick property:brother ?k . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q64329
SYSTEM
Did you mean Gertrude of Brunswick ?
Q64329 Q64329 Q5575615
(Q64329,P7,c(Q502895)) (Q64329,P7,c(Q502895)) (Q5575615,P7,c(Q502895))
[ANSWER]
['Q64329', 'P7', {'concept': 'Q502895'}] ['Q64329', 'P7', {'concept': 'Q502895'}] ['Q5575615', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q64329 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Gertrude of Brunswick Gertrude of Brunswick Nils Pedersson Bielke
Did you mean Gertrude of Brunswick ?
Gertrude of Brunswick
['Gertrude of Brunswick', 'brother', {'concept': 'common name'}] ['Gertrude of Brunswick', 'brother', {'concept': 'common name'}] ['Nils Pedersson Bielke', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Gertrude_of_Brunswick property:brother ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q64329,P7,c(Q502895))
['Q64329', 'P7', {'concept': 'Q502895'}]
['Gertrude of Brunswick', 'brother', {'concept': 'common name'}]
[]
Q71458
SYSTEM
Egbert II, Margrave of Meissen
Q71458
(Q64329,P7,c(Q502895))
action filter_type
action find
entity Q64329
relation P7
type Q502895
The brother of that one is King [ANSWER]
['Q64329', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q64329 property:P7 ?k . ?k rdf:type ontology:Q502895 }
Egbert II, Margrave of Meissen
The brother of that one is King Egbert II, Margrave of Meissen
Egbert II, Margrave of Meissen
action filter_type
action find
entity Gertrude of Brunswick
relation brother
type common name
['Gertrude of Brunswick', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Gertrude_of_Brunswick property:brother ?k . ?k rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q71458 Q694128 Q64329
P9
Q502895
USER
Is Mieszko II the Fat and Gertrude of Brunswick a sister of Q71458 ?
(Q71458,P9,Q694128) (Q71458,P9,Q64329)
action is_in
entity Q71458
action intersection
action find_reverse
entity Q694128
relation P9
action find_reverse
entity Q64329
relation P9
['Q71458', 'P9', 'Q694128'] ['Q71458', 'P9', 'Q64329']
ASK WHERE { resource:Q71458 property:P9 resource:Q694128 . resource:Q71458 property:P9 resource:Q64329 }
Egbert II, Margrave of Meissen Mieszko II the Fat Gertrude of Brunswick
action is_in
entity Egbert II, Margrave of Meissen
action intersection
action find_reverse
entity Mieszko II the Fat
relation sister
action find_reverse
entity Gertrude of Brunswick
relation sister
['Egbert II, Margrave of Meissen', 'sister', 'Mieszko II the Fat'] ['Egbert II, Margrave of Meissen', 'sister', 'Gertrude of Brunswick']
ASK WHERE { resource:Egbert_II,_Margrave_of_Meissen property:sister resource:Mieszko_II_the_Fat . resource:Egbert_II,_Margrave_of_Meissen property:sister resource:Gertrude_of_Brunswick }
[]
common name
SYSTEM
NO and YES respectively
(Q71458,P9,Q694128) (Q71458,P9,Q64329)
action is_in
entity Q71458
action intersection
action find_reverse
entity Q694128
relation P9
action find_reverse
entity Q64329
relation P9
[ANSWER]
['Q71458', 'P9', 'Q694128'] ['Q71458', 'P9', 'Q64329']
ASK WHERE { resource:Q71458 property:P9 resource:Q694128 . resource:Q71458 property:P9 resource:Q64329 }
NO and YES respectively
action is_in
entity Egbert II, Margrave of Meissen
action intersection
action find_reverse
entity Mieszko II the Fat
relation sister
action find_reverse
entity Gertrude of Brunswick
relation sister
['Egbert II, Margrave of Meissen', 'sister', 'Mieszko II the Fat'] ['Egbert II, Margrave of Meissen', 'sister', 'Gertrude of Brunswick']
ASK WHERE { resource:Egbert_II,_Margrave_of_Meissen property:sister resource:Mieszko_II_the_Fat . resource:Egbert_II,_Margrave_of_Meissen property:sister resource:Gertrude_of_Brunswick }
[]