Simple Question (Direct)
Simple Question
Q1997159
P106
Q12737077
USER
What do Alexey Lushnikov do for a living ?
(Q1997159,P106,c(Q12737077))
action filter_type
action find
entity Q1997159
relation P106
type Q12737077
['Q1997159', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1997159 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Alexey Lushnikov
action filter_type
action find
entity Alexey Lushnikov
relation occupation
type occupation
['Alexey Lushnikov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Alexey_Lushnikov property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q1028181 Q1930187 Q33999
SYSTEM
painter, journalist, actor
Q1028181 Q1930187 Q33999
(Q1997159,P106,c(Q12737077))
action filter_type
action find
entity Q1997159
relation P106
type Q12737077
Alexey Lushnikov do for a living the [ANSWERS]
['Q1997159', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1997159 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
painter journalist actor
Alexey Lushnikov do for a living the painter, journalist and actor
painter journalist actor
action filter_type
action find
entity Alexey Lushnikov
relation occupation
type occupation
['Alexey Lushnikov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Alexey_Lushnikov property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1028181
P39
Q502895
USER
Which person held the position of that occupation ?
(c(Q502895),P39,Q1028181)
action filter_type
action find_reverse
entity Q1028181
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1028181']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q1028181 . ?c rdf:type ontology:Q502895 }
painter
action filter_type
action find_reverse
entity painter
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'painter']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:painter . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1028181
SYSTEM
Did you mean painter ?
Q1028181 Q1930187 Q33999
(c(Q502895),P39,Q1028181) (c(Q502895),P39,Q1930187) (c(Q502895),P39,Q33999)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q1028181'] [{'concept': 'Q502895'}, 'P39', 'Q1930187'] [{'concept': 'Q502895'}, 'P39', 'Q33999']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q1028181 . ?c rdf:type ontology:Q502895 }
painter journalist actor
Did you mean painter ?
painter
[{'concept': 'common name'}, 'position held', 'painter'] [{'concept': 'common name'}, 'position held', 'journalist'] [{'concept': 'common name'}, 'position held', 'actor']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:painter . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P39,Q1028181)
[{'concept': 'Q502895'}, 'P39', 'Q1028181']
[{'concept': 'common name'}, 'position held', 'painter']
[]
Q1677284
SYSTEM
Jean-Pierre Côté
Q1677284
(c(Q502895),P39,Q1028181)
action filter_type
action find_reverse
entity Q1028181
relation P39
type Q502895
[ANSWER] held the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q1028181']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q1028181 . ?c rdf:type ontology:Q502895 }
Jean-Pierre Côté
Jean-Pierre Côté held the position of that occupation
Jean-Pierre Côté
action filter_type
action find_reverse
entity painter
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'painter']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:painter . ?c rdf:type ontology:common_name }
[]