Simple Question (Direct)
Simple Question
Q1648762
P106
Q12737077
USER
What do Iñigo Liceranzu do for a living ?
(Q1648762,P106,c(Q12737077))
action filter_type
action find
entity Q1648762
relation P106
type Q12737077
['Q1648762', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1648762 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Iñigo Liceranzu
action filter_type
action find
entity Iñigo Liceranzu
relation occupation
type occupation
['Iñigo Liceranzu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Iñigo_Liceranzu property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q1648762,P106,c(Q12737077))
action filter_type
action find
entity Q1648762
relation P106
type Q12737077
Iñigo Liceranzu do for a living as [ANSWERS]
['Q1648762', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1648762 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
association football manager association football player
Iñigo Liceranzu do for a living as association football manager and association football player
association football manager association football player
action filter_type
action find
entity Iñigo Liceranzu
relation occupation
type occupation
['Iñigo Liceranzu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Iñigo_Liceranzu property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q937857
P800
Q502895
USER
Who has that occupation as their notable work ?
(c(Q502895),P800,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q937857']
SELECT DISTINCT ?n WHERE { ?n property:P800 resource:Q937857 . ?n rdf:type ontology:Q502895 }
association football player
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player']
SELECT DISTINCT ?n WHERE { ?n property:notable_work resource:association_football_player . ?n rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q937857
SYSTEM
Did you mean association football player ?
Q628099 Q937857
(c(Q502895),P800,Q628099) (c(Q502895),P800,Q937857)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q628099'] [{'concept': 'Q502895'}, 'P800', 'Q937857']
SELECT DISTINCT ?n WHERE { ?n property:P800 resource:Q937857 . ?n rdf:type ontology:Q502895 }
association football manager association football player
Did you mean association football player ?
association football player
[{'concept': 'common name'}, 'notable work', 'association football manager'] [{'concept': 'common name'}, 'notable work', 'association football player']
SELECT DISTINCT ?n WHERE { ?n property:notable_work resource:association_football_player . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P800,Q937857)
[{'concept': 'Q502895'}, 'P800', 'Q937857']
[{'concept': 'common name'}, 'notable work', 'association football player']
[]
Q23047441
SYSTEM
Hugh Morgan-Owen
Q23047441
(c(Q502895),P800,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
[ANSWER] has that occupation as their notable work
[{'concept': 'Q502895'}, 'P800', 'Q937857']
SELECT DISTINCT ?n WHERE { ?n property:P800 resource:Q937857 . ?n rdf:type ontology:Q502895 }
Hugh Morgan-Owen
Hugh Morgan-Owen has that occupation as their notable work
Hugh Morgan-Owen
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player']
SELECT DISTINCT ?n WHERE { ?n property:notable_work resource:association_football_player . ?n rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1413824
P180
Q12737077 Q340169 Q3305213
USER
How many occupations are depicted in greater number of medias and paintings than glassblower ?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q1413824
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { VALUES ( ?j ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?z rdf:type ?j } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:P180 resource:Q1413824 . { { ?k rdf:type ontology:Q3305213 } UNION { ?k rdf:type ontology:Q340169 } } } } . FILTER ( ?e > ?r ) }
glassblower
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity glassblower
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { VALUES ( ?j ) { ( ontology:media ) ( ontology:painting ) } . ?z rdf:type ?j } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:depicts resource:glassblower . { { ?k rdf:type ontology:painting } UNION { ?k rdf:type ontology:media } } } } . FILTER ( ?e > ?r ) }
[]
occupation media painting
SYSTEM
46
Q177220 Q131512 Q1401609 Q1124183 Q2995983 Q81710 Q1259917 Q45199 Q4504549 Q842782 Q486748 Q483501 Q215536 Q186360 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q273108 Q10873124 Q589897 Q20489032 Q2730732 Q103163 Q207651 Q5716684 Q18575684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q384593 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q1413824
relation P180
type Q340169
type Q3305213
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { VALUES ( ?j ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?z rdf:type ?j } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:P180 resource:Q1413824 . { { ?k rdf:type ontology:Q3305213 } UNION { ?k rdf:type ontology:Q340169 } } } } . FILTER ( ?e > ?r ) }
singer farmer vaquero lumberjack double-bassist shepherd violinist sailor religious servant detective pianist artist merchant nurse mandolinist tax collector painter monk king herder trapper tennis player scrivener soldier Catholic priest condottiero chess player mahout salt pan worker equestrian abbot executioner dancer embroiderer maid picador peasant fisherman musician poet police officer draughtsperson sculptor construction worker priest art model
46
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity glassblower
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { VALUES ( ?j ) { ( ontology:media ) ( ontology:painting ) } . ?z rdf:type ?j } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:depicts resource:glassblower . { { ?k rdf:type ontology:painting } UNION { ?k rdf:type ontology:media } } } } . FILTER ( ?e > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q19968805
P180
Q12737077 Q340169 Q3305213
USER
And how about spinner?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q19968805
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?y } . FILTER ( ?p > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P180 resource:Q19968805 . { { ?r rdf:type ontology:Q340169 } UNION { ?r rdf:type ontology:Q3305213 } } } } }
spinner
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity spinner
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?y } . FILTER ( ?p > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:depicts resource:spinner . { { ?r rdf:type ontology:media } UNION { ?r rdf:type ontology:painting } } } } }
[]
occupation media painting
SYSTEM
46
Q177220 Q131512 Q1401609 Q1124183 Q2995983 Q81710 Q1259917 Q45199 Q4504549 Q842782 Q486748 Q483501 Q215536 Q186360 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q273108 Q10873124 Q589897 Q20489032 Q2730732 Q103163 Q207651 Q5716684 Q18575684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q384593 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q19968805
relation P180
type Q340169
type Q3305213
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?y } . FILTER ( ?p > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P180 resource:Q19968805 . { { ?r rdf:type ontology:Q340169 } UNION { ?r rdf:type ontology:Q3305213 } } } } }
singer farmer vaquero lumberjack double-bassist shepherd violinist sailor religious servant detective pianist artist merchant nurse mandolinist tax collector painter monk king herder trapper tennis player scrivener soldier Catholic priest condottiero chess player mahout salt pan worker equestrian abbot executioner dancer embroiderer maid picador peasant fisherman musician poet police officer draughtsperson sculptor construction worker priest art model
46
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity spinner
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?p ) WHERE { ?l rdf:type ?m . VALUES ( ?m ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?y } . FILTER ( ?p > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:depicts resource:spinner . { { ?r rdf:type ontology:media } UNION { ?r rdf:type ontology:painting } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19968805
P425
Q28797
USER
Who has spinner as the associated field of occupation ?
(Q19968805,P425,c(Q28797))
action filter_type
action find
entity Q19968805
relation P425
type Q28797
['Q19968805', 'P425', {'concept': 'Q28797'}]
SELECT DISTINCT ?f WHERE { resource:Q19968805 property:P425 ?f . ?f rdf:type ontology:Q28797 }
spinner
action filter_type
action find
entity spinner
relation field of this occupation
type applied science
['spinner', 'field of this occupation', {'concept': 'applied science'}]
SELECT DISTINCT ?f WHERE { resource:spinner property:field_of_this_occupation ?f . ?f rdf:type ontology:applied_science }
[]
applied science
Q59172
SYSTEM
spinning
Q59172
(Q19968805,P425,c(Q28797))
action filter_type
action find
entity Q19968805
relation P425
type Q28797
Has [ANSWER] has spinner as the associated field of occupation
['Q19968805', 'P425', {'concept': 'Q28797'}]
SELECT DISTINCT ?f WHERE { resource:Q19968805 property:P425 ?f . ?f rdf:type ontology:Q28797 }
spinning
Has spinning has spinner as the associated field of occupation
spinning
action filter_type
action find
entity spinner
relation field of this occupation
type applied science
['spinner', 'field of this occupation', {'concept': 'applied science'}]
SELECT DISTINCT ?f WHERE { resource:spinner property:field_of_this_occupation ?f . ?f rdf:type ontology:applied_science }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P425
Q28797 Q151885
USER
How many applied sciences have greater number of concepts as thier associated field of occupation than that applied science ?
(c(Q151885),P425,c(Q28797))
action count
action greater
action find_reverse_tuple_counts
relation P425
type Q28797
type Q151885
action count
action filter_type
action find
entity Q59172
relation P425
type Q28797
[{'concept': 'Q151885'}, 'P425', {'concept': 'Q28797'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:P425 ?z . ?z rdf:type ontology:Q28797 . ?k rdf:type ontology:Q151885 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q59172 property:P425 ?m . ?m rdf:type ontology:Q28797 } } . FILTER ( ?r > ?n ) }
action count
action greater
action find_reverse_tuple_counts
relation field of this occupation
type applied science
type concept
action count
action filter_type
action find
entity spinning
relation field of this occupation
type applied science
[{'concept': 'concept'}, 'field of this occupation', {'concept': 'applied science'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:field_of_this_occupation ?z . ?z rdf:type ontology:applied_science . ?k rdf:type ontology:concept } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:spinning property:field_of_this_occupation ?m . ?m rdf:type ontology:applied_science } } . FILTER ( ?r > ?n ) }
[]
applied science concept
SYSTEM
1
Q208386
(c(Q151885),P425,c(Q28797))
action count
action greater
action find_reverse_tuple_counts
relation P425
type Q28797
type Q151885
action count
action filter_type
action find
entity Q59172
relation P425
type Q28797
[ANSWER]
[{'concept': 'Q151885'}, 'P425', {'concept': 'Q28797'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:P425 ?z . ?z rdf:type ontology:Q28797 . ?k rdf:type ontology:Q151885 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q59172 property:P425 ?m . ?m rdf:type ontology:Q28797 } } . FILTER ( ?r > ?n ) }
crochet
1
action count
action greater
action find_reverse_tuple_counts
relation field of this occupation
type applied science
type concept
action count
action filter_type
action find
entity spinning
relation field of this occupation
type applied science
[{'concept': 'concept'}, 'field of this occupation', {'concept': 'applied science'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?r ) WHERE { ?k property:field_of_this_occupation ?z . ?z rdf:type ontology:applied_science . ?k rdf:type ontology:concept } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:spinning property:field_of_this_occupation ?m . ?m rdf:type ontology:applied_science } } . FILTER ( ?r > ?n ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q95074
USER
Which fictional characters had their voice dubbing done by max number of people ?
(c(Q95074),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q95074
type Q502895
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?q ) WHERE { ?v property:P725 ?t . ?v rdf:type ontology:Q95074 . ?t rdf:type ontology:Q502895 } GROUP BY ?v } } . FILTER ( ?z = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?z ) WHERE { ?u rdf:type ontology:Q95074 . ?a rdf:type ontology:Q502895 . ?u property:P725 ?a } GROUP BY ?u } }
action argmax
action find_tuple_counts
relation voice actor
type fictional character
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?q ) WHERE { ?v property:voice_actor ?t . ?v rdf:type ontology:fictional_character . ?t rdf:type ontology:common_name } GROUP BY ?v } } . FILTER ( ?z = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?z ) WHERE { ?u rdf:type ontology:fictional_character . ?a rdf:type ontology:common_name . ?u property:voice_actor ?a } GROUP BY ?u } }
[]
common name fictional character
Q3471289 Q12400 Q2340460
SYSTEM
Samurai Goroh, Samus Aran, Captain Falcon
Q3471289 Q12400 Q2340460
(c(Q95074),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q95074
type Q502895
[ANSWERS] had their voice dubbing done by max number of people
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?q ) WHERE { ?v property:P725 ?t . ?v rdf:type ontology:Q95074 . ?t rdf:type ontology:Q502895 } GROUP BY ?v } } . FILTER ( ?z = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?z ) WHERE { ?u rdf:type ontology:Q95074 . ?a rdf:type ontology:Q502895 . ?u property:P725 ?a } GROUP BY ?u } }
Samurai Goroh Samus Aran Captain Falcon
Samurai Goroh, Samus Aran and Captain Falcon had their voice dubbing done by max number of people
Samurai Goroh Samus Aran Captain Falcon
action argmax
action find_tuple_counts
relation voice actor
type fictional character
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?e ) { SELECT DISTINCT ?v ( COUNT ( ?t ) AS ?q ) WHERE { ?v property:voice_actor ?t . ?v rdf:type ontology:fictional_character . ?t rdf:type ontology:common_name } GROUP BY ?v } } . FILTER ( ?z = ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?z ) WHERE { ?u rdf:type ontology:fictional_character . ?a rdf:type ontology:common_name . ?u property:voice_actor ?a } GROUP BY ?u } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P170
Q502895 Q95074
USER
How many fictional characters were created by greater number of people than that fictional character ?
(c(Q95074),P170,c(Q502895))
[{'concept': 'Q95074'}, 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q2500638 ?y . ?z rdf:type ontology:Q95074 . ?y rdf:type ontology:Q502895 }
[{'concept': 'fictional character'}, 'creator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:creator ?y . ?z rdf:type ontology:fictional_character . ?y rdf:type ontology:common_name }
[]
common name fictional character
Comparative|Count over More/Less|Single entity type|Clarification
Q12400
SYSTEM
Did you mean Samus Aran ?
(c(Q95074),P170,c(Q502895))
[ANSWER]
[{'concept': 'Q95074'}, 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q2500638 ?y . ?z rdf:type ontology:Q95074 . ?y rdf:type ontology:Q502895 }
Did you mean Samus Aran ?
Samus Aran
[{'concept': 'fictional character'}, 'creator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:creator ?y . ?z rdf:type ontology:fictional_character . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Captain Falcon. Could you tell me the answer for that?
(c(Q95074),P170,c(Q502895))
Q2340460
[{'concept': 'Q95074'}, 'P170', {'concept': 'Q502895'}]
[{'concept': 'fictional character'}, 'creator', {'concept': 'common name'}]
[]
SYSTEM
18
Q376961 Q4353353 Q17112583 Q217533 Q252044 Q605125 Q128138 Q7851003 Q27810 Q113870 Q128429 Q295375 Q2442950 Q114900 Q295599 Q2725247 Q10290321 Q1125756
(c(Q95074),P170,c(Q502895))
[ANSWER]
[{'concept': 'Q95074'}, 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q2500638 ?y . ?z rdf:type ontology:Q95074 . ?y rdf:type ontology:Q502895 }
Glory Squirrel Girl Isidore Nabi Joker Queen Grimhilde GLaDOS Andrea Tuck Mary Jane Watson Michonne Vampirella Scarecrow Max Rockatansky Lori Grimes Two-Face Ness Godfrey Calthrop Congorilla
18
[{'concept': 'fictional character'}, 'creator', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:creator ?y . ?z rdf:type ontology:fictional_character . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P157
Q95074 Q6619679
USER
Which fictional humanoids were killed by max number of fictional characters ?
(c(Q6619679),P157,c(Q95074))
action argmax
action find_tuple_counts
relation P157
type Q6619679
type Q95074
[{'concept': 'Q6619679'}, 'P157', {'concept': 'Q95074'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?l ) { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?v ) WHERE { ?e property:P157 ?o . ?o rdf:type ontology:Q95074 . ?e rdf:type ontology:Q6619679 } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?q ) WHERE { ?h rdf:type ontology:Q6619679 . ?f rdf:type ontology:Q95074 . ?h property:P157 ?f } GROUP BY ?h } . FILTER ( ?q = ?l ) }
action argmax
action find_tuple_counts
relation killed by
type fictional humanoid
type fictional character
[{'concept': 'fictional humanoid'}, 'killed by', {'concept': 'fictional character'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?l ) { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?v ) WHERE { ?e property:killed_by ?o . ?o rdf:type ontology:fictional_character . ?e rdf:type ontology:fictional_humanoid } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?q ) WHERE { ?h rdf:type ontology:fictional_humanoid . ?f rdf:type ontology:fictional_character . ?h property:killed_by ?f } GROUP BY ?h } . FILTER ( ?q = ?l ) }
[]
fictional character fictional humanoid
Q284262 Q9093657 Q2362758
SYSTEM
Nina Myers, Victor Drazen, Ira Gaines
Q2362758 Q27101792 Q284262 Q9093657
(c(Q6619679),P157,c(Q95074))
action argmax
action find_tuple_counts
relation P157
type Q6619679
type Q95074
[ANSWERS] were killed by max number of fictional characters
[{'concept': 'Q6619679'}, 'P157', {'concept': 'Q95074'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?l ) { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?v ) WHERE { ?e property:P157 ?o . ?o rdf:type ontology:Q95074 . ?e rdf:type ontology:Q6619679 } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?q ) WHERE { ?h rdf:type ontology:Q6619679 . ?f rdf:type ontology:Q95074 . ?h property:P157 ?f } GROUP BY ?h } . FILTER ( ?q = ?l ) }
Ira Gaines Pietro Maximoff / Quicksilver Nina Myers Victor Drazen
Nina Myers, Victor Drazen and Ira Gaines were killed by max number of fictional characters
Nina Myers Victor Drazen Ira Gaines
action argmax
action find_tuple_counts
relation killed by
type fictional humanoid
type fictional character
[{'concept': 'fictional humanoid'}, 'killed by', {'concept': 'fictional character'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?l ) { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?v ) WHERE { ?e property:killed_by ?o . ?o rdf:type ontology:fictional_character . ?e rdf:type ontology:fictional_humanoid } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?q ) WHERE { ?h rdf:type ontology:fictional_humanoid . ?f rdf:type ontology:fictional_character . ?h property:killed_by ?f } GROUP BY ?h } . FILTER ( ?q = ?l ) }
[]