Simple Question (Direct)
Simple Question
Q19799238
P734
Q82799
USER
Who is associated with Sidney George Fisher ?
(Q19799238,P734,c(Q82799))
action filter_type
action find
entity Q19799238
relation P734
type Q82799
['Q19799238', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q19799238 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Sidney George Fisher
action filter_type
action find
entity Sidney George Fisher
relation family name
type name
['Sidney George Fisher', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Sidney_George_Fisher property:family_name ?a . ?a rdf:type ontology:name }
[]
name
Q1158882
SYSTEM
Fisher
Q1158882
(Q19799238,P734,c(Q82799))
action filter_type
action find
entity Q19799238
relation P734
type Q82799
[ANSWER] is associated with Sidney George [ANSWER]
['Q19799238', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q19799238 property:P734 ?a . ?a rdf:type ontology:Q82799 }
Fisher
Fisher is associated with Sidney George Fisher
Fisher
action filter_type
action find
entity Sidney George Fisher
relation family name
type name
['Sidney George Fisher', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Sidney_George_Fisher property:family_name ?a . ?a rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19799238
P20
Q532
USER
Where did Sidney George Fisher expire ?
(Q19799238,P20,c(Q532))
action filter_type
action find
entity Q19799238
relation P20
type Q532
['Q19799238', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?a WHERE { resource:Q19799238 property:P20 ?a . ?a rdf:type ontology:Q532 }
Sidney George Fisher
action filter_type
action find
entity Sidney George Fisher
relation place of death
type village
['Sidney George Fisher', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?a WHERE { resource:Sidney_George_Fisher property:place_of_death ?a . ?a rdf:type ontology:village }
[]
village
Q3452810
SYSTEM
Richfield Springs
Q3452810
(Q19799238,P20,c(Q532))
action filter_type
action find
entity Q19799238
relation P20
type Q532
Sidney George Fisher expired [ANSWER]
['Q19799238', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?a WHERE { resource:Q19799238 property:P20 ?a . ?a rdf:type ontology:Q532 }
Richfield Springs
Sidney George Fisher expired Richfield Springs
Richfield Springs
action filter_type
action find
entity Sidney George Fisher
relation place of death
type village
['Sidney George Fisher', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?a WHERE { resource:Sidney_George_Fisher property:place_of_death ?a . ?a rdf:type ontology:village }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q790762
Q532
USER
And also tell me about Barrington J. Bayley?
(Q790762,P20,c(Q532))
action filter_type
action find
entity Q790762
relation P20
type Q532
['Q790762', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?v WHERE { resource:Q790762 property:P20 ?v . ?v rdf:type ontology:Q532 }
Barrington J. Bayley
action filter_type
action find
entity Barrington J. Bayley
relation place of death
type village
['Barrington J. Bayley', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?v WHERE { resource:Barrington_J._Bayley property:place_of_death ?v . ?v rdf:type ontology:village }
[]
village
Q201970
SYSTEM
Shrewsbury
Q201970
(Q790762,P20,c(Q532))
action filter_type
action find
entity Q790762
relation P20
type Q532
[ANSWER]
['Q790762', 'P20', {'concept': 'Q532'}]
SELECT DISTINCT ?v WHERE { resource:Q790762 property:P20 ?v . ?v rdf:type ontology:Q532 }
Shrewsbury
Shrewsbury
action filter_type
action find
entity Barrington J. Bayley
relation place of death
type village
['Barrington J. Bayley', 'place of death', {'concept': 'village'}]
SELECT DISTINCT ?v WHERE { resource:Barrington_J._Bayley property:place_of_death ?v . ?v rdf:type ontology:village }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q201970 Q5112528
P19
Q502895
USER
Does Christopher Henn-Collins have birthplace at that village ?
(Q5112528,P19,Q201970)
action is_in
entity Q201970
action find
entity Q5112528
relation P19
['Q5112528', 'P19', 'Q201970']
ASK WHERE { resource:Q5112528 property:P19 resource:Q201970 }
Shrewsbury Christopher Henn-Collins
action is_in
entity Shrewsbury
action find
entity Christopher Henn-Collins
relation place of birth
['Christopher Henn-Collins', 'place of birth', 'Shrewsbury']
ASK WHERE { resource:Christopher_Henn-Collins property:place_of_birth resource:Shrewsbury }
[]
common name
SYSTEM
YES
(Q5112528,P19,Q201970)
action is_in
entity Q201970
action find
entity Q5112528
relation P19
[ANSWER]
['Q5112528', 'P19', 'Q201970']
ASK WHERE { resource:Q5112528 property:P19 resource:Q201970 }
Yes
action is_in
entity Shrewsbury
action find
entity Christopher Henn-Collins
relation place of birth
['Christopher Henn-Collins', 'place of birth', 'Shrewsbury']
ASK WHERE { resource:Christopher_Henn-Collins property:place_of_birth resource:Shrewsbury }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q874405 Q9332 Q82799
USER
Which names are parts of max number of social groups or behaviors ?
(c(Q82799),P361,c(Q874405)|c(Q9332))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q874405
action find_tuple_counts
relation P361
type Q82799
type Q9332
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { { ?r property:P361 ?z . ?r rdf:type ontology:Q82799 . ?z rdf:type ontology:Q874405 } UNION { ?r property:P361 ?z . ?r rdf:type ontology:Q82799 . ?z rdf:type ontology:Q9332 } } GROUP BY ?r } } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?j WHERE { { ?j rdf:type ontology:Q82799 . ?k rdf:type ontology:Q874405 . ?j property:P361 ?k } UNION { ?j property:P361 ?k . ?k rdf:type ontology:Q9332 . ?j rdf:type ontology:Q82799 } } GROUP BY ?j } }
action argmax
action union
action find_tuple_counts
relation part of
type name
type social group
action find_tuple_counts
relation part of
type name
type behavior
[{'concept': 'name'}, 'part of', [{'concept': 'social group'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { { ?r property:part_of ?z . ?r rdf:type ontology:name . ?z rdf:type ontology:social_group } UNION { ?r property:part_of ?z . ?r rdf:type ontology:name . ?z rdf:type ontology:behavior } } GROUP BY ?r } } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?j WHERE { { ?j rdf:type ontology:name . ?k rdf:type ontology:social_group . ?j property:part_of ?k } UNION { ?j property:part_of ?k . ?k rdf:type ontology:behavior . ?j rdf:type ontology:name } } GROUP BY ?j } }
[]
social group behavior name
Q382004 Q1557998
SYSTEM
Afa-Negus, Gyalwang Drukpa
Q382004 Q1557998
(c(Q82799),P361,c(Q874405)|c(Q9332))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q874405
action find_tuple_counts
relation P361
type Q82799
type Q9332
[ANSWERS] are parts of max number of social groups or behaviors
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { { ?r property:P361 ?z . ?r rdf:type ontology:Q82799 . ?z rdf:type ontology:Q874405 } UNION { ?r property:P361 ?z . ?r rdf:type ontology:Q82799 . ?z rdf:type ontology:Q9332 } } GROUP BY ?r } } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?j WHERE { { ?j rdf:type ontology:Q82799 . ?k rdf:type ontology:Q874405 . ?j property:P361 ?k } UNION { ?j property:P361 ?k . ?k rdf:type ontology:Q9332 . ?j rdf:type ontology:Q82799 } } GROUP BY ?j } }
Afa-Negus Gyalwang Drukpa
Afa-Negus and Gyalwang Drukpa are parts of max number of social groups or behaviors
Afa-Negus Gyalwang Drukpa
action argmax
action union
action find_tuple_counts
relation part of
type name
type social group
action find_tuple_counts
relation part of
type name
type behavior
[{'concept': 'name'}, 'part of', [{'concept': 'social group'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) ?r WHERE { { ?r property:part_of ?z . ?r rdf:type ontology:name . ?z rdf:type ontology:social_group } UNION { ?r property:part_of ?z . ?r rdf:type ontology:name . ?z rdf:type ontology:behavior } } GROUP BY ?r } } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) ?j WHERE { { ?j rdf:type ontology:name . ?k rdf:type ontology:social_group . ?j property:part_of ?k } UNION { ?j property:part_of ?k . ?k rdf:type ontology:behavior . ?j rdf:type ontology:name } } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2258881
P180
Q82799 Q838948 Q340169
USER
How many names are expressed in approximately the same number of works of art or medias as trout ?
(c(Q838948)|c(Q340169),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q2258881
relation P180
type Q838948
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) ?g WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P180 resource:Q2258881 . { { ?d rdf:type ontology:Q838948 } UNION { ?d rdf:type ontology:Q340169 } } } } . FILTER ( ?c = ?o ) }
trout
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity trout
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) ?g WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:work_of_art ) ( ontology:media ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:depicts resource:trout . { { ?d rdf:type ontology:work_of_art } UNION { ?d rdf:type ontology:media } } } } . FILTER ( ?c = ?o ) }
[]
name work of art media
SYSTEM
54
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q838948)|c(Q340169),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q2258881
relation P180
type Q838948
type Q340169
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) ?g WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P180 resource:Q2258881 . { { ?d rdf:type ontology:Q838948 } UNION { ?d rdf:type ontology:Q340169 } } } } . FILTER ( ?c = ?o ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
54
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity trout
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) ?g WHERE { ?x rdf:type ?u . VALUES ( ?u ) { ( ontology:work_of_art ) ( ontology:media ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:depicts resource:trout . { { ?d rdf:type ontology:work_of_art } UNION { ?d rdf:type ontology:media } } } } . FILTER ( ?c = ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q8335
P180
Q82799 Q838948 Q340169
USER
And what about raven?
(c(Q838948)|c(Q340169),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q8335
relation P180
type Q838948
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:P180 ?m . ?m rdf:type ontology:Q82799 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P180 ?m . ?m rdf:type ontology:Q82799 . ?s rdf:type ontology:Q340169 } } GROUP BY ?m } . FILTER ( ?u = ?x ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:P180 resource:Q8335 . { { ?j rdf:type ontology:Q838948 } UNION { ?j rdf:type ontology:Q340169 } } } } }
raven
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity raven
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:depicts ?m . ?m rdf:type ontology:name . ?s rdf:type ontology:work_of_art } UNION { ?s property:depicts ?m . ?m rdf:type ontology:name . ?s rdf:type ontology:media } } GROUP BY ?m } . FILTER ( ?u = ?x ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:depicts resource:raven . { { ?j rdf:type ontology:work_of_art } UNION { ?j rdf:type ontology:media } } } } }
[]
name work of art media
SYSTEM
54
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q838948)|c(Q340169),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q8335
relation P180
type Q838948
type Q340169
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:P180 ?m . ?m rdf:type ontology:Q82799 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P180 ?m . ?m rdf:type ontology:Q82799 . ?s rdf:type ontology:Q340169 } } GROUP BY ?m } . FILTER ( ?u = ?x ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:P180 resource:Q8335 . { { ?j rdf:type ontology:Q838948 } UNION { ?j rdf:type ontology:Q340169 } } } } }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
54
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity raven
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { { ?s property:depicts ?m . ?m rdf:type ontology:name . ?s rdf:type ontology:work_of_art } UNION { ?s property:depicts ?m . ?m rdf:type ontology:name . ?s rdf:type ontology:media } } GROUP BY ?m } . FILTER ( ?u = ?x ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j property:depicts resource:raven . { { ?j rdf:type ontology:work_of_art } UNION { ?j rdf:type ontology:media } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1557998
P39
Q502895
USER
Who were responsible for occupying the position of Gyalwang Drukpa ?
(c(Q502895),P39,Q1557998)
action filter_type
action find_reverse
entity Q1557998
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1557998']
SELECT DISTINCT ?i WHERE { ?i property:P39 resource:Q1557998 . ?i rdf:type ontology:Q502895 }
Gyalwang Drukpa
action filter_type
action find_reverse
entity Gyalwang Drukpa
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Gyalwang Drukpa']
SELECT DISTINCT ?i WHERE { ?i property:position_held resource:Gyalwang_Drukpa . ?i rdf:type ontology:common_name }
[]
common name
Q946532 Q509272
SYSTEM
Gyalwang Mipham Wangpo, Tsangpa Gyare
Q946532 Q509272
(c(Q502895),P39,Q1557998)
action filter_type
action find_reverse
entity Q1557998
relation P39
type Q502895
[ANSWERS] were responsible for occupying the position of Gyalwang Drukpa
[{'concept': 'Q502895'}, 'P39', 'Q1557998']
SELECT DISTINCT ?i WHERE { ?i property:P39 resource:Q1557998 . ?i rdf:type ontology:Q502895 }
Gyalwang Mipham Wangpo Tsangpa Gyare
Gyalwang Mipham Wangpo and Tsangpa Gyare were responsible for occupying the position of Gyalwang Drukpa
Gyalwang Mipham Wangpo Tsangpa Gyare
action filter_type
action find_reverse
entity Gyalwang Drukpa
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Gyalwang Drukpa']
SELECT DISTINCT ?i WHERE { ?i property:position_held resource:Gyalwang_Drukpa . ?i rdf:type ontology:common_name }
[]