Simple Question (Direct)
Simple Question
Q19849773
P26
Q502895
USER
Who is married to Anthoussa de Roujoux ?
(Q19849773,P26,c(Q502895))
action filter_type
action find
entity Q19849773
relation P26
type Q502895
['Q19849773', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q19849773 property:P26 ?g . ?g rdf:type ontology:Q502895 }
Anthoussa de Roujoux
action filter_type
action find
entity Anthoussa de Roujoux
relation spouse
type common name
['Anthoussa de Roujoux', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Anthoussa_de_Roujoux property:spouse ?g . ?g rdf:type ontology:common_name }
[]
common name
Q19849760
SYSTEM
Alexandre de Roujoux
Q19849760
(Q19849773,P26,c(Q502895))
action filter_type
action find
entity Q19849773
relation P26
type Q502895
De [ANSWER] is married to Anthoussa de Roujoux
['Q19849773', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q19849773 property:P26 ?g . ?g rdf:type ontology:Q502895 }
Alexandre de Roujoux
De Alexandre de Roujoux is married to Anthoussa de Roujoux
Alexandre de Roujoux
action filter_type
action find
entity Anthoussa de Roujoux
relation spouse
type common name
['Anthoussa de Roujoux', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Anthoussa_de_Roujoux property:spouse ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19849760
P22
Q502895
USER
Who has that one as a father ?
(c(Q502895),P22,Q19849760)
action filter_type
action find_reverse
entity Q19849760
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q19849760']
SELECT DISTINCT ?f WHERE { ?f property:P22 resource:Q19849760 . ?f rdf:type ontology:Q502895 }
Alexandre de Roujoux
action filter_type
action find_reverse
entity Alexandre de Roujoux
relation father
type common name
[{'concept': 'common name'}, 'father', 'Alexandre de Roujoux']
SELECT DISTINCT ?f WHERE { ?f property:father resource:Alexandre_de_Roujoux . ?f rdf:type ontology:common_name }
[]
common name
Q19849785
SYSTEM
Jules de Roujoux
Q19849785
(c(Q502895),P22,Q19849760)
action filter_type
action find_reverse
entity Q19849760
relation P22
type Q502895
[ANSWER] has that one as a father
[{'concept': 'Q502895'}, 'P22', 'Q19849760']
SELECT DISTINCT ?f WHERE { ?f property:P22 resource:Q19849760 . ?f rdf:type ontology:Q502895 }
Jules de Roujoux
Jules de Roujoux has that one as a father
Jules de Roujoux
action filter_type
action find_reverse
entity Alexandre de Roujoux
relation father
type common name
[{'concept': 'common name'}, 'father', 'Alexandre de Roujoux']
SELECT DISTINCT ?f WHERE { ?f property:father resource:Alexandre_de_Roujoux . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19849785
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q19849785)
action filter_type
action find_reverse
entity Q19849785
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q19849785']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q19849785 . ?e rdf:type ontology:Q502895 }
Jules de Roujoux
action filter_type
action find_reverse
entity Jules de Roujoux
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jules de Roujoux']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Jules_de_Roujoux . ?e rdf:type ontology:common_name }
[]
common name
Q19849760 Q19849773
SYSTEM
Alexandre de Roujoux, Anthoussa de Roujoux
Q19849760 Q19849773
(c(Q502895),P40,Q19849785)
action filter_type
action find_reverse
entity Q19849785
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q19849785']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q19849785 . ?e rdf:type ontology:Q502895 }
Alexandre de Roujoux Anthoussa de Roujoux
Alexandre de Roujoux and Anthoussa de Roujoux have that one as an offspring
Alexandre de Roujoux Anthoussa de Roujoux
action filter_type
action find_reverse
entity Jules de Roujoux
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jules de Roujoux']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Jules_de_Roujoux . ?e rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q19849773
P25
Q502895
USER
Who is the offspring of that one ?
(c(Q502895),P25,Q19849773)
action filter_type
action find_reverse
entity Q19849773
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q19849773']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P25 resource:Q19849773 }
Anthoussa de Roujoux
action filter_type
action find_reverse
entity Anthoussa de Roujoux
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Anthoussa de Roujoux']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:mother resource:Anthoussa_de_Roujoux }
[]
common name
Clarification for simple ques.
Q19849760
SYSTEM
Did you mean Alexandre de Roujoux ?
Q19849760 Q19849773
(c(Q502895),P25,Q19849760) (c(Q502895),P25,Q19849773)
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q19849760'] [{'concept': 'Q502895'}, 'P25', 'Q19849773']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P25 resource:Q19849773 }
Alexandre de Roujoux Anthoussa de Roujoux
Did you mean Alexandre de Roujoux ?
Alexandre de Roujoux
[{'concept': 'common name'}, 'mother', 'Alexandre de Roujoux'] [{'concept': 'common name'}, 'mother', 'Anthoussa de Roujoux']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:mother resource:Anthoussa_de_Roujoux }
[]
Simple Question (Coreferenced)
USER
No, I meant Anthoussa de Roujoux. Could you tell me the answer for that?
(c(Q502895),P25,Q19849773)
Q19849773
[{'concept': 'Q502895'}, 'P25', 'Q19849773']
[{'concept': 'common name'}, 'mother', 'Anthoussa de Roujoux']
[]
Q19849785
SYSTEM
Jules de Roujoux
Q19849785
(c(Q502895),P25,Q19849773)
action filter_type
action find_reverse
entity Q19849773
relation P25
type Q502895
The offspring of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q19849773']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P25 resource:Q19849773 }
Jules de Roujoux
The offspring of that one is the Jules de Roujoux
Jules de Roujoux
action filter_type
action find_reverse
entity Anthoussa de Roujoux
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Anthoussa de Roujoux']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:mother resource:Anthoussa_de_Roujoux }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3246690 Q19849760
P19 P20
Q56061
USER
Which administrative territories did Alexandre de Roujoux expire or were Kazuo Otani born ?
OR((Q19849760,P20,c(Q56061)), (Q3246690,P19,c(Q56061)))
action filter_type
action union
action find
entity Q19849760
relation P20
action find
entity Q3246690
relation P19
type Q56061
{'OR': [['Q19849760', 'P20', {'concept': 'Q56061'}], ['Q3246690', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q19849760 property:P20 ?o } UNION { resource:Q3246690 property:P19 ?o } } . ?o rdf:type ontology:Q56061 }
Kazuo Otani Alexandre de Roujoux
action filter_type
action union
action find
entity Alexandre de Roujoux
relation place of death
action find
entity Kazuo Otani
relation place of birth
type administrative territorial entity
{'OR': [['Alexandre de Roujoux', 'place of death', {'concept': 'administrative territorial entity'}], ['Kazuo Otani', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Alexandre_de_Roujoux property:place_of_death ?o } UNION { resource:Kazuo_Otani property:place_of_birth ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1524 Q495373
SYSTEM
Athens, Visalia
Q1524 Q495373
OR((Q19849760,P20,c(Q56061)), (Q3246690,P19,c(Q56061)))
action filter_type
action union
action find
entity Q19849760
relation P20
action find
entity Q3246690
relation P19
type Q56061
Alexandre de Roujoux expired in [ANSWERS]
{'OR': [['Q19849760', 'P20', {'concept': 'Q56061'}], ['Q3246690', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q19849760 property:P20 ?o } UNION { resource:Q3246690 property:P19 ?o } } . ?o rdf:type ontology:Q56061 }
Athens Visalia
Alexandre de Roujoux expired in Athens and Visalia
Athens Visalia
action filter_type
action union
action find
entity Alexandre de Roujoux
relation place of death
action find
entity Kazuo Otani
relation place of birth
type administrative territorial entity
{'OR': [['Alexandre de Roujoux', 'place of death', {'concept': 'administrative territorial entity'}], ['Kazuo Otani', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Alexandre_de_Roujoux property:place_of_death ?o } UNION { resource:Kazuo_Otani property:place_of_birth ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types are the registry port of max number of administrative territories ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?j ) WHERE { ?c property:P532 ?f . ?f rdf:type ontology:Q56061 . ?c rdf:type ontology:Q2235308 } GROUP BY ?c } } . { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?s ) WHERE { ?m property:P532 ?t . ?m rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 } GROUP BY ?m } . FILTER ( ?s = ?a ) }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?j ) WHERE { ?c property:port_of_registry ?f . ?f rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:ship_type } GROUP BY ?c } } . { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?s ) WHERE { ?m property:port_of_registry ?t . ?m rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?s = ?a ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] is the registry port of max number of administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?j ) WHERE { ?c property:P532 ?f . ?f rdf:type ontology:Q56061 . ?c rdf:type ontology:Q2235308 } GROUP BY ?c } } . { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?s ) WHERE { ?m property:P532 ?t . ?m rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 } GROUP BY ?m } . FILTER ( ?s = ?a ) }
MS Arrow
MS Arrow is the registry port of max number of administrative territories
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?j ) WHERE { ?c property:port_of_registry ?f . ?f rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:ship_type } GROUP BY ?c } } . { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?s ) WHERE { ?m property:port_of_registry ?t . ?m rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?s = ?a ) }
[]