Simple Question (Direct)
Simple Question
Q4693605
P106
Q12737077
USER
What is the job of Agostinho Caetano ?
(Q4693605,P106,c(Q12737077))
action filter_type
action find
entity Q4693605
relation P106
type Q12737077
['Q4693605', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q4693605 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Agostinho Caetano
action filter_type
action find
entity Agostinho Caetano
relation occupation
type occupation
['Agostinho Caetano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Agostinho_Caetano property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4693605,P106,c(Q12737077))
action filter_type
action find
entity Q4693605
relation P106
type Q12737077
The job of Agostinho Caetano is an [ANSWER]
['Q4693605', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q4693605 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
The job of Agostinho Caetano is an association football player
association football player
action filter_type
action find
entity Agostinho Caetano
relation occupation
type occupation
['Agostinho Caetano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Agostinho_Caetano property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4693605
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Agostinho Caetano ?
(Q4693605,P27,c(Q15617994))
action filter_type
action find
entity Q4693605
relation P27
type Q15617994
['Q4693605', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q4693605 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Agostinho Caetano
action filter_type
action find
entity Agostinho Caetano
relation country of citizenship
type designation for an administrative territorial entity
['Agostinho Caetano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Agostinho_Caetano property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45
SYSTEM
Portugal
Q45
(Q4693605,P27,c(Q15617994))
action filter_type
action find
entity Q4693605
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Agostinho Caetano
['Q4693605', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q4693605 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Portugal
Portugal is the country of citizenship of Agostinho Caetano
Portugal
action filter_type
action find
entity Agostinho Caetano
relation country of citizenship
type designation for an administrative territorial entity
['Agostinho Caetano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Agostinho_Caetano property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q45
P610
Q14524493
USER
Which is the highest peak of that administrative territory ?
(Q45,P610,c(Q14524493))
action filter_type
action find
entity Q45
relation P610
type Q14524493
['Q45', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { resource:Q45 property:P610 ?c . ?c rdf:type ontology:Q14524493 }
Portugal
action filter_type
action find
entity Portugal
relation highest point
type terrain
['Portugal', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { resource:Portugal property:highest_point ?c . ?c rdf:type ontology:terrain }
[]
terrain
Q928681
SYSTEM
Mount Pico
Q928681
(Q45,P610,c(Q14524493))
action filter_type
action find
entity Q45
relation P610
type Q14524493
The highest peak of that administrative territory is [ANSWER]
['Q45', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?c WHERE { resource:Q45 property:P610 ?c . ?c rdf:type ontology:Q14524493 }
Mount Pico
The highest peak of that administrative territory is Mount Pico
Mount Pico
action filter_type
action find
entity Portugal
relation highest point
type terrain
['Portugal', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?c WHERE { resource:Portugal property:highest_point ?c . ?c rdf:type ontology:terrain }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q928681 Q45
P610
Q15617994
USER
Is that terrain the zenith of Portugal ?
(Q45,P610,Q928681)
action is_in
entity Q928681
action find
entity Q45
relation P610
['Q45', 'P610', 'Q928681']
ASK WHERE { resource:Q45 property:P610 resource:Q928681 }
Mount Pico Portugal
action is_in
entity Mount Pico
action find
entity Portugal
relation highest point
['Portugal', 'highest point', 'Mount Pico']
ASK WHERE { resource:Portugal property:highest_point resource:Mount_Pico }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q45,P610,Q928681)
action is_in
entity Q928681
action find
entity Q45
relation P610
[ANSWER]
['Q45', 'P610', 'Q928681']
ASK WHERE { resource:Q45 property:P610 resource:Q928681 }
Yes
action is_in
entity Mount Pico
action find
entity Portugal
relation highest point
['Portugal', 'highest point', 'Mount Pico']
ASK WHERE { resource:Portugal property:highest_point resource:Mount_Pico }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q45 Q4928490 Q18399760
P530
Q15617994
USER
Does Portugal have tactful political relations with Blount County Schools and Kostino ?
(Q45,P530,Q4928490) (Q45,P530,Q18399760)
action is_in
entity Q45
action intersection
action find_reverse
entity Q4928490
relation P530
action find_reverse
entity Q18399760
relation P530
['Q45', 'P530', 'Q4928490'] ['Q45', 'P530', 'Q18399760']
ASK WHERE { resource:Q45 property:P530 resource:Q4928490 . resource:Q45 property:P530 resource:Q18399760 }
Portugal Blount County Schools Kostino
action is_in
entity Portugal
action intersection
action find_reverse
entity Blount County Schools
relation diplomatic relation
action find_reverse
entity Kostino
relation diplomatic relation
['Portugal', 'diplomatic relation', 'Blount County Schools'] ['Portugal', 'diplomatic relation', 'Kostino']
ASK WHERE { resource:Portugal property:diplomatic_relation resource:Blount_County_Schools . resource:Portugal property:diplomatic_relation resource:Kostino }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q45,P530,Q4928490) (Q45,P530,Q18399760)
action is_in
entity Q45
action intersection
action find_reverse
entity Q4928490
relation P530
action find_reverse
entity Q18399760
relation P530
[ANSWER]
['Q45', 'P530', 'Q4928490'] ['Q45', 'P530', 'Q18399760']
ASK WHERE { resource:Q45 property:P530 resource:Q4928490 . resource:Q45 property:P530 resource:Q18399760 }
No
action is_in
entity Portugal
action intersection
action find_reverse
entity Blount County Schools
relation diplomatic relation
action find_reverse
entity Kostino
relation diplomatic relation
['Portugal', 'diplomatic relation', 'Blount County Schools'] ['Portugal', 'diplomatic relation', 'Kostino']
ASK WHERE { resource:Portugal property:diplomatic_relation resource:Blount_County_Schools . resource:Portugal property:diplomatic_relation resource:Kostino }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2721001 Q45
P7 P35
Q502895
USER
Which people have the highest formal authority in Portugal or have Bona of Savoy as their brother ?
OR((Q45,P35,c(Q502895)), (Q2721001,P7,c(Q502895)))
action filter_type
action union
action find
entity Q45
relation P35
action find
entity Q2721001
relation P7
type Q502895
{'OR': [['Q45', 'P35', {'concept': 'Q502895'}], ['Q2721001', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q45 property:P35 ?d } UNION { resource:Q2721001 property:P7 ?d } } . ?d rdf:type ontology:Q502895 }
Bona of Savoy Portugal
action filter_type
action union
action find
entity Portugal
relation head of state
action find
entity Bona of Savoy
relation brother
type common name
{'OR': [['Portugal', 'head of state', {'concept': 'common name'}], ['Bona of Savoy', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Portugal property:head_of_state ?d } UNION { resource:Bona_of_Savoy property:brother ?d } } . ?d rdf:type ontology:common_name }
[]
common name
Q1449991 Q156780 Q57398 Q156781 Q6756617 Q2628134 Q373236 Q461667 Q672446
SYSTEM
François de Savoie, Jorge Sampaio, Aníbal Cavaco Silva, Mário Soares, Marcelo Rebelo de Sousa, Janus of Savoy, Amadeus IX, Duke of Savoy, Philip II, Duke of Savoy, Louis of Cyprus
Q1449991 Q156780 Q57398 Q156781 Q6756617 Q2628134 Q373236 Q461667 Q672446
OR((Q45,P35,c(Q502895)), (Q2721001,P7,c(Q502895)))
action filter_type
action union
action find
entity Q45
relation P35
action find
entity Q2721001
relation P7
type Q502895
[ANSWERS] have the highest formal authority in Portugal or have Bona of Savoy as their brother
{'OR': [['Q45', 'P35', {'concept': 'Q502895'}], ['Q2721001', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q45 property:P35 ?d } UNION { resource:Q2721001 property:P7 ?d } } . ?d rdf:type ontology:Q502895 }
François de Savoie Jorge Sampaio Aníbal Cavaco Silva Mário Soares Marcelo Rebelo de Sousa Janus of Savoy Amadeus IX, Duke of Savoy Philip II, Duke of Savoy Louis of Cyprus
François de Savoie, Jorge Sampaio, Aníbal Cavaco Silva, Mário Soares, Marcelo Rebelo de Sousa, Janus of Savoy, Amadeus IX, Duke of Savoy, Philip II, Duke of Savoy and Louis of Cyprus have the highest formal authority in Portugal or have Bona of Savoy as their brother
François de Savoie Jorge Sampaio Aníbal Cavaco Silva Mário Soares Marcelo Rebelo de Sousa Janus of Savoy Amadeus IX, Duke of Savoy Philip II, Duke of Savoy Louis of Cyprus
action filter_type
action union
action find
entity Portugal
relation head of state
action find
entity Bona of Savoy
relation brother
type common name
{'OR': [['Portugal', 'head of state', {'concept': 'common name'}], ['Bona of Savoy', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Portugal property:head_of_state ?d } UNION { resource:Bona_of_Savoy property:brother ?d } } . ?d rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q156781
P937
Q515
USER
What is the work location of that person ?
(Q156781,P937,c(Q515))
action filter_type
action find
entity Q156781
relation P937
type Q515
['Q156781', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q156781 property:P937 ?t . ?t rdf:type ontology:Q515 }
Mário Soares
action filter_type
action find
entity Mário Soares
relation work location
type city
['Mário Soares', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Mário_Soares property:work_location ?t . ?t rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q1449991
SYSTEM
Did you mean François de Savoie ?
Q1449991 Q156780 Q57398 Q156781 Q6756617 Q2628134 Q373236 Q461667 Q672446
(Q1449991,P937,c(Q515)) (Q156780,P937,c(Q515)) (Q57398,P937,c(Q515)) (Q156781,P937,c(Q515)) (Q6756617,P937,c(Q515)) (Q2628134,P937,c(Q515)) (Q373236,P937,c(Q515)) (Q461667,P937,c(Q515)) (Q672446,P937,c(Q515))
[ANSWER]
['Q1449991', 'P937', {'concept': 'Q515'}] ['Q156780', 'P937', {'concept': 'Q515'}] ['Q57398', 'P937', {'concept': 'Q515'}] ['Q156781', 'P937', {'concept': 'Q515'}] ['Q6756617', 'P937', {'concept': 'Q515'}] ['Q2628134', 'P937', {'concept': 'Q515'}] ['Q373236', 'P937', {'concept': 'Q515'}] ['Q461667', 'P937', {'concept': 'Q515'}] ['Q672446', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q156781 property:P937 ?t . ?t rdf:type ontology:Q515 }
François de Savoie Jorge Sampaio Aníbal Cavaco Silva Mário Soares Marcelo Rebelo de Sousa Janus of Savoy Amadeus IX, Duke of Savoy Philip II, Duke of Savoy Louis of Cyprus
Did you mean François de Savoie ?
François de Savoie
['François de Savoie', 'work location', {'concept': 'city'}] ['Jorge Sampaio', 'work location', {'concept': 'city'}] ['Aníbal Cavaco Silva', 'work location', {'concept': 'city'}] ['Mário Soares', 'work location', {'concept': 'city'}] ['Marcelo Rebelo de Sousa', 'work location', {'concept': 'city'}] ['Janus of Savoy', 'work location', {'concept': 'city'}] ['Amadeus IX, Duke of Savoy', 'work location', {'concept': 'city'}] ['Philip II, Duke of Savoy', 'work location', {'concept': 'city'}] ['Louis of Cyprus', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Mário_Soares property:work_location ?t . ?t rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
No, I meant Mário Soares. Could you tell me the answer for that?
(Q156781,P937,c(Q515))
Q156781
['Q156781', 'P937', {'concept': 'Q515'}]
['Mário Soares', 'work location', {'concept': 'city'}]
[]
Q6602
SYSTEM
Strasbourg
Q6602
(Q156781,P937,c(Q515))
action filter_type
action find
entity Q156781
relation P937
type Q515
The work location of that person is in [ANSWER]
['Q156781', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { resource:Q156781 property:P937 ?t . ?t rdf:type ontology:Q515 }
Strasbourg
The work location of that person is in Strasbourg
Strasbourg
action filter_type
action find
entity Mário Soares
relation work location
type city
['Mário Soares', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { resource:Mário_Soares property:work_location ?t . ?t rdf:type ontology:city }
[]