Simple Question (Direct)
Simple Question
Q206890
P106
Q12737077
USER
What are the job of Carrie-Anne Moss ?
(Q206890,P106,c(Q12737077))
action filter_type
action find
entity Q206890
relation P106
type Q12737077
['Q206890', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q206890 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Carrie-Anne Moss
action filter_type
action find
entity Carrie-Anne Moss
relation occupation
type occupation
['Carrie-Anne Moss', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Carrie-Anne_Moss property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q4610556 Q33999
SYSTEM
model, actor
Q4610556 Q33999
(Q206890,P106,c(Q12737077))
action filter_type
action find
entity Q206890
relation P106
type Q12737077
The job of Carrie-Anne Moss are a [ANSWERS]
['Q206890', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q206890 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
model actor
The job of Carrie-Anne Moss are a model and actor
model actor
action filter_type
action find
entity Carrie-Anne Moss
relation occupation
type occupation
['Carrie-Anne Moss', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Carrie-Anne_Moss property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4610556 Q33999
P101
Q502895
USER
Who works in the domain of model and actor ?
(c(Q502895),P101,Q4610556) (c(Q502895),P101,Q33999)
action union
action filter_type
action find_reverse
entity Q4610556
relation P101
type Q502895
action filter_type
action find_reverse
entity Q33999
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q4610556'] [{'concept': 'Q502895'}, 'P101', 'Q33999']
SELECT DISTINCT ?o WHERE { { ?o property:P101 resource:Q4610556 . ?o rdf:type ontology:Q502895 } UNION { ?o property:P101 resource:Q33999 . ?o rdf:type ontology:Q502895 } }
model actor
action union
action filter_type
action find_reverse
entity model
relation field of work
type common name
action filter_type
action find_reverse
entity actor
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'model'] [{'concept': 'common name'}, 'field of work', 'actor']
SELECT DISTINCT ?o WHERE { { ?o property:field_of_work resource:model . ?o rdf:type ontology:common_name } UNION { ?o property:field_of_work resource:actor . ?o rdf:type ontology:common_name } }
[]
common name
Q676094 Q5957599 Q3140773
SYSTEM
Drew Barrymore, Hamid Jebelli, Rikako Aikawa
Q676094 Q5957599 Q3140773
(c(Q502895),P101,Q4610556) (c(Q502895),P101,Q33999)
action union
action filter_type
action find_reverse
entity Q4610556
relation P101
type Q502895
action filter_type
action find_reverse
entity Q33999
relation P101
type Q502895
[ANSWERS] work in the domain of model and actor
[{'concept': 'Q502895'}, 'P101', 'Q4610556'] [{'concept': 'Q502895'}, 'P101', 'Q33999']
SELECT DISTINCT ?o WHERE { { ?o property:P101 resource:Q4610556 . ?o rdf:type ontology:Q502895 } UNION { ?o property:P101 resource:Q33999 . ?o rdf:type ontology:Q502895 } }
Drew Barrymore Hamid Jebelli Rikako Aikawa
Drew Barrymore, Hamid Jebelli and Rikako Aikawa work in the domain of model and actor
Drew Barrymore Hamid Jebelli Rikako Aikawa
action union
action filter_type
action find_reverse
entity model
relation field of work
type common name
action filter_type
action find_reverse
entity actor
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'model'] [{'concept': 'common name'}, 'field of work', 'actor']
SELECT DISTINCT ?o WHERE { { ?o property:field_of_work resource:model . ?o rdf:type ontology:common_name } UNION { ?o property:field_of_work resource:actor . ?o rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3140773
P26
Q502895
USER
Which person is married to that one ?
(c(Q502895),P26,Q3140773)
action filter_type
action find
entity Q3140773
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q3140773']
SELECT DISTINCT ?b WHERE { resource:Q3140773 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Rikako Aikawa
action filter_type
action find
entity Rikako Aikawa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Rikako Aikawa']
SELECT DISTINCT ?b WHERE { resource:Rikako_Aikawa property:spouse ?b . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q3140773
SYSTEM
Did you mean Rikako Aikawa ?
Q676094 Q5957599 Q3140773
(c(Q502895),P26,Q676094) (c(Q502895),P26,Q5957599) (c(Q502895),P26,Q3140773)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q676094'] [{'concept': 'Q502895'}, 'P26', 'Q5957599'] [{'concept': 'Q502895'}, 'P26', 'Q3140773']
SELECT DISTINCT ?b WHERE { resource:Q3140773 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Drew Barrymore Hamid Jebelli Rikako Aikawa
Did you mean Rikako Aikawa ?
Rikako Aikawa
[{'concept': 'common name'}, 'spouse', 'Drew Barrymore'] [{'concept': 'common name'}, 'spouse', 'Hamid Jebelli'] [{'concept': 'common name'}, 'spouse', 'Rikako Aikawa']
SELECT DISTINCT ?b WHERE { resource:Rikako_Aikawa property:spouse ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P26,Q3140773)
[{'concept': 'Q502895'}, 'P26', 'Q3140773']
[{'concept': 'common name'}, 'spouse', 'Rikako Aikawa']
[]
Q1142399
SYSTEM
Mitsuo Iwata
Q1142399
(c(Q502895),P26,Q3140773)
action filter_type
action find
entity Q3140773
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q3140773']
SELECT DISTINCT ?b WHERE { resource:Q3140773 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Mitsuo Iwata
Mitsuo Iwata is married to that one
Mitsuo Iwata
action filter_type
action find
entity Rikako Aikawa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Rikako Aikawa']
SELECT DISTINCT ?b WHERE { resource:Rikako_Aikawa property:spouse ?b . ?b rdf:type ontology:common_name }
[]