Simple Question (Direct)
Simple Question
Q6416373
P161
Q502895
USER
Who were casted in Kisaan ?
(Q6416373,P161,c(Q502895))
action filter_type
action find
entity Q6416373
relation P161
type Q502895
['Q6416373', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q6416373 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Kisaan
action filter_type
action find
entity Kisaan
relation cast member
type common name
['Kisaan', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Kisaan property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
common name
Q466080 Q1203191 Q560178
SYSTEM
Dia Mirza, Arbaaz Khan, Jackie Shroff
Q466080 Q1203191 Q560178
(Q6416373,P161,c(Q502895))
action filter_type
action find
entity Q6416373
relation P161
type Q502895
[ANSWERS] were casted in Kisaan
['Q6416373', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q6416373 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Dia Mirza Arbaaz Khan Jackie Shroff
Dia Mirza, Arbaaz Khan and Jackie Shroff were casted in Kisaan
Dia Mirza Arbaaz Khan Jackie Shroff
action filter_type
action find
entity Kisaan
relation cast member
type common name
['Kisaan', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Kisaan property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q466080 Q1203191 Q560178
P106
Q12737077
USER
Which occupations are the professions of Dia Mirza, Arbaaz Khan and Jackie Shroff ?
(Q466080,P106,c(Q12737077)) (Q1203191,P106,c(Q12737077)) (Q560178,P106,c(Q12737077))
action union
action filter_type
action find
entity Q466080
relation P106
type Q12737077
action filter_type
action find
entity Q1203191
relation P106
type Q12737077
action filter_type
action find
entity Q560178
relation P106
type Q12737077
['Q466080', 'P106', {'concept': 'Q12737077'}] ['Q1203191', 'P106', {'concept': 'Q12737077'}] ['Q560178', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { resource:Q466080 property:P106 ?w . ?w rdf:type ontology:Q12737077 } UNION { resource:Q1203191 property:P106 ?w . ?w rdf:type ontology:Q12737077 } }
Dia Mirza Arbaaz Khan Jackie Shroff
action union
action filter_type
action find
entity Dia Mirza
relation occupation
type occupation
action filter_type
action find
entity Arbaaz Khan
relation occupation
type occupation
action filter_type
action find
entity Jackie Shroff
relation occupation
type occupation
['Dia Mirza', 'occupation', {'concept': 'occupation'}] ['Arbaaz Khan', 'occupation', {'concept': 'occupation'}] ['Jackie Shroff', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { resource:Dia_Mirza property:occupation ?w . ?w rdf:type ontology:occupation } UNION { resource:Arbaaz_Khan property:occupation ?w . ?w rdf:type ontology:occupation } }
[]
occupation
Q4610556 Q33999 Q18581305
SYSTEM
model, actor, beauty pageant contestant
Q4610556 Q33999 Q18581305 Q33999 Q33999
(Q466080,P106,c(Q12737077)) (Q1203191,P106,c(Q12737077)) (Q560178,P106,c(Q12737077))
action union
action filter_type
action find
entity Q466080
relation P106
type Q12737077
action filter_type
action find
entity Q1203191
relation P106
type Q12737077
action filter_type
action find
entity Q560178
relation P106
type Q12737077
[ANSWERS] are the professions of Dia Mirza, Arbaaz Khan and Jackie Shroff
['Q466080', 'P106', {'concept': 'Q12737077'}] ['Q1203191', 'P106', {'concept': 'Q12737077'}] ['Q560178', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { resource:Q466080 property:P106 ?w . ?w rdf:type ontology:Q12737077 } UNION { resource:Q1203191 property:P106 ?w . ?w rdf:type ontology:Q12737077 } }
model actor beauty pageant contestant actor actor
Model, actor and beauty pageant contestant are the professions of Dia Mirza, Arbaaz Khan and Jackie Shroff
model actor beauty pageant contestant
action union
action filter_type
action find
entity Dia Mirza
relation occupation
type occupation
action filter_type
action find
entity Arbaaz Khan
relation occupation
type occupation
action filter_type
action find
entity Jackie Shroff
relation occupation
type occupation
['Dia Mirza', 'occupation', {'concept': 'occupation'}] ['Arbaaz Khan', 'occupation', {'concept': 'occupation'}] ['Jackie Shroff', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { resource:Dia_Mirza property:occupation ?w . ?w rdf:type ontology:occupation } UNION { resource:Arbaaz_Khan property:occupation ?w . ?w rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q466080
P162
Q838948
USER
Which work of art has been produced by that person ?
(c(Q838948),P162,Q466080)
action filter_type
action find_reverse
entity Q466080
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q466080']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q466080 . ?m rdf:type ontology:Q838948 }
Dia Mirza
action filter_type
action find_reverse
entity Dia Mirza
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Dia Mirza']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Dia_Mirza . ?m rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q466080
SYSTEM
Did you mean Dia Mirza ?
Q4610556 Q33999 Q18581305
(c(Q838948),P162,Q4610556) (c(Q838948),P162,Q33999) (c(Q838948),P162,Q18581305)
[ANSWER]
[{'concept': 'Q838948'}, 'P162', 'Q4610556'] [{'concept': 'Q838948'}, 'P162', 'Q33999'] [{'concept': 'Q838948'}, 'P162', 'Q18581305']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q466080 . ?m rdf:type ontology:Q838948 }
model actor beauty pageant contestant
Did you mean Dia Mirza ?
Dia Mirza
[{'concept': 'work of art'}, 'producer', 'model'] [{'concept': 'work of art'}, 'producer', 'actor'] [{'concept': 'work of art'}, 'producer', 'beauty pageant contestant']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Dia_Mirza . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P162,Q466080)
[{'concept': 'Q838948'}, 'P162', 'Q466080']
[{'concept': 'work of art'}, 'producer', 'Dia Mirza']
[]
Q16247261
SYSTEM
Bobby Jasoos
Q16247261
(c(Q838948),P162,Q466080)
action filter_type
action find_reverse
entity Q466080
relation P162
type Q838948
[ANSWER] has been produced by that person
[{'concept': 'Q838948'}, 'P162', 'Q466080']
SELECT DISTINCT ?m WHERE { ?m property:P162 resource:Q466080 . ?m rdf:type ontology:Q838948 }
Bobby Jasoos
Bobby Jasoos has been produced by that person
Bobby Jasoos
action filter_type
action find_reverse
entity Dia Mirza
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Dia Mirza']
SELECT DISTINCT ?m WHERE { ?m property:producer resource:Dia_Mirza . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16247261
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q16247261,P136,c(Q1792379))
action filter_type
action find
entity Q16247261
relation P136
type Q1792379
['Q16247261', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1792379 . resource:Q16247261 property:P136 ?r }
Bobby Jasoos
action filter_type
action find
entity Bobby Jasoos
relation genre
type art genre
['Bobby Jasoos', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:art_genre . resource:Bobby_Jasoos property:genre ?r }
[]
art genre
Q860626
SYSTEM
romantic comedy
Q860626
(Q16247261,P136,c(Q1792379))
action filter_type
action find
entity Q16247261
relation P136
type Q1792379
[ANSWER] can be considered as category for that work of art
['Q16247261', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1792379 . resource:Q16247261 property:P136 ?r }
romantic comedy
Romantic comedy can be considered as category for that work of art
romantic comedy
action filter_type
action find
entity Bobby Jasoos
relation genre
type art genre
['Bobby Jasoos', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:art_genre . resource:Bobby_Jasoos property:genre ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16247261
P57
Q502895
USER
Who directed Bobby Jasoos ?
(Q16247261,P57,c(Q502895))
action filter_type
action find
entity Q16247261
relation P57
type Q502895
['Q16247261', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q16247261 property:P57 ?l . ?l rdf:type ontology:Q502895 }
Bobby Jasoos
action filter_type
action find
entity Bobby Jasoos
relation director
type common name
['Bobby Jasoos', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Bobby_Jasoos property:director ?l . ?l rdf:type ontology:common_name }
[]
common name
Q22942083
SYSTEM
Samar Shaikh
Q22942083
(Q16247261,P57,c(Q502895))
action filter_type
action find
entity Q16247261
relation P57
type Q502895
[ANSWER] directed Bobby Jasoos
['Q16247261', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q16247261 property:P57 ?l . ?l rdf:type ontology:Q502895 }
Samar Shaikh
Samar Shaikh directed Bobby Jasoos
Samar Shaikh
action filter_type
action find
entity Bobby Jasoos
relation director
type common name
['Bobby Jasoos', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Bobby_Jasoos property:director ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16247261
P344
Q502895
USER
Who is the director of photography for that work of art ?
(Q22942083,P344,c(Q502895))
action filter_type
action find
entity Q16247261
relation P344
type Q502895
['Q22942083', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q16247261 property:P344 ?w . ?w rdf:type ontology:Q502895 }
Bobby Jasoos
action filter_type
action find
entity Bobby Jasoos
relation director of photography
type common name
['Samar Shaikh', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Bobby_Jasoos property:director_of_photography ?w . ?w rdf:type ontology:common_name }
[]
common name
Q17090568
SYSTEM
Vishal Sinha
Q17090568
(Q22942083,P344,c(Q502895))
action filter_type
action find
entity Q16247261
relation P344
type Q502895
The director of photography for that work of art is [ANSWER]
['Q22942083', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q16247261 property:P344 ?w . ?w rdf:type ontology:Q502895 }
Vishal Sinha
The director of photography for that work of art is Vishal Sinha
Vishal Sinha
action filter_type
action find
entity Bobby Jasoos
relation director of photography
type common name
['Samar Shaikh', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Bobby_Jasoos property:director_of_photography ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16247261
P162
Q502895
USER
Who are the producers of Bobby Jasoos ?
(Q16247261,P162,c(Q502895))
action filter_type
action find
entity Q16247261
relation P162
type Q502895
['Q16247261', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q16247261 property:P162 ?z . ?z rdf:type ontology:Q502895 }
Bobby Jasoos
action filter_type
action find
entity Bobby Jasoos
relation producer
type common name
['Bobby Jasoos', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Bobby_Jasoos property:producer ?z . ?z rdf:type ontology:common_name }
[]
common name
Q466080 Q22942036
SYSTEM
Dia Mirza, Sahil Sangha
Q466080 Q22942036
(Q16247261,P162,c(Q502895))
action filter_type
action find
entity Q16247261
relation P162
type Q502895
The producers of Bobby Jasoos are Mirza [ANSWERS]
['Q16247261', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q16247261 property:P162 ?z . ?z rdf:type ontology:Q502895 }
Dia Mirza Sahil Sangha
The producers of Bobby Jasoos are Mirza Dia Mirza and Sahil Sangha
Dia Mirza Sahil Sangha
action filter_type
action find
entity Bobby Jasoos
relation producer
type common name
['Bobby Jasoos', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Bobby_Jasoos property:producer ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q179018
Q502895
USER
And also tell me about Seabiscuit?
(Q179018,P162,c(Q502895))
action filter_type
action find
entity Q179018
relation P162
type Q502895
['Q179018', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q179018 property:P162 ?j . ?j rdf:type ontology:Q502895 }
Seabiscuit
action filter_type
action find
entity Seabiscuit
relation producer
type common name
['Seabiscuit', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Seabiscuit property:producer ?j . ?j rdf:type ontology:common_name }
[]
common name
Q549570 Q237207 Q598675
SYSTEM
Frank Marshall, Kathleen Kennedy, Gary Ross
Q598675 Q165524 Q549570 Q237207
(Q179018,P162,c(Q502895))
action filter_type
action find
entity Q179018
relation P162
type Q502895
[ANSWERS]
['Q179018', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q179018 property:P162 ?j . ?j rdf:type ontology:Q502895 }
Gary Ross Tobey Maguire Frank Marshall Kathleen Kennedy
Frank Marshall Kathleen Kennedy Gary Ross
action filter_type
action find
entity Seabiscuit
relation producer
type common name
['Seabiscuit', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Seabiscuit property:producer ?j . ?j rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q179018
P921
Q31629 Q82799
USER
How many types of sport and names were the main subjects of Seabiscuit 's work ?
(Q179018,P921,c(Q31629)) (Q179018,P921,c(Q82799))
action count
action union
action filter_type
action find
entity Q179018
relation P921
type Q31629
action filter_type
action find
entity Q179018
relation P921
type Q82799
['Q179018', 'P921', {'concept': 'Q31629'}] ['Q179018', 'P921', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { ?x rdf:type ontology:Q31629 . resource:Q179018 property:P921 ?x } UNION { resource:Q179018 property:P921 ?x . ?x rdf:type ontology:Q82799 } }
Seabiscuit
action count
action union
action filter_type
action find
entity Seabiscuit
relation main subject
type type of sport
action filter_type
action find
entity Seabiscuit
relation main subject
type name
['Seabiscuit', 'main subject', {'concept': 'type of sport'}] ['Seabiscuit', 'main subject', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { ?x rdf:type ontology:type_of_sport . resource:Seabiscuit property:main_subject ?x } UNION { resource:Seabiscuit property:main_subject ?x . ?x rdf:type ontology:name } }
[]
type of sport name
SYSTEM
1 types of sport and 1 names
Q187916 Q726
(Q179018,P921,c(Q31629)) (Q179018,P921,c(Q82799))
action count
action union
action filter_type
action find
entity Q179018
relation P921
type Q31629
action filter_type
action find
entity Q179018
relation P921
type Q82799
[ANSWER]
['Q179018', 'P921', {'concept': 'Q31629'}] ['Q179018', 'P921', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { ?x rdf:type ontology:Q31629 . resource:Q179018 property:P921 ?x } UNION { resource:Q179018 property:P921 ?x . ?x rdf:type ontology:Q82799 } }
horse racing horse
1 types of sport and 1 names
action count
action union
action filter_type
action find
entity Seabiscuit
relation main subject
type type of sport
action filter_type
action find
entity Seabiscuit
relation main subject
type name
['Seabiscuit', 'main subject', {'concept': 'type of sport'}] ['Seabiscuit', 'main subject', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { ?x rdf:type ontology:type_of_sport . resource:Seabiscuit property:main_subject ?x } UNION { resource:Seabiscuit property:main_subject ?x . ?x rdf:type ontology:name } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P674
Q95074 Q6619679 Q838948
USER
Which works of art have the character min number of fictional characters or fictional humanoids ?
(c(Q838948),P674,c(Q95074)|c(Q6619679))
action argmin
action union
action find_tuple_counts
relation P674
type Q838948
type Q95074
action find_tuple_counts
relation P674
type Q838948
type Q6619679
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q95074'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?n ) WHERE { { ?q property:P674 ?r . ?r rdf:type ontology:Q95074 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P674 ?r . ?q rdf:type ontology:Q838948 . ?r rdf:type ontology:Q6619679 } } GROUP BY ?q } } . { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:Q95074 ) ( ontology:Q6619679 ) } } GROUP BY ?l } . FILTER ( ?u = ?w ) }
action argmin
action union
action find_tuple_counts
relation characters
type work of art
type fictional character
action find_tuple_counts
relation characters
type work of art
type fictional humanoid
[{'concept': 'work of art'}, 'characters', [{'concept': 'fictional character'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?n ) WHERE { { ?q property:characters ?r . ?r rdf:type ontology:fictional_character . ?q rdf:type ontology:work_of_art } UNION { ?q property:characters ?r . ?q rdf:type ontology:work_of_art . ?r rdf:type ontology:fictional_humanoid } } GROUP BY ?q } } . { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:fictional_character ) ( ontology:fictional_humanoid ) } } GROUP BY ?l } . FILTER ( ?u = ?w ) }
[]
fictional character fictional humanoid work of art
Q1368693 Q309048 Q16933688
SYSTEM
GeGeGe no Kitarō, King Kong, The Fencer
Q309048 Q2893677 Q7230176 Q23701769 Q2312519 Q20711488 Q969098 Q868483 Q286381 Q846870 Q320594 Q26768828 Q903424 Q18170404 Q3320792 Q241077 Q471066 Q512807 Q2911576 Q1196012 Q29478 Q11053391 Q788676 Q754687 Q614607 Q542055 Q632743 Q5437016 Q5071342 Q375786 Q15005 Q3332723 Q16933688 Q3213141 Q788458 Q148643 Q1246408 Q4409901 Q672319 Q1368693 Q4146306 Q1233164 Q11688406 Q341482 Q16201590 Q412341 Q2022683 Q294001 Q733444 Q24060599 Q4261490 Q506546 Q41567 Q3457623 Q1183443 Q746818 Q1216943 Q1476152 Q1415903 Q83186 Q4851394 Q1233203 Q888131 Q2834224 Q7752052 Q1224659 Q934597 Q793366 Q583392 Q740134
(c(Q838948),P674,c(Q95074)|c(Q6619679))
action argmin
action union
action find_tuple_counts
relation P674
type Q838948
type Q95074
action find_tuple_counts
relation P674
type Q838948
type Q6619679
[ANSWERS] have the character min number of fictional characters or fictional humanoids
[{'concept': 'Q838948'}, 'P674', [{'concept': 'Q95074'}, {'concept': 'Q6619679'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?n ) WHERE { { ?q property:P674 ?r . ?r rdf:type ontology:Q95074 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P674 ?r . ?q rdf:type ontology:Q838948 . ?r rdf:type ontology:Q6619679 } } GROUP BY ?q } } . { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:Q95074 ) ( ontology:Q6619679 ) } } GROUP BY ?l } . FILTER ( ?u = ?w ) }
King Kong Beep, Beep Porky and Gabby Periandros van Korinthe Home Harry Potter and the Cursed Child Phèdre A Chinese Odyssey Medea Prometheus Bound Abhijñānaśākuntalam Teit meistä kauniin Iphigénie Seer 4 Agamemnon Antigone The Government Inspector Andromaque Bossemans et Coppenolle Britannicus Faust La Torna Bajazet Athalie Ion Sir Thomas More The Barber of Seville Fast and Furry-ous Chandragupta Hippolytus Woe from Wit Médée The Fencer La Thébaïde The Persians Oedipus Rex Alcestis The Wedding The Suppliants GeGeGe no Kitarō An Ardent Heart Eumenides The Libation Bearers Acis and Galatea Going! Going! Gosh! Ajax On the Harmful Effects of Tobacco Oedipus at Colonus Electra Die Pluimsaad Waai Ver Liquidation Seven against Thebes Hamlet Mudrarakshasa The Crucible Esther The Trojan Women Waxwork II: Lost in Time Philoctetes Romeo and Juliet Balladyna Herakles' Children The Wind Rises Alexandre le Grand The Monkey King Digimon Adventure: Bokura no War Game! The Bacchae Berenice Les Plaideurs Mithridate
GeGeGe no Kitarō, King Kong and The Fencer have the character min number of fictional characters or fictional humanoids
GeGeGe no Kitarō King Kong The Fencer
action argmin
action union
action find_tuple_counts
relation characters
type work of art
type fictional character
action find_tuple_counts
relation characters
type work of art
type fictional humanoid
[{'concept': 'work of art'}, 'characters', [{'concept': 'fictional character'}, {'concept': 'fictional humanoid'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?w ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?n ) WHERE { { ?q property:characters ?r . ?r rdf:type ontology:fictional_character . ?q rdf:type ontology:work_of_art } UNION { ?q property:characters ?r . ?q rdf:type ontology:work_of_art . ?r rdf:type ontology:fictional_humanoid } } GROUP BY ?q } } . { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?u ) WHERE { ?d rdf:type ?z . VALUES ( ?z ) { ( ontology:fictional_character ) ( ontology:fictional_humanoid ) } } GROUP BY ?l } . FILTER ( ?u = ?w ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P144
Q838948
USER
How many works of art build on that work of art ?
(c(Q838948),P144,Q309048)
[{'concept': 'Q838948'}, 'P144', 'Q309048']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P144 resource:Q11297868 . ?z rdf:type ontology:Q838948 }
[{'concept': 'work of art'}, 'based on', 'King Kong']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:based_on resource:King_Kong . ?z rdf:type ontology:work_of_art }
[]
work of art
Quantitative|Count|Single entity type|Clarification
Q16933688
SYSTEM
Did you mean The Fencer ?
(c(Q838948),P144,Q1368693) (c(Q838948),P144,Q309048) (c(Q838948),P144,Q16933688)
[ANSWER]
[{'concept': 'Q838948'}, 'P144', 'Q1368693'] [{'concept': 'Q838948'}, 'P144', 'Q309048'] [{'concept': 'Q838948'}, 'P144', 'Q16933688']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P144 resource:Q11297868 . ?z rdf:type ontology:Q838948 }
Did you mean The Fencer ?
The Fencer
[{'concept': 'work of art'}, 'based on', 'GeGeGe no Kitarō'] [{'concept': 'work of art'}, 'based on', 'King Kong'] [{'concept': 'work of art'}, 'based on', 'The Fencer']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:based_on resource:King_Kong . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant King Kong. Could you tell me the answer for that?
(c(Q838948),P144,Q309048)
Q309048
[{'concept': 'Q838948'}, 'P144', 'Q309048']
[{'concept': 'work of art'}, 'based on', 'King Kong']
[]
SYSTEM
1
Q160215
(c(Q838948),P144,Q309048)
[ANSWER]
[{'concept': 'Q838948'}, 'P144', 'Q309048']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P144 resource:Q11297868 . ?z rdf:type ontology:Q838948 }
King Kong
1
[{'concept': 'work of art'}, 'based on', 'King Kong']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:based_on resource:King_Kong . ?z rdf:type ontology:work_of_art }
[]