Simple Question (Direct)
Simple Question
Q7492558
P106
Q12737077
USER
Which occupations have Shefali Zariwala as his/her 's career ?
(Q7492558,P106,c(Q12737077))
action filter_type
action find
entity Q7492558
relation P106
type Q12737077
['Q7492558', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q7492558 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Shefali Zariwala
action filter_type
action find
entity Shefali Zariwala
relation occupation
type occupation
['Shefali Zariwala', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Shefali_Zariwala property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q33999 Q5716684
SYSTEM
actor, dancer
Q33999 Q5716684
(Q7492558,P106,c(Q12737077))
action filter_type
action find
entity Q7492558
relation P106
type Q12737077
[ANSWERS]
['Q7492558', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q7492558 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
actor dancer
actor dancer
action filter_type
action find
entity Shefali Zariwala
relation occupation
type occupation
['Shefali Zariwala', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Shefali_Zariwala property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q33999
P425
Q1914636
USER
Which activity is associated with the field of occupation that one ?
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1914636 . resource:Q33999 property:P425 ?l }
actor
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:activity . resource:actor property:field_of_this_occupation ?l }
[]
activity
Clarification for simple ques.
Q5716684
SYSTEM
Did you mean dancer ?
Q33999 Q5716684
(Q33999,P425,c(Q1914636)) (Q5716684,P425,c(Q1914636))
[ANSWER]
['Q33999', 'P425', {'concept': 'Q1914636'}] ['Q5716684', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1914636 . resource:Q33999 property:P425 ?l }
actor dancer
Did you mean dancer ?
dancer
['actor', 'field of this occupation', {'concept': 'activity'}] ['dancer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:activity . resource:actor property:field_of_this_occupation ?l }
[]
Simple Question (Coreferenced)
USER
No, I meant actor. Could you tell me the answer for that?
(Q33999,P425,c(Q1914636))
Q33999
['Q33999', 'P425', {'concept': 'Q1914636'}]
['actor', 'field of this occupation', {'concept': 'activity'}]
[]
Q222749
SYSTEM
acting
Q222749
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
[ANSWER]
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1914636 . resource:Q33999 property:P425 ?l }
acting
acting
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:activity . resource:actor property:field_of_this_occupation ?l }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q733786 Q33999
P106
Q502895
USER
Which people have a job as actor and monk ?
AND((c(Q502895),P106,Q33999), (c(Q502895),P106,Q733786))
action filter_type
action intersection
action find_reverse
entity Q33999
relation P106
action find_reverse
entity Q733786
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q33999'], [{'concept': 'Q502895'}, 'P106', 'Q733786']]}
SELECT DISTINCT ?v WHERE { ?v property:P106 resource:Q733786 . ?v property:P106 resource:Q33999 . ?v rdf:type ontology:Q502895 }
monk actor
action filter_type
action intersection
action find_reverse
entity actor
relation occupation
action find_reverse
entity monk
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'actor'], [{'concept': 'common name'}, 'occupation', 'monk']]}
SELECT DISTINCT ?v WHERE { ?v property:occupation resource:monk . ?v property:occupation resource:actor . ?v rdf:type ontology:common_name }
[]
common name
Q16087083
SYSTEM
Pastko Lupulović
Q16087083
AND((c(Q502895),P106,Q33999), (c(Q502895),P106,Q733786))
action filter_type
action intersection
action find_reverse
entity Q33999
relation P106
action find_reverse
entity Q733786
relation P106
type Q502895
[ANSWER]
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q33999'], [{'concept': 'Q502895'}, 'P106', 'Q733786']]}
SELECT DISTINCT ?v WHERE { ?v property:P106 resource:Q733786 . ?v property:P106 resource:Q33999 . ?v rdf:type ontology:Q502895 }
Pastko Lupulović
Pastko Lupulović
action filter_type
action intersection
action find_reverse
entity actor
relation occupation
action find_reverse
entity monk
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'actor'], [{'concept': 'common name'}, 'occupation', 'monk']]}
SELECT DISTINCT ?v WHERE { ?v property:occupation resource:monk . ?v property:occupation resource:actor . ?v rdf:type ontology:common_name }
[]