Simple Question (Direct)
Simple Question
Q2842392
P21
Q290
USER
Which sex does Sergi Picazo i Guillamot belong to ?
(Q2842392,P21,c(Q290))
action filter_type
action find
entity Q2842392
relation P21
type Q290
['Q2842392', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q2842392 property:P21 ?m . ?m rdf:type ontology:Q290 }
Sergi Picazo i Guillamot
action filter_type
action find
entity Sergi Picazo i Guillamot
relation gender
type sex
['Sergi Picazo i Guillamot', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Sergi_Picazo_i_Guillamot property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2842392,P21,c(Q290))
action filter_type
action find
entity Q2842392
relation P21
type Q290
Sergi Picazo i Guillamot belongs to [ANSWER]
['Q2842392', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q2842392 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
Sergi Picazo i Guillamot belongs to male
male
action filter_type
action find
entity Sergi Picazo i Guillamot
relation gender
type sex
['Sergi Picazo i Guillamot', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Sergi_Picazo_i_Guillamot property:gender ?m . ?m rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can exactly 5 people perform with ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b = 5 ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b = 5 ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?f } }
[]
musical instrument common name
Q213461 Q213100
SYSTEM
harmonium, tabla
Q213461 Q213100
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b = 5 ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?f } }
harmonium tabla
Which musical instruments can exactly 5 people perform with
harmonium tabla
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?b = 5 ) . { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?b ) WHERE { ?e property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?f } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can max number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?v } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?d = ?s ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?v } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?d = ?s ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people can perform on [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?v } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?d = ?s ) }
piano
Max number of people can perform on piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?v } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?d ) WHERE { ?p property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?d = ?s ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q1622272 Q213461
P106 P1303
Q502895
USER
Which people play harmonium and are not working as university teacher ?
AND((c(Q502895),P1303,Q213461), NOT((c(Q502895),P106,Q1622272)))
action filter_type
action difference
action find_reverse
entity Q213461
relation P1303
action find_reverse
entity Q1622272
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q213461'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q1622272']]}]}
SELECT DISTINCT ?o WHERE { ?o property:P1303 resource:Q213461 . FILTER NOT EXISTS { ?o property:P106 resource:Q1622272 } . ?o rdf:type ontology:Q502895 }
university teacher harmonium
action filter_type
action difference
action find_reverse
entity harmonium
relation instrument
action find_reverse
entity university teacher
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'harmonium'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'university teacher']]}]}
SELECT DISTINCT ?o WHERE { ?o property:instrument resource:harmonium . FILTER NOT EXISTS { ?o property:occupation resource:university_teacher } . ?o rdf:type ontology:common_name }
[]
common name
Q5982438 Q27051577 Q45909 Q44634
SYSTEM
Ian Moore, Sanghamitra Bharali, John Cale, Nico
Q5982438 Q27051577 Q45909 Q44634
AND((c(Q502895),P1303,Q213461), NOT((c(Q502895),P106,Q1622272)))
action filter_type
action difference
action find_reverse
entity Q213461
relation P1303
action find_reverse
entity Q1622272
relation P106
type Q502895
[ANSWERS] play harmonium and are not working as university teacher
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q213461'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q1622272']]}]}
SELECT DISTINCT ?o WHERE { ?o property:P1303 resource:Q213461 . FILTER NOT EXISTS { ?o property:P106 resource:Q1622272 } . ?o rdf:type ontology:Q502895 }
Ian Moore Sanghamitra Bharali John Cale Nico
Ian Moore, Sanghamitra Bharali, John Cale and Nico play harmonium and are not working as university teacher
Ian Moore Sanghamitra Bharali John Cale Nico
action filter_type
action difference
action find_reverse
entity harmonium
relation instrument
action find_reverse
entity university teacher
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'harmonium'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'university teacher']]}]}
SELECT DISTINCT ?o WHERE { ?o property:instrument resource:harmonium . FILTER NOT EXISTS { ?o property:occupation resource:university_teacher } . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q5982438 Q27051577 Q45909 Q44634
P106
Q12737077
USER
What are the job of those people ?
(Q5982438,P106,c(Q12737077)) (Q27051577,P106,c(Q12737077)) (Q45909,P106,c(Q12737077)) (Q44634,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q5982438', 'P106', {'concept': 'Q12737077'}] ['Q27051577', 'P106', {'concept': 'Q12737077'}] ['Q45909', 'P106', {'concept': 'Q12737077'}] ['Q44634', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?l property:P106 ?v . ?v rdf:type ontology:Q12737077 . VALUES ( ?l ) { ( resource:Q5982438 ) ( resource:Q27051577 ) ( resource:Q45909 ) } }
Ian Moore Sanghamitra Bharali John Cale Nico
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Ian Moore', 'occupation', {'concept': 'occupation'}] ['Sanghamitra Bharali', 'occupation', {'concept': 'occupation'}] ['John Cale', 'occupation', {'concept': 'occupation'}] ['Nico', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?l property:occupation ?v . ?v rdf:type ontology:occupation . VALUES ( ?l ) { ( resource:Ian_Moore ) ( resource:Sanghamitra_Bharali ) ( resource:John_Cale ) } }
[]
occupation
Q10798782 Q36834 Q822146
SYSTEM
television actor, composer, lyricist
Q1327329 Q183945 Q488205 Q36834 Q177220 Q19588578 Q183945 Q488205 Q1643514 Q639669 Q10798782 Q33999 Q486748 Q4610556 Q822146 Q4610556 Q639669 Q33999 Q36834 Q177220
(Q5982438,P106,c(Q12737077)) (Q27051577,P106,c(Q12737077)) (Q45909,P106,c(Q12737077)) (Q44634,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
The job of those people are a [ANSWERS]
['Q5982438', 'P106', {'concept': 'Q12737077'}] ['Q27051577', 'P106', {'concept': 'Q12737077'}] ['Q45909', 'P106', {'concept': 'Q12737077'}] ['Q44634', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?l property:P106 ?v . ?v rdf:type ontology:Q12737077 . VALUES ( ?l ) { ( resource:Q5982438 ) ( resource:Q27051577 ) ( resource:Q45909 ) } }
multi-instrumentalist record producer singer-songwriter composer singer experimental musician record producer singer-songwriter music arranger musician television actor actor pianist model lyricist model musician actor composer singer
The job of those people are a television actor, composer and lyricist
television actor composer lyricist
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Ian Moore', 'occupation', {'concept': 'occupation'}] ['Sanghamitra Bharali', 'occupation', {'concept': 'occupation'}] ['John Cale', 'occupation', {'concept': 'occupation'}] ['Nico', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?l property:occupation ?v . ?v rdf:type ontology:occupation . VALUES ( ?l ) { ( resource:Ian_Moore ) ( resource:Sanghamitra_Bharali ) ( resource:John_Cale ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45909
P166
Q2003221
USER
Which chivalric order was received by John Cale ?
(Q45909,P166,c(Q2003221))
action filter_type
action find
entity Q45909
relation P166
type Q2003221
['Q45909', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?t WHERE { resource:Q45909 property:P166 ?t . ?t rdf:type ontology:Q2003221 }
John Cale
action filter_type
action find
entity John Cale
relation award received
type chivalric order
['John Cale', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?t WHERE { resource:John_Cale property:award_received ?t . ?t rdf:type ontology:chivalric_order }
[]
chivalric order
Q10762848
SYSTEM
Officer of the Order of the British Empire
Q10762848
(Q45909,P166,c(Q2003221))
action filter_type
action find
entity Q45909
relation P166
type Q2003221
British [ANSWER] was received by John Cale
['Q45909', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?t WHERE { resource:Q45909 property:P166 ?t . ?t rdf:type ontology:Q2003221 }
Officer of the Order of the British Empire
British Officer of the Order of the British Empire was received by John Cale
Officer of the Order of the British Empire
action filter_type
action find
entity John Cale
relation award received
type chivalric order
['John Cale', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?t WHERE { resource:John_Cale property:award_received ?t . ?t rdf:type ontology:chivalric_order }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4895781
Q2003221
USER
And how about Bertram Hopkinson?
(Q4895781,P166,c(Q2003221))
action filter_type
action find
entity Q4895781
relation P166
type Q2003221
['Q4895781', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?n WHERE { resource:Q4895781 property:P166 ?n . ?n rdf:type ontology:Q2003221 }
Bertram Hopkinson
action filter_type
action find
entity Bertram Hopkinson
relation award received
type chivalric order
['Bertram Hopkinson', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?n WHERE { resource:Bertram_Hopkinson property:award_received ?n . ?n rdf:type ontology:chivalric_order }
[]
chivalric order
Q12177413
SYSTEM
Companion of the Order of St Michael and St George
Q12177413
(Q4895781,P166,c(Q2003221))
action filter_type
action find
entity Q4895781
relation P166
type Q2003221
[ANSWER]
['Q4895781', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?n WHERE { resource:Q4895781 property:P166 ?n . ?n rdf:type ontology:Q2003221 }
Companion of the Order of St Michael and St George
Companion of the Order of St Michael and St George
action filter_type
action find
entity Bertram Hopkinson
relation award received
type chivalric order
['Bertram Hopkinson', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?n WHERE { resource:Bertram_Hopkinson property:award_received ?n . ?n rdf:type ontology:chivalric_order }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q12177413 Q145
P17
Q15617994
USER
Is that chivalric order located in United Kingdom ?
(Q12177413,P17,Q145)
action is_in
entity Q145
action find
entity Q12177413
relation P17
['Q12177413', 'P17', 'Q145']
ASK WHERE { resource:Q12177413 property:P17 resource:Q145 }
Companion of the Order of St Michael and St George United Kingdom
action is_in
entity United Kingdom
action find
entity Companion of the Order of St Michael and St George
relation country
['Companion of the Order of St Michael and St George', 'country', 'United Kingdom']
ASK WHERE { resource:Companion_of_the_Order_of_St_Michael_and_St_George property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q12177413,P17,Q145)
action is_in
entity Q145
action find
entity Q12177413
relation P17
[ANSWER]
['Q12177413', 'P17', 'Q145']
ASK WHERE { resource:Q12177413 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Companion of the Order of St Michael and St George
relation country
['Companion of the Order of St Michael and St George', 'country', 'United Kingdom']
ASK WHERE { resource:Companion_of_the_Order_of_St_Michael_and_St_George property:country resource:United_Kingdom }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P870
Q34379 Q15850590 Q862597
USER
Which musical instruments are the instrumentations used in around 26 theatrical genres and musical forms ?
(c(Q15850590)|c(Q862597),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
value 26
[[{'concept': 'Q15850590'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:P870 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q862597 } UNION { ?t property:P870 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q15850590 } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
value 26
[[{'concept': 'theatrical genre'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:instrumentation ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:musical_form } UNION { ?t property:instrumentation ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:theatrical_genre } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
[]
musical instrument theatrical genre musical form
Q8371 Q1444 Q81982
SYSTEM
cello, organ, harpsichord
Q8371 Q1444 Q81982
(c(Q15850590)|c(Q862597),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
value 26
[ANSWERS] are the instrumentations used in around 26 theatrical genres and musical forms
[[{'concept': 'Q15850590'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:P870 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q862597 } UNION { ?t property:P870 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q15850590 } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
cello organ harpsichord
Cello, organ and harpsichord are the instrumentations used in around 26 theatrical genres and musical forms
cello organ harpsichord
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
value 26
[[{'concept': 'theatrical genre'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:instrumentation ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:musical_form } UNION { ?t property:instrumentation ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:theatrical_genre } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P870
Q34379 Q15850590 Q207628
USER
How many musical instruments are the instrumentations used in approximately the same number of theatrical genres and musical compositions as that musical instrument ?
(c(Q15850590)|c(Q207628),P870,c(Q34379))
[[{'concept': 'Q15850590'}, {'concept': 'Q207628'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q207628 }
[[{'concept': 'theatrical genre'}, {'concept': 'musical composition'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:musical_composition }
[]
musical instrument theatrical genre musical composition
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1444
SYSTEM
Did you mean organ ?
(c(Q15850590)|c(Q207628),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q207628'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q207628 }
Did you mean organ ?
organ
[[{'concept': 'theatrical genre'}, {'concept': 'musical composition'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:musical_composition }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant cello. Could you tell me the answer for that?
(c(Q15850590)|c(Q207628),P870,c(Q34379))
Q8371
[[{'concept': 'Q15850590'}, {'concept': 'Q207628'}], 'P870', {'concept': 'Q34379'}]
[[{'concept': 'theatrical genre'}, {'concept': 'musical composition'}], 'instrumentation', {'concept': 'musical instrument'}]
[]
SYSTEM
17
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q15850590)|c(Q207628),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q207628'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q207628 }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca violin drum vibraphone harpsichord
17
[[{'concept': 'theatrical genre'}, {'concept': 'musical composition'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:musical_composition }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10798782
P425
Q386724
USER
Which work has television actor as thier associated field of occupation ?
(Q10798782,P425,c(Q386724))
action filter_type
action find
entity Q10798782
relation P425
type Q386724
['Q10798782', 'P425', {'concept': 'Q386724'}]
SELECT DISTINCT ?u WHERE { resource:Q10798782 property:P425 ?u . ?u rdf:type ontology:Q386724 }
television actor
action filter_type
action find
entity television actor
relation field of this occupation
type work
['television actor', 'field of this occupation', {'concept': 'work'}]
SELECT DISTINCT ?u WHERE { resource:television_actor property:field_of_this_occupation ?u . ?u rdf:type ontology:work }
[]
work
Q5398426
SYSTEM
television series
Q5398426
(Q10798782,P425,c(Q386724))
action filter_type
action find
entity Q10798782
relation P425
type Q386724
[ANSWER] has television actor as thier associated field of occupation
['Q10798782', 'P425', {'concept': 'Q386724'}]
SELECT DISTINCT ?u WHERE { resource:Q10798782 property:P425 ?u . ?u rdf:type ontology:Q386724 }
television series
Television series has television actor as thier associated field of occupation
television series
action filter_type
action find
entity television actor
relation field of this occupation
type work
['television actor', 'field of this occupation', {'concept': 'work'}]
SELECT DISTINCT ?u WHERE { resource:television_actor property:field_of_this_occupation ?u . ?u rdf:type ontology:work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10798782
P361
Q16334295
USER
Which group of humans is that occupation a component of ?
(Q5398426,P361,c(Q16334295))
action filter_type
action find
entity Q10798782
relation P361
type Q16334295
['Q5398426', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ?c WHERE { resource:Q10798782 property:P361 ?c . ?c rdf:type ontology:Q16334295 }
television actor
action filter_type
action find
entity television actor
relation part of
type group of humans
['television series', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ?c WHERE { resource:television_actor property:part_of ?c . ?c rdf:type ontology:group_of_humans }
[]
group of humans
Q7696997
SYSTEM
television crew
Q7696997
(Q5398426,P361,c(Q16334295))
action filter_type
action find
entity Q10798782
relation P361
type Q16334295
[ANSWER] is that occupation a component of
['Q5398426', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ?c WHERE { resource:Q10798782 property:P361 ?c . ?c rdf:type ontology:Q16334295 }
television crew
Television crew is that occupation a component of
television crew
action filter_type
action find
entity television actor
relation part of
type group of humans
['television series', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ?c WHERE { resource:television_actor property:part_of ?c . ?c rdf:type ontology:group_of_humans }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P361
Q12737077
USER
How many occupations are a part of that group of humans ?
(c(Q12737077),P361,Q7696997)
action count
action filter_type
action find_reverse
entity Q7696997
relation P361
type Q12737077
[{'concept': 'Q12737077'}, 'P361', 'Q7696997']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P361 resource:Q7696997 . ?p rdf:type ontology:Q12737077 }
action count
action filter_type
action find_reverse
entity television crew
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'television crew']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:part_of resource:television_crew . ?p rdf:type ontology:occupation }
[]
occupation
SYSTEM
3
Q2059704 Q10798782 Q578109
(c(Q12737077),P361,Q7696997)
action count
action filter_type
action find_reverse
entity Q7696997
relation P361
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P361', 'Q7696997']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P361 resource:Q7696997 . ?p rdf:type ontology:Q12737077 }
television director television actor television producer
3
action count
action filter_type
action find_reverse
entity television crew
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'television crew']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:part_of resource:television_crew . ?p rdf:type ontology:occupation }
[]