Simple Question (Direct)
Simple Question
Q712128
P1303
Q34379
USER
Which musical instrument is played by Alexis Weissenberg ?
(Q712128,P1303,c(Q34379))
action filter_type
action find
entity Q712128
relation P1303
type Q34379
['Q712128', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { resource:Q712128 property:P1303 ?e . ?e rdf:type ontology:Q34379 }
Alexis Weissenberg
action filter_type
action find
entity Alexis Weissenberg
relation instrument
type musical instrument
['Alexis Weissenberg', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { resource:Alexis_Weissenberg property:instrument ?e . ?e rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q712128,P1303,c(Q34379))
action filter_type
action find
entity Q712128
relation P1303
type Q34379
[ANSWER] is played by Alexis Weissenberg
['Q712128', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { resource:Q712128 property:P1303 ?e . ?e rdf:type ontology:Q34379 }
piano
Piano is played by Alexis Weissenberg
piano
action filter_type
action find
entity Alexis Weissenberg
relation instrument
type musical instrument
['Alexis Weissenberg', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { resource:Alexis_Weissenberg property:instrument ?e . ?e rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q712128
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q5994,P19,c(Q56061))
action filter_type
action find
entity Q712128
relation P19
type Q56061
['Q5994', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q712128 property:P19 ?q }
Alexis Weissenberg
action filter_type
action find
entity Alexis Weissenberg
relation place of birth
type administrative territorial entity
['piano', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Alexis_Weissenberg property:place_of_birth ?q }
[]
administrative territorial entity
Q472
SYSTEM
Sofia
Q472
(Q5994,P19,c(Q56061))
action filter_type
action find
entity Q712128
relation P19
type Q56061
That person was born in [ANSWER]
['Q5994', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q712128 property:P19 ?q }
Sofia
That person was born in Sofia
Sofia
action filter_type
action find
entity Alexis Weissenberg
relation place of birth
type administrative territorial entity
['piano', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Alexis_Weissenberg property:place_of_birth ?q }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q190172
P870
Q34379 Q838948 Q15850590
USER
Which musical instruments were used in the composition of approximately the same number of works of art or theatrical genres as cymbal ?
(c(Q838948)|c(Q15850590),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 Q15850590
action count
action filter_multi_types
action find_reverse
entity Q190172
relation P870
type Q838948
type Q15850590
[[{'concept': 'Q838948'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q15850590 ) } . ?c rdf:type ?l } GROUP BY ?s } . FILTER ( ?i = ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:P870 resource:Q190172 . { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:Q838948 ) ( ontology:Q15850590 ) } } } } }
cymbal
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 theatrical genre
action count
action filter_multi_types
action find_reverse
entity cymbal
relation instrumentation
type work of art
type theatrical genre
[[{'concept': 'work of art'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:theatrical_genre ) } . ?c rdf:type ?l } GROUP BY ?s } . FILTER ( ?i = ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:instrumentation resource:cymbal . { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:work_of_art ) ( ontology:theatrical_genre ) } } } } }
[]
musical instrument work of art theatrical genre
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q838948)|c(Q15850590),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 Q15850590
action count
action filter_multi_types
action find_reverse
entity Q190172
relation P870
type Q838948
type Q15850590
[ANSWERS] were used in the composition of approximately the same number of works of art or theatrical genres as cymbal
[[{'concept': 'Q838948'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q15850590 ) } . ?c rdf:type ?l } GROUP BY ?s } . FILTER ( ?i = ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:P870 resource:Q190172 . { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:Q838948 ) ( ontology:Q15850590 ) } } } } }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca violin drum vibraphone harpsichord
Baryton, harpsichord and viola were used in the composition of approximately the same number of works of art or theatrical genres as cymbal
baryton harpsichord viola
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 theatrical genre
action count
action filter_multi_types
action find_reverse
entity cymbal
relation instrumentation
type work of art
type theatrical genre
[[{'concept': 'work of art'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:theatrical_genre ) } . ?c rdf:type ?l } GROUP BY ?s } . FILTER ( ?i = ?t ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:instrumentation resource:cymbal . { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:work_of_art ) ( ontology:theatrical_genre ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q213461
P870
Q34379 Q838948 Q15850590
USER
And how about harmonium?
(c(Q838948)|c(Q15850590),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 Q15850590
action count
action filter_multi_types
action find_reverse
entity Q213461
relation P870
type Q838948
type Q15850590
[[{'concept': 'Q838948'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?k WHERE { VALUES ( ?w ) { ( ontology:Q15850590 ) ( ontology:Q838948 ) } . ?v rdf:type ?w } GROUP BY ?k } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P870 resource:Q213461 . { { ?q rdf:type ontology:Q838948 } UNION { ?q rdf:type ontology:Q15850590 } } } } }
harmonium
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 theatrical genre
action count
action filter_multi_types
action find_reverse
entity harmonium
relation instrumentation
type work of art
type theatrical genre
[[{'concept': 'work of art'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?k WHERE { VALUES ( ?w ) { ( ontology:theatrical_genre ) ( ontology:work_of_art ) } . ?v rdf:type ?w } GROUP BY ?k } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:instrumentation resource:harmonium . { { ?q rdf:type ontology:work_of_art } UNION { ?q rdf:type ontology:theatrical_genre } } } } }
[]
musical instrument work of art theatrical genre
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q838948)|c(Q15850590),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 Q15850590
action count
action filter_multi_types
action find_reverse
entity Q213461
relation P870
type Q838948
type Q15850590
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?k WHERE { VALUES ( ?w ) { ( ontology:Q15850590 ) ( ontology:Q838948 ) } . ?v rdf:type ?w } GROUP BY ?k } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P870 resource:Q213461 . { { ?q rdf:type ontology:Q838948 } UNION { ?q rdf:type ontology:Q15850590 } } } } }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca violin drum vibraphone harpsichord
baryton harpsichord viola
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 theatrical genre
action count
action filter_multi_types
action find_reverse
entity harmonium
relation instrumentation
type work of art
type theatrical genre
[[{'concept': 'work of art'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?k WHERE { VALUES ( ?w ) { ( ontology:theatrical_genre ) ( ontology:work_of_art ) } . ?v rdf:type ?w } GROUP BY ?k } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:instrumentation resource:harmonium . { { ?q rdf:type ontology:work_of_art } UNION { ?q rdf:type ontology:theatrical_genre } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q472
P1376
Q7275
USER
Which state has Sofia has its first city ?
(Q472,P1376,c(Q7275))
action filter_type
action find
entity Q472
relation P1376
type Q7275
['Q472', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q472 property:P1376 ?l . ?l rdf:type ontology:Q7275 }
Sofia
action filter_type
action find
entity Sofia
relation capital of
type state
['Sofia', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Sofia property:capital_of ?l . ?l rdf:type ontology:state }
[]
state
Q147909
SYSTEM
Kingdom of Bulgaria
Q147909
(Q472,P1376,c(Q7275))
action filter_type
action find
entity Q472
relation P1376
type Q7275
The [ANSWER] has Sofia has its first city
['Q472', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q472 property:P1376 ?l . ?l rdf:type ontology:Q7275 }
Kingdom of Bulgaria
The Kingdom of Bulgaria has Sofia has its first city
Kingdom of Bulgaria
action filter_type
action find
entity Sofia
relation capital of
type state
['Sofia', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Sofia property:capital_of ?l . ?l rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q147909
P47
Q7275
USER
Which state has an adjacent border with that one ?
(c(Q7275),P47,Q147909)
action filter_type
action find_reverse
entity Q147909
relation P47
type Q7275
[{'concept': 'Q7275'}, 'P47', 'Q147909']
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q147909 . ?b rdf:type ontology:Q7275 }
Kingdom of Bulgaria
action filter_type
action find_reverse
entity Kingdom of Bulgaria
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Kingdom of Bulgaria']
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Kingdom_of_Bulgaria . ?b rdf:type ontology:state }
[]
state
Q1277557
SYSTEM
Democratic Federal Yugoslavia
Q1277557
(c(Q7275),P47,Q147909)
action filter_type
action find_reverse
entity Q147909
relation P47
type Q7275
[ANSWER] has an adjacent border with that one
[{'concept': 'Q7275'}, 'P47', 'Q147909']
SELECT DISTINCT ?b WHERE { ?b property:P47 resource:Q147909 . ?b rdf:type ontology:Q7275 }
Democratic Federal Yugoslavia
Democratic Federal Yugoslavia has an adjacent border with that one
Democratic Federal Yugoslavia
action filter_type
action find_reverse
entity Kingdom of Bulgaria
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Kingdom of Bulgaria']
SELECT DISTINCT ?b WHERE { ?b property:shares_border_with resource:Kingdom_of_Bulgaria . ?b rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1277557
P27
Q502895
USER
Which people are civilians of that state ?
(c(Q502895),P27,Q1277557)
action filter_type
action find_reverse
entity Q1277557
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q1277557']
SELECT DISTINCT ?g WHERE { ?g property:P27 resource:Q1277557 . ?g rdf:type ontology:Q502895 }
Democratic Federal Yugoslavia
action filter_type
action find_reverse
entity Democratic Federal Yugoslavia
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Democratic Federal Yugoslavia']
SELECT DISTINCT ?g WHERE { ?g property:country_of_citizenship resource:Democratic_Federal_Yugoslavia . ?g rdf:type ontology:common_name }
[]
common name
Q149090 Q9161
SYSTEM
Ivan Ribar, Josip Broz Tito
Q149090 Q9161
(c(Q502895),P27,Q1277557)
action filter_type
action find_reverse
entity Q1277557
relation P27
type Q502895
[ANSWERS] are civilians of that state
[{'concept': 'Q502895'}, 'P27', 'Q1277557']
SELECT DISTINCT ?g WHERE { ?g property:P27 resource:Q1277557 . ?g rdf:type ontology:Q502895 }
Ivan Ribar Josip Broz Tito
Ivan Ribar and Josip Broz Tito are civilians of that state
Ivan Ribar Josip Broz Tito
action filter_type
action find_reverse
entity Democratic Federal Yugoslavia
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Democratic Federal Yugoslavia']
SELECT DISTINCT ?g WHERE { ?g property:country_of_citizenship resource:Democratic_Federal_Yugoslavia . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q149090 Q9161
P106
Q12737077
USER
What are the professions of Ivan Ribar and Josip Broz Tito ?
(Q149090,P106,c(Q12737077)) (Q9161,P106,c(Q12737077))
action union
action filter_type
action find
entity Q149090
relation P106
type Q12737077
action filter_type
action find
entity Q9161
relation P106
type Q12737077
['Q149090', 'P106', {'concept': 'Q12737077'}] ['Q9161', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?u ) { ( resource:Q9161 ) ( resource:Q149090 ) } . ?u property:P106 ?t }
Ivan Ribar Josip Broz Tito
action union
action filter_type
action find
entity Ivan Ribar
relation occupation
type occupation
action filter_type
action find
entity Josip Broz Tito
relation occupation
type occupation
['Ivan Ribar', 'occupation', {'concept': 'occupation'}] ['Josip Broz Tito', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?u ) { ( resource:Josip_Broz_Tito ) ( resource:Ivan_Ribar ) } . ?u property:occupation ?t }
[]
occupation
Q82955 Q372436 Q82955
SYSTEM
statesman for 2nd, politician for 1st, 3rd
Q82955 Q168559 Q372436 Q82955 Q196721
(Q149090,P106,c(Q12737077)) (Q9161,P106,c(Q12737077))
action union
action filter_type
action find
entity Q149090
relation P106
type Q12737077
action filter_type
action find
entity Q9161
relation P106
type Q12737077
[ANSWERS]
['Q149090', 'P106', {'concept': 'Q12737077'}] ['Q9161', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?u ) { ( resource:Q9161 ) ( resource:Q149090 ) } . ?u property:P106 ?t }
politician political commissar statesman politician machinist
The professions of Ivan Ribar and Josip Broz Tito are the politician, statesman and politician
politician statesman politician
action union
action filter_type
action find
entity Ivan Ribar
relation occupation
type occupation
action filter_type
action find
entity Josip Broz Tito
relation occupation
type occupation
['Ivan Ribar', 'occupation', {'concept': 'occupation'}] ['Josip Broz Tito', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?u ) { ( resource:Josip_Broz_Tito ) ( resource:Ivan_Ribar ) } . ?u property:occupation ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q149090
P22
Q502895
USER
Who are the offspring of that one ?
(c(Q502895),P22,Q149090)
action filter_type
action find_reverse
entity Q149090
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q149090']
SELECT DISTINCT ?k WHERE { ?k property:P22 resource:Q149090 . ?k rdf:type ontology:Q502895 }
Ivan Ribar
action filter_type
action find_reverse
entity Ivan Ribar
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ivan Ribar']
SELECT DISTINCT ?k WHERE { ?k property:father resource:Ivan_Ribar . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q149090
SYSTEM
Did you mean Ivan Ribar ?
Q82955 Q372436 Q82955
(c(Q502895),P22,Q82955) (c(Q502895),P22,Q372436) (c(Q502895),P22,Q82955)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q82955'] [{'concept': 'Q502895'}, 'P22', 'Q372436'] [{'concept': 'Q502895'}, 'P22', 'Q82955']
SELECT DISTINCT ?k WHERE { ?k property:P22 resource:Q149090 . ?k rdf:type ontology:Q502895 }
politician statesman politician
Did you mean Ivan Ribar ?
Ivan Ribar
[{'concept': 'common name'}, 'father', 'politician'] [{'concept': 'common name'}, 'father', 'statesman'] [{'concept': 'common name'}, 'father', 'politician']
SELECT DISTINCT ?k WHERE { ?k property:father resource:Ivan_Ribar . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P22,Q149090)
[{'concept': 'Q502895'}, 'P22', 'Q149090']
[{'concept': 'common name'}, 'father', 'Ivan Ribar']
[]
Q12747866 Q1265884
SYSTEM
Jurica Ribar, Ivo Lola Ribar
Q12747866 Q1265884
(c(Q502895),P22,Q149090)
action filter_type
action find_reverse
entity Q149090
relation P22
type Q502895
The offspring of that one are the [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q149090']
SELECT DISTINCT ?k WHERE { ?k property:P22 resource:Q149090 . ?k rdf:type ontology:Q502895 }
Jurica Ribar Ivo Lola Ribar
The offspring of that one are the Jurica Ribar and Ivo Lola Ribar
Jurica Ribar Ivo Lola Ribar
action filter_type
action find_reverse
entity Ivan Ribar
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ivan Ribar']
SELECT DISTINCT ?k WHERE { ?k property:father resource:Ivan_Ribar . ?k rdf:type ontology:common_name }
[]