Simple Question (Direct)
Simple Question
Q18205960
P57
Q502895
USER
Who was the director of Eyes of a Thief ?
(Q18205960,P57,c(Q502895))
action filter_type
action find
entity Q18205960
relation P57
type Q502895
['Q18205960', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q18205960 property:P57 ?i . ?i rdf:type ontology:Q502895 }
Eyes of a Thief
action filter_type
action find
entity Eyes of a Thief
relation director
type common name
['Eyes of a Thief', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Eyes_of_a_Thief property:director ?i . ?i rdf:type ontology:common_name }
[]
common name
Q16733136
SYSTEM
Najwa Najjar
Q16733136
(Q18205960,P57,c(Q502895))
action filter_type
action find
entity Q18205960
relation P57
type Q502895
The director of Eyes of a Thief was by [ANSWER]
['Q18205960', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q18205960 property:P57 ?i . ?i rdf:type ontology:Q502895 }
Najwa Najjar
The director of Eyes of a Thief was by Najwa Najjar
Najwa Najjar
action filter_type
action find
entity Eyes of a Thief
relation director
type common name
['Eyes of a Thief', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Eyes_of_a_Thief property:director ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16733136
P58
Q838948
USER
Which works of art are that person a screwriter of ?
(c(Q838948),P58,Q16733136)
action filter_type
action find_reverse
entity Q16733136
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q16733136']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q838948 . ?t property:P58 resource:Q16733136 }
Najwa Najjar
action filter_type
action find_reverse
entity Najwa Najjar
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Najwa Najjar']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:work_of_art . ?t property:screenwriter resource:Najwa_Najjar }
[]
work of art
Q18205960 Q22675018
SYSTEM
Eyes of a Thief, Pomegranates and Myrrh
Q18205960 Q22675018
(c(Q838948),P58,Q16733136)
action filter_type
action find_reverse
entity Q16733136
relation P58
type Q838948
[ANSWERS] are that person a screwriter of
[{'concept': 'Q838948'}, 'P58', 'Q16733136']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q838948 . ?t property:P58 resource:Q16733136 }
Eyes of a Thief Pomegranates and Myrrh
Eyes of a Thief and Pomegranates and Myrrh are that person a screwriter of
Eyes of a Thief Pomegranates and Myrrh
action filter_type
action find_reverse
entity Najwa Najjar
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Najwa Najjar']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:work_of_art . ?t property:screenwriter resource:Najwa_Najjar }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22675018
P86
Q502895
USER
Who was Pomegranates and Myrrh composed by ?
(Q22675018,P86,c(Q502895))
action filter_type
action find
entity Q22675018
relation P86
type Q502895
['Q22675018', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q22675018 property:P86 ?u . ?u rdf:type ontology:Q502895 }
Pomegranates and Myrrh
action filter_type
action find
entity Pomegranates and Myrrh
relation composer
type common name
['Pomegranates and Myrrh', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Pomegranates_and_Myrrh property:composer ?u . ?u rdf:type ontology:common_name }
[]
common name
Q1336515
SYSTEM
Mychael Danna
Q1336515
(Q22675018,P86,c(Q502895))
action filter_type
action find
entity Q22675018
relation P86
type Q502895
[ANSWER] Pomegranates and Myrrh was composed by
['Q22675018', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q22675018 property:P86 ?u . ?u rdf:type ontology:Q502895 }
Mychael Danna
Mychael Danna Pomegranates and Myrrh was composed by
Mychael Danna
action filter_type
action find
entity Pomegranates and Myrrh
relation composer
type common name
['Pomegranates and Myrrh', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Pomegranates_and_Myrrh property:composer ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1336515 Q4514731
P27
Q1048835
USER
Is that person a civilian of Cherche ?
(Q1336515,P27,Q4514731)
action is_in
entity Q4514731
action find
entity Q1336515
relation P27
['Q1336515', 'P27', 'Q4514731']
ASK WHERE { resource:Q1336515 property:P27 resource:Q4514731 }
Mychael Danna Cherche
action is_in
entity Cherche
action find
entity Mychael Danna
relation country of citizenship
['Mychael Danna', 'country of citizenship', 'Cherche']
ASK WHERE { resource:Mychael_Danna property:country_of_citizenship resource:Cherche }
[]
political territorial entity
SYSTEM
NO
(Q1336515,P27,Q4514731)
action is_in
entity Q4514731
action find
entity Q1336515
relation P27
[ANSWER]
['Q1336515', 'P27', 'Q4514731']
ASK WHERE { resource:Q1336515 property:P27 resource:Q4514731 }
No
action is_in
entity Cherche
action find
entity Mychael Danna
relation country of citizenship
['Mychael Danna', 'country of citizenship', 'Cherche']
ASK WHERE { resource:Mychael_Danna property:country_of_citizenship resource:Cherche }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q6023877
P608
Q1656682 Q2668072 Q838948
USER
Which works of art were displayed at around the same number of events or collections as Indianapolis Island ?
(c(Q838948),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action find_tuple_counts
relation P608
type Q838948
type Q2668072
action count
action filter_multi_types
action find
entity Q6023877
relation P608
type Q1656682
type Q2668072
[{'concept': 'Q838948'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Q6023877 property:P608 ?s . { { ?s rdf:type ontology:Q2668072 } UNION { ?s rdf:type ontology:Q1656682 } } } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e property:P608 ?j . ?j rdf:type ontology:Q1656682 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P608 ?j . ?e rdf:type ontology:Q838948 . ?j rdf:type ontology:Q2668072 } } GROUP BY ?e } }
Indianapolis Island
action approx
action union
action find_tuple_counts
relation exhibition history
type work of art
type event
action find_tuple_counts
relation exhibition history
type work of art
type collection
action count
action filter_multi_types
action find
entity Indianapolis Island
relation exhibition history
type event
type collection
[{'concept': 'work of art'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Indianapolis_Island property:exhibition_history ?s . { { ?s rdf:type ontology:collection } UNION { ?s rdf:type ontology:event } } } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e property:exhibition_history ?j . ?j rdf:type ontology:event . ?e rdf:type ontology:work_of_art } UNION { ?e property:exhibition_history ?j . ?e rdf:type ontology:work_of_art . ?j rdf:type ontology:collection } } GROUP BY ?e } }
[]
event collection work of art
Q17450435 Q17451496 Q19336387
SYSTEM
The Chaste Susannah, Nymph with a Scorpion, The Bacchante
Q19205951 Q15732837 Q18147641 Q17515936 Q4945054 Q3209857 Q531329 Q6023012 Q20926408 Q17104796 Q18610104 Q1219934 Q1122002 Q17515944 Q7560304 Q17451496 Q27069181 Q21672346 Q27037078 Q7170104 Q17450435 Q19336387 Q23815653 Q27095565 Q18156075 Q19061858 Q2543426 Q17442738 Q3428050 Q19204452 Q5818528 Q19347596 Q232087 Q17324780 Q4563532 Q17442691 Q15275645 Q4780980 Q457675 Q22920411 Q10954 Q1741424 Q6023877 Q19347123 Q19336183 Q19257953 Q17305020 Q2914912 Q3068259 Q3774964 Q5509283 Q22928187 Q3555769 Q18324892 Q3401618 Q6459619 Q3178029 Q2467518 Q526178 Q19257244 Q19205428 Q19257736 Q697208 Q21743180 Q734834
(c(Q838948),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action find_tuple_counts
relation P608
type Q838948
type Q2668072
action count
action filter_multi_types
action find
entity Q6023877
relation P608
type Q1656682
type Q2668072
[ANSWERS] were displayed at around the same number of events or collections as Indianapolis Island
[{'concept': 'Q838948'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Q6023877 property:P608 ?s . { { ?s rdf:type ontology:Q2668072 } UNION { ?s rdf:type ontology:Q1656682 } } } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e property:P608 ?j . ?j rdf:type ontology:Q1656682 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P608 ?j . ?e rdf:type ontology:Q838948 . ?j rdf:type ontology:Q2668072 } } GROUP BY ?e } }
Hyacinth wounded Marble bust of Titian The Death of Lais Shepherd Playing the Flute Sleeping Hermaphrodite La Jeune Tarentine The Embarkation for Cythera Indiana Dirty Corner Dial H-I-S-T-O-R-Y The Three Graces The Destroyed City Altarpiece of St. Vincent Ferrer Bacchante and Goat Sometimes I Sits Nymph with a Scorpion John the Baptist and St Agnes Legend of Saint George (polyptych) Flying Carpets Persephone The Chaste Susannah The Bacchante Saint Anne with the Virgin and Child Wings of a polyptych with donors -Man with son and Saint, Woman with daughters and Saint (burned) Dying Eurydice Sapho Dancing Satyr of Mazara del Vallo Neapolitan fisherboy Christ with singing and music-making Angels Sappho Oedipus and the Sphinx Egyptian Harpist Two men contemplating the Moon Cleopatra Jason with the Golden Fleece Neapolitan fisherboy Mrs. de Verninac as Diana the Huntress Appeal to the Great Spirit It Is Not the Homosexual Who Is Perverse, But the Society in Which He Lives The Simpleton Democritus meditating on the seat of the soul Man walking to the sky Indianapolis Island Bacchant Marie Carrier-Belleuse Prayer Tanagra The Stone Breakers Femme piquée par un serpent Saint Vincent Panels Funky Bones The Victory Vercingétorix Saint Sebastian Premier Artiste LOVE Jeune fille de Mégare Visions of the Hereafter The Age of Bronze Homer Suzanne bathing Napoleon I in Coronation Robes Cellini Salt Cellar Berry Dress Ghent Altarpiece
The Chaste Susannah, Nymph with a Scorpion and The Bacchante were displayed at around the same number of events or collections as Indianapolis Island
The Chaste Susannah Nymph with a Scorpion The Bacchante
action approx
action union
action find_tuple_counts
relation exhibition history
type work of art
type event
action find_tuple_counts
relation exhibition history
type work of art
type collection
action count
action filter_multi_types
action find
entity Indianapolis Island
relation exhibition history
type event
type collection
[{'concept': 'work of art'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { resource:Indianapolis_Island property:exhibition_history ?s . { { ?s rdf:type ontology:collection } UNION { ?s rdf:type ontology:event } } } } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?o ) WHERE { { ?e property:exhibition_history ?j . ?j rdf:type ontology:event . ?e rdf:type ontology:work_of_art } UNION { ?e property:exhibition_history ?j . ?e rdf:type ontology:work_of_art . ?j rdf:type ontology:collection } } GROUP BY ?e } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2467518
P608
Q1656682 Q2668072 Q838948
USER
And also tell me about Visions of the Hereafter?
(c(Q838948),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action find_tuple_counts
relation P608
type Q838948
type Q2668072
action count
action filter_multi_types
action find
entity Q2467518
relation P608
type Q1656682
type Q2668072
[{'concept': 'Q838948'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { { ?m rdf:type ontology:Q2668072 } UNION { ?m rdf:type ontology:Q1656682 } } . resource:Q2467518 property:P608 ?m } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) ?f WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1656682 ) ( ontology:Q2668072 ) } } GROUP BY ?f } }
Visions of the Hereafter
action approx
action union
action find_tuple_counts
relation exhibition history
type work of art
type event
action find_tuple_counts
relation exhibition history
type work of art
type collection
action count
action filter_multi_types
action find
entity Visions of the Hereafter
relation exhibition history
type event
type collection
[{'concept': 'work of art'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { { ?m rdf:type ontology:collection } UNION { ?m rdf:type ontology:event } } . resource:Visions_of_the_Hereafter property:exhibition_history ?m } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) ?f WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:event ) ( ontology:collection ) } } GROUP BY ?f } }
[]
event collection work of art
Q17450435 Q17451496 Q19336387
SYSTEM
The Chaste Susannah, Nymph with a Scorpion, The Bacchante
Q19205951 Q15732837 Q18147641 Q17515936 Q4945054 Q3209857 Q531329 Q6023012 Q20926408 Q17104796 Q18610104 Q1219934 Q1122002 Q17515944 Q7560304 Q17451496 Q27069181 Q21672346 Q27037078 Q7170104 Q17450435 Q19336387 Q23815653 Q27095565 Q18156075 Q19061858 Q2543426 Q17442738 Q3428050 Q19204452 Q5818528 Q19347596 Q232087 Q17324780 Q4563532 Q17442691 Q15275645 Q4780980 Q457675 Q22920411 Q10954 Q1741424 Q6023877 Q19347123 Q19336183 Q19257953 Q17305020 Q2914912 Q3068259 Q3774964 Q5509283 Q22928187 Q3555769 Q18324892 Q3401618 Q6459619 Q3178029 Q2467518 Q526178 Q19257244 Q19205428 Q19257736 Q697208 Q21743180 Q734834
(c(Q838948),P608,c(Q1656682)|c(Q2668072))
action approx
action union
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action find_tuple_counts
relation P608
type Q838948
type Q2668072
action count
action filter_multi_types
action find
entity Q2467518
relation P608
type Q1656682
type Q2668072
[ANSWERS]
[{'concept': 'Q838948'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { { ?m rdf:type ontology:Q2668072 } UNION { ?m rdf:type ontology:Q1656682 } } . resource:Q2467518 property:P608 ?m } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) ?f WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1656682 ) ( ontology:Q2668072 ) } } GROUP BY ?f } }
Hyacinth wounded Marble bust of Titian The Death of Lais Shepherd Playing the Flute Sleeping Hermaphrodite La Jeune Tarentine The Embarkation for Cythera Indiana Dirty Corner Dial H-I-S-T-O-R-Y The Three Graces The Destroyed City Altarpiece of St. Vincent Ferrer Bacchante and Goat Sometimes I Sits Nymph with a Scorpion John the Baptist and St Agnes Legend of Saint George (polyptych) Flying Carpets Persephone The Chaste Susannah The Bacchante Saint Anne with the Virgin and Child Wings of a polyptych with donors -Man with son and Saint, Woman with daughters and Saint (burned) Dying Eurydice Sapho Dancing Satyr of Mazara del Vallo Neapolitan fisherboy Christ with singing and music-making Angels Sappho Oedipus and the Sphinx Egyptian Harpist Two men contemplating the Moon Cleopatra Jason with the Golden Fleece Neapolitan fisherboy Mrs. de Verninac as Diana the Huntress Appeal to the Great Spirit It Is Not the Homosexual Who Is Perverse, But the Society in Which He Lives The Simpleton Democritus meditating on the seat of the soul Man walking to the sky Indianapolis Island Bacchant Marie Carrier-Belleuse Prayer Tanagra The Stone Breakers Femme piquée par un serpent Saint Vincent Panels Funky Bones The Victory Vercingétorix Saint Sebastian Premier Artiste LOVE Jeune fille de Mégare Visions of the Hereafter The Age of Bronze Homer Suzanne bathing Napoleon I in Coronation Robes Cellini Salt Cellar Berry Dress Ghent Altarpiece
The Chaste Susannah Nymph with a Scorpion The Bacchante
action approx
action union
action find_tuple_counts
relation exhibition history
type work of art
type event
action find_tuple_counts
relation exhibition history
type work of art
type collection
action count
action filter_multi_types
action find
entity Visions of the Hereafter
relation exhibition history
type event
type collection
[{'concept': 'work of art'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'collection'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { { ?m rdf:type ontology:collection } UNION { ?m rdf:type ontology:event } } . resource:Visions_of_the_Hereafter property:exhibition_history ?m } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) ?f WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:event ) ( ontology:collection ) } } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q72937 Q17451496
P127 P22
Q502895
USER
Which people owned Nymph with a Scorpion or were the father of Kraft, Prince of Hohenlohe-Langenburg ?
OR((Q17451496,P127,c(Q502895)), (Q72937,P22,c(Q502895)))
action filter_type
action union
action find
entity Q17451496
relation P127
action find
entity Q72937
relation P22
type Q502895
{'OR': [['Q17451496', 'P127', {'concept': 'Q502895'}], ['Q72937', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q17451496 property:P127 ?g } UNION { resource:Q72937 property:P22 ?g } } . ?g rdf:type ontology:Q502895 }
Kraft, Prince of Hohenlohe-Langenburg Nymph with a Scorpion
action filter_type
action union
action find
entity Nymph with a Scorpion
relation owned by
action find
entity Kraft, Prince of Hohenlohe-Langenburg
relation father
type common name
{'OR': [['Nymph with a Scorpion', 'owned by', {'concept': 'common name'}], ['Kraft, Prince of Hohenlohe-Langenburg', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Nymph_with_a_Scorpion property:owned_by ?g } UNION { resource:Kraft,_Prince_of_Hohenlohe-Langenburg property:father ?g } } . ?g rdf:type ontology:common_name }
[]
common name
Q66546 Q2960520
SYSTEM
Gottfried, Charles de Beauvau, Prince of Beauvau
Q66546 Q2960520
OR((Q17451496,P127,c(Q502895)), (Q72937,P22,c(Q502895)))
action filter_type
action union
action find
entity Q17451496
relation P127
action find
entity Q72937
relation P22
type Q502895
[ANSWERS]
{'OR': [['Q17451496', 'P127', {'concept': 'Q502895'}], ['Q72937', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q17451496 property:P127 ?g } UNION { resource:Q72937 property:P22 ?g } } . ?g rdf:type ontology:Q502895 }
Gottfried Charles de Beauvau, Prince of Beauvau
Gottfried and Charles de Beauvau, Prince of Beauvau owned Nymph with a Scorpion or were the father of Kraft, Prince of Hohenlohe-Langenburg
Gottfried Charles de Beauvau, Prince of Beauvau
action filter_type
action union
action find
entity Nymph with a Scorpion
relation owned by
action find
entity Kraft, Prince of Hohenlohe-Langenburg
relation father
type common name
{'OR': [['Nymph with a Scorpion', 'owned by', {'concept': 'common name'}], ['Kraft, Prince of Hohenlohe-Langenburg', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Nymph_with_a_Scorpion property:owned_by ?g } UNION { resource:Kraft,_Prince_of_Hohenlohe-Langenburg property:father ?g } } . ?g rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2914912
P608
Q56061 Q1656682 Q838948
USER
How many works of art were displayed at greater number of administrative territories and events than The Stone Breakers ?
(c(Q838948),P608,c(Q56061)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q838948
type Q56061
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action count
action filter_multi_types
action find
entity Q2914912
relation P608
type Q56061
type Q1656682
[{'concept': 'Q838948'}, 'P608', [{'concept': 'Q56061'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) ?k WHERE { VALUES ( ?z ) { ( ontology:Q56061 ) ( ontology:Q1656682 ) } . ?a rdf:type ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q2914912 property:P608 ?n . { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1656682 ) ( ontology:Q56061 ) } } } } . FILTER ( ?d > ?j ) }
The Stone Breakers
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type work of art
type administrative territorial entity
action find_tuple_counts
relation exhibition history
type work of art
type event
action count
action filter_multi_types
action find
entity The Stone Breakers
relation exhibition history
type administrative territorial entity
type event
[{'concept': 'work of art'}, 'exhibition history', [{'concept': 'administrative territorial entity'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) ?k WHERE { VALUES ( ?z ) { ( ontology:administrative_territorial_entity ) ( ontology:event ) } . ?a rdf:type ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:The_Stone_Breakers property:exhibition_history ?n . { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:event ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?d > ?j ) }
[]
administrative territorial entity event work of art
SYSTEM
6
Q7170104 Q4780980 Q3358458 Q521447 Q1553211 Q3212334
(c(Q838948),P608,c(Q56061)|c(Q1656682))
action count
action greater
action union
action find_tuple_counts
relation P608
type Q838948
type Q56061
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action count
action filter_multi_types
action find
entity Q2914912
relation P608
type Q56061
type Q1656682
[ANSWER]
[{'concept': 'Q838948'}, 'P608', [{'concept': 'Q56061'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) ?k WHERE { VALUES ( ?z ) { ( ontology:Q56061 ) ( ontology:Q1656682 ) } . ?a rdf:type ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q2914912 property:P608 ?n . { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1656682 ) ( ontology:Q56061 ) } } } } . FILTER ( ?d > ?j ) }
Persephone Appeal to the Great Spirit Ours blanc L'Action enchaînée Guennol Lioness La Rivière
6
action count
action greater
action union
action find_tuple_counts
relation exhibition history
type work of art
type administrative territorial entity
action find_tuple_counts
relation exhibition history
type work of art
type event
action count
action filter_multi_types
action find
entity The Stone Breakers
relation exhibition history
type administrative territorial entity
type event
[{'concept': 'work of art'}, 'exhibition history', [{'concept': 'administrative territorial entity'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) ?k WHERE { VALUES ( ?z ) { ( ontology:administrative_territorial_entity ) ( ontology:event ) } . ?a rdf:type ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:The_Stone_Breakers property:exhibition_history ?n . { ?n rdf:type ?f . VALUES ( ?f ) { ( ontology:event ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?d > ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 1598 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1598
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?z = 1598 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1598
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?z = 1598 ) }
[]
musical instrument common name
Q80284 Q46185 Q80019
SYSTEM
viola, bass guitar, double bass
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1598
[ANSWERS] can around 1598 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:P1303 ?h . ?h rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?h } . FILTER ( ?z = 1598 ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
Viola, bass guitar and double bass can around 1598 people perform with
viola bass guitar double bass
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1598
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?z ) WHERE { ?j property:instrument ?h . ?h rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?h } . FILTER ( ?z = 1598 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q386724
USER
Which works depict exactly 2 musical instruments ?
(c(Q386724),P180,c(Q34379))
action equal
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?p ) WHERE { ?g property:P180 ?b . ?g rdf:type ontology:Q386724 . ?b rdf:type ontology:Q34379 } GROUP BY ?g } . FILTER ( ?p = 2 ) }
action equal
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?p ) WHERE { ?g property:depicts ?b . ?g rdf:type ontology:work . ?b rdf:type ontology:musical_instrument } GROUP BY ?g } . FILTER ( ?p = 2 ) }
[]
musical instrument work
Q2901063
SYSTEM
Borghese Vase
Q2901063
(c(Q386724),P180,c(Q34379))
action equal
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[ANSWER] depict exactly 2 musical instruments
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?p ) WHERE { ?g property:P180 ?b . ?g rdf:type ontology:Q386724 . ?b rdf:type ontology:Q34379 } GROUP BY ?g } . FILTER ( ?p = 2 ) }
Borghese Vase
Borghese Vase depict exactly 2 musical instruments
Borghese Vase
action equal
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?p ) WHERE { ?g property:depicts ?b . ?g rdf:type ontology:work . ?b rdf:type ontology:musical_instrument } GROUP BY ?g } . FILTER ( ?p = 2 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2901063 Q157541
P180
Q15709879
USER
Does Sunflowers expresses that work ?
(Q157541,P180,Q2901063)
action is_in
entity Q157541
action find
entity Q2901063
relation P180
['Q157541', 'P180', 'Q2901063']
ASK WHERE { resource:Q2901063 property:P180 resource:Q157541 }
Borghese Vase Sunflowers
action is_in
entity Sunflowers
action find
entity Borghese Vase
relation depicts
['Sunflowers', 'depicts', 'Borghese Vase']
ASK WHERE { resource:Borghese_Vase property:depicts resource:Sunflowers }
[]
artwork series
SYSTEM
NO
(Q157541,P180,Q2901063)
action is_in
entity Q157541
action find
entity Q2901063
relation P180
[ANSWER]
['Q157541', 'P180', 'Q2901063']
ASK WHERE { resource:Q2901063 property:P180 resource:Q157541 }
No
action is_in
entity Sunflowers
action find
entity Borghese Vase
relation depicts
['Sunflowers', 'depicts', 'Borghese Vase']
ASK WHERE { resource:Borghese_Vase property:depicts resource:Sunflowers }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1905552 Q22675018
P47 P495
Q1048835
USER
Which political territories are the countries of origin of Pomegranates and Myrrh or are adjacent to Estaràs ?
OR((Q22675018,P495,c(Q1048835)), (Q1905552,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q22675018
relation P495
action find
entity Q1905552
relation P47
type Q1048835
{'OR': [['Q22675018', 'P495', {'concept': 'Q1048835'}], ['Q1905552', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1905552 property:P47 ?s } UNION { resource:Q22675018 property:P495 ?s } } . ?s rdf:type ontology:Q1048835 }
Estaràs Pomegranates and Myrrh
action filter_type
action union
action find
entity Pomegranates and Myrrh
relation country of origin
action find
entity Estaràs
relation shares border with
type political territorial entity
{'OR': [['Pomegranates and Myrrh', 'country of origin', {'concept': 'political territorial entity'}], ['Estaràs', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Estaràs property:shares_border_with ?s } UNION { resource:Pomegranates_and_Myrrh property:country_of_origin ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1917568 Q1917585 Q1916289 Q847011 Q183 Q15962 Q15945 Q1766650 Q943793
SYSTEM
Sant Ramon, Les Oluges, Ribera d'Ondara, Cervera, Germany, Pujalt, Castellfollit de Riubregós, Sant Guim de Freixenet, Ivorra
Q1917568 Q1917585 Q1916289 Q847011 Q183 Q15962 Q15945 Q1766650 Q943793
OR((Q22675018,P495,c(Q1048835)), (Q1905552,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q22675018
relation P495
action find
entity Q1905552
relation P47
type Q1048835
[ANSWERS] are the countries of origin of Pomegranates and Myrrh or are adjacent to Estaràs
{'OR': [['Q22675018', 'P495', {'concept': 'Q1048835'}], ['Q1905552', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1905552 property:P47 ?s } UNION { resource:Q22675018 property:P495 ?s } } . ?s rdf:type ontology:Q1048835 }
Sant Ramon Les Oluges Ribera d'Ondara Cervera Germany Pujalt Castellfollit de Riubregós Sant Guim de Freixenet Ivorra
Sant Ramon, Les Oluges, Ribera d'Ondara, Cervera, Germany, Pujalt, Castellfollit de Riubregós, Sant Guim de Freixenet and Ivorra are the countries of origin of Pomegranates and Myrrh or are adjacent to Estaràs
Sant Ramon Les Oluges Ribera d'Ondara Cervera Germany Pujalt Castellfollit de Riubregós Sant Guim de Freixenet Ivorra
action filter_type
action union
action find
entity Pomegranates and Myrrh
relation country of origin
action find
entity Estaràs
relation shares border with
type political territorial entity
{'OR': [['Pomegranates and Myrrh', 'country of origin', {'concept': 'political territorial entity'}], ['Estaràs', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Estaràs property:shares_border_with ?s } UNION { resource:Pomegranates_and_Myrrh property:country_of_origin ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q781
P85
Q484692 Q7725634 Q1048835
USER
Which political territories have less number of hymns and literary works as their anthem than Antigua and Barbuda ?
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q781
relation P85
type Q484692
type Q7725634
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Q781 property:P85 ?j . { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?z < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) ?l WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?l } }
Antigua and Barbuda
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Antigua and Barbuda
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Antigua_and_Barbuda property:anthem ?j . { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } . FILTER ( ?z < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) ?l WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?l } }
[]
hymn literary work political territorial entity
Q183 Q16 Q40
SYSTEM
Germany, Canada, Austria
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q1785790 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q781
relation P85
type Q484692
type Q7725634
[ANSWERS] have less number of hymns and literary works as their anthem than Antigua and Barbuda
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Q781 property:P85 ?j . { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?z < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) ?l WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?l } }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Selbach, Rio Grande do Sul Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
Germany, Canada and Austria have less number of hymns and literary works as their anthem than Antigua and Barbuda
Germany Canada Austria
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Antigua and Barbuda
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Antigua_and_Barbuda property:anthem ?j . { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } . FILTER ( ?z < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) ?l WHERE { ?b rdf:type ?d . VALUES ( ?d ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?l } }
[]