Simple Question (Direct)
Simple Question
Q5375402
P162
Q502895
USER
Who produced Enchantment ?
(Q5375402,P162,c(Q502895))
action filter_type
action find
entity Q5375402
relation P162
type Q502895
['Q5375402', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q5375402 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Enchantment
action filter_type
action find
entity Enchantment
relation producer
type common name
['Enchantment', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Enchantment property:producer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q72579
SYSTEM
Samuel Goldwyn
Q72579
(Q5375402,P162,c(Q502895))
action filter_type
action find
entity Q5375402
relation P162
type Q502895
Produced [ANSWER] produced Enchantment
['Q5375402', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q5375402 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Samuel Goldwyn
Produced Samuel Goldwyn produced Enchantment
Samuel Goldwyn
action filter_type
action find
entity Enchantment
relation producer
type common name
['Enchantment', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Enchantment property:producer ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5375402
P86
Q502895
USER
Who composed that work of art ?
(Q72579,P86,c(Q502895))
action filter_type
action find
entity Q5375402
relation P86
type Q502895
['Q72579', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q5375402 property:P86 ?p . ?p rdf:type ontology:Q502895 }
Enchantment
action filter_type
action find
entity Enchantment
relation composer
type common name
['Samuel Goldwyn', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Enchantment property:composer ?p . ?p rdf:type ontology:common_name }
[]
common name
Q1350676
SYSTEM
Hugo Friedhofer
Q1350676
(Q72579,P86,c(Q502895))
action filter_type
action find
entity Q5375402
relation P86
type Q502895
[ANSWER] composed that work of art
['Q72579', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q5375402 property:P86 ?p . ?p rdf:type ontology:Q502895 }
Hugo Friedhofer
Hugo Friedhofer composed that work of art
Hugo Friedhofer
action filter_type
action find
entity Enchantment
relation composer
type common name
['Samuel Goldwyn', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Enchantment property:composer ?p . ?p rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q8338
P1303
Q34379 Q502895
USER
Which musical instruments do greater number of people know to play than trumpet ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?x > ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:Q34379 . resource:Q8338 property:P1303 ?k } } }
trumpet
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?x > ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:musical_instrument . resource:trumpet property:instrument ?k } } }
[]
musical instrument common name
Q5994 Q8355 Q1444
SYSTEM
piano, violin, organ
Q5994 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[ANSWERS] greater number of people know to play than trumpet
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?x > ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:Q34379 . resource:Q8338 property:P1303 ?k } } }
piano violin organ drum kit
Piano, violin and organ greater number of people know to play than trumpet
piano violin organ
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?x > ?z ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:musical_instrument . resource:trumpet property:instrument ?k } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1444
P1056
Q43229
USER
Which organization produces that musical instrument ?
(c(Q43229),P1056,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P1056
type Q43229
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?h WHERE { ?h property:P1056 resource:Q1444 . ?h rdf:type ontology:Q43229 }
organ
action filter_type
action find_reverse
entity organ
relation product
type organization
[{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?h WHERE { ?h property:product resource:organ . ?h rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q5994
SYSTEM
Did you mean piano ?
Q5994 Q8355 Q1444
(c(Q43229),P1056,Q5994) (c(Q43229),P1056,Q8355) (c(Q43229),P1056,Q1444)
[ANSWER]
[{'concept': 'Q43229'}, 'P1056', 'Q5994'] [{'concept': 'Q43229'}, 'P1056', 'Q8355'] [{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?h WHERE { ?h property:P1056 resource:Q1444 . ?h rdf:type ontology:Q43229 }
piano violin organ
Did you mean piano ?
piano
[{'concept': 'organization'}, 'product', 'piano'] [{'concept': 'organization'}, 'product', 'violin'] [{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?h WHERE { ?h property:product resource:organ . ?h rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
No, I meant organ. Could you tell me the answer for that?
(c(Q43229),P1056,Q1444)
Q1444
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
[{'concept': 'organization'}, 'product', 'organ']
[]
Q694082
SYSTEM
Marcussen & Søn
Q694082
(c(Q43229),P1056,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P1056
type Q43229
[ANSWER] produces that musical instrument
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?h WHERE { ?h property:P1056 resource:Q1444 . ?h rdf:type ontology:Q43229 }
Marcussen & Søn
Marcussen & Søn produces that musical instrument
Marcussen & Søn
action filter_type
action find_reverse
entity organ
relation product
type organization
[{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?h WHERE { ?h property:product resource:organ . ?h rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5994
P1056
Q43229
USER
Who produce piano ?
(c(Q43229),P1056,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P1056
type Q43229
[{'concept': 'Q43229'}, 'P1056', 'Q5994']
SELECT DISTINCT ?d WHERE { ?d property:P1056 resource:Q5994 . ?d rdf:type ontology:Q43229 }
piano
action filter_type
action find_reverse
entity piano
relation product
type organization
[{'concept': 'organization'}, 'product', 'piano']
SELECT DISTINCT ?d WHERE { ?d property:product resource:piano . ?d rdf:type ontology:organization }
[]
organization
Q2684841 Q20773716
SYSTEM
Hoffmann, Weber Piano Company
Q2684841 Q20773716
(c(Q43229),P1056,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P1056
type Q43229
[ANSWERS] produce piano
[{'concept': 'Q43229'}, 'P1056', 'Q5994']
SELECT DISTINCT ?d WHERE { ?d property:P1056 resource:Q5994 . ?d rdf:type ontology:Q43229 }
Hoffmann Weber Piano Company
Hoffmann and Weber Piano Company produce piano
Hoffmann Weber Piano Company
action filter_type
action find_reverse
entity piano
relation product
type organization
[{'concept': 'organization'}, 'product', 'piano']
SELECT DISTINCT ?d WHERE { ?d property:product resource:piano . ?d rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5994
P61
Q502895
USER
Which person was the first person to come up with that musical instrument ?
(Q2684841,P61,c(Q502895)) (Q20773716,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q2684841', 'P61', {'concept': 'Q502895'}] ['Q20773716', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?g }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['Hoffmann', 'discoverer or inventor', {'concept': 'common name'}] ['Weber Piano Company', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?g }
[]
common name
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q2684841,P61,c(Q502895)) (Q20773716,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] was the first person to come up with that musical instrument
['Q2684841', 'P61', {'concept': 'Q502895'}] ['Q20773716', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?g }
Bartolomeo Cristofori
Bartolomeo Cristofori was the first person to come up with that musical instrument
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['Hoffmann', 'discoverer or inventor', {'concept': 'common name'}] ['Weber Piano Company', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?g }
[]