Simple Question (Direct)
Simple Question
Q6948895
P136
Q1792379
USER
What can be considered as category for Mystery of the River Boat ?
(Q6948895,P136,c(Q1792379))
action filter_type
action find
entity Q6948895
relation P136
type Q1792379
['Q6948895', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?o WHERE { resource:Q6948895 property:P136 ?o . ?o rdf:type ontology:Q1792379 }
Mystery of the River Boat
action filter_type
action find
entity Mystery of the River Boat
relation genre
type art genre
['Mystery of the River Boat', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?o WHERE { resource:Mystery_of_the_River_Boat property:genre ?o . ?o rdf:type ontology:art_genre }
[]
art genre
Q1200678
SYSTEM
mystery film
Q1200678
(Q6948895,P136,c(Q1792379))
action filter_type
action find
entity Q6948895
relation P136
type Q1792379
[ANSWER] can be considered as category for Mystery of the River Boat
['Q6948895', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?o WHERE { resource:Q6948895 property:P136 ?o . ?o rdf:type ontology:Q1792379 }
mystery film
Mystery film can be considered as category for Mystery of the River Boat
mystery film
action filter_type
action find
entity Mystery of the River Boat
relation genre
type art genre
['Mystery of the River Boat', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?o WHERE { resource:Mystery_of_the_River_Boat property:genre ?o . ?o rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6948895
P462
Q1075
USER
Which color is that work of art associated with ?
(Q1200678,P462,c(Q1075))
action filter_type
action find
entity Q6948895
relation P462
type Q1075
['Q1200678', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?w WHERE { resource:Q6948895 property:P462 ?w . ?w rdf:type ontology:Q1075 }
Mystery of the River Boat
action filter_type
action find
entity Mystery of the River Boat
relation color
type color
['mystery film', 'color', {'concept': 'color'}]
SELECT DISTINCT ?w WHERE { resource:Mystery_of_the_River_Boat property:color ?w . ?w rdf:type ontology:color }
[]
color
Q2254548
SYSTEM
black-and-white film
Q2254548
(Q1200678,P462,c(Q1075))
action filter_type
action find
entity Q6948895
relation P462
type Q1075
That work of art is associated with [ANSWER]
['Q1200678', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?w WHERE { resource:Q6948895 property:P462 ?w . ?w rdf:type ontology:Q1075 }
black-and-white film
That work of art is associated with black-and-white film
black-and-white film
action filter_type
action find
entity Mystery of the River Boat
relation color
type color
['mystery film', 'color', {'concept': 'color'}]
SELECT DISTINCT ?w WHERE { resource:Mystery_of_the_River_Boat property:color ?w . ?w rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6948895
P86
Q502895
USER
Who wrote the music for that work of art ?
(Q2254548,P86,c(Q502895))
action filter_type
action find
entity Q6948895
relation P86
type Q502895
['Q2254548', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q6948895 property:P86 ?j }
Mystery of the River Boat
action filter_type
action find
entity Mystery of the River Boat
relation composer
type common name
['black-and-white film', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Mystery_of_the_River_Boat property:composer ?j }
[]
common name
Q3372172
SYSTEM
Paul Sawtell
Q3372172
(Q2254548,P86,c(Q502895))
action filter_type
action find
entity Q6948895
relation P86
type Q502895
[ANSWER] wrote the music for that work of art
['Q2254548', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q6948895 property:P86 ?j }
Paul Sawtell
Paul Sawtell wrote the music for that work of art
Paul Sawtell
action filter_type
action find
entity Mystery of the River Boat
relation composer
type common name
['black-and-white film', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Mystery_of_the_River_Boat property:composer ?j }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q465478
P941
Q838948 Q2342494 Q11424
USER
Which works of art inspired around the same number of collectables or films as Star Trek II: The Wrath of Khan ?
(c(Q2342494)|c(Q11424),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q465478
relation P941
type Q2342494
type Q11424
[[{'concept': 'Q2342494'}, {'concept': 'Q11424'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?z WHERE { VALUES ( ?g ) { ( ontology:Q11424 ) ( ontology:Q2342494 ) } . ?c rdf:type ?g } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P941 resource:Q465478 . { ?n rdf:type ?k . VALUES ( ?k ) { ( ontology:Q11424 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?f = ?o ) }
Star Trek II: The Wrath of Khan
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action count
action filter_multi_types
action find_reverse
entity Star Trek II: The Wrath of Khan
relation inspired by
type collectable
type film
[[{'concept': 'collectable'}, {'concept': 'film'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?z WHERE { VALUES ( ?g ) { ( ontology:film ) ( ontology:collectable ) } . ?c rdf:type ?g } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:inspired_by resource:Star_Trek_II:_The_Wrath_of_Khan . { ?n rdf:type ?k . VALUES ( ?k ) { ( ontology:film ) ( ontology:collectable ) } } } } . FILTER ( ?f = ?o ) }
[]
work of art collectable film
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1856846 Q7758112 Q46239 Q1852671 Q17738 Q1345920 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q379873 Q734834 Q1170100 Q375786 Q465478 Q493755 Q214619 Q169082
(c(Q2342494)|c(Q11424),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q465478
relation P941
type Q2342494
type Q11424
[ANSWERS] inspired around the same number of collectables or films as Star Trek II: The Wrath of Khan
[[{'concept': 'Q2342494'}, {'concept': 'Q11424'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?z WHERE { VALUES ( ?g ) { ( ontology:Q11424 ) ( ontology:Q2342494 ) } . ?c rdf:type ?g } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P941 resource:Q465478 . { ?n rdf:type ?k . VALUES ( ?k ) { ( ontology:Q11424 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?f = ?o ) }
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 Star Wars Episode IV: A New Hope Song of the South 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 Who Framed Roger Rabbit Ghent Altarpiece The Philadelphia Experiment Hippolytus Star Trek II: The Wrath of Khan Coming to America The Little Mermaid 10 Things I Hate About You
Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball inspired around the same number of collectables or films as Star Trek II: The Wrath of Khan
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action count
action filter_multi_types
action find_reverse
entity Star Trek II: The Wrath of Khan
relation inspired by
type collectable
type film
[[{'concept': 'collectable'}, {'concept': 'film'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) ?z WHERE { VALUES ( ?g ) { ( ontology:film ) ( ontology:collectable ) } . ?c rdf:type ?g } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:inspired_by resource:Star_Trek_II:_The_Wrath_of_Khan . { ?n rdf:type ?k . VALUES ( ?k ) { ( ontology:film ) ( ontology:collectable ) } } } } . FILTER ( ?f = ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q753298
P941
Q838948 Q2342494 Q11424
USER
And how about Uncle Vanya?
(c(Q2342494)|c(Q11424),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q753298
relation P941
type Q2342494
type Q11424
[[{'concept': 'Q2342494'}, {'concept': 'Q11424'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:P941 ?h . ?h rdf:type ontology:Q838948 . ?x rdf:type ontology:Q2342494 } UNION { ?h rdf:type ontology:Q838948 . ?x rdf:type ontology:Q11424 . ?x property:P941 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:P941 resource:Q753298 . { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q11424 } } } } . FILTER ( ?w = ?u ) }
Uncle Vanya
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action count
action filter_multi_types
action find_reverse
entity Uncle Vanya
relation inspired by
type collectable
type film
[[{'concept': 'collectable'}, {'concept': 'film'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:inspired_by ?h . ?h rdf:type ontology:work_of_art . ?x rdf:type ontology:collectable } UNION { ?h rdf:type ontology:work_of_art . ?x rdf:type ontology:film . ?x property:inspired_by ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:inspired_by resource:Uncle_Vanya . { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:film } } } } . FILTER ( ?w = ?u ) }
[]
work of art collectable film
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1856846 Q7758112 Q46239 Q1852671 Q17738 Q1345920 Q181598 Q2568137 Q753298 Q201293 Q1754737 Q1432001 Q1144983 Q18668045 Q7445655 Q186014 Q4936847 Q3223805 Q5968141 Q379873 Q734834 Q1170100 Q375786 Q465478 Q493755 Q214619 Q169082
(c(Q2342494)|c(Q11424),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q11424
action count
action filter_multi_types
action find_reverse
entity Q753298
relation P941
type Q2342494
type Q11424
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q11424'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:P941 ?h . ?h rdf:type ontology:Q838948 . ?x rdf:type ontology:Q2342494 } UNION { ?h rdf:type ontology:Q838948 . ?x rdf:type ontology:Q11424 . ?x property:P941 ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:P941 resource:Q753298 . { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q11424 } } } } . FILTER ( ?w = ?u ) }
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 Star Wars Episode IV: A New Hope Song of the South 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 Who Framed Roger Rabbit Ghent Altarpiece The Philadelphia Experiment Hippolytus Star Trek II: The Wrath of Khan Coming to America The Little Mermaid 10 Things I Hate About You
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type film
action count
action filter_multi_types
action find_reverse
entity Uncle Vanya
relation inspired by
type collectable
type film
[[{'concept': 'collectable'}, {'concept': 'film'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:inspired_by ?h . ?h rdf:type ontology:work_of_art . ?x rdf:type ontology:collectable } UNION { ?h rdf:type ontology:work_of_art . ?x rdf:type ontology:film . ?x property:inspired_by ?h } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { ?n property:inspired_by resource:Uncle_Vanya . { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:film } } } } . FILTER ( ?w = ?u ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17738
P144
Q838948
USER
Which work of art is adapted from that one ?
(c(Q838948),P144,Q17738)
action filter_type
action find_reverse
entity Q17738
relation P144
type Q838948
[{'concept': 'Q838948'}, 'P144', 'Q17738']
SELECT DISTINCT ?q WHERE { ?q property:P144 resource:Q17738 . ?q rdf:type ontology:Q838948 }
Star Wars Episode IV: A New Hope
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation based on
type work of art
[{'concept': 'work of art'}, 'based on', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ?q WHERE { ?q property:based_on resource:Star_Wars_Episode_IV:_A_New_Hope . ?q rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q1144983
SYSTEM
Did you mean Animal Kingdom ?
Q1144983 Q17738 Q107724
(c(Q838948),P144,Q1144983) (c(Q838948),P144,Q17738) (c(Q838948),P144,Q107724)
[ANSWER]
[{'concept': 'Q838948'}, 'P144', 'Q1144983'] [{'concept': 'Q838948'}, 'P144', 'Q17738'] [{'concept': 'Q838948'}, 'P144', 'Q107724']
SELECT DISTINCT ?q WHERE { ?q property:P144 resource:Q17738 . ?q rdf:type ontology:Q838948 }
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
Did you mean Animal Kingdom ?
Animal Kingdom
[{'concept': 'work of art'}, 'based on', 'Animal Kingdom'] [{'concept': 'work of art'}, 'based on', 'Star Wars Episode IV: A New Hope'] [{'concept': 'work of art'}, 'based on', 'Thunderball']
SELECT DISTINCT ?q WHERE { ?q property:based_on resource:Star_Wars_Episode_IV:_A_New_Hope . ?q rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Star Wars Episode IV: A New Hope. Could you tell me the answer for that?
(c(Q838948),P144,Q17738)
Q17738
[{'concept': 'Q838948'}, 'P144', 'Q17738']
[{'concept': 'work of art'}, 'based on', 'Star Wars Episode IV: A New Hope']
[]
Q15848933
SYSTEM
Star Wars XXX: A Porn Parody
Q15848933
(c(Q838948),P144,Q17738)
action filter_type
action find_reverse
entity Q17738
relation P144
type Q838948
[ANSWER] is adapted from that one
[{'concept': 'Q838948'}, 'P144', 'Q17738']
SELECT DISTINCT ?q WHERE { ?q property:P144 resource:Q17738 . ?q rdf:type ontology:Q838948 }
Star Wars XXX: A Porn Parody
Star Wars XXX: A Porn Parody is adapted from that one
Star Wars XXX: A Porn Parody
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation based on
type work of art
[{'concept': 'work of art'}, 'based on', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ?q WHERE { ?q property:based_on resource:Star_Wars_Episode_IV:_A_New_Hope . ?q rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17738
P1441
Q15619164
USER
Which abstract beings are from the works of Star Wars Episode IV: A New Hope ?
(c(Q15619164),P1441,Q17738)
action filter_type
action find_reverse
entity Q17738
relation P1441
type Q15619164
[{'concept': 'Q15619164'}, 'P1441', 'Q17738']
SELECT DISTINCT ?c WHERE { ?c property:P1441 resource:Q17738 . ?c rdf:type ontology:Q15619164 }
Star Wars Episode IV: A New Hope
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ?c WHERE { ?c property:present_in_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?c rdf:type ontology:abstract_being }
[]
abstract being
Q51740 Q22245066 Q3755427
SYSTEM
Obi-Wan Kenobi, Brea Tonnika, General Dodonna
Q22245121 Q51740 Q22245066 Q3755427
(c(Q15619164),P1441,Q17738)
action filter_type
action find_reverse
entity Q17738
relation P1441
type Q15619164
[ANSWERS] are from the works of Star Wars Episode IV: A New Hope
[{'concept': 'Q15619164'}, 'P1441', 'Q17738']
SELECT DISTINCT ?c WHERE { ?c property:P1441 resource:Q17738 . ?c rdf:type ontology:Q15619164 }
Senni Tonnika Obi-Wan Kenobi Brea Tonnika General Dodonna
Obi-Wan Kenobi, Brea Tonnika and General Dodonna are from the works of Star Wars Episode IV: A New Hope
Obi-Wan Kenobi Brea Tonnika General Dodonna
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ?c WHERE { ?c property:present_in_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?c rdf:type ontology:abstract_being }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q51740 Q22245066 Q3755427
P1441
Q838948
USER
Where are those abstract beings shown in ?
(Q51740,P1441,c(Q838948)) (Q22245066,P1441,c(Q838948)) (Q3755427,P1441,c(Q838948))
action filter_type
action find
entity prev_answer
relation P1441
type Q838948
['Q51740', 'P1441', {'concept': 'Q838948'}] ['Q22245066', 'P1441', {'concept': 'Q838948'}] ['Q3755427', 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?s ) { ( resource:Q22245121 ) ( resource:Q51740 ) ( resource:Q22245066 ) } . ?n rdf:type ontology:Q838948 . ?s property:P1441 ?n }
Obi-Wan Kenobi Brea Tonnika General Dodonna
action filter_type
action find
entity prev_answer
relation present in work
type work of art
['Obi-Wan Kenobi', 'present in work', {'concept': 'work of art'}] ['Brea Tonnika', 'present in work', {'concept': 'work of art'}] ['General Dodonna', 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?s ) { ( resource:Senni_Tonnika ) ( resource:Obi-Wan_Kenobi ) ( resource:Brea_Tonnika ) } . ?n rdf:type ontology:work_of_art . ?s property:present_in_work ?n }
[]
work of art
Q6074 Q17738 Q17738
SYSTEM
Star Wars Episode IV: A New Hope for 2nd, 3rd, Star Wars: The Force Awakens for 1st
Q17738 Q6074 Q181069 Q42051 Q165713 Q17738 Q17738
(Q51740,P1441,c(Q838948)) (Q22245066,P1441,c(Q838948)) (Q3755427,P1441,c(Q838948))
action filter_type
action find
entity prev_answer
relation P1441
type Q838948
[ANSWERS]
['Q51740', 'P1441', {'concept': 'Q838948'}] ['Q22245066', 'P1441', {'concept': 'Q838948'}] ['Q3755427', 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?s ) { ( resource:Q22245121 ) ( resource:Q51740 ) ( resource:Q22245066 ) } . ?n rdf:type ontology:Q838948 . ?s property:P1441 ?n }
Star Wars Episode IV: A New Hope Star Wars: The Force Awakens Star Wars Episode II: Attack of the Clones Star Wars: Episode III – Revenge of the Sith Star Wars: Episode I – The Phantom Menace Star Wars Episode IV: A New Hope Star Wars Episode IV: A New Hope
Those abstract beings shown in are in Star Wars: The Force Awakens, Star Wars Episode IV: A New Hope and Star Wars Episode IV: A New Hope
Star Wars: The Force Awakens Star Wars Episode IV: A New Hope Star Wars Episode IV: A New Hope
action filter_type
action find
entity prev_answer
relation present in work
type work of art
['Obi-Wan Kenobi', 'present in work', {'concept': 'work of art'}] ['Brea Tonnika', 'present in work', {'concept': 'work of art'}] ['General Dodonna', 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?s ) { ( resource:Senni_Tonnika ) ( resource:Obi-Wan_Kenobi ) ( resource:Brea_Tonnika ) } . ?n rdf:type ontology:work_of_art . ?s property:present_in_work ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17738
P800
Q502895
USER
Which person is accredited with being the author of the notable work that one ?
(c(Q502895),P800,Q6074) (c(Q502895),P800,Q17738) (c(Q502895),P800,Q17738)
action filter_type
action find_reverse
entity Q17738
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q6074'] [{'concept': 'Q502895'}, 'P800', 'Q17738'] [{'concept': 'Q502895'}, 'P800', 'Q17738']
SELECT DISTINCT ?u WHERE { ?u property:P800 resource:Q17738 . ?u rdf:type ontology:Q502895 }
Star Wars Episode IV: A New Hope
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Star Wars: The Force Awakens'] [{'concept': 'common name'}, 'notable work', 'Star Wars Episode IV: A New Hope'] [{'concept': 'common name'}, 'notable work', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ?u WHERE { ?u property:notable_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?u rdf:type ontology:common_name }
[]
common name
Q38222
SYSTEM
George Lucas
Q38222
(c(Q502895),P800,Q6074) (c(Q502895),P800,Q17738) (c(Q502895),P800,Q17738)
action filter_type
action find_reverse
entity Q17738
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work that one
[{'concept': 'Q502895'}, 'P800', 'Q6074'] [{'concept': 'Q502895'}, 'P800', 'Q17738'] [{'concept': 'Q502895'}, 'P800', 'Q17738']
SELECT DISTINCT ?u WHERE { ?u property:P800 resource:Q17738 . ?u rdf:type ontology:Q502895 }
George Lucas
George Lucas is accredited with being the author of the notable work that one
George Lucas
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Star Wars: The Force Awakens'] [{'concept': 'common name'}, 'notable work', 'Star Wars Episode IV: A New Hope'] [{'concept': 'common name'}, 'notable work', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ?u WHERE { ?u property:notable_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q838948 Q3305213 Q502895
USER
Which works of art are max number of paintings and people a component of ?
(c(Q3305213)|c(Q502895),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
[[{'concept': 'Q3305213'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?x WHERE { VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q502895 ) } . ?c rdf:type ?r } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:Q838948 . ?n rdf:type ontology:Q3305213 . ?n property:P361 ?d } UNION { ?d rdf:type ontology:Q838948 . ?n rdf:type ontology:Q502895 . ?n property:P361 ?d } } GROUP BY ?d } . FILTER ( ?f = ?i ) }
action argmax
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 common name
[[{'concept': 'painting'}, {'concept': 'common name'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?x WHERE { VALUES ( ?r ) { ( ontology:painting ) ( ontology:common_name ) } . ?c rdf:type ?r } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:work_of_art . ?n rdf:type ontology:painting . ?n property:part_of ?d } UNION { ?d rdf:type ontology:work_of_art . ?n rdf:type ontology:common_name . ?n property:part_of ?d } } GROUP BY ?d } . FILTER ( ?f = ?i ) }
[]
work of art painting common name
Q213053 Q10512738 Q1762957
SYSTEM
Superman, Göta kanal eller Vem drog ur proppen?, Release the Prisoners to Spring
Q1762957 Q10550583 Q1411766 Q1195466 Q6519361 Q3907478 Q2905386 Q213053 Q283134 Q10512738
(c(Q3305213)|c(Q502895),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?x WHERE { VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q502895 ) } . ?c rdf:type ?r } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:Q838948 . ?n rdf:type ontology:Q3305213 . ?n property:P361 ?d } UNION { ?d rdf:type ontology:Q838948 . ?n rdf:type ontology:Q502895 . ?n property:P361 ?d } } GROUP BY ?d } . FILTER ( ?f = ?i ) }
Release the Prisoners to Spring Kurt Olsson – filmen om mitt liv som mig själv predella The Man on the Roof Leif Roverella Altarpiece Black Jack Superman Supergirl Göta kanal eller Vem drog ur proppen?
Superman, Göta kanal eller Vem drog ur proppen and Release the Prisoners to Spring are max number of paintings and people a component of
Superman Göta kanal eller Vem drog ur proppen? Release the Prisoners to Spring
action argmax
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 common name
[[{'concept': 'painting'}, {'concept': 'common name'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?x WHERE { VALUES ( ?r ) { ( ontology:painting ) ( ontology:common_name ) } . ?c rdf:type ?r } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:work_of_art . ?n rdf:type ontology:painting . ?n property:part_of ?d } UNION { ?d rdf:type ontology:work_of_art . ?n rdf:type ontology:common_name . ?n property:part_of ?d } } GROUP BY ?d } . FILTER ( ?f = ?i ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q8261 Q51740
P136 P674
Q2342494
USER
Which collectables are Obi-Wan Kenobi a character of and have novel as their category ?
AND((c(Q2342494),P674,Q51740), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q51740
relation P674
action find_reverse
entity Q8261
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P674', 'Q51740'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2342494 . ?c property:P674 resource:Q51740 . ?c property:P136 resource:Q8261 }
novel Obi-Wan Kenobi
action filter_type
action intersection
action find_reverse
entity Obi-Wan Kenobi
relation characters
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'characters', 'Obi-Wan Kenobi'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:collectable . ?c property:characters resource:Obi-Wan_Kenobi . ?c property:genre resource:novel }
[]
collectable
Q2076844
SYSTEM
Heir to the Empire
Q2076844
AND((c(Q2342494),P674,Q51740), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q51740
relation P674
action find_reverse
entity Q8261
relation P136
type Q2342494
[ANSWER] is Obi-Wan Kenobi a character of and have novel as their category
{'AND': [[{'concept': 'Q2342494'}, 'P674', 'Q51740'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2342494 . ?c property:P674 resource:Q51740 . ?c property:P136 resource:Q8261 }
Heir to the Empire
Heir to the Empire is Obi-Wan Kenobi a character of and have novel as their category
Heir to the Empire
action filter_type
action intersection
action find_reverse
entity Obi-Wan Kenobi
relation characters
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'characters', 'Obi-Wan Kenobi'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:collectable . ?c property:characters resource:Obi-Wan_Kenobi . ?c property:genre resource:novel }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2076844 Q6544394
P674
Q15619164
USER
Does Lieutenant Boomer play a role in that collectable ?
(Q2076844,P674,Q6544394)
action is_in
entity Q6544394
action find
entity Q2076844
relation P674
['Q2076844', 'P674', 'Q6544394']
ASK WHERE { resource:Q2076844 property:P674 resource:Q6544394 }
Heir to the Empire Lieutenant Boomer
action is_in
entity Lieutenant Boomer
action find
entity Heir to the Empire
relation characters
['Heir to the Empire', 'characters', 'Lieutenant Boomer']
ASK WHERE { resource:Heir_to_the_Empire property:characters resource:Lieutenant_Boomer }
[]
abstract being
SYSTEM
NO
(Q2076844,P674,Q6544394)
action is_in
entity Q6544394
action find
entity Q2076844
relation P674
[ANSWER]
['Q2076844', 'P674', 'Q6544394']
ASK WHERE { resource:Q2076844 property:P674 resource:Q6544394 }
No
action is_in
entity Lieutenant Boomer
action find
entity Heir to the Empire
relation characters
['Heir to the Empire', 'characters', 'Lieutenant Boomer']
ASK WHERE { resource:Heir_to_the_Empire property:characters resource:Lieutenant_Boomer }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1441
Q2342494 Q3895768
USER
Which fictional locations are featured in approximately 4 collectables ?
(c(Q3895768),P1441,c(Q2342494))
action approx
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
value 4
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?q property:P1441 ?s . ?q rdf:type ontology:Q3895768 . ?s rdf:type ontology:Q2342494 } GROUP BY ?q } . FILTER ( ?c = 4 ) }
action approx
action find_tuple_counts
relation present in work
type fictional location
type collectable
value 4
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?q property:present_in_work ?s . ?q rdf:type ontology:fictional_location . ?s rdf:type ontology:collectable } GROUP BY ?q } . FILTER ( ?c = 4 ) }
[]
collectable fictional location
Q2997950
SYSTEM
Waterdeep
Q2997950
(c(Q3895768),P1441,c(Q2342494))
action approx
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
value 4
[ANSWER] is featured in approximately 4 collectables
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?q property:P1441 ?s . ?q rdf:type ontology:Q3895768 . ?s rdf:type ontology:Q2342494 } GROUP BY ?q } . FILTER ( ?c = 4 ) }
Waterdeep
Waterdeep is featured in approximately 4 collectables
Waterdeep
action approx
action find_tuple_counts
relation present in work
type fictional location
type collectable
value 4
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?q property:present_in_work ?s . ?q rdf:type ontology:fictional_location . ?s rdf:type ontology:collectable } GROUP BY ?q } . FILTER ( ?c = 4 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1441
Q15416 Q3895768
USER
How many television programs are atleast 1 fictional location present in ?
(c(Q3895768),P1441,c(Q15416))
action count
action atleast
action find_reverse_tuple_counts
relation P1441
type Q15416
type Q3895768
value 1
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?w ) WHERE { ?k property:P1441 ?c . ?c rdf:type ontology:Q15416 . ?k rdf:type ontology:Q3895768 } GROUP BY ?c } . FILTER ( ?w >= 1 ) }
action count
action atleast
action find_reverse_tuple_counts
relation present in work
type television program
type fictional location
value 1
[{'concept': 'fictional location'}, 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?w ) WHERE { ?k property:present_in_work ?c . ?c rdf:type ontology:television_program . ?k rdf:type ontology:fictional_location } GROUP BY ?c } . FILTER ( ?w >= 1 ) }
[]
television program fictional location
SYSTEM
13
Q193462 Q237072 Q171254 Q201358 Q185059 Q908708 Q6012162 Q526035 Q785025 Q3577037 Q218035 Q276180 Q1249404
(c(Q3895768),P1441,c(Q15416))
action count
action atleast
action find_reverse_tuple_counts
relation P1441
type Q15416
type Q3895768
value 1
[ANSWER]
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?w ) WHERE { ?k property:P1441 ?c . ?c rdf:type ontology:Q15416 . ?k rdf:type ontology:Q3895768 } GROUP BY ?c } . FILTER ( ?w >= 1 ) }
Gilmore Girls Battlestar Galactica Sons of Anarchy The Flintstones Days of our Lives Neighbours In the Flesh The Andy Griffith Show Fantastic Four The West Wing Parks and Recreation The Newsroom Mayberry R.F.D.
13
action count
action atleast
action find_reverse_tuple_counts
relation present in work
type television program
type fictional location
value 1
[{'concept': 'fictional location'}, 'present in work', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?w ) WHERE { ?k property:present_in_work ?c . ?c rdf:type ontology:television_program . ?k rdf:type ontology:fictional_location } GROUP BY ?c } . FILTER ( ?w >= 1 ) }
[]