Simple Question (Direct)
Simple Question
Q7145056
P161
Q502895
USER
Which people starred in Patita ?
(Q7145056,P161,c(Q502895))
action filter_type
action find
entity Q7145056
relation P161
type Q502895
['Q7145056', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q7145056 property:P161 ?u }
Patita
action filter_type
action find
entity Patita
relation cast member
type common name
['Patita', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Patita property:cast_member ?u }
[]
common name
Q320115 Q6480391 Q7901881
SYSTEM
Dev Anand, Lalita Pawar, Usha Kiran
Q4692309 Q320115 Q6480391 Q7901881
(Q7145056,P161,c(Q502895))
action filter_type
action find
entity Q7145056
relation P161
type Q502895
[ANSWERS] starred in Patita
['Q7145056', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q7145056 property:P161 ?u }
Agha Dev Anand Lalita Pawar Usha Kiran
Dev Anand, Lalita Pawar and Usha Kiran starred in Patita
Dev Anand Lalita Pawar Usha Kiran
action filter_type
action find
entity Patita
relation cast member
type common name
['Patita', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Patita property:cast_member ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7145056
P57
Q502895
USER
Which person served as the directed of that work of art ?
(Q320115,P57,c(Q502895)) (Q6480391,P57,c(Q502895)) (Q7901881,P57,c(Q502895))
action filter_type
action find
entity Q7145056
relation P57
type Q502895
['Q320115', 'P57', {'concept': 'Q502895'}] ['Q6480391', 'P57', {'concept': 'Q502895'}] ['Q7901881', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q7145056 property:P57 ?l . ?l rdf:type ontology:Q502895 }
Patita
action filter_type
action find
entity Patita
relation director
type common name
['Dev Anand', 'director', {'concept': 'common name'}] ['Lalita Pawar', 'director', {'concept': 'common name'}] ['Usha Kiran', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Patita property:director ?l . ?l rdf:type ontology:common_name }
[]
common name
Q472524
SYSTEM
Amiya Chakravarty
Q472524
(Q320115,P57,c(Q502895)) (Q6480391,P57,c(Q502895)) (Q7901881,P57,c(Q502895))
action filter_type
action find
entity Q7145056
relation P57
type Q502895
[ANSWER] served as the directed of that work of art
['Q320115', 'P57', {'concept': 'Q502895'}] ['Q6480391', 'P57', {'concept': 'Q502895'}] ['Q7901881', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q7145056 property:P57 ?l . ?l rdf:type ontology:Q502895 }
Amiya Chakravarty
Amiya Chakravarty served as the directed of that work of art
Amiya Chakravarty
action filter_type
action find
entity Patita
relation director
type common name
['Dev Anand', 'director', {'concept': 'common name'}] ['Lalita Pawar', 'director', {'concept': 'common name'}] ['Usha Kiran', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Patita property:director ?l . ?l rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q472524 Q3522333
P57
Q838948
USER
Is that person a director of The Professor's Wooing ?
(Q3522333,P57,Q472524)
action is_in
entity Q3522333
action find
entity Q472524
relation P57
['Q3522333', 'P57', 'Q472524']
ASK WHERE { resource:Q472524 property:P57 resource:Q3522333 }
Amiya Chakravarty The Professor's Wooing
action is_in
entity The Professor's Wooing
action find
entity Amiya Chakravarty
relation director
["The Professor's Wooing", 'director', 'Amiya Chakravarty']
ASK WHERE { resource:Amiya_Chakravarty property:director resource:The_Professor's_Wooing }
[]
work of art
SYSTEM
NO
(Q3522333,P57,Q472524)
action is_in
entity Q3522333
action find
entity Q472524
relation P57
[ANSWER]
['Q3522333', 'P57', 'Q472524']
ASK WHERE { resource:Q472524 property:P57 resource:Q3522333 }
No
action is_in
entity The Professor's Wooing
action find
entity Amiya Chakravarty
relation director
["The Professor's Wooing", 'director', 'Amiya Chakravarty']
ASK WHERE { resource:Amiya_Chakravarty property:director resource:The_Professor's_Wooing }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6480391 Q668 Q42399
P27
Q15617994
USER
Is Lalita Pawar a native of India and Novate Milanese ?
(Q6480391,P27,Q668) (Q6480391,P27,Q42399)
action is_in
entity Q6480391
action intersection
action find_reverse
entity Q668
relation P27
action find_reverse
entity Q42399
relation P27
['Q6480391', 'P27', 'Q668'] ['Q6480391', 'P27', 'Q42399']
ASK WHERE { resource:Q6480391 property:P27 resource:Q668 . resource:Q6480391 property:P27 resource:Q42399 }
Lalita Pawar India Novate Milanese
action is_in
entity Lalita Pawar
action intersection
action find_reverse
entity India
relation country of citizenship
action find_reverse
entity Novate Milanese
relation country of citizenship
['Lalita Pawar', 'country of citizenship', 'India'] ['Lalita Pawar', 'country of citizenship', 'Novate Milanese']
ASK WHERE { resource:Lalita_Pawar property:country_of_citizenship resource:India . resource:Lalita_Pawar property:country_of_citizenship resource:Novate_Milanese }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q6480391,P27,Q668) (Q6480391,P27,Q42399)
action is_in
entity Q6480391
action intersection
action find_reverse
entity Q668
relation P27
action find_reverse
entity Q42399
relation P27
[ANSWER]
['Q6480391', 'P27', 'Q668'] ['Q6480391', 'P27', 'Q42399']
ASK WHERE { resource:Q6480391 property:P27 resource:Q668 . resource:Q6480391 property:P27 resource:Q42399 }
YES and NO respectively
action is_in
entity Lalita Pawar
action intersection
action find_reverse
entity India
relation country of citizenship
action find_reverse
entity Novate Milanese
relation country of citizenship
['Lalita Pawar', 'country of citizenship', 'India'] ['Lalita Pawar', 'country of citizenship', 'Novate Milanese']
ASK WHERE { resource:Lalita_Pawar property:country_of_citizenship resource:India . resource:Lalita_Pawar property:country_of_citizenship resource:Novate_Milanese }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3447891 Q7901881
P27
Q15617994
USER
Which administrative territories are the native countriesof Usha Kiran or Kekāuluohi ?
OR((Q7901881,P27,c(Q15617994)), (Q3447891,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7901881
relation P27
action find
entity Q3447891
relation P27
type Q15617994
{'OR': [['Q7901881', 'P27', {'concept': 'Q15617994'}], ['Q3447891', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?g property:P27 ?q . VALUES ( ?g ) { ( resource:Q7901881 ) ( resource:Q3447891 ) } } . ?q rdf:type ontology:Q15617994 }
Kekāuluohi Usha Kiran
action filter_type
action union
action find
entity Usha Kiran
relation country of citizenship
action find
entity Kekāuluohi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Usha Kiran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kekāuluohi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?g property:country_of_citizenship ?q . VALUES ( ?g ) { ( resource:Usha_Kiran ) ( resource:Kekāuluohi ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q668
SYSTEM
United States of America, India
Q30 Q668
OR((Q7901881,P27,c(Q15617994)), (Q3447891,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7901881
relation P27
action find
entity Q3447891
relation P27
type Q15617994
[ANSWERS] are the native countriesof Usha Kiran or Kekāuluohi
{'OR': [['Q7901881', 'P27', {'concept': 'Q15617994'}], ['Q3447891', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { ?g property:P27 ?q . VALUES ( ?g ) { ( resource:Q7901881 ) ( resource:Q3447891 ) } } . ?q rdf:type ontology:Q15617994 }
United States of America India
United States of America and India are the native countriesof Usha Kiran or Kekāuluohi
United States of America India
action filter_type
action union
action find
entity Usha Kiran
relation country of citizenship
action find
entity Kekāuluohi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Usha Kiran', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kekāuluohi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { ?g property:country_of_citizenship ?q . VALUES ( ?g ) { ( resource:Usha_Kiran ) ( resource:Kekāuluohi ) } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13564501 Q7145056
P27 P495
Q15617994
USER
Which administrative territories are the origins of Patita or are T. K. Padmini an inhabitant of ?
OR((Q7145056,P495,c(Q15617994)), (Q13564501,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7145056
relation P495
action find
entity Q13564501
relation P27
type Q15617994
{'OR': [['Q7145056', 'P495', {'concept': 'Q15617994'}], ['Q13564501', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7145056 property:P495 ?q } UNION { resource:Q13564501 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
T. K. Padmini Patita
action filter_type
action union
action find
entity Patita
relation country of origin
action find
entity T. K. Padmini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Patita', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['T. K. Padmini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Patita property:country_of_origin ?q } UNION { resource:T._K._Padmini property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
OR((Q7145056,P495,c(Q15617994)), (Q13564501,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7145056
relation P495
action find
entity Q13564501
relation P27
type Q15617994
[ANSWER] is the origins of Patita or is T. K. Padmini an inhabitant of
{'OR': [['Q7145056', 'P495', {'concept': 'Q15617994'}], ['Q13564501', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7145056 property:P495 ?q } UNION { resource:Q13564501 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
India
India is the origins of Patita or is T. K. Padmini an inhabitant of
India
action filter_type
action union
action find
entity Patita
relation country of origin
action find
entity T. K. Padmini
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Patita', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['T. K. Padmini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Patita property:country_of_origin ?q } UNION { resource:T._K._Padmini property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2568137
P941
Q838948 Q15709879 Q95074
USER
Which works of art inspired lesser number of artwork series or fictional characters than How to Explain Pictures to a Dead Hare ?
(c(Q15709879)|c(Q95074),P941,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q2568137
relation P941
type Q15709879
type Q95074
[[{'concept': 'Q15709879'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?u WHERE { { ?e property:P941 ?u . ?e rdf:type ontology:Q15709879 . ?u rdf:type ontology:Q838948 } UNION { ?e property:P941 ?u . ?u rdf:type ontology:Q838948 . ?e rdf:type ontology:Q95074 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { { ?h rdf:type ontology:Q15709879 } UNION { ?h rdf:type ontology:Q95074 } } . ?h property:P941 resource:Q2568137 } } . FILTER ( ?d < ?z ) }
How to Explain Pictures to a Dead Hare
action less
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type artwork series
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity How to Explain Pictures to a Dead Hare
relation inspired by
type artwork series
type fictional character
[[{'concept': 'artwork series'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?u WHERE { { ?e property:inspired_by ?u . ?e rdf:type ontology:artwork_series . ?u rdf:type ontology:work_of_art } UNION { ?e property:inspired_by ?u . ?u rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_character } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { { ?h rdf:type ontology:artwork_series } UNION { ?h rdf:type ontology:fictional_character } } . ?h property:inspired_by resource:How_to_Explain_Pictures_to_a_Dead_Hare } } . FILTER ( ?d < ?z ) }
[]
work of art artwork series fictional character
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1217787 Q1856846 Q7758112 Q46239 Q1852671 Q19560629 Q17738 Q181598 Q753298 Q201293 Q1754737 Q41567 Q1144983 Q18668045 Q186014 Q3223805 Q5968141 Q734834 Q1170100 Q375786 Q83186 Q465478 Q169082
(c(Q15709879)|c(Q95074),P941,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q2568137
relation P941
type Q15709879
type Q95074
[ANSWERS] inspired lesser number of artwork series or fictional characters than How to Explain Pictures to a Dead Hare
[[{'concept': 'Q15709879'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?u WHERE { { ?e property:P941 ?u . ?e rdf:type ontology:Q15709879 . ?u rdf:type ontology:Q838948 } UNION { ?e property:P941 ?u . ?u rdf:type ontology:Q838948 . ?e rdf:type ontology:Q95074 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { { ?h rdf:type ontology:Q15709879 } UNION { ?h rdf:type ontology:Q95074 } } . ?h property:P941 resource:Q2568137 } } . FILTER ( ?d < ?z ) }
photograph Doryphoros The Absent-Minded Professor Thunderball The Time Machine The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Carnival of Souls 9/11 entschlüsselt Star Wars Episode IV: A New Hope King Lear Uncle Vanya Roman Holiday Lady Snowblood Hamlet Animal Kingdom The Old Fisherman Zeitgeist: The Movie The Judgement of Paris La sirena varada 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 inspired lesser number of artwork series or fictional characters than How to Explain Pictures to a Dead Hare
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action less
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type artwork series
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity How to Explain Pictures to a Dead Hare
relation inspired by
type artwork series
type fictional character
[[{'concept': 'artwork series'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?u WHERE { { ?e property:inspired_by ?u . ?e rdf:type ontology:artwork_series . ?u rdf:type ontology:work_of_art } UNION { ?e property:inspired_by ?u . ?u rdf:type ontology:work_of_art . ?e rdf:type ontology:fictional_character } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { { ?h rdf:type ontology:artwork_series } UNION { ?h rdf:type ontology:fictional_character } } . ?h property:inspired_by resource:How_to_Explain_Pictures_to_a_Dead_Hare } } . FILTER ( ?d < ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q214619
P941
Q838948 Q15709879 Q95074
USER
And what about The Little Mermaid?
(c(Q15709879)|c(Q95074),P941,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q214619
relation P941
type Q15709879
type Q95074
[[{'concept': 'Q15709879'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?b WHERE { { ?g property:P941 ?b . ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q15709879 } UNION { ?g property:P941 ?b . ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q95074 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:P941 resource:Q214619 . { ?l rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15709879 ) ( ontology:Q95074 ) } } } } . FILTER ( ?p < ?d ) }
The Little Mermaid
action less
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type artwork series
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity The Little Mermaid
relation inspired by
type artwork series
type fictional character
[[{'concept': 'artwork series'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?b WHERE { { ?g property:inspired_by ?b . ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:artwork_series } UNION { ?g property:inspired_by ?b . ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:fictional_character } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:inspired_by resource:The_Little_Mermaid . { ?l rdf:type ?f . VALUES ( ?f ) { ( ontology:artwork_series ) ( ontology:fictional_character ) } } } } . FILTER ( ?p < ?d ) }
[]
work of art artwork series fictional character
Q1144983 Q17738 Q107724
SYSTEM
Animal Kingdom, Star Wars Episode IV: A New Hope, Thunderball
Q125191 Q1136305 Q1198611 Q107724 Q1217787 Q1856846 Q7758112 Q46239 Q1852671 Q19560629 Q17738 Q181598 Q753298 Q201293 Q1754737 Q41567 Q1144983 Q18668045 Q186014 Q3223805 Q5968141 Q734834 Q1170100 Q375786 Q83186 Q465478 Q169082
(c(Q15709879)|c(Q95074),P941,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q214619
relation P941
type Q15709879
type Q95074
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?b WHERE { { ?g property:P941 ?b . ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q15709879 } UNION { ?g property:P941 ?b . ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q95074 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:P941 resource:Q214619 . { ?l rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15709879 ) ( ontology:Q95074 ) } } } } . FILTER ( ?p < ?d ) }
photograph Doryphoros The Absent-Minded Professor Thunderball The Time Machine The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia Carnival of Souls 9/11 entschlüsselt Star Wars Episode IV: A New Hope King Lear Uncle Vanya Roman Holiday Lady Snowblood Hamlet Animal Kingdom The Old Fisherman Zeitgeist: The Movie The Judgement of Paris La sirena varada 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 Thunderball
action less
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type artwork series
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
action count
action filter_multi_types
action find_reverse
entity The Little Mermaid
relation inspired by
type artwork series
type fictional character
[[{'concept': 'artwork series'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?b WHERE { { ?g property:inspired_by ?b . ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:artwork_series } UNION { ?g property:inspired_by ?b . ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:fictional_character } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { ?l property:inspired_by resource:The_Little_Mermaid . { ?l rdf:type ?f . VALUES ( ?f ) { ( ontology:artwork_series ) ( ontology:fictional_character ) } } } } . FILTER ( ?p < ?d ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1144983 Q17738 Q107724
P162
Q502895
USER
Who are the producers of Animal Kingdom, Star Wars Episode IV: A New Hope and Thunderball ?
(Q1144983,P162,c(Q502895)) (Q17738,P162,c(Q502895)) (Q107724,P162,c(Q502895))
action union
action filter_type
action find
entity Q1144983
relation P162
type Q502895
action filter_type
action find
entity Q17738
relation P162
type Q502895
action filter_type
action find
entity Q107724
relation P162
type Q502895
['Q1144983', 'P162', {'concept': 'Q502895'}] ['Q17738', 'P162', {'concept': 'Q502895'}] ['Q107724', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:Q17738 ) ( resource:Q1144983 ) } . ?i property:P162 ?c }
Animal Kingdom Star Wars Episode IV: A New Hope Thunderball
action union
action filter_type
action find
entity Animal Kingdom
relation producer
type common name
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation producer
type common name
action filter_type
action find
entity Thunderball
relation producer
type common name
['Animal Kingdom', 'producer', {'concept': 'common name'}] ['Star Wars Episode IV: A New Hope', 'producer', {'concept': 'common name'}] ['Thunderball', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:Star_Wars_Episode_IV:_A_New_Hope ) ( resource:Animal_Kingdom ) } . ?i property:producer ?c }
[]
common name
Q38222 Q6660328 Q1494912
SYSTEM
George Lucas, Liz Watts, Gary Kurtz
Q6660328 Q38222 Q683785 Q1494912 Q1368243
(Q1144983,P162,c(Q502895)) (Q17738,P162,c(Q502895)) (Q107724,P162,c(Q502895))
action union
action filter_type
action find
entity Q1144983
relation P162
type Q502895
action filter_type
action find
entity Q17738
relation P162
type Q502895
action filter_type
action find
entity Q107724
relation P162
type Q502895
The producers of Animal Kingdom , Star Wars Episode IV : A New Hope and Thunderball are named [ANSWERS]
['Q1144983', 'P162', {'concept': 'Q502895'}] ['Q17738', 'P162', {'concept': 'Q502895'}] ['Q107724', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:Q17738 ) ( resource:Q1144983 ) } . ?i property:P162 ?c }
Liz Watts George Lucas Rick McCallum Gary Kurtz Kevin McClory
The producers of Animal Kingdom , Star Wars Episode IV : A New Hope and Thunderball are named George Lucas, Liz Watts and Gary Kurtz
George Lucas Liz Watts Gary Kurtz
action union
action filter_type
action find
entity Animal Kingdom
relation producer
type common name
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation producer
type common name
action filter_type
action find
entity Thunderball
relation producer
type common name
['Animal Kingdom', 'producer', {'concept': 'common name'}] ['Star Wars Episode IV: A New Hope', 'producer', {'concept': 'common name'}] ['Thunderball', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?i ) { ( resource:Star_Wars_Episode_IV:_A_New_Hope ) ( resource:Animal_Kingdom ) } . ?i property:producer ?c }
[]
Clarification
Simple Question|Single Entity|Indirect
Q38222
P58
Q838948
USER
Which works of art did that person do the screenwriting for ?
(c(Q838948),P58,Q38222)
action filter_type
action find_reverse
entity Q38222
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q38222']
SELECT DISTINCT ?g WHERE { ?g property:P58 resource:Q38222 . ?g rdf:type ontology:Q838948 }
George Lucas
action filter_type
action find_reverse
entity George Lucas
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'George Lucas']
SELECT DISTINCT ?g WHERE { ?g property:screenwriter resource:George_Lucas . ?g rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q38222
SYSTEM
Did you mean George Lucas ?
Q38222 Q6660328 Q1494912
(c(Q838948),P58,Q38222) (c(Q838948),P58,Q6660328) (c(Q838948),P58,Q1494912)
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q38222'] [{'concept': 'Q838948'}, 'P58', 'Q6660328'] [{'concept': 'Q838948'}, 'P58', 'Q1494912']
SELECT DISTINCT ?g WHERE { ?g property:P58 resource:Q38222 . ?g rdf:type ontology:Q838948 }
George Lucas Liz Watts Gary Kurtz
Did you mean George Lucas ?
George Lucas
[{'concept': 'work of art'}, 'screenwriter', 'George Lucas'] [{'concept': 'work of art'}, 'screenwriter', 'Liz Watts'] [{'concept': 'work of art'}, 'screenwriter', 'Gary Kurtz']
SELECT DISTINCT ?g WHERE { ?g property:screenwriter resource:George_Lucas . ?g rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P58,Q38222)
[{'concept': 'Q838948'}, 'P58', 'Q38222']
[{'concept': 'work of art'}, 'screenwriter', 'George Lucas']
[]
Q185658 Q17738 Q174284
SYSTEM
Indiana Jones and the Last Crusade, Star Wars Episode IV: A New Hope, Raiders of the Lost Ark
Q613974 Q245521 Q181795 Q2411065 Q181803 Q181069 Q1609393 Q208910 Q1454273 Q179215 Q1968868 Q1747296 Q185658 Q174284 Q375855 Q783365 Q42051 Q17738 Q515931 Q165713
(c(Q838948),P58,Q38222)
action filter_type
action find_reverse
entity Q38222
relation P58
type Q838948
[ANSWERS] that person did the screenwriting for
[{'concept': 'Q838948'}, 'P58', 'Q38222']
SELECT DISTINCT ?g WHERE { ?g property:P58 resource:Q38222 . ?g rdf:type ontology:Q838948 }
Anyone Lived in a Pretty How Town 6-18-67 The Empire Strikes Back The Emperor Star Wars Episode VI: Return of the Jedi Star Wars Episode II: Attack of the Clones Herbie 1:42.08 Freiheit Indiana Jones and the Temple of Doom Young Indiana Jones and the Treasure of the Peacock's Eye More American Graffiti Indiana Jones and the Last Crusade Raiders of the Lost Ark American Graffiti THX 1138 Star Wars: Episode III – Revenge of the Sith Star Wars Episode IV: A New Hope Willow Star Wars: Episode I – The Phantom Menace
Indiana Jones and the Last Crusade, Star Wars Episode IV: A New Hope and Raiders of the Lost Ark that person did the screenwriting for
Indiana Jones and the Last Crusade Star Wars Episode IV: A New Hope Raiders of the Lost Ark
action filter_type
action find_reverse
entity George Lucas
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'George Lucas']
SELECT DISTINCT ?g WHERE { ?g property:screenwriter resource:George_Lucas . ?g rdf:type ontology:work_of_art }
[]