Simple Question (Direct)
Simple Question
Q57829
P20
Q515
USER
Which city is the place of death of Johann Christoph Bach I ?
(Q57829,P20,c(Q515))
action filter_type
action find
entity Q57829
relation P20
type Q515
['Q57829', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q57829 property:P20 ?w }
Johann Christoph Bach I
action filter_type
action find
entity Johann Christoph Bach I
relation place of death
type city
['Johann Christoph Bach I', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Johann_Christoph_Bach_I property:place_of_death ?w }
[]
city
Q7070
SYSTEM
Eisenach
Q7070
(Q57829,P20,c(Q515))
action filter_type
action find
entity Q57829
relation P20
type Q515
[ANSWER] is the place of death of Johann Christoph Bach I
['Q57829', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q57829 property:P20 ?w }
Eisenach
Eisenach is the place of death of Johann Christoph Bach I
Eisenach
action filter_type
action find
entity Johann Christoph Bach I
relation place of death
type city
['Johann Christoph Bach I', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Johann_Christoph_Bach_I property:place_of_death ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q57829
P40
Q502895
USER
Who has Johann Christoph Bach I as a child ?
(c(Q502895),P40,Q57829)
action filter_type
action find_reverse
entity Q57829
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q57829']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q57829 . ?w rdf:type ontology:Q502895 }
Johann Christoph Bach I
action filter_type
action find_reverse
entity Johann Christoph Bach I
relation child
type common name
[{'concept': 'common name'}, 'child', 'Johann Christoph Bach I']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Johann_Christoph_Bach_I . ?w rdf:type ontology:common_name }
[]
common name
Q61587
SYSTEM
Heinrich Bach
Q61587
(c(Q502895),P40,Q57829)
action filter_type
action find_reverse
entity Q57829
relation P40
type Q502895
[ANSWER] has Johann Christoph Bach I as a child
[{'concept': 'Q502895'}, 'P40', 'Q57829']
SELECT DISTINCT ?w WHERE { ?w property:P40 resource:Q57829 . ?w rdf:type ontology:Q502895 }
Heinrich Bach
Heinrich Bach has Johann Christoph Bach I as a child
Heinrich Bach
action filter_type
action find_reverse
entity Johann Christoph Bach I
relation child
type common name
[{'concept': 'common name'}, 'child', 'Johann Christoph Bach I']
SELECT DISTINCT ?w WHERE { ?w property:child resource:Johann_Christoph_Bach_I . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61587
P22
Q502895
USER
Who have that one as a father ?
(c(Q502895),P22,Q61587)
action filter_type
action find_reverse
entity Q61587
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q61587']
SELECT DISTINCT ?c WHERE { ?c property:P22 resource:Q61587 . ?c rdf:type ontology:Q502895 }
Heinrich Bach
action filter_type
action find_reverse
entity Heinrich Bach
relation father
type common name
[{'concept': 'common name'}, 'father', 'Heinrich Bach']
SELECT DISTINCT ?c WHERE { ?c property:father resource:Heinrich_Bach . ?c rdf:type ontology:common_name }
[]
common name
Q57829 Q505257
SYSTEM
Johann Christoph Bach I, Johann Michael Bach I
Q57829 Q505257
(c(Q502895),P22,Q61587)
action filter_type
action find_reverse
entity Q61587
relation P22
type Q502895
[ANSWERS] have that one as a father
[{'concept': 'Q502895'}, 'P22', 'Q61587']
SELECT DISTINCT ?c WHERE { ?c property:P22 resource:Q61587 . ?c rdf:type ontology:Q502895 }
Johann Christoph Bach I Johann Michael Bach I
Johann Christoph Bach I and Johann Michael Bach I have that one as a father
Johann Christoph Bach I Johann Michael Bach I
action filter_type
action find_reverse
entity Heinrich Bach
relation father
type common name
[{'concept': 'common name'}, 'father', 'Heinrich Bach']
SELECT DISTINCT ?c WHERE { ?c property:father resource:Heinrich_Bach . ?c rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q61587
P21 P22
Q502895
USER
Which people have Heinrich Bach as a father and have the gender as male ?
AND((c(Q502895),P22,Q61587), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q61587
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q61587'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q61587 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male Heinrich Bach
action filter_type
action intersection
action find_reverse
entity Heinrich Bach
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Heinrich Bach'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:father resource:Heinrich_Bach . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q57829 Q505257
SYSTEM
Johann Christoph Bach I, Johann Michael Bach I
Q57829 Q505257
AND((c(Q502895),P22,Q61587), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q61587
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Heinrich Bach as a father and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q61587'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q61587 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
Johann Christoph Bach I Johann Michael Bach I
Johann Christoph Bach I and Johann Michael Bach I have Heinrich Bach as a father and have the gender as male
Johann Christoph Bach I Johann Michael Bach I
action filter_type
action intersection
action find_reverse
entity Heinrich Bach
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Heinrich Bach'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:father resource:Heinrich_Bach . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q61587
P40
Q502895
USER
Do Heinrich Bach have those ones as a child ?
(Q61587,P40,Q57829) (Q61587,P40,Q505257)
action is_in
entity prev_answer
action find
entity Q61587
relation P40
['Q61587', 'P40', 'Q57829'] ['Q61587', 'P40', 'Q505257']
ASK WHERE { resource:Q61587 property:P40 ?g . VALUES ( ?g ) { ( resource:Q57829 ) ( resource:Q505257 ) } }
Heinrich Bach
action is_in
entity prev_answer
action find
entity Heinrich Bach
relation child
['Heinrich Bach', 'child', 'Johann Christoph Bach I'] ['Heinrich Bach', 'child', 'Johann Michael Bach I']
ASK WHERE { resource:Heinrich_Bach property:child ?g . VALUES ( ?g ) { ( resource:Johann_Christoph_Bach_I ) ( resource:Johann_Michael_Bach_I ) } }
[]
common name
SYSTEM
YES
(Q61587,P40,Q57829) (Q61587,P40,Q505257)
action is_in
entity prev_answer
action find
entity Q61587
relation P40
[ANSWER]
['Q61587', 'P40', 'Q57829'] ['Q61587', 'P40', 'Q505257']
ASK WHERE { resource:Q61587 property:P40 ?g . VALUES ( ?g ) { ( resource:Q57829 ) ( resource:Q505257 ) } }
Yes
action is_in
entity prev_answer
action find
entity Heinrich Bach
relation child
['Heinrich Bach', 'child', 'Johann Christoph Bach I'] ['Heinrich Bach', 'child', 'Johann Michael Bach I']
ASK WHERE { resource:Heinrich_Bach property:child ?g . VALUES ( ?g ) { ( resource:Johann_Christoph_Bach_I ) ( resource:Johann_Michael_Bach_I ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q505257 Q57487
P40
Q502895
USER
Is Maria Barbara Bach a child of Johann Michael Bach I ?
(Q505257,P40,Q57487)
action is_in
entity Q57487
action find
entity Q505257
relation P40
['Q505257', 'P40', 'Q57487']
ASK WHERE { resource:Q505257 property:P40 resource:Q57487 }
Johann Michael Bach I Maria Barbara Bach
action is_in
entity Maria Barbara Bach
action find
entity Johann Michael Bach I
relation child
['Johann Michael Bach I', 'child', 'Maria Barbara Bach']
ASK WHERE { resource:Johann_Michael_Bach_I property:child resource:Maria_Barbara_Bach }
[]
common name
SYSTEM
YES
(Q505257,P40,Q57487)
action is_in
entity Q57487
action find
entity Q505257
relation P40
[ANSWER]
['Q505257', 'P40', 'Q57487']
ASK WHERE { resource:Q505257 property:P40 resource:Q57487 }
Yes
action is_in
entity Maria Barbara Bach
action find
entity Johann Michael Bach I
relation child
['Johann Michael Bach I', 'child', 'Maria Barbara Bach']
ASK WHERE { resource:Johann_Michael_Bach_I property:child resource:Maria_Barbara_Bach }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q57829 Q765778 Q26693666
P106
Q12737077
USER
Does Johann Christoph Bach I have the profession as organist and mayor of Carrascal del Obispo ?
(Q57829,P106,Q765778) (Q57829,P106,Q26693666)
action is_in
entity Q57829
action intersection
action find_reverse
entity Q765778
relation P106
action find_reverse
entity Q26693666
relation P106
['Q57829', 'P106', 'Q765778'] ['Q57829', 'P106', 'Q26693666']
ASK WHERE { resource:Q57829 property:P106 resource:Q26693666 . resource:Q57829 property:P106 resource:Q765778 }
Johann Christoph Bach I organist mayor of Carrascal del Obispo
action is_in
entity Johann Christoph Bach I
action intersection
action find_reverse
entity organist
relation occupation
action find_reverse
entity mayor of Carrascal del Obispo
relation occupation
['Johann Christoph Bach I', 'occupation', 'organist'] ['Johann Christoph Bach I', 'occupation', 'mayor of Carrascal del Obispo']
ASK WHERE { resource:Johann_Christoph_Bach_I property:occupation resource:mayor_of_Carrascal_del_Obispo . resource:Johann_Christoph_Bach_I property:occupation resource:organist }
[]
occupation
SYSTEM
YES and NO respectively
(Q57829,P106,Q765778) (Q57829,P106,Q26693666)
action is_in
entity Q57829
action intersection
action find_reverse
entity Q765778
relation P106
action find_reverse
entity Q26693666
relation P106
[ANSWER]
['Q57829', 'P106', 'Q765778'] ['Q57829', 'P106', 'Q26693666']
ASK WHERE { resource:Q57829 property:P106 resource:Q26693666 . resource:Q57829 property:P106 resource:Q765778 }
YES and NO respectively
action is_in
entity Johann Christoph Bach I
action intersection
action find_reverse
entity organist
relation occupation
action find_reverse
entity mayor of Carrascal del Obispo
relation occupation
['Johann Christoph Bach I', 'occupation', 'organist'] ['Johann Christoph Bach I', 'occupation', 'mayor of Carrascal del Obispo']
ASK WHERE { resource:Johann_Christoph_Bach_I property:occupation resource:mayor_of_Carrascal_del_Obispo . resource:Johann_Christoph_Bach_I property:occupation resource:organist }
[]