Simple Question (Direct)
Simple Question
Q1929776
P1303
Q34379
USER
Which musical instrument can Michael Weiss perform with ?
(Q1929776,P1303,c(Q34379))
action filter_type
action find
entity Q1929776
relation P1303
type Q34379
['Q1929776', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { resource:Q1929776 property:P1303 ?c . ?c rdf:type ontology:Q34379 }
Michael Weiss
action filter_type
action find
entity Michael Weiss
relation instrument
type musical instrument
['Michael Weiss', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { resource:Michael_Weiss property:instrument ?c . ?c rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q1929776,P1303,c(Q34379))
action filter_type
action find
entity Q1929776
relation P1303
type Q34379
[ANSWER]
['Q1929776', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { resource:Q1929776 property:P1303 ?c . ?c rdf:type ontology:Q34379 }
piano
piano
action filter_type
action find
entity Michael Weiss
relation instrument
type musical instrument
['Michael Weiss', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { resource:Michael_Weiss property:instrument ?c . ?c rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1929776
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q5994,P106,c(Q12737077))
action filter_type
action find
entity Q1929776
relation P106
type Q12737077
['Q5994', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1929776 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Michael Weiss
action filter_type
action find
entity Michael Weiss
relation occupation
type occupation
['piano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Weiss property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q15981151 Q36834 Q486748
SYSTEM
jazz musician, composer, pianist
Q15981151 Q36834 Q486748
(Q5994,P106,c(Q12737077))
action filter_type
action find
entity Q1929776
relation P106
type Q12737077
[ANSWERS]
['Q5994', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q1929776 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
jazz musician composer pianist
jazz musician composer pianist
action filter_type
action find
entity Michael Weiss
relation occupation
type occupation
['piano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Michael_Weiss property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15138033
P106
Q502895
USER
Do Sylvain Chaty have the profession of those occupations ?
(Q15138033,P106,Q15981151) (Q15138033,P106,Q36834) (Q15138033,P106,Q486748)
action is_in
entity prev_answer
action find
entity Q15138033
relation P106
['Q15138033', 'P106', 'Q15981151'] ['Q15138033', 'P106', 'Q36834'] ['Q15138033', 'P106', 'Q486748']
ASK WHERE { resource:Q15138033 property:P106 ?m . VALUES ( ?m ) { ( resource:Q15981151 ) ( resource:Q36834 ) ( resource:Q486748 ) } }
Sylvain Chaty
action is_in
entity prev_answer
action find
entity Sylvain Chaty
relation occupation
['Sylvain Chaty', 'occupation', 'jazz musician'] ['Sylvain Chaty', 'occupation', 'composer'] ['Sylvain Chaty', 'occupation', 'pianist']
ASK WHERE { resource:Sylvain_Chaty property:occupation ?m . VALUES ( ?m ) { ( resource:jazz_musician ) ( resource:composer ) ( resource:pianist ) } }
[]
common name
SYSTEM
NO
(Q15138033,P106,Q15981151) (Q15138033,P106,Q36834) (Q15138033,P106,Q486748)
action is_in
entity prev_answer
action find
entity Q15138033
relation P106
[ANSWER]
['Q15138033', 'P106', 'Q15981151'] ['Q15138033', 'P106', 'Q36834'] ['Q15138033', 'P106', 'Q486748']
ASK WHERE { resource:Q15138033 property:P106 ?m . VALUES ( ?m ) { ( resource:Q15981151 ) ( resource:Q36834 ) ( resource:Q486748 ) } }
No
action is_in
entity prev_answer
action find
entity Sylvain Chaty
relation occupation
['Sylvain Chaty', 'occupation', 'jazz musician'] ['Sylvain Chaty', 'occupation', 'composer'] ['Sylvain Chaty', 'occupation', 'pianist']
ASK WHERE { resource:Sylvain_Chaty property:occupation ?m . VALUES ( ?m ) { ( resource:jazz_musician ) ( resource:composer ) ( resource:pianist ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1929776
P21
Q290
USER
Which sex does Michael Weiss have ?
(Q1929776,P21,c(Q290))
action filter_type
action find
entity Q1929776
relation P21
type Q290
['Q1929776', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q1929776 property:P21 ?r }
Michael Weiss
action filter_type
action find
entity Michael Weiss
relation gender
type sex
['Michael Weiss', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Michael_Weiss property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1929776,P21,c(Q290))
action filter_type
action find
entity Q1929776
relation P21
type Q290
[ANSWER]
['Q1929776', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q1929776 property:P21 ?r }
male
male
action filter_type
action find
entity Michael Weiss
relation gender
type sex
['Michael Weiss', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Michael_Weiss property:gender ?r }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6248256
Q290
USER
And how about John McPherson?
(Q6248256,P21,c(Q290))
action filter_type
action find
entity Q6248256
relation P21
type Q290
['Q6248256', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q6248256 property:P21 ?m . ?m rdf:type ontology:Q290 }
John McPherson
action filter_type
action find
entity John McPherson
relation gender
type sex
['John McPherson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:John_McPherson property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6248256,P21,c(Q290))
action filter_type
action find
entity Q6248256
relation P21
type Q290
[ANSWER]
['Q6248256', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q6248256 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity John McPherson
relation gender
type sex
['John McPherson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:John_McPherson property:gender ?m . ?m rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7088409 Q486748
P425 P1303
Q34379
USER
Which musical instruments have pianist as the associated field of occupation and can Olly Wilson perform with ?
AND((Q486748,P425,c(Q34379)), (Q7088409,P1303,c(Q34379)))
action filter_type
action intersection
action find
entity Q486748
relation P425
action find
entity Q7088409
relation P1303
type Q34379
{'AND': [['Q486748', 'P425', {'concept': 'Q34379'}], ['Q7088409', 'P1303', {'concept': 'Q34379'}]]}
SELECT DISTINCT ?m WHERE { resource:Q486748 property:P425 ?m . resource:Q7088409 property:P1303 ?m . ?m rdf:type ontology:Q34379 }
Olly Wilson pianist
action filter_type
action intersection
action find
entity pianist
relation field of this occupation
action find
entity Olly Wilson
relation instrument
type musical instrument
{'AND': [['pianist', 'field of this occupation', {'concept': 'musical instrument'}], ['Olly Wilson', 'instrument', {'concept': 'musical instrument'}]]}
SELECT DISTINCT ?m WHERE { resource:pianist property:field_of_this_occupation ?m . resource:Olly_Wilson property:instrument ?m . ?m rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
AND((Q486748,P425,c(Q34379)), (Q7088409,P1303,c(Q34379)))
action filter_type
action intersection
action find
entity Q486748
relation P425
action find
entity Q7088409
relation P1303
type Q34379
[ANSWER]
{'AND': [['Q486748', 'P425', {'concept': 'Q34379'}], ['Q7088409', 'P1303', {'concept': 'Q34379'}]]}
SELECT DISTINCT ?m WHERE { resource:Q486748 property:P425 ?m . resource:Q7088409 property:P1303 ?m . ?m rdf:type ontology:Q34379 }
piano
piano
action filter_type
action intersection
action find
entity pianist
relation field of this occupation
action find
entity Olly Wilson
relation instrument
type musical instrument
{'AND': [['pianist', 'field of this occupation', {'concept': 'musical instrument'}], ['Olly Wilson', 'instrument', {'concept': 'musical instrument'}]]}
SELECT DISTINCT ?m WHERE { resource:pianist property:field_of_this_occupation ?m . resource:Olly_Wilson property:instrument ?m . ?m rdf:type ontology:musical_instrument }
[]