Simple Question (Direct)
Simple Question
Q455877
P106
Q12737077
USER
What does Stole Aranđelović do for a living ?
(Q455877,P106,c(Q12737077))
action filter_type
action find
entity Q455877
relation P106
type Q12737077
['Q455877', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q455877 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Stole Aranđelović
action filter_type
action find
entity Stole Aranđelović
relation occupation
type occupation
['Stole Aranđelović', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Stole_Aranđelović property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q455877,P106,c(Q12737077))
action filter_type
action find
entity Q455877
relation P106
type Q12737077
[ANSWER] Stole Aranđelović does for a living
['Q455877', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q455877 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
actor
Actor Stole Aranđelović does for a living
actor
action filter_type
action find
entity Stole Aranđelović
relation occupation
type occupation
['Stole Aranđelović', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Stole_Aranđelović property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q455877
P161
Q838948
USER
Which works of art have Stole Aranđelović as actor ?
(c(Q838948),P161,Q455877)
action filter_type
action find_reverse
entity Q455877
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q455877']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q455877 . ?a rdf:type ontology:Q838948 }
Stole Aranđelović
action filter_type
action find_reverse
entity Stole Aranđelović
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Stole Aranđelović']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Stole_Aranđelović . ?a rdf:type ontology:work_of_art }
[]
work of art
Q510641 Q648289 Q895543
SYSTEM
Battle of Neretva, The Battle of Sutjeska, Among Vultures
Q12751005 Q11159971 Q7203404 Q3507824 Q12759828 Q2330695 Q3442312 Q7730911 Q3507366 Q3028211 Q260449 Q27070620 Q11220384 Q521876 Q648289 Q510641 Q785492 Q25461798 Q3506242 Q2083645 Q4463874 Q167051 Q614108 Q11155190 Q895543 Q3507805 Q27342378 Q16085720 Q12754178 Q12760214
(c(Q838948),P161,Q455877)
action filter_type
action find_reverse
entity Q455877
relation P161
type Q838948
[ANSWERS] have Stole Aranđelović as actor
[{'concept': 'Q838948'}, 'P161', 'Q455877']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q455877 . ?a rdf:type ontology:Q838948 }
Doktor Mladen Pesma sa Kumbare Playing Soldiers Double Circle Twilight Time Man Is Not a Bird The Girl and the Oak The Dream Train Without a Timetable It Rains in My Village The Sky Through the Trees U sukobu Time of Miracles Last of the Renegades The Battle of Sutjeska Battle of Neretva Der Ölprinz Tople godine Anno Domini 1573 Banović Strahinja Nebeski odred The Dark Side of the Sun Three The Written Off Return Among Vultures Point 905 Ovčar The Farm in the Small Marsh The End of the War Three Tickets to Hollywood
Battle of Neretva, The Battle of Sutjeska and Among Vultures have Stole Aranđelović as actor
Battle of Neretva The Battle of Sutjeska Among Vultures
action filter_type
action find_reverse
entity Stole Aranđelović
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Stole Aranđelović']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Stole_Aranđelović . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q510641 Q648289 Q895543
P344
Q502895
USER
Which people are the cinematographers of those works of art ?
(Q510641,P344,c(Q502895)) (Q648289,P344,c(Q502895)) (Q895543,P344,c(Q502895))
action filter_type
action find
entity prev_answer
relation P344
type Q502895
['Q510641', 'P344', {'concept': 'Q502895'}] ['Q648289', 'P344', {'concept': 'Q502895'}] ['Q895543', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?v property:P344 ?e . VALUES ( ?v ) { ( resource:Q12751005 ) ( resource:Q11159971 ) ( resource:Q7203404 ) } }
Battle of Neretva The Battle of Sutjeska Among Vultures
action filter_type
action find
entity prev_answer
relation director of photography
type common name
['Battle of Neretva', 'director of photography', {'concept': 'common name'}] ['The Battle of Sutjeska', 'director of photography', {'concept': 'common name'}] ['Among Vultures', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?v property:director_of_photography ?e . VALUES ( ?v ) { ( resource:Doktor_Mladen ) ( resource:Pesma_sa_Kumbare ) ( resource:Playing_Soldiers ) } }
[]
common name
Q7818957 Q7818957 Q1732240
SYSTEM
Karl Löb for 3rd, Tomislav Pinter for 1st, 2nd
Q7818957 Q7818957 Q1732240
(Q510641,P344,c(Q502895)) (Q648289,P344,c(Q502895)) (Q895543,P344,c(Q502895))
action filter_type
action find
entity prev_answer
relation P344
type Q502895
[ANSWERS]
['Q510641', 'P344', {'concept': 'Q502895'}] ['Q648289', 'P344', {'concept': 'Q502895'}] ['Q895543', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?v property:P344 ?e . VALUES ( ?v ) { ( resource:Q12751005 ) ( resource:Q11159971 ) ( resource:Q7203404 ) } }
Tomislav Pinter Tomislav Pinter Karl Löb
Tomislav Pinter, Tomislav Pinter and Karl Löb are the cinematographers of those works of art
Tomislav Pinter Tomislav Pinter Karl Löb
action filter_type
action find
entity prev_answer
relation director of photography
type common name
['Battle of Neretva', 'director of photography', {'concept': 'common name'}] ['The Battle of Sutjeska', 'director of photography', {'concept': 'common name'}] ['Among Vultures', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?v property:director_of_photography ?e . VALUES ( ?v ) { ( resource:Doktor_Mladen ) ( resource:Pesma_sa_Kumbare ) ( resource:Playing_Soldiers ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q510641
P86
Q502895
USER
Who did the compostion for that work of art ?
(Q510641,P86,c(Q502895))
action filter_type
action find
entity Q510641
relation P86
type Q502895
['Q510641', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q510641 property:P86 ?g . ?g rdf:type ontology:Q502895 }
Battle of Neretva
action filter_type
action find
entity Battle of Neretva
relation composer
type common name
['Battle of Neretva', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Battle_of_Neretva property:composer ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q510641
SYSTEM
Did you mean Battle of Neretva ?
Q7818957 Q7818957 Q1732240
(Q7818957,P86,c(Q502895)) (Q7818957,P86,c(Q502895)) (Q1732240,P86,c(Q502895))
[ANSWER]
['Q7818957', 'P86', {'concept': 'Q502895'}] ['Q7818957', 'P86', {'concept': 'Q502895'}] ['Q1732240', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q510641 property:P86 ?g . ?g rdf:type ontology:Q502895 }
Tomislav Pinter Tomislav Pinter Karl Löb
Did you mean Battle of Neretva ?
Battle of Neretva
['Tomislav Pinter', 'composer', {'concept': 'common name'}] ['Tomislav Pinter', 'composer', {'concept': 'common name'}] ['Karl Löb', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Battle_of_Neretva property:composer ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q510641,P86,c(Q502895))
['Q510641', 'P86', {'concept': 'Q502895'}]
['Battle of Neretva', 'composer', {'concept': 'common name'}]
[]
Q296804
SYSTEM
Bernard Herrmann
Q296804
(Q510641,P86,c(Q502895))
action filter_type
action find
entity Q510641
relation P86
type Q502895
[ANSWER] did the compostion for that work of art
['Q510641', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q510641 property:P86 ?g . ?g rdf:type ontology:Q502895 }
Bernard Herrmann
Bernard Herrmann did the compostion for that work of art
Bernard Herrmann
action filter_type
action find
entity Battle of Neretva
relation composer
type common name
['Battle of Neretva', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Battle_of_Neretva property:composer ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q296804
P86
Q838948
USER
What were composed by that person ?
(c(Q838948),P86,Q296804)
action filter_type
action find_reverse
entity Q296804
relation P86
type Q838948
[{'concept': 'Q838948'}, 'P86', 'Q296804']
SELECT DISTINCT ?n WHERE { ?n property:P86 resource:Q296804 . ?n rdf:type ontology:Q838948 }
Bernard Herrmann
action filter_type
action find_reverse
entity Bernard Herrmann
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Bernard Herrmann']
SELECT DISTINCT ?n WHERE { ?n property:composer resource:Bernard_Herrmann . ?n rdf:type ontology:work_of_art }
[]
work of art
Q24815 Q163038 Q510641
SYSTEM
Citizen Kane, Psycho, Battle of Neretva
Q2311084 Q425992 Q129895 Q202548 Q2276124 Q1197377 Q163038 Q212675 Q1211737 Q47221 Q16859959 Q979196 Q5376180 Q261546 Q529106 Q785555 Q3795308 Q774229 Q1634259 Q1215101 Q3126769 Q683957 Q223139 Q510641 Q24815 Q628664 Q1195488 Q1216160 Q1413227 Q472390 Q1523586 Q2790267 Q1193261 Q563731 Q1058934 Q1169028 Q2288599 Q1193717 Q7743191 Q491989 Q497275 Q2937312 Q486826 Q2002001 Q1217369 Q1545331 Q1528304 Q1304578 Q1215745 Q8021151 Q4929046 Q1766190 Q110043
(c(Q838948),P86,Q296804)
action filter_type
action find_reverse
entity Q296804
relation P86
type Q838948
[ANSWERS] were composed by that person
[{'concept': 'Q838948'}, 'P86', 'Q296804']
SELECT DISTINCT ?n WHERE { ?n property:P86 resource:Q296804 . ?n rdf:type ontology:Q838948 }
White Witch Doctor The Day the Earth Stood Still Marnie Vertigo Twisted Nerve The Devil and Daniel Webster Psycho Mysterious Island The Bride Wore Black Taxi Driver It Lives Again Psycho Endless Night Fahrenheit 451 Cape Fear Jason and the Argonauts Prince of Players It's Alive On Dangerous Ground The Naked and the Dead Hangover Square The Snows of Kilimanjaro North by Northwest Battle of Neretva Citizen Kane The Magnificent Ambersons The Kentuckian Sisters The Trouble with Harry The Wrong Man A Hatful of Rain Norway in Revolt 5 Fingers Anna and the King of Siam Tender Is the Night Beneath the 12-Mile Reef Room 666 Garden of Evil The Jewel of Death The Three Worlds of Gulliver The Night Digger King of the Khyber Rifles The Man Who Knew Too Much Obsession Jane Eyre The 7th Voyage of Sinbad The Egyptian The Ghost and Mrs. Muir Journey to the Center of the Earth Williamsburg: the Story of a Patriot Blue Denim The Man in the Gray Flannel Suit The Birds
Citizen Kane, Psycho and Battle of Neretva were composed by that person
Citizen Kane Psycho Battle of Neretva
action filter_type
action find_reverse
entity Bernard Herrmann
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Bernard Herrmann']
SELECT DISTINCT ?n WHERE { ?n property:composer resource:Bernard_Herrmann . ?n rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q24815
P1441
Q6619679
USER
Which fictional humanoid is from the works of that work of art ?
(c(Q6619679),P1441,Q24815)
action filter_type
action find_reverse
entity Q24815
relation P1441
type Q6619679
[{'concept': 'Q6619679'}, 'P1441', 'Q24815']
SELECT DISTINCT ?k WHERE { ?k property:P1441 resource:Q24815 . ?k rdf:type ontology:Q6619679 }
Citizen Kane
action filter_type
action find_reverse
entity Citizen Kane
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Citizen Kane']
SELECT DISTINCT ?k WHERE { ?k property:present_in_work resource:Citizen_Kane . ?k rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Clarification for simple ques.
Q163038
SYSTEM
Did you mean Psycho ?
Q24815 Q163038 Q510641
(c(Q6619679),P1441,Q24815) (c(Q6619679),P1441,Q163038) (c(Q6619679),P1441,Q510641)
[ANSWER]
[{'concept': 'Q6619679'}, 'P1441', 'Q24815'] [{'concept': 'Q6619679'}, 'P1441', 'Q163038'] [{'concept': 'Q6619679'}, 'P1441', 'Q510641']
SELECT DISTINCT ?k WHERE { ?k property:P1441 resource:Q24815 . ?k rdf:type ontology:Q6619679 }
Citizen Kane Psycho Battle of Neretva
Did you mean Psycho ?
Psycho
[{'concept': 'fictional humanoid'}, 'present in work', 'Citizen Kane'] [{'concept': 'fictional humanoid'}, 'present in work', 'Psycho'] [{'concept': 'fictional humanoid'}, 'present in work', 'Battle of Neretva']
SELECT DISTINCT ?k WHERE { ?k property:present_in_work resource:Citizen_Kane . ?k rdf:type ontology:fictional_humanoid }
[]
Simple Question (Coreferenced)
USER
No, I meant Citizen Kane. Could you tell me the answer for that?
(c(Q6619679),P1441,Q24815)
Q24815
[{'concept': 'Q6619679'}, 'P1441', 'Q24815']
[{'concept': 'fictional humanoid'}, 'present in work', 'Citizen Kane']
[]
Q2959094
SYSTEM
Charles Foster Kane
Q2959094
(c(Q6619679),P1441,Q24815)
action filter_type
action find_reverse
entity Q24815
relation P1441
type Q6619679
[ANSWER] is from the works of that work of art
[{'concept': 'Q6619679'}, 'P1441', 'Q24815']
SELECT DISTINCT ?k WHERE { ?k property:P1441 resource:Q24815 . ?k rdf:type ontology:Q6619679 }
Charles Foster Kane
Charles Foster Kane is from the works of that work of art
Charles Foster Kane
action filter_type
action find_reverse
entity Citizen Kane
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Citizen Kane']
SELECT DISTINCT ?k WHERE { ?k property:present_in_work resource:Citizen_Kane . ?k rdf:type ontology:fictional_humanoid }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q838948 Q95074 Q11424
USER
Which works of art were min number of fictional characters and films inspired by ?
(c(Q95074)|c(Q11424),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
[[{'concept': 'Q95074'}, {'concept': 'Q11424'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?d WHERE { { ?s property:P941 ?d . ?d rdf:type ontology:Q838948 . ?s rdf:type ontology:Q95074 } UNION { ?s property:P941 ?d . ?d rdf:type ontology:Q838948 . ?s rdf:type ontology:Q11424 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?p WHERE { { ?v property:P941 ?p . ?p rdf:type ontology:Q838948 . ?v rdf:type ontology:Q95074 } UNION { ?v property:P941 ?p . ?p rdf:type ontology:Q838948 . ?v rdf:type ontology:Q11424 } } GROUP BY ?p } . FILTER ( ?q = ?n ) }
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
[[{'concept': 'fictional character'}, {'concept': 'film'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?d WHERE { { ?s property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?s rdf:type ontology:fictional_character } UNION { ?s property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?s rdf:type ontology:film } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?p WHERE { { ?v property:inspired_by ?p . ?p rdf:type ontology:work_of_art . ?v rdf:type ontology:fictional_character } UNION { ?v property:inspired_by ?p . ?p rdf:type ontology:work_of_art . ?v rdf:type ontology:film } } GROUP BY ?p } . FILTER ( ?q = ?n ) }
[]
work of art fictional character film
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1856846 Q7758112 Q46239 Q1852671 Q19560629 Q17738 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q734834 Q1170100 Q375786 Q465478 Q169082
(c(Q95074)|c(Q11424),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
Were min number of fictional characters and films inspired by the [ANSWERS] of art
[[{'concept': 'Q95074'}, {'concept': 'Q11424'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?d WHERE { { ?s property:P941 ?d . ?d rdf:type ontology:Q838948 . ?s rdf:type ontology:Q95074 } UNION { ?s property:P941 ?d . ?d rdf:type ontology:Q838948 . ?s rdf:type ontology:Q11424 } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?p WHERE { { ?v property:P941 ?p . ?p rdf:type ontology:Q838948 . ?v rdf:type ontology:Q95074 } UNION { ?v property:P941 ?p . ?p rdf:type ontology:Q838948 . ?v rdf:type ontology:Q11424 } } GROUP BY ?p } . FILTER ( ?q = ?n ) }
photograph Doryphoros The Absent-Minded Professor Thunderball The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Carnival of Souls 9/11 entschlüsselt Star Wars Episode IV: A New Hope King Lear How to Explain Pictures to a Dead Hare Uncle Vanya Roman Holiday Lady Snowblood Torquato Tasso Animal Kingdom The Old Fisherman Seedbed Zeitgeist: The Movie Body Pressure The Judgement of Paris La sirena varada Ghent Altarpiece The Philadelphia Experiment Hippolytus Star Trek II: The Wrath of Khan 10 Things I Hate About You
Were min number of fictional characters and films inspired by the Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball of art
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
[[{'concept': 'fictional character'}, {'concept': 'film'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?d WHERE { { ?s property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?s rdf:type ontology:fictional_character } UNION { ?s property:inspired_by ?d . ?d rdf:type ontology:work_of_art . ?s rdf:type ontology:film } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?p WHERE { { ?v property:inspired_by ?p . ?p rdf:type ontology:work_of_art . ?v rdf:type ontology:fictional_character } UNION { ?v property:inspired_by ?p . ?p rdf:type ontology:work_of_art . ?v rdf:type ontology:film } } GROUP BY ?p } . FILTER ( ?q = ?n ) }
[]