Simple Question (Direct)
Simple Question
Q4945888
P26
Q502895
USER
Who is the spouse of Betty Ehrenborg ?
(Q4945888,P26,c(Q502895))
action filter_type
action find
entity Q4945888
relation P26
type Q502895
['Q4945888', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q4945888 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Betty Ehrenborg
action filter_type
action find
entity Betty Ehrenborg
relation spouse
type common name
['Betty Ehrenborg', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Betty_Ehrenborg property:spouse ?u . ?u rdf:type ontology:common_name }
[]
common name
Q6054473
SYSTEM
Johan August Posse
Q6054473
(Q4945888,P26,c(Q502895))
action filter_type
action find
entity Q4945888
relation P26
type Q502895
The spouse of Betty Ehrenborg is Prince [ANSWER]
['Q4945888', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q4945888 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Johan August Posse
The spouse of Betty Ehrenborg is Prince Johan August Posse
Johan August Posse
action filter_type
action find
entity Betty Ehrenborg
relation spouse
type common name
['Betty Ehrenborg', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Betty_Ehrenborg property:spouse ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6054473
P22
Q502895
USER
Which people have that one as father ?
(c(Q502895),P22,Q6054473)
action filter_type
action find_reverse
entity Q6054473
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q6054473']
SELECT DISTINCT ?b WHERE { ?b property:P22 resource:Q6054473 . ?b rdf:type ontology:Q502895 }
Johan August Posse
action filter_type
action find_reverse
entity Johan August Posse
relation father
type common name
[{'concept': 'common name'}, 'father', 'Johan August Posse']
SELECT DISTINCT ?b WHERE { ?b property:father resource:Johan_August_Posse . ?b rdf:type ontology:common_name }
[]
common name
Q6054413 Q4973340
SYSTEM
August Posse, Hedvig Posse
Q6054413 Q4973340
(c(Q502895),P22,Q6054473)
action filter_type
action find_reverse
entity Q6054473
relation P22
type Q502895
[ANSWERS] have that one as father
[{'concept': 'Q502895'}, 'P22', 'Q6054473']
SELECT DISTINCT ?b WHERE { ?b property:P22 resource:Q6054473 . ?b rdf:type ontology:Q502895 }
August Posse Hedvig Posse
August Posse and Hedvig Posse have that one as father
August Posse Hedvig Posse
action filter_type
action find_reverse
entity Johan August Posse
relation father
type common name
[{'concept': 'common name'}, 'father', 'Johan August Posse']
SELECT DISTINCT ?b WHERE { ?b property:father resource:Johan_August_Posse . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4945888
P9
Q502895
USER
Which person had Betty Ehrenborg as sister ?
(c(Q502895),P9,Q4945888)
action filter_type
action find
entity Q4945888
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q4945888']
SELECT DISTINCT ?l WHERE { resource:Q4945888 property:P9 ?l . ?l rdf:type ontology:Q502895 }
Betty Ehrenborg
action filter_type
action find
entity Betty Ehrenborg
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Betty Ehrenborg']
SELECT DISTINCT ?l WHERE { resource:Betty_Ehrenborg property:sister ?l . ?l rdf:type ontology:common_name }
[]
common name
Q19838650
SYSTEM
Ulla Bring
Q19838650
(c(Q502895),P9,Q4945888)
action filter_type
action find
entity Q4945888
relation P9
type Q502895
[ANSWER] had Betty Ehrenborg as sister
[{'concept': 'Q502895'}, 'P9', 'Q4945888']
SELECT DISTINCT ?l WHERE { resource:Q4945888 property:P9 ?l . ?l rdf:type ontology:Q502895 }
Ulla Bring
Ulla Bring had Betty Ehrenborg as sister
Ulla Bring
action filter_type
action find
entity Betty Ehrenborg
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Betty Ehrenborg']
SELECT DISTINCT ?l WHERE { resource:Betty_Ehrenborg property:sister ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4945888
P40
Q502895
USER
Which people are children of Betty Ehrenborg ?
(Q4945888,P40,c(Q502895))
action filter_type
action find
entity Q4945888
relation P40
type Q502895
['Q4945888', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q4945888 property:P40 ?e . ?e rdf:type ontology:Q502895 }
Betty Ehrenborg
action filter_type
action find
entity Betty Ehrenborg
relation child
type common name
['Betty Ehrenborg', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Betty_Ehrenborg property:child ?e . ?e rdf:type ontology:common_name }
[]
common name
Q6054413 Q4973340
SYSTEM
August Posse, Hedvig Posse
Q6054413 Q4973340
(Q4945888,P40,c(Q502895))
action filter_type
action find
entity Q4945888
relation P40
type Q502895
[ANSWERS] are children of Betty Ehrenborg
['Q4945888', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q4945888 property:P40 ?e . ?e rdf:type ontology:Q502895 }
August Posse Hedvig Posse
August Posse and Hedvig Posse are children of Betty Ehrenborg
August Posse Hedvig Posse
action filter_type
action find
entity Betty Ehrenborg
relation child
type common name
['Betty Ehrenborg', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Betty_Ehrenborg property:child ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q302910
Q502895
USER
And what about Ngũgĩ wa Thiong'o?
(Q302910,P40,c(Q502895))
action filter_type
action find
entity Q302910
relation P40
type Q502895
['Q302910', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q302910 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Ngũgĩ wa Thiong'o
action filter_type
action find
entity Ngũgĩ wa Thiong'o
relation child
type common name
["Ngũgĩ wa Thiong'o", 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ngũgĩ_wa_Thiong'o property:child ?h . ?h rdf:type ontology:common_name }
[]
common name
Q6951143
SYSTEM
Mũkoma wa Ngũgĩ
Q6951143
(Q302910,P40,c(Q502895))
action filter_type
action find
entity Q302910
relation P40
type Q502895
[ANSWER]
['Q302910', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q302910 property:P40 ?h . ?h rdf:type ontology:Q502895 }
Mũkoma wa Ngũgĩ
Mũkoma wa Ngũgĩ
action filter_type
action find
entity Ngũgĩ wa Thiong'o
relation child
type common name
["Ngũgĩ wa Thiong'o", 'child', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Ngũgĩ_wa_Thiong'o property:child ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6951143
P50
Q2342494
USER
Which collectable has that person as its author ?
(c(Q2342494),P50,Q6951143)
action filter_type
action find_reverse
entity Q6951143
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q6951143']
SELECT DISTINCT ?x WHERE { ?x property:P50 resource:Q6951143 . ?x rdf:type ontology:Q2342494 }
Mũkoma wa Ngũgĩ
action filter_type
action find_reverse
entity Mũkoma wa Ngũgĩ
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Mũkoma wa Ngũgĩ']
SELECT DISTINCT ?x WHERE { ?x property:author resource:Mũkoma_wa_Ngũgĩ . ?x rdf:type ontology:collectable }
[]
collectable
Q17019582
SYSTEM
Black Star Nairobi
Q17019582
(c(Q2342494),P50,Q6951143)
action filter_type
action find_reverse
entity Q6951143
relation P50
type Q2342494
[ANSWER] has that person as its author
[{'concept': 'Q2342494'}, 'P50', 'Q6951143']
SELECT DISTINCT ?x WHERE { ?x property:P50 resource:Q6951143 . ?x rdf:type ontology:Q2342494 }
Black Star Nairobi
Black Star Nairobi has that person as its author
Black Star Nairobi
action filter_type
action find_reverse
entity Mũkoma wa Ngũgĩ
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Mũkoma wa Ngũgĩ']
SELECT DISTINCT ?x WHERE { ?x property:author resource:Mũkoma_wa_Ngũgĩ . ?x rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4945888
P25
Q502895
USER
Who are the offspring of Betty Ehrenborg ?
(c(Q502895),P25,Q4945888)
action filter_type
action find_reverse
entity Q4945888
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q4945888']
SELECT DISTINCT ?g WHERE { ?g property:P25 resource:Q4945888 . ?g rdf:type ontology:Q502895 }
Betty Ehrenborg
action filter_type
action find_reverse
entity Betty Ehrenborg
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Betty Ehrenborg']
SELECT DISTINCT ?g WHERE { ?g property:mother resource:Betty_Ehrenborg . ?g rdf:type ontology:common_name }
[]
common name
Q6054413 Q4973340
SYSTEM
August Posse, Hedvig Posse
Q6054413 Q4973340
(c(Q502895),P25,Q4945888)
action filter_type
action find_reverse
entity Q4945888
relation P25
type Q502895
The offspring of Betty Ehrenborg are Prince [ANSWERS]
[{'concept': 'Q502895'}, 'P25', 'Q4945888']
SELECT DISTINCT ?g WHERE { ?g property:P25 resource:Q4945888 . ?g rdf:type ontology:Q502895 }
August Posse Hedvig Posse
The offspring of Betty Ehrenborg are Prince August Posse and Hedvig Posse
August Posse Hedvig Posse
action filter_type
action find_reverse
entity Betty Ehrenborg
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Betty Ehrenborg']
SELECT DISTINCT ?g WHERE { ?g property:mother resource:Betty_Ehrenborg . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q6054413 Q4973340
P40
Q502895
USER
Who have those ones as an offspring ?
(c(Q502895),P40,Q6054413) (c(Q502895),P40,Q4973340)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q6054413'] [{'concept': 'Q502895'}, 'P40', 'Q4973340']
SELECT DISTINCT ?n WHERE { ?n property:P40 ?a . ?n rdf:type ontology:Q502895 . VALUES ( ?a ) { ( resource:Q6054413 ) ( resource:Q4973340 ) } }
August Posse Hedvig Posse
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'August Posse'] [{'concept': 'common name'}, 'child', 'Hedvig Posse']
SELECT DISTINCT ?n WHERE { ?n property:child ?a . ?n rdf:type ontology:common_name . VALUES ( ?a ) { ( resource:August_Posse ) ( resource:Hedvig_Posse ) } }
[]
common name
Q4945888 Q4945888 Q6054473
SYSTEM
Johan August Posse for 3rd, Betty Ehrenborg for 1st, 2nd
Q4945888 Q6054473 Q4945888 Q6054473
(c(Q502895),P40,Q6054413) (c(Q502895),P40,Q4973340)
action filter_type
action find_reverse
entity prev_answer
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q6054413'] [{'concept': 'Q502895'}, 'P40', 'Q4973340']
SELECT DISTINCT ?n WHERE { ?n property:P40 ?a . ?n rdf:type ontology:Q502895 . VALUES ( ?a ) { ( resource:Q6054413 ) ( resource:Q4973340 ) } }
Betty Ehrenborg Johan August Posse Betty Ehrenborg Johan August Posse
Betty Ehrenborg, Betty Ehrenborg and Johan August Posse have those ones as an offspring
Betty Ehrenborg Betty Ehrenborg Johan August Posse
action filter_type
action find_reverse
entity prev_answer
relation child
type common name
[{'concept': 'common name'}, 'child', 'August Posse'] [{'concept': 'common name'}, 'child', 'Hedvig Posse']
SELECT DISTINCT ?n WHERE { ?n property:child ?a . ?n rdf:type ontology:common_name . VALUES ( ?a ) { ( resource:August_Posse ) ( resource:Hedvig_Posse ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6054473
P21
Q290
USER
Which sex does that person have ?
(Q6054473,P21,c(Q290))
action filter_type
action find
entity Q6054473
relation P21
type Q290
['Q6054473', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q6054473 property:P21 ?j }
Johan August Posse
action filter_type
action find
entity Johan August Posse
relation gender
type sex
['Johan August Posse', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Johan_August_Posse property:gender ?j }
[]
sex
Clarification for simple ques.
Q4945888
SYSTEM
Did you mean Betty Ehrenborg ?
Q4945888 Q4945888 Q6054473
(Q4945888,P21,c(Q290)) (Q4945888,P21,c(Q290)) (Q6054473,P21,c(Q290))
[ANSWER]
['Q4945888', 'P21', {'concept': 'Q290'}] ['Q4945888', 'P21', {'concept': 'Q290'}] ['Q6054473', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q6054473 property:P21 ?j }
Betty Ehrenborg Betty Ehrenborg Johan August Posse
Did you mean Betty Ehrenborg ?
Betty Ehrenborg
['Betty Ehrenborg', 'gender', {'concept': 'sex'}] ['Betty Ehrenborg', 'gender', {'concept': 'sex'}] ['Johan August Posse', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Johan_August_Posse property:gender ?j }
[]
Simple Question (Coreferenced)
USER
No, I meant Johan August Posse. Could you tell me the answer for that?
(Q6054473,P21,c(Q290))
Q6054473
['Q6054473', 'P21', {'concept': 'Q290'}]
['Johan August Posse', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q6054473,P21,c(Q290))
action filter_type
action find
entity Q6054473
relation P21
type Q290
That person has a [ANSWER]
['Q6054473', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q6054473 property:P21 ?j }
male
That person has a male
male
action filter_type
action find
entity Johan August Posse
relation gender
type sex
['Johan August Posse', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Johan_August_Posse property:gender ?j }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1343843 Q6951143
P27
Q15617994
USER
Which administrative territories are Mũkoma wa Ngũgĩ or Håvard Solbakken an inhabitant of ?
OR((Q6951143,P27,c(Q15617994)), (Q1343843,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6951143
relation P27
action find
entity Q1343843
relation P27
type Q15617994
{'OR': [['Q6951143', 'P27', {'concept': 'Q15617994'}], ['Q1343843', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { VALUES ( ?p ) { ( resource:Q6951143 ) ( resource:Q1343843 ) } . ?p property:P27 ?h } }
Håvard Solbakken Mũkoma wa Ngũgĩ
action filter_type
action union
action find
entity Mũkoma wa Ngũgĩ
relation country of citizenship
action find
entity Håvard Solbakken
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mũkoma wa Ngũgĩ', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Håvard Solbakken', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?p ) { ( resource:Mũkoma_wa_Ngũgĩ ) ( resource:Håvard_Solbakken ) } . ?p property:country_of_citizenship ?h } }
[]
designation for an administrative territorial entity
Q20 Q114
SYSTEM
Norway, Kenya
Q20 Q114
OR((Q6951143,P27,c(Q15617994)), (Q1343843,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6951143
relation P27
action find
entity Q1343843
relation P27
type Q15617994
[ANSWERS] are Mũkoma wa Ngũgĩ or Håvard Solbakken an inhabitant of
{'OR': [['Q6951143', 'P27', {'concept': 'Q15617994'}], ['Q1343843', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { VALUES ( ?p ) { ( resource:Q6951143 ) ( resource:Q1343843 ) } . ?p property:P27 ?h } }
Norway Kenya
Norway and Kenya are Mũkoma wa Ngũgĩ or Håvard Solbakken an inhabitant of
Norway Kenya
action filter_type
action union
action find
entity Mũkoma wa Ngũgĩ
relation country of citizenship
action find
entity Håvard Solbakken
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mũkoma wa Ngũgĩ', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Håvard Solbakken', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?p ) { ( resource:Mũkoma_wa_Ngũgĩ ) ( resource:Håvard_Solbakken ) } . ?p property:country_of_citizenship ?h } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have ambassadorial relations with those administrative territories ?
(Q183,P530,Q20) (Q183,P530,Q114)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q20'] ['Q183', 'P530', 'Q114']
ASK WHERE { VALUES ( ?m ) { ( resource:Q20 ) ( resource:Q114 ) } . resource:Q183 property:P530 ?m }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Norway'] ['Germany', 'diplomatic relation', 'Kenya']
ASK WHERE { VALUES ( ?m ) { ( resource:Norway ) ( resource:Kenya ) } . resource:Germany property:diplomatic_relation ?m }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q20) (Q183,P530,Q114)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q20'] ['Q183', 'P530', 'Q114']
ASK WHERE { VALUES ( ?m ) { ( resource:Q20 ) ( resource:Q114 ) } . resource:Q183 property:P530 ?m }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Norway'] ['Germany', 'diplomatic relation', 'Kenya']
ASK WHERE { VALUES ( ?m ) { ( resource:Norway ) ( resource:Kenya ) } . resource:Germany property:diplomatic_relation ?m }
[]