Simple Question (Direct)
Simple Question
Q2709348
P97
Q4164871
USER
Which position was held by Princess Eugenia Maximilianovna of Leuchtenberg ?
(Q2709348,P97,c(Q4164871))
action filter_type
action find
entity Q2709348
relation P97
type Q4164871
['Q2709348', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?l WHERE { resource:Q2709348 property:P97 ?l . ?l rdf:type ontology:Q4164871 }
Princess Eugenia Maximilianovna of Leuchtenberg
action filter_type
action find
entity Princess Eugenia Maximilianovna of Leuchtenberg
relation noble title
type position
['Princess Eugenia Maximilianovna of Leuchtenberg', 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?l WHERE { resource:Princess_Eugenia_Maximilianovna_of_Leuchtenberg property:noble_title ?l . ?l rdf:type ontology:position }
[]
position
Q166886
SYSTEM
duke
Q166886
(Q2709348,P97,c(Q4164871))
action filter_type
action find
entity Q2709348
relation P97
type Q4164871
[ANSWER] was held by Princess Eugenia Maximilianovna of Leuchtenberg
['Q2709348', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?l WHERE { resource:Q2709348 property:P97 ?l . ?l rdf:type ontology:Q4164871 }
duke
Duke was held by Princess Eugenia Maximilianovna of Leuchtenberg
duke
action filter_type
action find
entity Princess Eugenia Maximilianovna of Leuchtenberg
relation noble title
type position
['Princess Eugenia Maximilianovna of Leuchtenberg', 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?l WHERE { resource:Princess_Eugenia_Maximilianovna_of_Leuchtenberg property:noble_title ?l . ?l rdf:type ontology:position }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2709348
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q166886)
action filter_type
action find
entity Q2709348
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q166886']
SELECT DISTINCT ?a WHERE { resource:Q2709348 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Princess Eugenia Maximilianovna of Leuchtenberg
action filter_type
action find
entity Princess Eugenia Maximilianovna of Leuchtenberg
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'duke']
SELECT DISTINCT ?a WHERE { resource:Princess_Eugenia_Maximilianovna_of_Leuchtenberg property:spouse ?a . ?a rdf:type ontology:common_name }
[]
common name
Q1210424
SYSTEM
Duke Alexander Petrovich of Oldenburg
Q1210424
(c(Q502895),P26,Q166886)
action filter_type
action find
entity Q2709348
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q166886']
SELECT DISTINCT ?a WHERE { resource:Q2709348 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Duke Alexander Petrovich of Oldenburg
Duke Alexander Petrovich of Oldenburg has that one as spouse
Duke Alexander Petrovich of Oldenburg
action filter_type
action find
entity Princess Eugenia Maximilianovna of Leuchtenberg
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'duke']
SELECT DISTINCT ?a WHERE { resource:Princess_Eugenia_Maximilianovna_of_Leuchtenberg property:spouse ?a . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1210424 Q21148942
P166
Q618779
USER
Was Order of St. Vladimir, 2nd class won by that person ?
(Q1210424,P166,Q21148942)
action is_in
entity Q21148942
action find
entity Q1210424
relation P166
['Q1210424', 'P166', 'Q21148942']
ASK WHERE { resource:Q1210424 property:P166 resource:Q21148942 }
Duke Alexander Petrovich of Oldenburg Order of St. Vladimir, 2nd class
action is_in
entity Order of St. Vladimir, 2nd class
action find
entity Duke Alexander Petrovich of Oldenburg
relation award received
['Duke Alexander Petrovich of Oldenburg', 'award received', 'Order of St. Vladimir, 2nd class']
ASK WHERE { resource:Duke_Alexander_Petrovich_of_Oldenburg property:award_received resource:Order_of_St._Vladimir,_2nd_class }
[]
award
SYSTEM
YES
(Q1210424,P166,Q21148942)
action is_in
entity Q21148942
action find
entity Q1210424
relation P166
[ANSWER]
['Q1210424', 'P166', 'Q21148942']
ASK WHERE { resource:Q1210424 property:P166 resource:Q21148942 }
Yes
action is_in
entity Order of St. Vladimir, 2nd class
action find
entity Duke Alexander Petrovich of Oldenburg
relation award received
['Duke Alexander Petrovich of Oldenburg', 'award received', 'Order of St. Vladimir, 2nd class']
ASK WHERE { resource:Duke_Alexander_Petrovich_of_Oldenburg property:award_received resource:Order_of_St._Vladimir,_2nd_class }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1210424
P22
Q502895
USER
Which person has that one as father ?
action filter_type
action find_reverse
entity Q1210424
relation P22
type Q502895
SELECT DISTINCT ?r WHERE { ?r property:P22 resource:Q1210424 . ?r rdf:type ontology:Q502895 }
Duke Alexander Petrovich of Oldenburg
action filter_type
action find_reverse
entity Duke Alexander Petrovich of Oldenburg
relation father
type common name
SELECT DISTINCT ?r WHERE { ?r property:father resource:Duke_Alexander_Petrovich_of_Oldenburg . ?r rdf:type ontology:common_name }
[]
common name
Q682770
SYSTEM
Duke Peter Alexandrovich of Oldenburg
Q682770
action filter_type
action find_reverse
entity Q1210424
relation P22
type Q502895
[ANSWER] has that one as father
SELECT DISTINCT ?r WHERE { ?r property:P22 resource:Q1210424 . ?r rdf:type ontology:Q502895 }
Duke Peter Alexandrovich of Oldenburg
Duke Peter Alexandrovich of Oldenburg has that one as father
Duke Peter Alexandrovich of Oldenburg
action filter_type
action find_reverse
entity Duke Alexander Petrovich of Oldenburg
relation father
type common name
SELECT DISTINCT ?r WHERE { ?r property:father resource:Duke_Alexander_Petrovich_of_Oldenburg . ?r rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6504227 Q2709348
P40
Q502895
USER
Which people are an offsprings of Princess Eugenia Maximilianovna of Leuchtenberg or Lawrence John Cannon ?
OR((Q2709348,P40,c(Q502895)), (Q6504227,P40,c(Q502895)))
action filter_type
action union
action find
entity Q2709348
relation P40
action find
entity Q6504227
relation P40
type Q502895
{'OR': [['Q2709348', 'P40', {'concept': 'Q502895'}], ['Q6504227', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q6504227 property:P40 ?c } UNION { resource:Q2709348 property:P40 ?c } } . ?c rdf:type ontology:Q502895 }
Lawrence John Cannon Princess Eugenia Maximilianovna of Leuchtenberg
action filter_type
action union
action find
entity Princess Eugenia Maximilianovna of Leuchtenberg
relation child
action find
entity Lawrence John Cannon
relation child
type common name
{'OR': [['Princess Eugenia Maximilianovna of Leuchtenberg', 'child', {'concept': 'common name'}], ['Lawrence John Cannon', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Lawrence_John_Cannon property:child ?c } UNION { resource:Princess_Eugenia_Maximilianovna_of_Leuchtenberg property:child ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q3265418 Q682770 Q6503815
SYSTEM
Lucien Cannon, Duke Peter Alexandrovich of Oldenburg, Lawrence Arthur Dumoulin Cannon
Q3265418 Q682770 Q6503815
OR((Q2709348,P40,c(Q502895)), (Q6504227,P40,c(Q502895)))
action filter_type
action union
action find
entity Q2709348
relation P40
action find
entity Q6504227
relation P40
type Q502895
[ANSWERS] are an offsprings of Princess Eugenia Maximilianovna of Leuchtenberg or Lawrence John Cannon
{'OR': [['Q2709348', 'P40', {'concept': 'Q502895'}], ['Q6504227', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q6504227 property:P40 ?c } UNION { resource:Q2709348 property:P40 ?c } } . ?c rdf:type ontology:Q502895 }
Lucien Cannon Duke Peter Alexandrovich of Oldenburg Lawrence Arthur Dumoulin Cannon
Lucien Cannon, Duke Peter Alexandrovich of Oldenburg and Lawrence Arthur Dumoulin Cannon are an offsprings of Princess Eugenia Maximilianovna of Leuchtenberg or Lawrence John Cannon
Lucien Cannon Duke Peter Alexandrovich of Oldenburg Lawrence Arthur Dumoulin Cannon
action filter_type
action union
action find
entity Princess Eugenia Maximilianovna of Leuchtenberg
relation child
action find
entity Lawrence John Cannon
relation child
type common name
{'OR': [['Princess Eugenia Maximilianovna of Leuchtenberg', 'child', {'concept': 'common name'}], ['Lawrence John Cannon', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Lawrence_John_Cannon property:child ?c } UNION { resource:Princess_Eugenia_Maximilianovna_of_Leuchtenberg property:child ?c } } . ?c rdf:type ontology:common_name }
[]