Simple Question (Direct)
Simple Question
Q1209838
P106
Q12737077
USER
What are the job of Dick Wellstood ?
(Q1209838,P106,c(Q12737077))
action filter_type
action find
entity Q1209838
relation P106
type Q12737077
['Q1209838', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1209838 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Dick Wellstood
action filter_type
action find
entity Dick Wellstood
relation occupation
type occupation
['Dick Wellstood', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Dick_Wellstood property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q15981151 Q486748
SYSTEM
jazz musician, pianist
Q15981151 Q486748
(Q1209838,P106,c(Q12737077))
action filter_type
action find
entity Q1209838
relation P106
type Q12737077
The job of Dick Wellstood are a [ANSWERS]
['Q1209838', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1209838 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
jazz musician pianist
The job of Dick Wellstood are a jazz musician and pianist
jazz musician pianist
action filter_type
action find
entity Dick Wellstood
relation occupation
type occupation
['Dick Wellstood', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Dick_Wellstood property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q486748
P180
Q3305213
USER
Which painting depicts that occupation ?
(c(Q3305213),P180,Q486748)
action filter_type
action find_reverse
entity Q486748
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q486748']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q3305213 . ?h property:P180 resource:Q486748 }
pianist
action filter_type
action find_reverse
entity pianist
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'pianist']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:painting . ?h property:depicts resource:pianist }
[]
painting
Clarification for simple ques.
Q486748
SYSTEM
Did you mean pianist ?
Q15981151 Q486748
(c(Q3305213),P180,Q15981151) (c(Q3305213),P180,Q486748)
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q15981151'] [{'concept': 'Q3305213'}, 'P180', 'Q486748']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q3305213 . ?h property:P180 resource:Q486748 }
jazz musician pianist
Did you mean pianist ?
pianist
[{'concept': 'painting'}, 'depicts', 'jazz musician'] [{'concept': 'painting'}, 'depicts', 'pianist']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:painting . ?h property:depicts resource:pianist }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q3305213),P180,Q486748)
[{'concept': 'Q3305213'}, 'P180', 'Q486748']
[{'concept': 'painting'}, 'depicts', 'pianist']
[]
Q17189257
SYSTEM
Brita at the Piano
Q17189257
(c(Q3305213),P180,Q486748)
action filter_type
action find_reverse
entity Q486748
relation P180
type Q3305213
[ANSWER] depicts that occupation
[{'concept': 'Q3305213'}, 'P180', 'Q486748']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q3305213 . ?h property:P180 resource:Q486748 }
Brita at the Piano
Brita at the Piano depicts that occupation
Brita at the Piano
action filter_type
action find_reverse
entity pianist
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'pianist']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:painting . ?h property:depicts resource:pianist }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q567359 Q486748
P425 P1303
Q34379
USER
Which musical instruments are associated with the field of occupation pianist or can Tibor Varga perform with ?
OR((Q486748,P425,c(Q34379)), (Q567359,P1303,c(Q34379)))
action filter_type
action union
action find
entity Q486748
relation P425
action find
entity Q567359
relation P1303
type Q34379
{'OR': [['Q486748', 'P425', {'concept': 'Q34379'}], ['Q567359', 'P1303', {'concept': 'Q34379'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q486748 property:P425 ?r } UNION { resource:Q567359 property:P1303 ?r } } . ?r rdf:type ontology:Q34379 }
Tibor Varga pianist
action filter_type
action union
action find
entity pianist
relation field of this occupation
action find
entity Tibor Varga
relation instrument
type musical instrument
{'OR': [['pianist', 'field of this occupation', {'concept': 'musical instrument'}], ['Tibor Varga', 'instrument', {'concept': 'musical instrument'}]]}
SELECT DISTINCT ?r WHERE { { { resource:pianist property:field_of_this_occupation ?r } UNION { resource:Tibor_Varga property:instrument ?r } } . ?r rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994 Q80284 Q8355
SYSTEM
piano, viola, violin
Q5994 Q80284 Q8355
OR((Q486748,P425,c(Q34379)), (Q567359,P1303,c(Q34379)))
action filter_type
action union
action find
entity Q486748
relation P425
action find
entity Q567359
relation P1303
type Q34379
[ANSWERS] are associated with the field of occupation pianist or can Tibor Varga perform with
{'OR': [['Q486748', 'P425', {'concept': 'Q34379'}], ['Q567359', 'P1303', {'concept': 'Q34379'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q486748 property:P425 ?r } UNION { resource:Q567359 property:P1303 ?r } } . ?r rdf:type ontology:Q34379 }
piano viola violin
Piano, viola and violin are associated with the field of occupation pianist or can Tibor Varga perform with
piano viola violin
action filter_type
action union
action find
entity pianist
relation field of this occupation
action find
entity Tibor Varga
relation instrument
type musical instrument
{'OR': [['pianist', 'field of this occupation', {'concept': 'musical instrument'}], ['Tibor Varga', 'instrument', {'concept': 'musical instrument'}]]}
SELECT DISTINCT ?r WHERE { { { resource:pianist property:field_of_this_occupation ?r } UNION { resource:Tibor_Varga property:instrument ?r } } . ?r rdf:type ontology:musical_instrument }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q763804
P1303
Q502895
USER
Does August Schlüter can play those musical instruments ?
(Q763804,P1303,Q5994) (Q763804,P1303,Q80284) (Q763804,P1303,Q8355)
action is_in
entity prev_answer
action find
entity Q763804
relation P1303
['Q763804', 'P1303', 'Q5994'] ['Q763804', 'P1303', 'Q80284'] ['Q763804', 'P1303', 'Q8355']
ASK WHERE { VALUES ( ?l ) { ( resource:Q5994 ) ( resource:Q80284 ) ( resource:Q8355 ) } . resource:Q763804 property:P1303 ?l }
August Schlüter
action is_in
entity prev_answer
action find
entity August Schlüter
relation instrument
['August Schlüter', 'instrument', 'piano'] ['August Schlüter', 'instrument', 'viola'] ['August Schlüter', 'instrument', 'violin']
ASK WHERE { VALUES ( ?l ) { ( resource:piano ) ( resource:viola ) ( resource:violin ) } . resource:August_Schlüter property:instrument ?l }
[]
common name
SYSTEM
NO
(Q763804,P1303,Q5994) (Q763804,P1303,Q80284) (Q763804,P1303,Q8355)
action is_in
entity prev_answer
action find
entity Q763804
relation P1303
[ANSWER]
['Q763804', 'P1303', 'Q5994'] ['Q763804', 'P1303', 'Q80284'] ['Q763804', 'P1303', 'Q8355']
ASK WHERE { VALUES ( ?l ) { ( resource:Q5994 ) ( resource:Q80284 ) ( resource:Q8355 ) } . resource:Q763804 property:P1303 ?l }
No
action is_in
entity prev_answer
action find
entity August Schlüter
relation instrument
['August Schlüter', 'instrument', 'piano'] ['August Schlüter', 'instrument', 'viola'] ['August Schlüter', 'instrument', 'violin']
ASK WHERE { VALUES ( ?l ) { ( resource:piano ) ( resource:viola ) ( resource:violin ) } . resource:August_Schlüter property:instrument ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3547191
P102
Q7210356
USER
Which political organization is Jamby Madrigal a member of ?
(Q3547191,P102,c(Q7210356))
action filter_type
action find
entity Q3547191
relation P102
type Q7210356
['Q3547191', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3547191 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Jamby Madrigal
action filter_type
action find
entity Jamby Madrigal
relation member of political party
type political organization
['Jamby Madrigal', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Jamby_Madrigal property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q1476937
SYSTEM
Liberal Party of the Philippines
Q1476937
(Q3547191,P102,c(Q7210356))
action filter_type
action find
entity Q3547191
relation P102
type Q7210356
[ANSWER] is Jamby Madrigal a member of
['Q3547191', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3547191 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Liberal Party of the Philippines
Liberal Party of the Philippines is Jamby Madrigal a member of
Liberal Party of the Philippines
action filter_type
action find
entity Jamby Madrigal
relation member of political party
type political organization
['Jamby Madrigal', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Jamby_Madrigal property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2417213
Q7210356
USER
And also tell me about Frans Spekreijse?
(Q2417213,P102,c(Q7210356))
action filter_type
action find
entity Q2417213
relation P102
type Q7210356
['Q2417213', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q2417213 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Frans Spekreijse
action filter_type
action find
entity Frans Spekreijse
relation member of political party
type political organization
['Frans Spekreijse', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Frans_Spekreijse property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q239333
SYSTEM
People's Party for Freedom and Democracy
Q239333
(Q2417213,P102,c(Q7210356))
action filter_type
action find
entity Q2417213
relation P102
type Q7210356
[ANSWER]
['Q2417213', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q2417213 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
People's Party for Freedom and Democracy
People's Party for Freedom and Democracy
action filter_type
action find
entity Frans Spekreijse
relation member of political party
type political organization
['Frans Spekreijse', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Frans_Spekreijse property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]