Simple Question (Direct)
Simple Question
Q151098
P734
Q82799
USER
Who is associated with Lucien Bonaparte ?
(Q151098,P734,c(Q82799))
action filter_type
action find
entity Q151098
relation P734
type Q82799
['Q151098', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q151098 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Lucien Bonaparte
action filter_type
action find
entity Lucien Bonaparte
relation family name
type name
['Lucien Bonaparte', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Lucien_Bonaparte property:family_name ?o . ?o rdf:type ontology:name }
[]
name
Q24530160
SYSTEM
Bonaparte
Q24530160
(Q151098,P734,c(Q82799))
action filter_type
action find
entity Q151098
relation P734
type Q82799
Napoleon [ANSWER] is associated with Lucien [ANSWER]
['Q151098', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q151098 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Bonaparte
Napoleon Bonaparte is associated with Lucien Bonaparte
Bonaparte
action filter_type
action find
entity Lucien Bonaparte
relation family name
type name
['Lucien Bonaparte', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Lucien_Bonaparte property:family_name ?o . ?o rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q151098
P7
Q502895
USER
Who are the brother of Lucien Bonaparte ?
(Q151098,P7,c(Q502895))
action filter_type
action find
entity Q151098
relation P7
type Q502895
['Q151098', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q151098 property:P7 ?y }
Lucien Bonaparte
action filter_type
action find
entity Lucien Bonaparte
relation brother
type common name
['Lucien Bonaparte', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Lucien_Bonaparte property:brother ?y }
[]
common name
Q517 Q7726 Q151087
SYSTEM
Napoleon, Joseph Bonaparte, Jérôme Bonaparte
Q151087 Q517 Q7726 Q7729
(Q151098,P7,c(Q502895))
action filter_type
action find
entity Q151098
relation P7
type Q502895
The brother of Lucien Bonaparte are Napoleon [ANSWERS]
['Q151098', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . resource:Q151098 property:P7 ?y }
Jérôme Bonaparte Napoleon Joseph Bonaparte Louis Bonaparte
The brother of Lucien Bonaparte are Napoleon Napoleon, Joseph Bonaparte and Jérôme Bonaparte
Napoleon Joseph Bonaparte Jérôme Bonaparte
action filter_type
action find
entity Lucien Bonaparte
relation brother
type common name
['Lucien Bonaparte', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . resource:Lucien_Bonaparte property:brother ?y }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P112
Q193622 Q13226383
USER
How many orders or facilities were started by that person ?
(c(Q193622),P112,Q7726) (c(Q13226383),P112,Q7726) (c(Q193622),P112,Q517) (c(Q13226383),P112,Q517) (c(Q193622),P112,Q7726) (c(Q13226383),P112,Q7726) (c(Q193622),P112,Q151087) (c(Q13226383),P112,Q151087)
[{'concept': 'Q193622'}, 'P112', 'Q7726'] [{'concept': 'Q13226383'}, 'P112', 'Q7726'] [{'concept': 'Q193622'}, 'P112', 'Q517'] [{'concept': 'Q13226383'}, 'P112', 'Q517'] [{'concept': 'Q193622'}, 'P112', 'Q7726'] [{'concept': 'Q13226383'}, 'P112', 'Q7726'] [{'concept': 'Q193622'}, 'P112', 'Q151087'] [{'concept': 'Q13226383'}, 'P112', 'Q151087']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q26950764 resource:Q20862978 } UNION { ?y property:Q26950764 resource:Q20862978 } UNION { ?z property:Q26950764 resource:Q1077653 } UNION { ?y property:Q26950764 resource:Q1077653 } UNION { ?z property:Q26950764 resource:Q20862978 } UNION { ?y property:Q26950764 resource:Q20862978 } UNION { ?z property:Q26950764 resource:Q151087 } UNION { ?y property:Q26950764 resource:Q151087 } } . ?z rdf:type ontology:Q20680311 . ?y rdf:type ontology:Q13226383 }
[{'concept': 'order'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'facility'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'order'}, 'founder', 'Napoleon'] [{'concept': 'facility'}, 'founder', 'Napoleon'] [{'concept': 'order'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'facility'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'order'}, 'founder', 'Jérôme Bonaparte'] [{'concept': 'facility'}, 'founder', 'Jérôme Bonaparte']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:founder resource:Joseph_Bonaparte } UNION { ?y property:founder resource:Joseph_Bonaparte } UNION { ?z property:founder resource:Napoleon } UNION { ?y property:founder resource:Napoleon } UNION { ?z property:founder resource:Joseph_Bonaparte } UNION { ?y property:founder resource:Joseph_Bonaparte } UNION { ?z property:founder resource:Jérôme_Bonaparte } UNION { ?y property:founder resource:Jérôme_Bonaparte } } . ?z rdf:type ontology:order . ?y rdf:type ontology:facility }
[]
order facility
Quantitative|Count|Mult. entity type|Clarification
Q151087
SYSTEM
Did you mean Jérôme Bonaparte ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q26950764 resource:Q20862978 } UNION { ?y property:Q26950764 resource:Q20862978 } UNION { ?z property:Q26950764 resource:Q1077653 } UNION { ?y property:Q26950764 resource:Q1077653 } UNION { ?z property:Q26950764 resource:Q20862978 } UNION { ?y property:Q26950764 resource:Q20862978 } UNION { ?z property:Q26950764 resource:Q151087 } UNION { ?y property:Q26950764 resource:Q151087 } } . ?z rdf:type ontology:Q20680311 . ?y rdf:type ontology:Q13226383 }
Did you mean Jérôme Bonaparte ?
Jérôme Bonaparte
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:founder resource:Joseph_Bonaparte } UNION { ?y property:founder resource:Joseph_Bonaparte } UNION { ?z property:founder resource:Napoleon } UNION { ?y property:founder resource:Napoleon } UNION { ?z property:founder resource:Joseph_Bonaparte } UNION { ?y property:founder resource:Joseph_Bonaparte } UNION { ?z property:founder resource:Jérôme_Bonaparte } UNION { ?y property:founder resource:Jérôme_Bonaparte } } . ?z rdf:type ontology:order . ?y rdf:type ontology:facility }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Joseph Bonaparte. Could you tell me the answer for that?
(c(Q193622),P112,Q7726) (c(Q13226383),P112,Q7726) (c(Q193622),P112,Q517) (c(Q13226383),P112,Q517) (c(Q193622),P112,Q7726) (c(Q13226383),P112,Q7726) (c(Q193622),P112,Q151087) (c(Q13226383),P112,Q151087)
Q7726
[{'concept': 'Q193622'}, 'P112', 'Q7726'] [{'concept': 'Q13226383'}, 'P112', 'Q7726'] [{'concept': 'Q193622'}, 'P112', 'Q517'] [{'concept': 'Q13226383'}, 'P112', 'Q517'] [{'concept': 'Q193622'}, 'P112', 'Q7726'] [{'concept': 'Q13226383'}, 'P112', 'Q7726'] [{'concept': 'Q193622'}, 'P112', 'Q151087'] [{'concept': 'Q13226383'}, 'P112', 'Q151087']
[{'concept': 'order'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'facility'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'order'}, 'founder', 'Napoleon'] [{'concept': 'facility'}, 'founder', 'Napoleon'] [{'concept': 'order'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'facility'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'order'}, 'founder', 'Jérôme Bonaparte'] [{'concept': 'facility'}, 'founder', 'Jérôme Bonaparte']
[]
SYSTEM
2
Q1994980 Q848422
(c(Q193622),P112,Q7726) (c(Q13226383),P112,Q7726) (c(Q193622),P112,Q517) (c(Q13226383),P112,Q517) (c(Q193622),P112,Q7726) (c(Q13226383),P112,Q7726) (c(Q193622),P112,Q151087) (c(Q13226383),P112,Q151087)
[ANSWER]
[{'concept': 'Q193622'}, 'P112', 'Q7726'] [{'concept': 'Q13226383'}, 'P112', 'Q7726'] [{'concept': 'Q193622'}, 'P112', 'Q517'] [{'concept': 'Q13226383'}, 'P112', 'Q517'] [{'concept': 'Q193622'}, 'P112', 'Q7726'] [{'concept': 'Q13226383'}, 'P112', 'Q7726'] [{'concept': 'Q193622'}, 'P112', 'Q151087'] [{'concept': 'Q13226383'}, 'P112', 'Q151087']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q26950764 resource:Q20862978 } UNION { ?y property:Q26950764 resource:Q20862978 } UNION { ?z property:Q26950764 resource:Q1077653 } UNION { ?y property:Q26950764 resource:Q1077653 } UNION { ?z property:Q26950764 resource:Q20862978 } UNION { ?y property:Q26950764 resource:Q20862978 } UNION { ?z property:Q26950764 resource:Q151087 } UNION { ?y property:Q26950764 resource:Q151087 } } . ?z rdf:type ontology:Q20680311 . ?y rdf:type ontology:Q13226383 }
Royal Order of Spain Botanical Garden of Naples
2
[{'concept': 'order'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'facility'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'order'}, 'founder', 'Napoleon'] [{'concept': 'facility'}, 'founder', 'Napoleon'] [{'concept': 'order'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'facility'}, 'founder', 'Joseph Bonaparte'] [{'concept': 'order'}, 'founder', 'Jérôme Bonaparte'] [{'concept': 'facility'}, 'founder', 'Jérôme Bonaparte']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:founder resource:Joseph_Bonaparte } UNION { ?y property:founder resource:Joseph_Bonaparte } UNION { ?z property:founder resource:Napoleon } UNION { ?y property:founder resource:Napoleon } UNION { ?z property:founder resource:Joseph_Bonaparte } UNION { ?y property:founder resource:Joseph_Bonaparte } UNION { ?z property:founder resource:Jérôme_Bonaparte } UNION { ?y property:founder resource:Jérôme_Bonaparte } } . ?z rdf:type ontology:order . ?y rdf:type ontology:facility }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7726
P35
Q7275
USER
Which state is headed by Joseph Bonaparte ?
(c(Q7275),P35,Q7726)
action filter_type
action find_reverse
entity Q7726
relation P35
type Q7275
[{'concept': 'Q7275'}, 'P35', 'Q7726']
SELECT DISTINCT ?v WHERE { ?v property:P35 resource:Q7726 . ?v rdf:type ontology:Q7275 }
Joseph Bonaparte
action filter_type
action find_reverse
entity Joseph Bonaparte
relation head of state
type state
[{'concept': 'state'}, 'head of state', 'Joseph Bonaparte']
SELECT DISTINCT ?v WHERE { ?v property:head_of_state resource:Joseph_Bonaparte . ?v rdf:type ontology:state }
[]
state
Q1709185
SYSTEM
Kingdom of Spain under Joseph Bonaparte
Q1709185
(c(Q7275),P35,Q7726)
action filter_type
action find_reverse
entity Q7726
relation P35
type Q7275
And [ANSWER] is headed by Joseph Bonaparte
[{'concept': 'Q7275'}, 'P35', 'Q7726']
SELECT DISTINCT ?v WHERE { ?v property:P35 resource:Q7726 . ?v rdf:type ontology:Q7275 }
Kingdom of Spain under Joseph Bonaparte
And Kingdom of Spain under Joseph Bonaparte is headed by Joseph Bonaparte
Kingdom of Spain under Joseph Bonaparte
action filter_type
action find_reverse
entity Joseph Bonaparte
relation head of state
type state
[{'concept': 'state'}, 'head of state', 'Joseph Bonaparte']
SELECT DISTINCT ?v WHERE { ?v property:head_of_state resource:Joseph_Bonaparte . ?v rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7726
P127
Q838948
USER
Which work of art belongs to that person ?
(c(Q838948),P127,Q1709185)
action filter_type
action find_reverse
entity Q7726
relation P127
type Q838948
[{'concept': 'Q838948'}, 'P127', 'Q1709185']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q7726 . ?b rdf:type ontology:Q838948 }
Joseph Bonaparte
action filter_type
action find_reverse
entity Joseph Bonaparte
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'Kingdom of Spain under Joseph Bonaparte']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Joseph_Bonaparte . ?b rdf:type ontology:work_of_art }
[]
work of art
Q19801071
SYSTEM
Napoleon Crossing the Alps
Q19801071
(c(Q838948),P127,Q1709185)
action filter_type
action find_reverse
entity Q7726
relation P127
type Q838948
Napoleon crossing the Alps belongs to that person
[{'concept': 'Q838948'}, 'P127', 'Q1709185']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q7726 . ?b rdf:type ontology:Q838948 }
Napoleon Crossing the Alps
Napoleon crossing the Alps belongs to that person
Napoleon Crossing the Alps
action filter_type
action find_reverse
entity Joseph Bonaparte
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'Kingdom of Spain under Joseph Bonaparte']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Joseph_Bonaparte . ?b rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q19801071 Q5408230
P127
Q502895
USER
Is Eugenie Bonaparte the owner of that work of art ?
(Q19801071,P127,Q5408230)
action is_in
entity Q5408230
action find
entity Q19801071
relation P127
['Q19801071', 'P127', 'Q5408230']
ASK WHERE { resource:Q19801071 property:P127 resource:Q5408230 }
Napoleon Crossing the Alps Eugenie Bonaparte
action is_in
entity Eugenie Bonaparte
action find
entity Napoleon Crossing the Alps
relation owned by
['Napoleon Crossing the Alps', 'owned by', 'Eugenie Bonaparte']
ASK WHERE { resource:Napoleon_Crossing_the_Alps property:owned_by resource:Eugenie_Bonaparte }
[]
common name
SYSTEM
YES
(Q19801071,P127,Q5408230)
action is_in
entity Q5408230
action find
entity Q19801071
relation P127
[ANSWER]
['Q19801071', 'P127', 'Q5408230']
ASK WHERE { resource:Q19801071 property:P127 resource:Q5408230 }
Yes
action is_in
entity Eugenie Bonaparte
action find
entity Napoleon Crossing the Alps
relation owned by
['Napoleon Crossing the Alps', 'owned by', 'Eugenie Bonaparte']
ASK WHERE { resource:Napoleon_Crossing_the_Alps property:owned_by resource:Eugenie_Bonaparte }
[]