Simple Question (Direct)
Simple Question
Q157953
P136
Q151885
USER
What is the genre of Benjamin Kowalewicz ?
(Q157953,P136,c(Q151885))
action filter_type
action find
entity Q157953
relation P136
type Q151885
['Q157953', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { resource:Q157953 property:P136 ?k . ?k rdf:type ontology:Q151885 }
Benjamin Kowalewicz
action filter_type
action find
entity Benjamin Kowalewicz
relation genre
type concept
['Benjamin Kowalewicz', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { resource:Benjamin_Kowalewicz property:genre ?k . ?k rdf:type ontology:concept }
[]
concept
Q11366
SYSTEM
alternative rock
Q11366
(Q157953,P136,c(Q151885))
action filter_type
action find
entity Q157953
relation P136
type Q151885
The genre of Benjamin Kowalewicz is an [ANSWER]
['Q157953', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { resource:Q157953 property:P136 ?k . ?k rdf:type ontology:Q151885 }
alternative rock
The genre of Benjamin Kowalewicz is an alternative rock
alternative rock
action filter_type
action find
entity Benjamin Kowalewicz
relation genre
type concept
['Benjamin Kowalewicz', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { resource:Benjamin_Kowalewicz property:genre ?k . ?k rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q157953
P106
Q12737077
USER
Which occupation is the profession of Benjamin Kowalewicz ?
(Q157953,P106,c(Q12737077))
action filter_type
action find
entity Q157953
relation P106
type Q12737077
['Q157953', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q157953 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Benjamin Kowalewicz
action filter_type
action find
entity Benjamin Kowalewicz
relation occupation
type occupation
['Benjamin Kowalewicz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Benjamin_Kowalewicz property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q177220
SYSTEM
singer
Q177220
(Q157953,P106,c(Q12737077))
action filter_type
action find
entity Q157953
relation P106
type Q12737077
The [ANSWER] is the profession of Benjamin Kowalewicz
['Q157953', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q157953 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
singer
The singer is the profession of Benjamin Kowalewicz
singer
action filter_type
action find
entity Benjamin Kowalewicz
relation occupation
type occupation
['Benjamin Kowalewicz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Benjamin_Kowalewicz property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q157953
P1303
Q34379
USER
Which musical instrument is played by that person ?
(Q177220,P1303,c(Q34379))
action filter_type
action find
entity Q157953
relation P1303
type Q34379
['Q177220', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { resource:Q157953 property:P1303 ?t . ?t rdf:type ontology:Q34379 }
Benjamin Kowalewicz
action filter_type
action find
entity Benjamin Kowalewicz
relation instrument
type musical instrument
['singer', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { resource:Benjamin_Kowalewicz property:instrument ?t . ?t rdf:type ontology:musical_instrument }
[]
musical instrument
Q128309
SYSTEM
drum kit
Q128309
(Q177220,P1303,c(Q34379))
action filter_type
action find
entity Q157953
relation P1303
type Q34379
[ANSWER] is played by that person
['Q177220', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { resource:Q157953 property:P1303 ?t . ?t rdf:type ontology:Q34379 }
drum kit
Drum kit is played by that person
drum kit
action filter_type
action find
entity Benjamin Kowalewicz
relation instrument
type musical instrument
['singer', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { resource:Benjamin_Kowalewicz property:instrument ?t . ?t rdf:type ontology:musical_instrument }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q13954808 Q157953
P1303
Q34379
USER
Or Tatsuya Kato?
OR((Q157953,P1303,c(Q34379)), (Q13954808,P1303,c(Q34379)))
action filter_type
action union
action find
entity Q157953
relation P1303
action find
entity Q13954808
relation P1303
type Q34379
{'OR': [['Q157953', 'P1303', {'concept': 'Q34379'}], ['Q13954808', 'P1303', {'concept': 'Q34379'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q34379 . { VALUES ( ?l ) { ( resource:Q157953 ) ( resource:Q13954808 ) } . ?l property:P1303 ?j } }
Tatsuya Kato Benjamin Kowalewicz
action filter_type
action union
action find
entity Benjamin Kowalewicz
relation instrument
action find
entity Tatsuya Kato
relation instrument
type musical instrument
{'OR': [['Benjamin Kowalewicz', 'instrument', {'concept': 'musical instrument'}], ['Tatsuya Kato', 'instrument', {'concept': 'musical instrument'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:musical_instrument . { VALUES ( ?l ) { ( resource:Benjamin_Kowalewicz ) ( resource:Tatsuya_Kato ) } . ?l property:instrument ?j } }
[]
musical instrument
Q128309 Q5994
SYSTEM
drum kit, piano
Q128309 Q5994
OR((Q157953,P1303,c(Q34379)), (Q13954808,P1303,c(Q34379)))
action filter_type
action union
action find
entity Q157953
relation P1303
action find
entity Q13954808
relation P1303
type Q34379
[ANSWERS]
{'OR': [['Q157953', 'P1303', {'concept': 'Q34379'}], ['Q13954808', 'P1303', {'concept': 'Q34379'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q34379 . { VALUES ( ?l ) { ( resource:Q157953 ) ( resource:Q13954808 ) } . ?l property:P1303 ?j } }
drum kit piano
drum kit piano
action filter_type
action union
action find
entity Benjamin Kowalewicz
relation instrument
action find
entity Tatsuya Kato
relation instrument
type musical instrument
{'OR': [['Benjamin Kowalewicz', 'instrument', {'concept': 'musical instrument'}], ['Tatsuya Kato', 'instrument', {'concept': 'musical instrument'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:musical_instrument . { VALUES ( ?l ) { ( resource:Benjamin_Kowalewicz ) ( resource:Tatsuya_Kato ) } . ?l property:instrument ?j } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q128309 Q5994
P425
Q12737077
USER
Which occupations do drum kit and piano belong to ?
(c(Q12737077),P425,Q128309) (c(Q12737077),P425,Q5994)
action union
action filter_type
action find_reverse
entity Q128309
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q128309'] [{'concept': 'Q12737077'}, 'P425', 'Q5994']
SELECT DISTINCT ?m WHERE { { ?m property:P425 resource:Q128309 . ?m rdf:type ontology:Q12737077 } UNION { ?m rdf:type ontology:Q12737077 . ?m property:P425 resource:Q5994 } }
drum kit piano
action union
action filter_type
action find_reverse
entity drum kit
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'drum kit'] [{'concept': 'occupation'}, 'field of this occupation', 'piano']
SELECT DISTINCT ?m WHERE { { ?m property:field_of_this_occupation resource:drum_kit . ?m rdf:type ontology:occupation } UNION { ?m rdf:type ontology:occupation . ?m property:field_of_this_occupation resource:piano } }
[]
occupation
Q386854 Q486748 Q885122
SYSTEM
drummer, pianist, piano maker
Q386854 Q486748 Q885122
(c(Q12737077),P425,Q128309) (c(Q12737077),P425,Q5994)
action union
action filter_type
action find_reverse
entity Q128309
relation P425
type Q12737077
action filter_type
action find_reverse
entity Q5994
relation P425
type Q12737077
Drum kit and piano belong to [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q128309'] [{'concept': 'Q12737077'}, 'P425', 'Q5994']
SELECT DISTINCT ?m WHERE { { ?m property:P425 resource:Q128309 . ?m rdf:type ontology:Q12737077 } UNION { ?m rdf:type ontology:Q12737077 . ?m property:P425 resource:Q5994 } }
drummer pianist piano maker
Drum kit and piano belong to drummer, pianist and piano maker
drummer pianist piano maker
action union
action filter_type
action find_reverse
entity drum kit
relation field of this occupation
type occupation
action filter_type
action find_reverse
entity piano
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'drum kit'] [{'concept': 'occupation'}, 'field of this occupation', 'piano']
SELECT DISTINCT ?m WHERE { { ?m property:field_of_this_occupation resource:drum_kit . ?m rdf:type ontology:occupation } UNION { ?m rdf:type ontology:occupation . ?m property:field_of_this_occupation resource:piano } }
[]