Simple Question (Direct)
Simple Question
Q961108
P106
Q12737077
USER
What do Zack Kim do for a living ?
(Q961108,P106,c(Q12737077))
action filter_type
action find
entity Q961108
relation P106
type Q12737077
['Q961108', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q961108 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Zack Kim
action filter_type
action find
entity Zack Kim
relation occupation
type occupation
['Zack Kim', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Zack_Kim property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q15981151 Q24067349 Q6168364
SYSTEM
jazz musician, classical guitarist, jazz guitarist
Q15981151 Q24067349 Q6168364
(Q961108,P106,c(Q12737077))
action filter_type
action find
entity Q961108
relation P106
type Q12737077
Zack Kim do for a living [ANSWERS]
['Q961108', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q961108 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
jazz musician classical guitarist jazz guitarist
Zack Kim do for a living jazz musician, classical guitarist and jazz guitarist
jazz musician classical guitarist jazz guitarist
action filter_type
action find
entity Zack Kim
relation occupation
type occupation
['Zack Kim', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Zack_Kim property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q961108
P1303
Q34379
USER
Which musical instrument is played by Zack Kim ?
(Q961108,P1303,c(Q34379))
action filter_type
action find
entity Q961108
relation P1303
type Q34379
['Q961108', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { resource:Q961108 property:P1303 ?s . ?s rdf:type ontology:Q34379 }
Zack Kim
action filter_type
action find
entity Zack Kim
relation instrument
type musical instrument
['Zack Kim', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { resource:Zack_Kim property:instrument ?s . ?s rdf:type ontology:musical_instrument }
[]
musical instrument
Q8355
SYSTEM
violin
Q8355
(Q961108,P1303,c(Q34379))
action filter_type
action find
entity Q961108
relation P1303
type Q34379
[ANSWER] is played by Zack Kim
['Q961108', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { resource:Q961108 property:P1303 ?s . ?s rdf:type ontology:Q34379 }
violin
Violin is played by Zack Kim
violin
action filter_type
action find
entity Zack Kim
relation instrument
type musical instrument
['Zack Kim', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { resource:Zack_Kim property:instrument ?s . ?s rdf:type ontology:musical_instrument }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5671747
Q34379
USER
And what about Harry Puddicombe?
(Q5671747,P1303,c(Q34379))
action filter_type
action find
entity Q5671747
relation P1303
type Q34379
['Q5671747', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q34379 . resource:Q5671747 property:P1303 ?q }
Harry Puddicombe
action filter_type
action find
entity Harry Puddicombe
relation instrument
type musical instrument
['Harry Puddicombe', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:musical_instrument . resource:Harry_Puddicombe property:instrument ?q }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q5671747,P1303,c(Q34379))
action filter_type
action find
entity Q5671747
relation P1303
type Q34379
[ANSWER]
['Q5671747', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q34379 . resource:Q5671747 property:P1303 ?q }
piano
piano
action filter_type
action find
entity Harry Puddicombe
relation instrument
type musical instrument
['Harry Puddicombe', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:musical_instrument . resource:Harry_Puddicombe property:instrument ?q }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P870
Q34379 Q838948 Q9748
USER
Which musical instruments are used in around the same number of works of art or concertoes as that musical instrument ?
(c(Q838948)|c(Q9748),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action count
action filter_multi_types
action find_reverse
entity Q5994
relation P870
type Q838948
type Q9748
[[{'concept': 'Q838948'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P870 ?e . ?e rdf:type ontology:Q34379 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P870 ?e . ?e rdf:type ontology:Q34379 . ?f rdf:type ontology:Q9748 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P870 resource:Q5994 . { { ?h rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q9748 } } } } . FILTER ( ?a = ?v ) }
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action count
action filter_multi_types
action find_reverse
entity piano
relation instrumentation
type work of art
type concerto
[[{'concept': 'work of art'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:instrumentation ?e . ?e rdf:type ontology:musical_instrument . ?f rdf:type ontology:work_of_art } UNION { ?f property:instrumentation ?e . ?e rdf:type ontology:musical_instrument . ?f rdf:type ontology:concerto } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:instrumentation resource:piano . { { ?h rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:concerto } } } } . FILTER ( ?a = ?v ) }
[]
musical instrument work of art concerto
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q838948)|c(Q9748),P870,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action count
action filter_multi_types
action find_reverse
entity Q5994
relation P870
type Q838948
type Q9748
[ANSWERS] are used in around the same number of works of art or concertoes as that musical instrument
[[{'concept': 'Q838948'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P870 ?e . ?e rdf:type ontology:Q34379 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P870 ?e . ?e rdf:type ontology:Q34379 . ?f rdf:type ontology:Q9748 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:P870 resource:Q5994 . { { ?h rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q9748 } } } } . FILTER ( ?a = ?v ) }
piano violin
Piano and violin are used in around the same number of works of art or concertoes as that musical instrument
piano violin
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action count
action filter_multi_types
action find_reverse
entity piano
relation instrumentation
type work of art
type concerto
[[{'concept': 'work of art'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:instrumentation ?e . ?e rdf:type ontology:musical_instrument . ?f rdf:type ontology:work_of_art } UNION { ?f property:instrumentation ?e . ?e rdf:type ontology:musical_instrument . ?f rdf:type ontology:concerto } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { ?h property:instrumentation resource:piano . { { ?h rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:concerto } } } } . FILTER ( ?a = ?v ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8355
P264
Q2031291
USER
Which release has that musical instrument as its record brand ?
(c(Q2031291),P264,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q8355']
SELECT DISTINCT ?s WHERE { ?s property:P264 resource:Q8355 . ?s rdf:type ontology:Q2031291 }
violin
action filter_type
action find_reverse
entity violin
relation record label
type release
[{'concept': 'release'}, 'record label', 'violin']
SELECT DISTINCT ?s WHERE { ?s property:record_label resource:violin . ?s rdf:type ontology:release }
[]
release
Clarification for simple ques.
Q8355
SYSTEM
Did you mean violin ?
Q5994 Q8355
(c(Q2031291),P264,Q5994) (c(Q2031291),P264,Q8355)
[ANSWER]
[{'concept': 'Q2031291'}, 'P264', 'Q5994'] [{'concept': 'Q2031291'}, 'P264', 'Q8355']
SELECT DISTINCT ?s WHERE { ?s property:P264 resource:Q8355 . ?s rdf:type ontology:Q2031291 }
piano violin
Did you mean violin ?
violin
[{'concept': 'release'}, 'record label', 'piano'] [{'concept': 'release'}, 'record label', 'violin']
SELECT DISTINCT ?s WHERE { ?s property:record_label resource:violin . ?s rdf:type ontology:release }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2031291),P264,Q8355)
[{'concept': 'Q2031291'}, 'P264', 'Q8355']
[{'concept': 'release'}, 'record label', 'violin']
[]
Q7936123
SYSTEM
Vision
Q7936123
(c(Q2031291),P264,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P264
type Q2031291
[ANSWER] has that musical instrument as its record brand
[{'concept': 'Q2031291'}, 'P264', 'Q8355']
SELECT DISTINCT ?s WHERE { ?s property:P264 resource:Q8355 . ?s rdf:type ontology:Q2031291 }
Vision
Vision has that musical instrument as its record brand
Vision
action filter_type
action find_reverse
entity violin
relation record label
type release
[{'concept': 'release'}, 'record label', 'violin']
SELECT DISTINCT ?s WHERE { ?s property:record_label resource:violin . ?s rdf:type ontology:release }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7936123
P264
Q34379
USER
What is the record label of that release ?
(Q7936123,P264,c(Q34379))
action filter_type
action find
entity Q7936123
relation P264
type Q34379
['Q7936123', 'P264', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { resource:Q7936123 property:P264 ?g . ?g rdf:type ontology:Q34379 }
Vision
action filter_type
action find
entity Vision
relation record label
type musical instrument
['Vision', 'record label', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { resource:Vision property:record_label ?g . ?g rdf:type ontology:musical_instrument }
[]
musical instrument
Q8355
SYSTEM
violin
Q8355
(Q7936123,P264,c(Q34379))
action filter_type
action find
entity Q7936123
relation P264
type Q34379
The record label of that release is the [ANSWER]
['Q7936123', 'P264', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { resource:Q7936123 property:P264 ?g . ?g rdf:type ontology:Q34379 }
violin
The record label of that release is the violin
violin
action filter_type
action find
entity Vision
relation record label
type musical instrument
['Vision', 'record label', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { resource:Vision property:record_label ?g . ?g rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7936123
P175
Q502895
USER
What was staged by Vision ?
(Q7936123,P175,c(Q502895))
action filter_type
action find
entity Q7936123
relation P175
type Q502895
['Q7936123', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7936123 property:P175 ?g . ?g rdf:type ontology:Q502895 }
Vision
action filter_type
action find
entity Vision
relation performer
type common name
['Vision', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Vision property:performer ?g . ?g rdf:type ontology:common_name }
[]
common name
Q1396801
SYSTEM
L. Shankar
Q1396801
(Q7936123,P175,c(Q502895))
action filter_type
action find
entity Q7936123
relation P175
type Q502895
As [ANSWER] was staged by Vision
['Q7936123', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7936123 property:P175 ?g . ?g rdf:type ontology:Q502895 }
L. Shankar
As L. Shankar was staged by Vision
L. Shankar
action filter_type
action find
entity Vision
relation performer
type common name
['Vision', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Vision property:performer ?g . ?g rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1396801 Q16155375
P175
Q2031291
USER
Did 16th Avenue perform that person ?
(Q16155375,P175,Q1396801)
action is_in
entity Q16155375
action find
entity Q1396801
relation P175
['Q16155375', 'P175', 'Q1396801']
ASK WHERE { resource:Q1396801 property:P175 resource:Q16155375 }
L. Shankar 16th Avenue
action is_in
entity 16th Avenue
action find
entity L. Shankar
relation performer
['16th Avenue', 'performer', 'L. Shankar']
ASK WHERE { resource:L._Shankar property:performer resource:16th_Avenue }
[]
release
SYSTEM
NO
(Q16155375,P175,Q1396801)
action is_in
entity Q16155375
action find
entity Q1396801
relation P175
[ANSWER]
['Q16155375', 'P175', 'Q1396801']
ASK WHERE { resource:Q1396801 property:P175 resource:Q16155375 }
No
action is_in
entity 16th Avenue
action find
entity L. Shankar
relation performer
['16th Avenue', 'performer', 'L. Shankar']
ASK WHERE { resource:L._Shankar property:performer resource:16th_Avenue }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q961108 Q7975166
P27
Q15617994
USER
Is Zack Kim a civilian of Waukesha School District ?
(Q961108,P27,Q7975166)
action is_in
entity Q7975166
action find
entity Q961108
relation P27
['Q961108', 'P27', 'Q7975166']
ASK WHERE { resource:Q961108 property:P27 resource:Q7975166 }
Zack Kim Waukesha School District
action is_in
entity Waukesha School District
action find
entity Zack Kim
relation country of citizenship
['Zack Kim', 'country of citizenship', 'Waukesha School District']
ASK WHERE { resource:Zack_Kim property:country_of_citizenship resource:Waukesha_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q961108,P27,Q7975166)
action is_in
entity Q7975166
action find
entity Q961108
relation P27
[ANSWER]
['Q961108', 'P27', 'Q7975166']
ASK WHERE { resource:Q961108 property:P27 resource:Q7975166 }
No
action is_in
entity Waukesha School District
action find
entity Zack Kim
relation country of citizenship
['Zack Kim', 'country of citizenship', 'Waukesha School District']
ASK WHERE { resource:Zack_Kim property:country_of_citizenship resource:Waukesha_School_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1396801 Q15525667
P19
Q56061
USER
How many administrative territories are the places of birth of L. Shankar or Gerald and Sara Murphy ?
(Q1396801,P19,c(Q56061)) (Q15525667,P19,c(Q56061))
action count
action union
action filter_type
action find
entity Q1396801
relation P19
type Q56061
action filter_type
action find
entity Q15525667
relation P19
type Q56061
['Q1396801', 'P19', {'concept': 'Q56061'}] ['Q15525667', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?a ) { ( resource:Q1396801 ) ( resource:Q15525667 ) } . ?a property:P19 ?x }
L. Shankar Gerald and Sara Murphy
action count
action union
action filter_type
action find
entity L. Shankar
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Gerald and Sara Murphy
relation place of birth
type administrative territorial entity
['L. Shankar', 'place of birth', {'concept': 'administrative territorial entity'}] ['Gerald and Sara Murphy', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?a ) { ( resource:L._Shankar ) ( resource:Gerald_and_Sara_Murphy ) } . ?a property:place_of_birth ?x }
[]
administrative territorial entity
SYSTEM
2
Q1352 Q100
(Q1396801,P19,c(Q56061)) (Q15525667,P19,c(Q56061))
action count
action union
action filter_type
action find
entity Q1396801
relation P19
type Q56061
action filter_type
action find
entity Q15525667
relation P19
type Q56061
[ANSWER]
['Q1396801', 'P19', {'concept': 'Q56061'}] ['Q15525667', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?a ) { ( resource:Q1396801 ) ( resource:Q15525667 ) } . ?a property:P19 ?x }
Chennai Boston
2
action count
action union
action filter_type
action find
entity L. Shankar
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Gerald and Sara Murphy
relation place of birth
type administrative territorial entity
['L. Shankar', 'place of birth', {'concept': 'administrative territorial entity'}] ['Gerald and Sara Murphy', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { VALUES ( ?a ) { ( resource:L._Shankar ) ( resource:Gerald_and_Sara_Murphy ) } . ?a property:place_of_birth ?x }
[]