Simple Question (Direct)
Simple Question
Q91648
P106
Q12737077
USER
Which occupations have Ott-Heinrich Keller as his/her 's career ?
(Q91648,P106,c(Q12737077))
action filter_type
action find
entity Q91648
relation P106
type Q12737077
['Q91648', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q91648 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Ott-Heinrich Keller
action filter_type
action find
entity Ott-Heinrich Keller
relation occupation
type occupation
['Ott-Heinrich Keller', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Ott-Heinrich_Keller property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q1622272 Q170790
SYSTEM
university teacher, mathematician
Q1622272 Q170790
(Q91648,P106,c(Q12737077))
action filter_type
action find
entity Q91648
relation P106
type Q12737077
The [ANSWERS] have Ott-Heinrich Keller as his/her 's career
['Q91648', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q91648 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
university teacher mathematician
The university teacher and mathematician have Ott-Heinrich Keller as his/her 's career
university teacher mathematician
action filter_type
action find
entity Ott-Heinrich Keller
relation occupation
type occupation
['Ott-Heinrich Keller', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Ott-Heinrich_Keller property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1622272
P417
Q502895
USER
What is the name of the patron saint of that occupation ?
(Q1622272,P417,c(Q502895))
action filter_type
action find
entity Q1622272
relation P417
type Q502895
['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1622272 property:P417 ?q . ?q rdf:type ontology:Q502895 }
university teacher
action filter_type
action find
entity university teacher
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:university_teacher property:patron_saint ?q . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q170790
SYSTEM
Did you mean mathematician ?
Q1622272 Q170790
(Q1622272,P417,c(Q502895)) (Q170790,P417,c(Q502895))
[ANSWER]
['Q1622272', 'P417', {'concept': 'Q502895'}] ['Q170790', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1622272 property:P417 ?q . ?q rdf:type ontology:Q502895 }
university teacher mathematician
Did you mean mathematician ?
mathematician
['university teacher', 'patron saint', {'concept': 'common name'}] ['mathematician', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:university_teacher property:patron_saint ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant university teacher. Could you tell me the answer for that?
(Q1622272,P417,c(Q502895))
Q1622272
['Q1622272', 'P417', {'concept': 'Q502895'}]
['university teacher', 'patron saint', {'concept': 'common name'}]
[]
Q9438
SYSTEM
Thomas Aquinas
Q9438
(Q1622272,P417,c(Q502895))
action filter_type
action find
entity Q1622272
relation P417
type Q502895
The name of the patron saint of that occupation is Saint [ANSWER]
['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q1622272 property:P417 ?q . ?q rdf:type ontology:Q502895 }
Thomas Aquinas
The name of the patron saint of that occupation is Saint Thomas Aquinas
Thomas Aquinas
action filter_type
action find
entity university teacher
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:university_teacher property:patron_saint ?q . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q9438 Q43939 Q1604456
P737
Q502895
USER
Was Anselm of Canterbury and Helmuth Stapff an influence for Q9438 ?
(Q9438,P737,Q43939) (Q9438,P737,Q1604456)
action is_in
entity Q9438
action intersection
action find_reverse
entity Q43939
relation P737
action find_reverse
entity Q1604456
relation P737
['Q9438', 'P737', 'Q43939'] ['Q9438', 'P737', 'Q1604456']
ASK WHERE { resource:Q9438 property:P737 resource:Q43939 . resource:Q9438 property:P737 resource:Q1604456 }
Thomas Aquinas Anselm of Canterbury Helmuth Stapff
action is_in
entity Thomas Aquinas
action intersection
action find_reverse
entity Anselm of Canterbury
relation influenced by
action find_reverse
entity Helmuth Stapff
relation influenced by
['Thomas Aquinas', 'influenced by', 'Anselm of Canterbury'] ['Thomas Aquinas', 'influenced by', 'Helmuth Stapff']
ASK WHERE { resource:Thomas_Aquinas property:influenced_by resource:Anselm_of_Canterbury . resource:Thomas_Aquinas property:influenced_by resource:Helmuth_Stapff }
[]
common name
SYSTEM
YES and NO respectively
(Q9438,P737,Q43939) (Q9438,P737,Q1604456)
action is_in
entity Q9438
action intersection
action find_reverse
entity Q43939
relation P737
action find_reverse
entity Q1604456
relation P737
[ANSWER]
['Q9438', 'P737', 'Q43939'] ['Q9438', 'P737', 'Q1604456']
ASK WHERE { resource:Q9438 property:P737 resource:Q43939 . resource:Q9438 property:P737 resource:Q1604456 }
YES and NO respectively
action is_in
entity Thomas Aquinas
action intersection
action find_reverse
entity Anselm of Canterbury
relation influenced by
action find_reverse
entity Helmuth Stapff
relation influenced by
['Thomas Aquinas', 'influenced by', 'Anselm of Canterbury'] ['Thomas Aquinas', 'influenced by', 'Helmuth Stapff']
ASK WHERE { resource:Thomas_Aquinas property:influenced_by resource:Anselm_of_Canterbury . resource:Thomas_Aquinas property:influenced_by resource:Helmuth_Stapff }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q273791 Q1604456
P27
Q1048835
USER
Which political territories are Helmuth Stapff or Edith Lucie Bongo a civilian of ?
OR((Q1604456,P27,c(Q1048835)), (Q273791,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1604456
relation P27
action find
entity Q273791
relation P27
type Q1048835
{'OR': [['Q1604456', 'P27', {'concept': 'Q1048835'}], ['Q273791', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1604456 property:P27 ?p } UNION { resource:Q273791 property:P27 ?p } } . ?p rdf:type ontology:Q1048835 }
Edith Lucie Bongo Helmuth Stapff
action filter_type
action union
action find
entity Helmuth Stapff
relation country of citizenship
action find
entity Edith Lucie Bongo
relation country of citizenship
type political territorial entity
{'OR': [['Helmuth Stapff', 'country of citizenship', {'concept': 'political territorial entity'}], ['Edith Lucie Bongo', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Helmuth_Stapff property:country_of_citizenship ?p } UNION { resource:Edith_Lucie_Bongo property:country_of_citizenship ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1000 Q183
SYSTEM
Gabon, Germany
Q1000 Q183
OR((Q1604456,P27,c(Q1048835)), (Q273791,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1604456
relation P27
action find
entity Q273791
relation P27
type Q1048835
[ANSWERS] are Helmuth Stapff or Edith Lucie Bongo a civilian of
{'OR': [['Q1604456', 'P27', {'concept': 'Q1048835'}], ['Q273791', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1604456 property:P27 ?p } UNION { resource:Q273791 property:P27 ?p } } . ?p rdf:type ontology:Q1048835 }
Gabon Germany
Gabon and Germany are Helmuth Stapff or Edith Lucie Bongo a civilian of
Gabon Germany
action filter_type
action union
action find
entity Helmuth Stapff
relation country of citizenship
action find
entity Edith Lucie Bongo
relation country of citizenship
type political territorial entity
{'OR': [['Helmuth Stapff', 'country of citizenship', {'concept': 'political territorial entity'}], ['Edith Lucie Bongo', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Helmuth_Stapff property:country_of_citizenship ?p } UNION { resource:Edith_Lucie_Bongo property:country_of_citizenship ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16879024
P17
Q930933
USER
Are Germany-Gabon relations present in those political territories ?
(Q16879024,P17,Q1000) (Q16879024,P17,Q183)
action is_in
entity prev_answer
action find
entity Q16879024
relation P17
['Q16879024', 'P17', 'Q1000'] ['Q16879024', 'P17', 'Q183']
ASK WHERE { resource:Q16879024 property:P17 ?z . VALUES ( ?z ) { ( resource:Q1000 ) ( resource:Q183 ) } }
Germany-Gabon relations
action is_in
entity prev_answer
action find
entity Germany-Gabon relations
relation country
['Germany-Gabon relations', 'country', 'Gabon'] ['Germany-Gabon relations', 'country', 'Germany']
ASK WHERE { resource:Germany-Gabon_relations property:country ?z . VALUES ( ?z ) { ( resource:Gabon ) ( resource:Germany ) } }
[]
relationship
SYSTEM
YES
(Q16879024,P17,Q1000) (Q16879024,P17,Q183)
action is_in
entity prev_answer
action find
entity Q16879024
relation P17
[ANSWER]
['Q16879024', 'P17', 'Q1000'] ['Q16879024', 'P17', 'Q183']
ASK WHERE { resource:Q16879024 property:P17 ?z . VALUES ( ?z ) { ( resource:Q1000 ) ( resource:Q183 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany-Gabon relations
relation country
['Germany-Gabon relations', 'country', 'Gabon'] ['Germany-Gabon relations', 'country', 'Germany']
ASK WHERE { resource:Germany-Gabon_relations property:country ?z . VALUES ( ?z ) { ( resource:Gabon ) ( resource:Germany ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1000 Q2004604 Q339790
P530
Q1048835
USER
Does Gabon have diplomatic associations with São João and Fuente-Tójar ?
(Q1000,P530,Q2004604) (Q1000,P530,Q339790)
action is_in
entity Q1000
action intersection
action find_reverse
entity Q2004604
relation P530
action find_reverse
entity Q339790
relation P530
['Q1000', 'P530', 'Q2004604'] ['Q1000', 'P530', 'Q339790']
ASK WHERE { resource:Q1000 property:P530 resource:Q2004604 . resource:Q1000 property:P530 resource:Q339790 }
Gabon São João Fuente-Tójar
action is_in
entity Gabon
action intersection
action find_reverse
entity São João
relation diplomatic relation
action find_reverse
entity Fuente-Tójar
relation diplomatic relation
['Gabon', 'diplomatic relation', 'São João'] ['Gabon', 'diplomatic relation', 'Fuente-Tójar']
ASK WHERE { resource:Gabon property:diplomatic_relation resource:São_João . resource:Gabon property:diplomatic_relation resource:Fuente-Tójar }
[]
political territorial entity
SYSTEM
NO
(Q1000,P530,Q2004604) (Q1000,P530,Q339790)
action is_in
entity Q1000
action intersection
action find_reverse
entity Q2004604
relation P530
action find_reverse
entity Q339790
relation P530
[ANSWER]
['Q1000', 'P530', 'Q2004604'] ['Q1000', 'P530', 'Q339790']
ASK WHERE { resource:Q1000 property:P530 resource:Q2004604 . resource:Q1000 property:P530 resource:Q339790 }
No
action is_in
entity Gabon
action intersection
action find_reverse
entity São João
relation diplomatic relation
action find_reverse
entity Fuente-Tójar
relation diplomatic relation
['Gabon', 'diplomatic relation', 'São João'] ['Gabon', 'diplomatic relation', 'Fuente-Tójar']
ASK WHERE { resource:Gabon property:diplomatic_relation resource:São_João . resource:Gabon property:diplomatic_relation resource:Fuente-Tójar }
[]