Simple Question (Direct)
Simple Question
Q4853842
P57
Q502895
USER
Who directed Banana Ridge ?
(Q4853842,P57,c(Q502895))
action filter_type
action find
entity Q4853842
relation P57
type Q502895
['Q4853842', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q4853842 property:P57 ?h . ?h rdf:type ontology:Q502895 }
Banana Ridge
action filter_type
action find
entity Banana Ridge
relation director
type common name
['Banana Ridge', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Banana_Ridge property:director ?h . ?h rdf:type ontology:common_name }
[]
common name
Q7964474
SYSTEM
Walter C. Mycroft
Q7964474
(Q4853842,P57,c(Q502895))
action filter_type
action find
entity Q4853842
relation P57
type Q502895
[ANSWER] directed Banana Ridge
['Q4853842', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q4853842 property:P57 ?h . ?h rdf:type ontology:Q502895 }
Walter C. Mycroft
Walter C. Mycroft directed Banana Ridge
Walter C. Mycroft
action filter_type
action find
entity Banana Ridge
relation director
type common name
['Banana Ridge', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Banana_Ridge property:director ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7964474
P58
Q201658
USER
Which film genre is that person a screenwriter of ?
(c(Q201658),P58,Q7964474)
action filter_type
action find_reverse
entity Q7964474
relation P58
type Q201658
[{'concept': 'Q201658'}, 'P58', 'Q7964474']
SELECT DISTINCT ?h WHERE { ?h property:P58 resource:Q7964474 . ?h rdf:type ontology:Q201658 }
Walter C. Mycroft
action filter_type
action find_reverse
entity Walter C. Mycroft
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Walter C. Mycroft']
SELECT DISTINCT ?h WHERE { ?h property:screenwriter resource:Walter_C._Mycroft . ?h rdf:type ontology:film_genre }
[]
film genre
Q1061079
SYSTEM
Champagne
Q1061079
(c(Q201658),P58,Q7964474)
action filter_type
action find_reverse
entity Q7964474
relation P58
type Q201658
[ANSWER] is that person a screenwriter of
[{'concept': 'Q201658'}, 'P58', 'Q7964474']
SELECT DISTINCT ?h WHERE { ?h property:P58 resource:Q7964474 . ?h rdf:type ontology:Q201658 }
Champagne
Champagne is that person a screenwriter of
Champagne
action filter_type
action find_reverse
entity Walter C. Mycroft
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Walter C. Mycroft']
SELECT DISTINCT ?h WHERE { ?h property:screenwriter resource:Walter_C._Mycroft . ?h rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7964474
P27
Q15617994
USER
Which administrative territory is Walter C. Mycroft an inhabitant of ?
(Q7964474,P27,c(Q15617994))
action filter_type
action find
entity Q7964474
relation P27
type Q15617994
['Q7964474', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q7964474 property:P27 ?x }
Walter C. Mycroft
action filter_type
action find
entity Walter C. Mycroft
relation country of citizenship
type designation for an administrative territorial entity
['Walter C. Mycroft', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Walter_C._Mycroft property:country_of_citizenship ?x }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7964474,P27,c(Q15617994))
action filter_type
action find
entity Q7964474
relation P27
type Q15617994
The [ANSWER] is Walter C. Mycroft an inhabitant of
['Q7964474', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q7964474 property:P27 ?x }
United Kingdom
The United Kingdom is Walter C. Mycroft an inhabitant of
United Kingdom
action filter_type
action find
entity Walter C. Mycroft
relation country of citizenship
type designation for an administrative territorial entity
['Walter C. Mycroft', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Walter_C._Mycroft property:country_of_citizenship ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5833281
Q15617994
USER
And how about Enrique Fernández Granados?
(Q5833281,P27,c(Q15617994))
action filter_type
action find
entity Q5833281
relation P27
type Q15617994
['Q5833281', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q5833281 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Enrique Fernández Granados
action filter_type
action find
entity Enrique Fernández Granados
relation country of citizenship
type designation for an administrative territorial entity
['Enrique Fernández Granados', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Enrique_Fernández_Granados property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q5833281,P27,c(Q15617994))
action filter_type
action find
entity Q5833281
relation P27
type Q15617994
[ANSWER]
['Q5833281', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q5833281 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Mexico
Mexico
action filter_type
action find
entity Enrique Fernández Granados
relation country of citizenship
type designation for an administrative territorial entity
['Enrique Fernández Granados', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Enrique_Fernández_Granados property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q96 Q21150383
P27
Q502895
USER
Is Chang a native of that administrative territory ?
(Q21150383,P27,Q96)
action is_in
entity Q21150383
action find
entity Q96
relation P27
['Q21150383', 'P27', 'Q96']
ASK WHERE { resource:Q96 property:P27 resource:Q21150383 }
Mexico Chang
action is_in
entity Chang
action find
entity Mexico
relation country of citizenship
['Chang', 'country of citizenship', 'Mexico']
ASK WHERE { resource:Mexico property:country_of_citizenship resource:Chang }
[]
common name
SYSTEM
NO
(Q21150383,P27,Q96)
action is_in
entity Q21150383
action find
entity Q96
relation P27
[ANSWER]
['Q21150383', 'P27', 'Q96']
ASK WHERE { resource:Q96 property:P27 resource:Q21150383 }
No
action is_in
entity Chang
action find
entity Mexico
relation country of citizenship
['Chang', 'country of citizenship', 'Mexico']
ASK WHERE { resource:Mexico property:country_of_citizenship resource:Chang }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4853842 Q614477
P840
Q56061
USER
Is Afton the narrative location of Banana Ridge ?
(Q4853842,P840,Q614477)
action is_in
entity Q614477
action find
entity Q4853842
relation P840
['Q4853842', 'P840', 'Q614477']
ASK WHERE { resource:Q4853842 property:P840 resource:Q614477 }
Banana Ridge Afton
action is_in
entity Afton
action find
entity Banana Ridge
relation narrative location
['Banana Ridge', 'narrative location', 'Afton']
ASK WHERE { resource:Banana_Ridge property:narrative_location resource:Afton }
[]
administrative territorial entity
SYSTEM
NO
(Q4853842,P840,Q614477)
action is_in
entity Q614477
action find
entity Q4853842
relation P840
[ANSWER]
['Q4853842', 'P840', 'Q614477']
ASK WHERE { resource:Q4853842 property:P840 resource:Q614477 }
No
action is_in
entity Afton
action find
entity Banana Ridge
relation narrative location
['Banana Ridge', 'narrative location', 'Afton']
ASK WHERE { resource:Banana_Ridge property:narrative_location resource:Afton }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q205203 Q134102
P463
Q484652
USER
Is United Kingdom a member of Committee of the Regions and Organisation internationale de la Francophonie ?
(Q145,P463,Q205203) (Q145,P463,Q134102)
action is_in
entity Q145
action intersection
action find_reverse
entity Q205203
relation P463
action find_reverse
entity Q134102
relation P463
['Q145', 'P463', 'Q205203'] ['Q145', 'P463', 'Q134102']
ASK WHERE { resource:Q145 property:P463 resource:Q134102 . resource:Q145 property:P463 resource:Q205203 }
United Kingdom Committee of the Regions Organisation internationale de la Francophonie
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Committee of the Regions
relation member of
action find_reverse
entity Organisation internationale de la Francophonie
relation member of
['United Kingdom', 'member of', 'Committee of the Regions'] ['United Kingdom', 'member of', 'Organisation internationale de la Francophonie']
ASK WHERE { resource:United_Kingdom property:member_of resource:Organisation_internationale_de_la_Francophonie . resource:United_Kingdom property:member_of resource:Committee_of_the_Regions }
[]
international organization
SYSTEM
NO
(Q145,P463,Q205203) (Q145,P463,Q134102)
action is_in
entity Q145
action intersection
action find_reverse
entity Q205203
relation P463
action find_reverse
entity Q134102
relation P463
[ANSWER]
['Q145', 'P463', 'Q205203'] ['Q145', 'P463', 'Q134102']
ASK WHERE { resource:Q145 property:P463 resource:Q134102 . resource:Q145 property:P463 resource:Q205203 }
No
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Committee of the Regions
relation member of
action find_reverse
entity Organisation internationale de la Francophonie
relation member of
['United Kingdom', 'member of', 'Committee of the Regions'] ['United Kingdom', 'member of', 'Organisation internationale de la Francophonie']
ASK WHERE { resource:United_Kingdom property:member_of resource:Organisation_internationale_de_la_Francophonie . resource:United_Kingdom property:member_of resource:Committee_of_the_Regions }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1856846
P941
Q838948 Q2342494 Q838948
USER
Which works of art were the sources of inspiration for approximately the same number of collectables or works of art as The Ballad of Cable Hogue ?
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q1856846
relation P941
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?g WHERE { { ?i property:P941 ?g . ?g rdf:type ontology:Q838948 . ?i rdf:type ontology:Q2342494 } UNION { ?i property:P941 ?g . ?g rdf:type ontology:Q838948 . ?i rdf:type ontology:Q838948 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { { ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q838948 } } . ?v property:P941 resource:Q1856846 } } . FILTER ( ?q = ?k ) }
The Ballad of Cable Hogue
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 work of art
action count
action filter_multi_types
action find_reverse
entity The Ballad of Cable Hogue
relation inspired by
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?g WHERE { { ?i property:inspired_by ?g . ?g rdf:type ontology:work_of_art . ?i rdf:type ontology:collectable } UNION { ?i property:inspired_by ?g . ?g rdf:type ontology:work_of_art . ?i rdf:type ontology:work_of_art } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { { ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:work_of_art } } . ?v property:inspired_by resource:The_Ballad_of_Cable_Hogue } } . FILTER ( ?q = ?k ) }
[]
work of art collectable work of art
Q1144983 Q201293 Q379873
SYSTEM
Animal Kingdom, Roman Holiday, Who Framed Roger Rabbit
Q125191 Q1198611 Q1217787 Q1856846 Q7758112 Q46239 Q1345920 Q2568137 Q201293 Q1432001 Q41567 Q1144983 Q18668045 Q7445655 Q4936847 Q3223805 Q5968141 Q379873 Q1170100 Q493755 Q214619 Q169082
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q1856846
relation P941
type Q2342494
type Q838948
Animal Kingdom, Roman Holiday and Who framed Roger Rabbit were the sources of inspiration for approximately the same number of collectables or works of art as The Ballad of Cable Hogue
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?g WHERE { { ?i property:P941 ?g . ?g rdf:type ontology:Q838948 . ?i rdf:type ontology:Q2342494 } UNION { ?i property:P941 ?g . ?g rdf:type ontology:Q838948 . ?i rdf:type ontology:Q838948 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { { ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q838948 } } . ?v property:P941 resource:Q1856846 } } . FILTER ( ?q = ?k ) }
photograph The Absent-Minded Professor The Time Machine The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Song of the South How to Explain Pictures to a Dead Hare Roman Holiday Torquato Tasso Hamlet Animal Kingdom The Old Fisherman Seedbed Body Pressure The Judgement of Paris La sirena varada Who Framed Roger Rabbit The Philadelphia Experiment Coming to America The Little Mermaid 10 Things I Hate About You
Animal Kingdom, Roman Holiday and Who framed Roger Rabbit were the sources of inspiration for approximately the same number of collectables or works of art as The Ballad of Cable Hogue
Animal Kingdom Roman Holiday Who Framed Roger Rabbit
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 work of art
action count
action filter_multi_types
action find_reverse
entity The Ballad of Cable Hogue
relation inspired by
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?g WHERE { { ?i property:inspired_by ?g . ?g rdf:type ontology:work_of_art . ?i rdf:type ontology:collectable } UNION { ?i property:inspired_by ?g . ?g rdf:type ontology:work_of_art . ?i rdf:type ontology:work_of_art } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { { { ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:work_of_art } } . ?v property:inspired_by resource:The_Ballad_of_Cable_Hogue } } . FILTER ( ?q = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q186014
P941
Q838948 Q2342494 Q838948
USER
And what about Zeitgeist: The Movie?
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q186014
relation P941
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?g WHERE { { ?h property:P941 ?g . ?g rdf:type ontology:Q838948 . ?h rdf:type ontology:Q2342494 } UNION { ?h rdf:type ontology:Q838948 . ?g rdf:type ontology:Q838948 . ?h property:P941 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P941 resource:Q186014 . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?d = ?k ) }
Zeitgeist: The Movie
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 work of art
action count
action filter_multi_types
action find_reverse
entity Zeitgeist: The Movie
relation inspired by
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?g WHERE { { ?h property:inspired_by ?g . ?g rdf:type ontology:work_of_art . ?h rdf:type ontology:collectable } UNION { ?h rdf:type ontology:work_of_art . ?g rdf:type ontology:work_of_art . ?h property:inspired_by ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:inspired_by resource:Zeitgeist:_The_Movie . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?d = ?k ) }
[]
work of art collectable work of art
Q17738 Q107724 Q465478
SYSTEM
Star Wars Episode IV: A New Hope, Thunderball, Star Trek II: The Wrath of Khan
Q1136305 Q107724 Q1852671 Q19560629 Q17738 Q181598 Q753298 Q1754737 Q186014 Q734834 Q375786 Q83186 Q465478
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q186014
relation P941
type Q2342494
type Q838948
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?g WHERE { { ?h property:P941 ?g . ?g rdf:type ontology:Q838948 . ?h rdf:type ontology:Q2342494 } UNION { ?h rdf:type ontology:Q838948 . ?g rdf:type ontology:Q838948 . ?h property:P941 ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:P941 resource:Q186014 . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?d = ?k ) }
Doryphoros Thunderball Carnival of Souls 9/11 entschlüsselt Star Wars Episode IV: A New Hope King Lear Uncle Vanya Lady Snowblood Zeitgeist: The Movie Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan
Star Wars Episode IV: A New Hope Thunderball 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 work of art
action count
action filter_multi_types
action find_reverse
entity Zeitgeist: The Movie
relation inspired by
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?g WHERE { { ?h property:inspired_by ?g . ?g rdf:type ontology:work_of_art . ?h rdf:type ontology:collectable } UNION { ?h rdf:type ontology:work_of_art . ?g rdf:type ontology:work_of_art . ?h property:inspired_by ?g } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z property:inspired_by resource:Zeitgeist:_The_Movie . { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?d = ?k ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P941
Q838948
USER
How many works of art had that work of art as a source of inspiration ?
(c(Q838948),P941,Q465478)
[{'concept': 'Q838948'}, 'P941', 'Q465478']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P941 resource:Q465478 . ?z rdf:type ontology:Q838948 }
[{'concept': 'work of art'}, 'inspired by', 'Star Trek II: The Wrath of Khan']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:inspired_by resource:Star_Trek_II:_The_Wrath_of_Khan . ?z rdf:type ontology:work_of_art }
[]
work of art
Quantitative|Count|Single entity type|Clarification
Q107724
SYSTEM
Did you mean Thunderball ?
(c(Q838948),P941,Q17738) (c(Q838948),P941,Q107724) (c(Q838948),P941,Q465478)
[ANSWER]
[{'concept': 'Q838948'}, 'P941', 'Q17738'] [{'concept': 'Q838948'}, 'P941', 'Q107724'] [{'concept': 'Q838948'}, 'P941', 'Q465478']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P941 resource:Q465478 . ?z rdf:type ontology:Q838948 }
Did you mean Thunderball ?
Thunderball
[{'concept': 'work of art'}, 'inspired by', 'Star Wars Episode IV: A New Hope'] [{'concept': 'work of art'}, 'inspired by', 'Thunderball'] [{'concept': 'work of art'}, 'inspired by', 'Star Trek II: The Wrath of Khan']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:inspired_by resource:Star_Trek_II:_The_Wrath_of_Khan . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Star Trek II: The Wrath of Khan. Could you tell me the answer for that?
(c(Q838948),P941,Q465478)
Q465478
[{'concept': 'Q838948'}, 'P941', 'Q465478']
[{'concept': 'work of art'}, 'inspired by', 'Star Trek II: The Wrath of Khan']
[]
SYSTEM
1
Q171711
(c(Q838948),P941,Q465478)
[ANSWER]
[{'concept': 'Q838948'}, 'P941', 'Q465478']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P941 resource:Q465478 . ?z rdf:type ontology:Q838948 }
Star Trek Into Darkness
1
[{'concept': 'work of art'}, 'inspired by', 'Star Trek II: The Wrath of Khan']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:inspired_by resource:Star_Trek_II:_The_Wrath_of_Khan . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17738
P1411
Q4220917
USER
Which film awards were Star Wars Episode IV: A New Hope nominated for ?
(Q17738,P1411,c(Q4220917))
action filter_type
action find
entity Q17738
relation P1411
type Q4220917
['Q17738', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?n WHERE { resource:Q17738 property:P1411 ?n . ?n rdf:type ontology:Q4220917 }
Star Wars Episode IV: A New Hope
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation nominated for
type film award
['Star Wars Episode IV: A New Hope', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?n WHERE { resource:Star_Wars_Episode_IV:_A_New_Hope property:nominated_for ?n . ?n rdf:type ontology:film_award }
[]
film award
Q106291 Q277536 Q102427
SYSTEM
Academy Award for Best Supporting Actor, Academy Award for Best Costume Design, Academy Award for Best Picture
Q102427 Q830079 Q106291 Q277751 Q103360 Q281939 Q393686 Q41417 Q277536 Q488651
(Q17738,P1411,c(Q4220917))
action filter_type
action find
entity Q17738
relation P1411
type Q4220917
The [ANSWERS] were Star Wars Episode IV: A New Hope nominated for
['Q17738', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?n WHERE { resource:Q17738 property:P1411 ?n . ?n rdf:type ontology:Q4220917 }
Academy Award for Best Picture Academy Award for Best Sound Mixing Academy Award for Best Supporting Actor Academy Award for Best Production Design Academy Award for Best Director Academy Award for Best Film Editing Academy Award for Best Visual Effects Academy Award for Best Writing, Original Screenplay Academy Award for Best Costume Design Academy Award for Best Original Score
The Academy Award for Best Supporting Actor, Academy Award for Best Costume Design and Academy Award for Best Picture were Star Wars Episode IV: A New Hope nominated for
Academy Award for Best Supporting Actor Academy Award for Best Costume Design Academy Award for Best Picture
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation nominated for
type film award
['Star Wars Episode IV: A New Hope', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?n WHERE { resource:Star_Wars_Episode_IV:_A_New_Hope property:nominated_for ?n . ?n rdf:type ontology:film_award }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P166
Q838948 Q502895
USER
How many works of art or people were honoured with that film award ?
(c(Q838948),P166,Q277536) (c(Q502895),P166,Q277536) (c(Q838948),P166,Q106291) (c(Q502895),P166,Q106291) (c(Q838948),P166,Q277536) (c(Q502895),P166,Q277536) (c(Q838948),P166,Q102427) (c(Q502895),P166,Q102427)
[{'concept': 'Q838948'}, 'P166', 'Q277536'] [{'concept': 'Q502895'}, 'P166', 'Q277536'] [{'concept': 'Q838948'}, 'P166', 'Q106291'] [{'concept': 'Q502895'}, 'P166', 'Q106291'] [{'concept': 'Q838948'}, 'P166', 'Q277536'] [{'concept': 'Q502895'}, 'P166', 'Q277536'] [{'concept': 'Q838948'}, 'P166', 'Q102427'] [{'concept': 'Q502895'}, 'P166', 'Q102427']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P166 resource:Q277536 } UNION { ?y property:P166 resource:Q277536 } UNION { ?z property:P166 resource:Q106291 } UNION { ?y property:P166 resource:Q106291 } UNION { ?z property:P166 resource:Q277536 } UNION { ?y property:P166 resource:Q277536 } UNION { ?z property:P166 resource:Q102427 } UNION { ?y property:P166 resource:Q102427 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 }
[{'concept': 'work of art'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Supporting Actor'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Supporting Actor'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Picture'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Picture']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?y property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?z property:award_received resource:Academy_Award_for_Best_Supporting_Actor } UNION { ?y property:award_received resource:Academy_Award_for_Best_Supporting_Actor } UNION { ?z property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?y property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?z property:award_received resource:Academy_Award_for_Best_Picture } UNION { ?y property:award_received resource:Academy_Award_for_Best_Picture } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name }
[]
work of art common name
Quantitative|Count|Mult. entity type|Clarification
Q102427
SYSTEM
Did you mean Academy Award for Best Picture ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P166 resource:Q277536 } UNION { ?y property:P166 resource:Q277536 } UNION { ?z property:P166 resource:Q106291 } UNION { ?y property:P166 resource:Q106291 } UNION { ?z property:P166 resource:Q277536 } UNION { ?y property:P166 resource:Q277536 } UNION { ?z property:P166 resource:Q102427 } UNION { ?y property:P166 resource:Q102427 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 }
Did you mean Academy Award for Best Picture ?
Academy Award for Best Picture
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?y property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?z property:award_received resource:Academy_Award_for_Best_Supporting_Actor } UNION { ?y property:award_received resource:Academy_Award_for_Best_Supporting_Actor } UNION { ?z property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?y property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?z property:award_received resource:Academy_Award_for_Best_Picture } UNION { ?y property:award_received resource:Academy_Award_for_Best_Picture } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Academy Award for Best Costume Design. Could you tell me the answer for that?
(c(Q838948),P166,Q277536) (c(Q502895),P166,Q277536) (c(Q838948),P166,Q106291) (c(Q502895),P166,Q106291) (c(Q838948),P166,Q277536) (c(Q502895),P166,Q277536) (c(Q838948),P166,Q102427) (c(Q502895),P166,Q102427)
Q277536
[{'concept': 'Q838948'}, 'P166', 'Q277536'] [{'concept': 'Q502895'}, 'P166', 'Q277536'] [{'concept': 'Q838948'}, 'P166', 'Q106291'] [{'concept': 'Q502895'}, 'P166', 'Q106291'] [{'concept': 'Q838948'}, 'P166', 'Q277536'] [{'concept': 'Q502895'}, 'P166', 'Q277536'] [{'concept': 'Q838948'}, 'P166', 'Q102427'] [{'concept': 'Q502895'}, 'P166', 'Q102427']
[{'concept': 'work of art'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Supporting Actor'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Supporting Actor'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Picture'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Picture']
[]
SYSTEM
95
Q5104788 Q831536 Q193573 Q509831 Q539765 Q80204 Q1701116 Q212277 Q1059914 Q176324 Q1699409 Q2093029 Q291686 Q128982 Q44578 Q466514 Q258156 Q544620 Q769347 Q830553 Q726671 Q1140881 Q440313 Q942086 Q1683011 Q174385 Q1198799 Q1117915 Q1621425 Q829695 Q436223 Q182944 Q190956 Q512775 Q255328 Q202211 Q201924 Q297935 Q436031 Q455394 Q630767 Q241085 Q1326026 Q171861 Q512475 Q1368213 Q565231 Q910226 Q45839 Q517265 Q892735 Q439536 Q107325 Q165651 Q727846 Q697096 Q128518 Q755171 Q323827 Q1757288 Q203574 Q189889 Q471716 Q451071 Q108297 Q1679721 Q508660 Q17738 Q577757 Q930372 Q62665 Q234961 Q346384 Q4015460 Q436748 Q512041 Q601402 Q207921 Q2089199 Q212775 Q289952 Q506287 Q440027 Q439853 Q922527 Q114115 Q3521099 Q1353441 Q63026 Q458815 Q573805 Q1125442 Q18429 Q131074 Q455749
(c(Q838948),P166,Q277536) (c(Q502895),P166,Q277536) (c(Q838948),P166,Q106291) (c(Q502895),P166,Q106291) (c(Q838948),P166,Q277536) (c(Q502895),P166,Q277536) (c(Q838948),P166,Q102427) (c(Q502895),P166,Q102427)
[ANSWER]
[{'concept': 'Q838948'}, 'P166', 'Q277536'] [{'concept': 'Q502895'}, 'P166', 'Q277536'] [{'concept': 'Q838948'}, 'P166', 'Q106291'] [{'concept': 'Q502895'}, 'P166', 'Q106291'] [{'concept': 'Q838948'}, 'P166', 'Q277536'] [{'concept': 'Q502895'}, 'P166', 'Q277536'] [{'concept': 'Q838948'}, 'P166', 'Q102427'] [{'concept': 'Q502895'}, 'P166', 'Q102427']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P166 resource:Q277536 } UNION { ?y property:P166 resource:Q277536 } UNION { ?z property:P166 resource:Q106291 } UNION { ?y property:P166 resource:Q106291 } UNION { ?z property:P166 resource:Q277536 } UNION { ?y property:P166 resource:Q277536 } UNION { ?z property:P166 resource:Q102427 } UNION { ?y property:P166 resource:Q102427 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 }
Travels with My Aunt Danilo Donati Moulin Rouge! Ulla-Britt Söderlund Bhanu Athaiya Anna Karenina John Mollo Theodor Pištěk Death on the Nile Deborah Lynn Scott John Bright Restoration Lindy Hemming Cyrano de Bergerac Titanic The Duchess Colleen Atwood Angus Strathie Topsy-Turvy Dangerous Liaisons Albert Wolsky Cromwell Milena Canonero Les Girls Janty Yates Alice in Wonderland The Great Gatsby John Truscott Mark Bridges Marie Antoinette Jenny Beavan Shakespeare in Love Amadeus Marik Vos-Lundh The Adventures of Priscilla, Queen of the Desert Gandhi The Aviator Eiko Ishioka Catherine Martin Ngila Dickson Richard Taylor Bugsy Tess The Artist Nicholas and Alexandra Franca Squarciapino Ran Anne of the Thousand Days Memoirs of a Geisha Romeo and Juliet The Great Gatsby Gabriella Pescucci Bram Stoker's Dracula Fanny and Alexander Elizabeth: The Golden Age Cecil Beaton Gladiator The Young Victoria Doctor Zhivago Mad Max: Fury Road A Room with a View Chicago Barry Lyndon Theoni V. Aldredge Spartacus Tim Chappel Ann Roth Star Wars Episode IV: A New Hope Gigi Camelot The Sting Edith Head James Acheson Vittorio Nino Novarese Margaret Furse Lizzy Gardiner Antonio Castillo Chariots of Fire Phyllis Dalton The Last Emperor Sandy Powell Michael O'Connor Emi Wada Yvonne Blake Orry-Kelly Henry V The Grand Budapest Hotel All That Jazz The English Patient Alexandra Byrne Anthony Powell The Age of Innocence Fellini's Casanova The Lord of the Rings: The Return of the King Jacqueline Durran
95
[{'concept': 'work of art'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Supporting Actor'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Supporting Actor'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Costume Design'] [{'concept': 'work of art'}, 'award received', 'Academy Award for Best Picture'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Picture']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?y property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?z property:award_received resource:Academy_Award_for_Best_Supporting_Actor } UNION { ?y property:award_received resource:Academy_Award_for_Best_Supporting_Actor } UNION { ?z property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?y property:award_received resource:Academy_Award_for_Best_Costume_Design } UNION { ?z property:award_received resource:Academy_Award_for_Best_Picture } UNION { ?y property:award_received resource:Academy_Award_for_Best_Picture } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3089099 Q379873
P495 P17
Q15617994
USER
Which administrative territories are the origin of Who Framed Roger Rabbit or do China–Kazakhstan border belong to ?
OR((Q379873,P495,c(Q15617994)), (Q3089099,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q379873
relation P495
action find
entity Q3089099
relation P17
type Q15617994
{'OR': [['Q379873', 'P495', {'concept': 'Q15617994'}], ['Q3089099', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3089099 property:P17 ?f } UNION { resource:Q379873 property:P495 ?f } } . ?f rdf:type ontology:Q15617994 }
China–Kazakhstan border Who Framed Roger Rabbit
action filter_type
action union
action find
entity Who Framed Roger Rabbit
relation country of origin
action find
entity China–Kazakhstan border
relation country
type designation for an administrative territorial entity
{'OR': [['Who Framed Roger Rabbit', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['China–Kazakhstan border', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:China–Kazakhstan_border property:country ?f } UNION { resource:Who_Framed_Roger_Rabbit property:country_of_origin ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q30 Q232
SYSTEM
People's Republic of China, United States of America, Kazakhstan
Q148 Q30 Q232
OR((Q379873,P495,c(Q15617994)), (Q3089099,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q379873
relation P495
action find
entity Q3089099
relation P17
type Q15617994
[ANSWERS] are the origin of Who Framed Roger Rabbit or do China–Kazakhstan border belong to
{'OR': [['Q379873', 'P495', {'concept': 'Q15617994'}], ['Q3089099', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3089099 property:P17 ?f } UNION { resource:Q379873 property:P495 ?f } } . ?f rdf:type ontology:Q15617994 }
People's Republic of China United States of America Kazakhstan
People's Republic of China, United States of America and Kazakhstan are the origin of Who Framed Roger Rabbit or do China–Kazakhstan border belong to
People's Republic of China United States of America Kazakhstan
action filter_type
action union
action find
entity Who Framed Roger Rabbit
relation country of origin
action find
entity China–Kazakhstan border
relation country
type designation for an administrative territorial entity
{'OR': [['Who Framed Roger Rabbit', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['China–Kazakhstan border', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:China–Kazakhstan_border property:country ?f } UNION { resource:Who_Framed_Roger_Rabbit property:country_of_origin ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]