Simple Question (Direct)
Simple Question
Q1737522
P106
Q12737077
USER
What are the job of Kazimierz Materski ?
(Q1737522,P106,c(Q12737077))
action filter_type
action find
entity Q1737522
relation P106
type Q12737077
['Q1737522', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1737522 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Kazimierz Materski
action filter_type
action find
entity Kazimierz Materski
relation occupation
type occupation
['Kazimierz Materski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Kazimierz_Materski property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q11774891 Q937857
SYSTEM
ice hockey player, association football player
Q11774891 Q937857
(Q1737522,P106,c(Q12737077))
action filter_type
action find
entity Q1737522
relation P106
type Q12737077
The job of Kazimierz Materski are an [ANSWERS]
['Q1737522', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1737522 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
ice hockey player association football player
The job of Kazimierz Materski are an ice hockey player and association football player
ice hockey player association football player
action filter_type
action find
entity Kazimierz Materski
relation occupation
type occupation
['Kazimierz Materski', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Kazimierz_Materski property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1737522
P20
Q56061
USER
Where did the expiration of Kazimierz Materski occur ?
(Q1737522,P20,c(Q56061))
action filter_type
action find
entity Q1737522
relation P20
type Q56061
['Q1737522', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1737522 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Kazimierz Materski
action filter_type
action find
entity Kazimierz Materski
relation place of death
type administrative territorial entity
['Kazimierz Materski', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Kazimierz_Materski property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270
SYSTEM
Warsaw
Q270
(Q1737522,P20,c(Q56061))
action filter_type
action find
entity Q1737522
relation P20
type Q56061
The expiration of Kazimierz Materski occurred in [ANSWER]
['Q1737522', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1737522 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Warsaw
The expiration of Kazimierz Materski occurred in Warsaw
Warsaw
action filter_type
action find
entity Kazimierz Materski
relation place of death
type administrative territorial entity
['Kazimierz Materski', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Kazimierz_Materski property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q589545
Q56061
USER
And what about Bernardo Pulci?
(Q589545,P20,c(Q56061))
action filter_type
action find
entity Q589545
relation P20
type Q56061
['Q589545', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q589545 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Bernardo Pulci
action filter_type
action find
entity Bernardo Pulci
relation place of death
type administrative territorial entity
['Bernardo Pulci', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bernardo_Pulci property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2044
SYSTEM
Florence
Q2044
(Q589545,P20,c(Q56061))
action filter_type
action find
entity Q589545
relation P20
type Q56061
[ANSWER]
['Q589545', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q589545 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Florence
Florence
action filter_type
action find
entity Bernardo Pulci
relation place of death
type administrative territorial entity
['Bernardo Pulci', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Bernardo_Pulci property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1341194 Q2044
P17
Q15617994
USER
Which administrative territories are Florence or Quatre Bornes located in ?
OR((Q2044,P17,c(Q15617994)), (Q1341194,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2044
relation P17
action find
entity Q1341194
relation P17
type Q15617994
{'OR': [['Q2044', 'P17', {'concept': 'Q15617994'}], ['Q1341194', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:P17 ?d . VALUES ( ?v ) { ( resource:Q2044 ) ( resource:Q1341194 ) } } . ?d rdf:type ontology:Q15617994 }
Quatre Bornes Florence
action filter_type
action union
action find
entity Florence
relation country
action find
entity Quatre Bornes
relation country
type designation for an administrative territorial entity
{'OR': [['Florence', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Quatre Bornes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:country ?d . VALUES ( ?v ) { ( resource:Florence ) ( resource:Quatre_Bornes ) } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q1027 Q38 Q154849
SYSTEM
France, Mauritius, Italy, Grand Duchy of Tuscany
Q142 Q1027 Q38 Q154849
OR((Q2044,P17,c(Q15617994)), (Q1341194,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2044
relation P17
action find
entity Q1341194
relation P17
type Q15617994
Florence or Quatre Bornes are located in [ANSWERS]
{'OR': [['Q2044', 'P17', {'concept': 'Q15617994'}], ['Q1341194', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:P17 ?d . VALUES ( ?v ) { ( resource:Q2044 ) ( resource:Q1341194 ) } } . ?d rdf:type ontology:Q15617994 }
France Mauritius Italy Grand Duchy of Tuscany
Florence or Quatre Bornes are located in France, Mauritius, Italy and Grand Duchy of Tuscany
France Mauritius Italy Grand Duchy of Tuscany
action filter_type
action union
action find
entity Florence
relation country
action find
entity Quatre Bornes
relation country
type designation for an administrative territorial entity
{'OR': [['Florence', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Quatre Bornes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { ?v property:country ?d . VALUES ( ?v ) { ( resource:Florence ) ( resource:Quatre_Bornes ) } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16011055 Q1737522
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Kazimierz Materski or Richard Bannatine-Allason ?
OR((Q1737522,P27,c(Q15617994)), (Q16011055,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1737522
relation P27
action find
entity Q16011055
relation P27
type Q15617994
{'OR': [['Q1737522', 'P27', {'concept': 'Q15617994'}], ['Q16011055', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { ?q property:P27 ?o . VALUES ( ?q ) { ( resource:Q1737522 ) ( resource:Q16011055 ) } } . ?o rdf:type ontology:Q15617994 }
Richard Bannatine-Allason Kazimierz Materski
action filter_type
action union
action find
entity Kazimierz Materski
relation country of citizenship
action find
entity Richard Bannatine-Allason
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kazimierz Materski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Richard Bannatine-Allason', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { ?q property:country_of_citizenship ?o . VALUES ( ?q ) { ( resource:Kazimierz_Materski ) ( resource:Richard_Bannatine-Allason ) } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36 Q145
SYSTEM
Poland, United Kingdom
Q36 Q145
OR((Q1737522,P27,c(Q15617994)), (Q16011055,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1737522
relation P27
action find
entity Q16011055
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Kazimierz Materski or Richard Bannatine-Allason
{'OR': [['Q1737522', 'P27', {'concept': 'Q15617994'}], ['Q16011055', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { ?q property:P27 ?o . VALUES ( ?q ) { ( resource:Q1737522 ) ( resource:Q16011055 ) } } . ?o rdf:type ontology:Q15617994 }
Poland United Kingdom
Poland and United Kingdom are the countries of citizenship of Kazimierz Materski or Richard Bannatine-Allason
Poland United Kingdom
action filter_type
action union
action find
entity Kazimierz Materski
relation country of citizenship
action find
entity Richard Bannatine-Allason
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kazimierz Materski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Richard Bannatine-Allason', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { ?q property:country_of_citizenship ?o . VALUES ( ?q ) { ( resource:Kazimierz_Materski ) ( resource:Richard_Bannatine-Allason ) } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1021175
P17
Q198
USER
Are First Ivorian Civil War located in those administrative territories ?
(Q1021175,P17,Q36) (Q1021175,P17,Q145)
action is_in
entity prev_answer
action find
entity Q1021175
relation P17
['Q1021175', 'P17', 'Q36'] ['Q1021175', 'P17', 'Q145']
ASK WHERE { VALUES ( ?v ) { ( resource:Q36 ) ( resource:Q145 ) } . resource:Q1021175 property:P17 ?v }
First Ivorian Civil War
action is_in
entity prev_answer
action find
entity First Ivorian Civil War
relation country
['First Ivorian Civil War', 'country', 'Poland'] ['First Ivorian Civil War', 'country', 'United Kingdom']
ASK WHERE { VALUES ( ?v ) { ( resource:Poland ) ( resource:United_Kingdom ) } . resource:First_Ivorian_Civil_War property:country ?v }
[]
war
SYSTEM
NO
(Q1021175,P17,Q36) (Q1021175,P17,Q145)
action is_in
entity prev_answer
action find
entity Q1021175
relation P17
[ANSWER]
['Q1021175', 'P17', 'Q36'] ['Q1021175', 'P17', 'Q145']
ASK WHERE { VALUES ( ?v ) { ( resource:Q36 ) ( resource:Q145 ) } . resource:Q1021175 property:P17 ?v }
No
action is_in
entity prev_answer
action find
entity First Ivorian Civil War
relation country
['First Ivorian Civil War', 'country', 'Poland'] ['First Ivorian Civil War', 'country', 'United Kingdom']
ASK WHERE { VALUES ( ?v ) { ( resource:Poland ) ( resource:United_Kingdom ) } . resource:First_Ivorian_Civil_War property:country ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2044 Q214178 Q93338
P190
Q56061
USER
Is Florence twin town of Nablus and Gaziantep ?
(Q2044,P190,Q214178) (Q2044,P190,Q93338)
action is_in
entity Q2044
action intersection
action find_reverse
entity Q214178
relation P190
action find_reverse
entity Q93338
relation P190
['Q2044', 'P190', 'Q214178'] ['Q2044', 'P190', 'Q93338']
ASK WHERE { resource:Q2044 property:P190 resource:Q214178 . resource:Q2044 property:P190 resource:Q93338 }
Florence Nablus Gaziantep
action is_in
entity Florence
action intersection
action find_reverse
entity Nablus
relation sister city
action find_reverse
entity Gaziantep
relation sister city
['Florence', 'sister city', 'Nablus'] ['Florence', 'sister city', 'Gaziantep']
ASK WHERE { resource:Florence property:sister_city resource:Nablus . resource:Florence property:sister_city resource:Gaziantep }
[]
administrative territorial entity
SYSTEM
YES
(Q2044,P190,Q214178) (Q2044,P190,Q93338)
action is_in
entity Q2044
action intersection
action find_reverse
entity Q214178
relation P190
action find_reverse
entity Q93338
relation P190
[ANSWER]
['Q2044', 'P190', 'Q214178'] ['Q2044', 'P190', 'Q93338']
ASK WHERE { resource:Q2044 property:P190 resource:Q214178 . resource:Q2044 property:P190 resource:Q93338 }
Yes
action is_in
entity Florence
action intersection
action find_reverse
entity Nablus
relation sister city
action find_reverse
entity Gaziantep
relation sister city
['Florence', 'sister city', 'Nablus'] ['Florence', 'sister city', 'Gaziantep']
ASK WHERE { resource:Florence property:sister_city resource:Nablus . resource:Florence property:sister_city resource:Gaziantep }
[]