Simple Question (Direct)
Simple Question
Q1536361
P921
Q11177771
USER
What topic was discussed in The Acid House ?
(Q1536361,P921,c(Q11177771))
action filter_type
action find
entity Q1536361
relation P921
type Q11177771
['Q1536361', 'P921', {'concept': 'Q11177771'}]
SELECT DISTINCT ?i WHERE { resource:Q1536361 property:P921 ?i . ?i rdf:type ontology:Q11177771 }
The Acid House
action filter_type
action find
entity The Acid House
relation main subject
type artistic technique
['The Acid House', 'main subject', {'concept': 'artistic technique'}]
SELECT DISTINCT ?i WHERE { resource:The_Acid_House property:main_subject ?i . ?i rdf:type ontology:artistic_technique }
[]
artistic technique
Q4936971
SYSTEM
body swap
Q4936971
(Q1536361,P921,c(Q11177771))
action filter_type
action find
entity Q1536361
relation P921
type Q11177771
[ANSWER] was discussed in The Acid House
['Q1536361', 'P921', {'concept': 'Q11177771'}]
SELECT DISTINCT ?i WHERE { resource:Q1536361 property:P921 ?i . ?i rdf:type ontology:Q11177771 }
body swap
Body swap was discussed in The Acid House
body swap
action filter_type
action find
entity The Acid House
relation main subject
type artistic technique
['The Acid House', 'main subject', {'concept': 'artistic technique'}]
SELECT DISTINCT ?i WHERE { resource:The_Acid_House property:main_subject ?i . ?i rdf:type ontology:artistic_technique }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q838948 Q15707583 Q3895768
USER
Which works of art do around 2 fictional taxons or fictional locations appear ?
(c(Q15707583)|c(Q3895768),P1441,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
value 2
[[{'concept': 'Q15707583'}, {'concept': 'Q3895768'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { { ?c property:P1441 ?k . ?k rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15707583 } UNION { ?c property:P1441 ?k . ?k rdf:type ontology:Q838948 . ?c rdf:type ontology:Q3895768 } } GROUP BY ?k } . FILTER ( ?u = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
value 2
[[{'concept': 'fictional taxon'}, {'concept': 'fictional location'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { { ?c property:present_in_work ?k . ?k rdf:type ontology:work_of_art . ?c rdf:type ontology:fictional_taxon } UNION { ?c property:present_in_work ?k . ?k rdf:type ontology:work_of_art . ?c rdf:type ontology:fictional_location } } GROUP BY ?k } . FILTER ( ?u = 2 ) }
[]
work of art fictional taxon fictional location
Q922006 Q16857406 Q182218
SYSTEM
Race to Witch Mountain, The Jungle Book, The Avengers
Q922006 Q182218 Q16857406 Q23781155 Q23780914
(c(Q15707583)|c(Q3895768),P1441,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15707583
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q3895768
value 2
[ANSWERS] around 2 fictional taxons or fictional locations appear
[[{'concept': 'Q15707583'}, {'concept': 'Q3895768'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { { ?c property:P1441 ?k . ?k rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15707583 } UNION { ?c property:P1441 ?k . ?k rdf:type ontology:Q838948 . ?c rdf:type ontology:Q3895768 } } GROUP BY ?k } . FILTER ( ?u = 2 ) }
Race to Witch Mountain The Avengers The Jungle Book Untitled Avengers Movie Avengers: Infinity War
Race to Witch Mountain, The Jungle Book and The Avengers around 2 fictional taxons or fictional locations appear
Race to Witch Mountain The Jungle Book The Avengers
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional taxon
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional location
value 2
[[{'concept': 'fictional taxon'}, {'concept': 'fictional location'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { { ?c property:present_in_work ?k . ?k rdf:type ontology:work_of_art . ?c rdf:type ontology:fictional_taxon } UNION { ?c property:present_in_work ?k . ?k rdf:type ontology:work_of_art . ?c rdf:type ontology:fictional_location } } GROUP BY ?k } . FILTER ( ?u = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q838948 Q7725634 Q95074
USER
Which works of art were min number of literary works and fictional characters inspired by ?
(c(Q7725634)|c(Q95074),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
[[{'concept': 'Q7725634'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?i WHERE { ?f rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7725634 ) ( ontology:Q95074 ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u property:P941 ?w . ?w rdf:type ontology:Q838948 . ?u rdf:type ontology:Q7725634 } UNION { ?u property:P941 ?w . ?w rdf:type ontology:Q838948 . ?u rdf:type ontology:Q95074 } } GROUP BY ?w } . FILTER ( ?n = ?d ) }
action argmin
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type literary work
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
[[{'concept': 'literary work'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?i WHERE { ?f rdf:type ?y . VALUES ( ?y ) { ( ontology:literary_work ) ( ontology:fictional_character ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u property:inspired_by ?w . ?w rdf:type ontology:work_of_art . ?u rdf:type ontology:literary_work } UNION { ?u property:inspired_by ?w . ?w rdf:type ontology:work_of_art . ?u rdf:type ontology:fictional_character } } GROUP BY ?w } . FILTER ( ?n = ?d ) }
[]
work of art literary work fictional character
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1217787 Q7758112 Q46239 Q1852671 Q19560629 Q17738 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q41567 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q734834 Q1170100 Q375786 Q83186 Q465478 Q169082
(c(Q7725634)|c(Q95074),P941,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
[ANSWERS] were min number of literary works and fictional characters inspired by
[[{'concept': 'Q7725634'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?i WHERE { ?f rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7725634 ) ( ontology:Q95074 ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u property:P941 ?w . ?w rdf:type ontology:Q838948 . ?u rdf:type ontology:Q7725634 } UNION { ?u property:P941 ?w . ?w rdf:type ontology:Q838948 . ?u rdf:type ontology:Q95074 } } GROUP BY ?w } . FILTER ( ?n = ?d ) }
photograph Doryphoros The Absent-Minded Professor Thunderball The Time Machine 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 Hamlet Animal Kingdom The Old Fisherman Seedbed Zeitgeist: The Movie Body Pressure The Judgement of Paris Ghent Altarpiece The Philadelphia Experiment Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan 10 Things I Hate About You
Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball were min number of literary works and fictional characters inspired by
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 literary work
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
[[{'concept': 'literary work'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?i WHERE { ?f rdf:type ?y . VALUES ( ?y ) { ( ontology:literary_work ) ( ontology:fictional_character ) } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) ?w WHERE { { ?u property:inspired_by ?w . ?w rdf:type ontology:work_of_art . ?u rdf:type ontology:literary_work } UNION { ?u property:inspired_by ?w . ?w rdf:type ontology:work_of_art . ?u rdf:type ontology:fictional_character } } GROUP BY ?w } . FILTER ( ?n = ?d ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1144983
P915
Q1048835
USER
What was the location of filming that work of art ?
(Q1144983,P915,c(Q1048835))
action filter_type
action find
entity Q1144983
relation P915
type Q1048835
['Q1144983', 'P915', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1048835 . resource:Q1144983 property:P915 ?z }
Animal Kingdom
action filter_type
action find
entity Animal Kingdom
relation filming location
type political territorial entity
['Animal Kingdom', 'filming location', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Animal_Kingdom property:filming_location ?z }
[]
political territorial entity
Clarification for simple ques.
Q1144983
SYSTEM
Did you mean Animal Kingdom ?
Q1144983 Q17738 Q107724
(Q1144983,P915,c(Q1048835)) (Q17738,P915,c(Q1048835)) (Q107724,P915,c(Q1048835))
[ANSWER]
['Q1144983', 'P915', {'concept': 'Q1048835'}] ['Q17738', 'P915', {'concept': 'Q1048835'}] ['Q107724', 'P915', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1048835 . resource:Q1144983 property:P915 ?z }
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
Did you mean Animal Kingdom ?
Animal Kingdom
['Animal Kingdom', 'filming location', {'concept': 'political territorial entity'}] ['Star Wars Episode IV: A New Hope', 'filming location', {'concept': 'political territorial entity'}] ['Thunderball', 'filming location', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Animal_Kingdom property:filming_location ?z }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1144983,P915,c(Q1048835))
['Q1144983', 'P915', {'concept': 'Q1048835'}]
['Animal Kingdom', 'filming location', {'concept': 'political territorial entity'}]
[]
Q408
SYSTEM
Australia
Q408
(Q1144983,P915,c(Q1048835))
action filter_type
action find
entity Q1144983
relation P915
type Q1048835
The location of filming that work of art was in [ANSWER]
['Q1144983', 'P915', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1048835 . resource:Q1144983 property:P915 ?z }
Australia
The location of filming that work of art was in Australia
Australia
action filter_type
action find
entity Animal Kingdom
relation filming location
type political territorial entity
['Animal Kingdom', 'filming location', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Animal_Kingdom property:filming_location ?z }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q934970
P361
Q838948 Q3305213 Q838948
USER
Which works of art are lesser number of paintings and works of art a part of than Le Roi et l'oiseau ?
(c(Q3305213)|c(Q838948),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q934970
relation P361
type Q3305213
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?h WHERE { { ?x property:P361 ?h . ?x rdf:type ontology:Q838948 . ?h rdf:type ontology:Q838948 } UNION { ?x property:P361 ?h . ?h rdf:type ontology:Q838948 . ?x rdf:type ontology:Q3305213 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P361 resource:Q934970 . { { ?p rdf:type ontology:Q3305213 } UNION { ?p rdf:type ontology:Q838948 } } } } . FILTER ( ?l < ?c ) }
Le Roi et l'oiseau
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity Le Roi et l'oiseau
relation part of
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?h WHERE { { ?x property:part_of ?h . ?x rdf:type ontology:work_of_art . ?h rdf:type ontology:work_of_art } UNION { ?x property:part_of ?h . ?h rdf:type ontology:work_of_art . ?x rdf:type ontology:painting } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:part_of resource:Le_Roi_et_l'oiseau . { { ?p rdf:type ontology:painting } UNION { ?p rdf:type ontology:work_of_art } } } } . FILTER ( ?l < ?c ) }
[]
work of art painting work of art
Q205028 Q102438 Q15624215
SYSTEM
Iron Man 2, Harry Potter and the Philosopher's Stone, Lucy
Q2312028 Q1762957 Q3415280 Q4143086 Q127367 Q22260775 Q193066 Q15624215 Q206400 Q372959 Q102438 Q10371896 Q18547944 Q6503493 Q3907523 Q3907489 Q29478 Q19393199 Q10550583 Q1209853 Q18609716 Q284184 Q215750 Q734834 Q222867 Q495954 Q733065 Q747847 Q977372 Q161687 Q1534737 Q205028 Q1623056 Q1760893 Q753449 Q314003 Q4110177 Q332368 Q478748 Q1195466 Q1752478 Q174811 Q945138 Q187483 Q6519361 Q874496 Q475476 Q103569 Q976149 Q1988321 Q18577910 Q3428050 Q472359 Q971109 Q1360347 Q632753 Q60072 Q41567 Q7572454 Q1270166 Q3395799 Q463313 Q18217301 Q232009 Q309153 Q2905386 Q165325 Q2626332 Q7338317 Q213053 Q3907484 Q2089457 Q3907512 Q79218 Q1125687 Q24980 Q283134 Q93184 Q7203413 Q1230318 Q378838 Q928019 Q152185 Q3907505 Q164804 Q1297233 Q482994 Q3087894 Q21340348 Q7600677 Q2467518 Q10512738
(c(Q3305213)|c(Q838948),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q934970
relation P361
type Q3305213
type Q838948
[ANSWERS] are lesser number of paintings and works of art a part of than Le Roi et l'oiseau
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?h WHERE { { ?x property:P361 ?h . ?x rdf:type ontology:Q838948 . ?h rdf:type ontology:Q838948 } UNION { ?x property:P361 ?h . ?h rdf:type ontology:Q838948 . ?x rdf:type ontology:Q3305213 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P361 resource:Q934970 . { { ?p rdf:type ontology:Q3305213 } UNION { ?p rdf:type ontology:Q838948 } } } } . FILTER ( ?l < ?c ) }
Star Spangled Rhythm Release the Prisoners to Spring Dangerous Moonlight Ride The Lord of the Rings: The Fellowship of the Ring Sonar Kella Breakfast at Tiffany's Lucy The Merchant of Venice The Towering Inferno Harry Potter and the Philosopher's Stone Sing, Baby, Sing The Martian Law of the Sea polyptych of Saint Augustine Assumption Faust Life of Humanity Kurt Olsson – filmen om mitt liv som mig själv Dick Tracy Scenes from the Life of the Virgin Ra.One Julius Caesar Ghent Altarpiece 2 Fast 2 Furious Henry V Dabangg New Orleans New York Stories Harry Potter and the Half-Blood Prince Life Iron Man 2 The Fighting Temptations Roseanna Christine Stolpersteine A Night Before Christmas A View to a Kill The Holiday The Man on the Roof Slap Shot Up Bedknobs and Broomsticks Bayeux Tapestry Leif The Poseidon Adventure diptych Alien Laura Seven Sorrows Polyptych George VI and Queen Elizabeth Memorial Christ with singing and music-making Angels El Cantante Inferno Hunnestad Monument Babes in Arms The Sound of Music Hamlet Space Pirate Captain Harlock Danish Crown Regalia Polyptych of Certosa di Pavia Romeo + Juliet Rizal Monument Harry Potter and the Deathly Hallows – Part 2 Singin' in the Rain Black Jack Kill Bill Volume 1 A Breed Apart Rivers and Tides Superman 1472 Polyptych Cold War Porto San Giorgio Polyptych triptych Teheran 43 Monty Python's The Meaning of Life Supergirl drawing Playing for Keeps Carefree The Oldest Profession Kill Bill Volume 2 The Legend of Lucy Keyes Montefiore dell'Aso Polyptych Underworld Ferdinand the Bull album Parthenon Frieze Madonna and Child, Saints Francis, John the Baptist, John the Evangelist and Anthony of Padua computer graphics Visions of the Hereafter Göta kanal eller Vem drog ur proppen?
Iron Man 2, Harry Potter and the Philosopher's Stone and Lucy are lesser number of paintings and works of art a part of than Le Roi et l'oiseau
Iron Man 2 Harry Potter and the Philosopher's Stone Lucy
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity Le Roi et l'oiseau
relation part of
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?h WHERE { { ?x property:part_of ?h . ?x rdf:type ontology:work_of_art . ?h rdf:type ontology:work_of_art } UNION { ?x property:part_of ?h . ?h rdf:type ontology:work_of_art . ?x rdf:type ontology:painting } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:part_of resource:Le_Roi_et_l'oiseau . { { ?p rdf:type ontology:painting } UNION { ?p rdf:type ontology:work_of_art } } } } . FILTER ( ?l < ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q4135545
P361
Q838948 Q3305213 Q838948
USER
And what about Henry IV (play)?
(c(Q3305213)|c(Q838948),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q4135545
relation P361
type Q3305213
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?q < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P361 resource:Q4135545 . { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?d rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?w WHERE { { ?i property:P361 ?w . ?w rdf:type ontology:Q838948 . ?i rdf:type ontology:Q3305213 } UNION { ?i property:P361 ?w . ?i rdf:type ontology:Q838948 . ?w rdf:type ontology:Q838948 } } GROUP BY ?w } }
Henry IV (play)
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity Henry IV (play)
relation part of
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?q < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:part_of resource:Henry_IV_(play) . { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?d rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?w WHERE { { ?i property:part_of ?w . ?w rdf:type ontology:work_of_art . ?i rdf:type ontology:painting } UNION { ?i property:part_of ?w . ?i rdf:type ontology:work_of_art . ?w rdf:type ontology:work_of_art } } GROUP BY ?w } }
[]
work of art painting work of art
Q205028 Q102438 Q15624215
SYSTEM
Iron Man 2, Harry Potter and the Philosopher's Stone, Lucy
Q2312028 Q1762957 Q5723375 Q3415280 Q4143086 Q127367 Q22260775 Q193066 Q15624215 Q206400 Q2364709 Q372959 Q102438 Q10371896 Q18547944 Q6503493 Q3907523 Q3907489 Q29478 Q17275612 Q552002 Q19393199 Q10550583 Q934970 Q1209853 Q18609716 Q284184 Q215750 Q734834 Q222867 Q495954 Q733065 Q747847 Q977372 Q161687 Q1534737 Q4656518 Q1411766 Q205028 Q1623056 Q1760893 Q753449 Q314003 Q4110177 Q1356770 Q3193421 Q16741153 Q332368 Q3983379 Q478748 Q1195466 Q2003287 Q1752478 Q174811 Q945138 Q187483 Q6519361 Q874496 Q475476 Q103569 Q976149 Q3907478 Q1988321 Q18577910 Q3428050 Q472359 Q971109 Q1360347 Q632753 Q60072 Q489772 Q41567 Q7572454 Q3747490 Q1270166 Q3395799 Q463313 Q18217301 Q232009 Q309153 Q2905386 Q165325 Q2626332 Q7338317 Q22527805 Q203443 Q201022 Q213053 Q3907484 Q2089457 Q3907512 Q2661437 Q79218 Q1125687 Q20857440 Q24980 Q283134 Q93184 Q24568939 Q7203413 Q1230318 Q378838 Q928019 Q152185 Q2405799 Q281465 Q3907505 Q164804 Q16156301 Q3992615 Q1297233 Q482994 Q3087894 Q21340348 Q7600677 Q2467518 Q10512738
(c(Q3305213)|c(Q838948),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q4135545
relation P361
type Q3305213
type Q838948
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?q < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:P361 resource:Q4135545 . { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?d rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?w WHERE { { ?i property:P361 ?w . ?w rdf:type ontology:Q838948 . ?i rdf:type ontology:Q3305213 } UNION { ?i property:P361 ?w . ?i rdf:type ontology:Q838948 . ?w rdf:type ontology:Q838948 } } GROUP BY ?w } }
Star Spangled Rhythm Release the Prisoners to Spring Tales of an Island Dangerous Moonlight Ride The Lord of the Rings: The Fellowship of the Ring Sonar Kella Breakfast at Tiffany's Lucy The Merchant of Venice Alice Comedies The Towering Inferno Harry Potter and the Philosopher's Stone Sing, Baby, Sing The Martian Law of the Sea polyptych of Saint Augustine Assumption Faust Le Tour de France dans les Pyrénées Ro.Go.Pa.G. Life of Humanity Kurt Olsson – filmen om mitt liv som mig själv Le Roi et l'oiseau Dick Tracy Scenes from the Life of the Virgin Ra.One Julius Caesar Ghent Altarpiece 2 Fast 2 Furious Henry V Dabangg New Orleans New York Stories Harry Potter and the Half-Blood Prince Life A Divine Double Feature predella Iron Man 2 The Fighting Temptations Roseanna Christine Stolpersteine A Night Before Christmas Heroon Karl Liebknecht 3x3D A View to a Kill Ten Minutes Older: The Trumpet The Holiday The Man on the Roof The Gates of Hell Slap Shot Up Bedknobs and Broomsticks Bayeux Tapestry Leif The Poseidon Adventure diptych Alien Laura Roverella Altarpiece Seven Sorrows Polyptych George VI and Queen Elizabeth Memorial Christ with singing and music-making Angels El Cantante Inferno Hunnestad Monument Babes in Arms The Sound of Music Seven Wonders of the Ancient World Hamlet Space Pirate Captain Harlock baptismal font of the Siena Baptistry Danish Crown Regalia Polyptych of Certosa di Pavia Romeo + Juliet Rizal Monument Harry Potter and the Deathly Hallows – Part 2 Singin' in the Rain Black Jack Kill Bill Volume 1 A Breed Apart Rivers and Tides Chatsworth Apollo headstone folk dance Superman 1472 Polyptych Cold War Porto San Giorgio Polyptych The Witches triptych Teheran 43 Henry VI (play) Part 1-3 Monty Python's The Meaning of Life Supergirl drawing Meditation Playing for Keeps Carefree The Oldest Profession Kill Bill Volume 2 The Legend of Lucy Keyes DC Universe Animated Original Movies Albert Memorial Montefiore dell'Aso Polyptych Underworld Medals by Pisanello Tomb of Giuliano de' Medici, Duke of Nemours Ferdinand the Bull album Parthenon Frieze Madonna and Child, Saints Francis, John the Baptist, John the Evangelist and Anthony of Padua computer graphics Visions of the Hereafter Göta kanal eller Vem drog ur proppen?
Iron Man 2 Harry Potter and the Philosopher's Stone Lucy
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity Henry IV (play)
relation part of
type painting
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?q < ?k ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d property:part_of resource:Henry_IV_(play) . { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?d rdf:type ?j } } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?w WHERE { { ?i property:part_of ?w . ?w rdf:type ontology:work_of_art . ?i rdf:type ontology:painting } UNION { ?i property:part_of ?w . ?i rdf:type ontology:work_of_art . ?w rdf:type ontology:work_of_art } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6400071 Q1536361
P495 P17
Q15617994
USER
Which administrative territories did The Acid House originate or are Khan Khvodi present in ?
OR((Q1536361,P495,c(Q15617994)), (Q6400071,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1536361
relation P495
action find
entity Q6400071
relation P17
type Q15617994
{'OR': [['Q1536361', 'P495', {'concept': 'Q15617994'}], ['Q6400071', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1536361 property:P495 ?y } UNION { resource:Q6400071 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Khan Khvodi The Acid House
action filter_type
action union
action find
entity The Acid House
relation country of origin
action find
entity Khan Khvodi
relation country
type designation for an administrative territorial entity
{'OR': [['The Acid House', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Khan Khvodi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:The_Acid_House property:country_of_origin ?y } UNION { resource:Khan_Khvodi property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q794
SYSTEM
United Kingdom, Iran
Q145 Q794
OR((Q1536361,P495,c(Q15617994)), (Q6400071,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1536361
relation P495
action find
entity Q6400071
relation P17
type Q15617994
The Acid House originated or are Khan Khvodi present in [ANSWERS]
{'OR': [['Q1536361', 'P495', {'concept': 'Q15617994'}], ['Q6400071', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1536361 property:P495 ?y } UNION { resource:Q6400071 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
United Kingdom Iran
The Acid House originated or are Khan Khvodi present in United Kingdom and Iran
United Kingdom Iran
action filter_type
action union
action find
entity The Acid House
relation country of origin
action find
entity Khan Khvodi
relation country
type designation for an administrative territorial entity
{'OR': [['The Acid House', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Khan Khvodi', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:The_Acid_House property:country_of_origin ?y } UNION { resource:Khan_Khvodi property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q794
P706
Q271669
USER
What is located in Iran ?
(c(Q271669),P706,Q794)
action filter_type
action find_reverse
entity Q794
relation P706
type Q271669
[{'concept': 'Q271669'}, 'P706', 'Q794']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q271669 . ?t property:P706 resource:Q794 }
Iran
action filter_type
action find_reverse
entity Iran
relation located on terrain feature
type landform
[{'concept': 'landform'}, 'located on terrain feature', 'Iran']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:landform . ?t property:located_on_terrain_feature resource:Iran }
[]
landform
Q625587
SYSTEM
Aral–Caspian Depression
Q625587
(c(Q271669),P706,Q794)
action filter_type
action find_reverse
entity Q794
relation P706
type Q271669
[ANSWER] is located in Iran
[{'concept': 'Q271669'}, 'P706', 'Q794']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q271669 . ?t property:P706 resource:Q794 }
Aral–Caspian Depression
Aral–Caspian Depression is located in Iran
Aral–Caspian Depression
action filter_type
action find_reverse
entity Iran
relation located on terrain feature
type landform
[{'concept': 'landform'}, 'located on terrain feature', 'Iran']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:landform . ?t property:located_on_terrain_feature resource:Iran }
[]