Simple Question (Direct)
Simple Question
Q12118084
P161
Q502895
USER
Which people were casted in Ernest Maltravers ?
(Q12118084,P161,c(Q502895))
action filter_type
action find
entity Q12118084
relation P161
type Q502895
['Q12118084', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q12118084 property:P161 ?c . ?c rdf:type ontology:Q502895 }
Ernest Maltravers
action filter_type
action find
entity Ernest Maltravers
relation cast member
type common name
['Ernest Maltravers', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Maltravers property:cast_member ?c . ?c rdf:type ontology:common_name }
[]
common name
Q5179764 Q5585308 Q275511
SYSTEM
Cowley Wright, Gordon Hopkirk, Lillian Hall-Davis
Q5179764 Q5585308 Q275511
(Q12118084,P161,c(Q502895))
action filter_type
action find
entity Q12118084
relation P161
type Q502895
[ANSWERS] were casted in Ernest Maltravers
['Q12118084', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q12118084 property:P161 ?c . ?c rdf:type ontology:Q502895 }
Cowley Wright Gordon Hopkirk Lillian Hall-Davis
Cowley Wright, Gordon Hopkirk and Lillian Hall-Davis were casted in Ernest Maltravers
Cowley Wright Gordon Hopkirk Lillian Hall-Davis
action filter_type
action find
entity Ernest Maltravers
relation cast member
type common name
['Ernest Maltravers', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Maltravers property:cast_member ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5179764 Q5585308 Q275511
P27
Q15617994
USER
Which administrative territories are the native countriesof Cowley Wright, Gordon Hopkirk and Lillian Hall-Davis ?
(Q5179764,P27,c(Q15617994)) (Q5585308,P27,c(Q15617994)) (Q275511,P27,c(Q15617994))
action union
action filter_type
action find
entity Q5179764
relation P27
type Q15617994
action filter_type
action find
entity Q5585308
relation P27
type Q15617994
action filter_type
action find
entity Q275511
relation P27
type Q15617994
['Q5179764', 'P27', {'concept': 'Q15617994'}] ['Q5585308', 'P27', {'concept': 'Q15617994'}] ['Q275511', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { resource:Q5585308 property:P27 ?m . ?m rdf:type ontology:Q15617994 } UNION { resource:Q5179764 property:P27 ?m . ?m rdf:type ontology:Q15617994 } }
Cowley Wright Gordon Hopkirk Lillian Hall-Davis
action union
action filter_type
action find
entity Cowley Wright
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Gordon Hopkirk
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Lillian Hall-Davis
relation country of citizenship
type designation for an administrative territorial entity
['Cowley Wright', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Gordon Hopkirk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Lillian Hall-Davis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { resource:Gordon_Hopkirk property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Cowley_Wright property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q145 Q145 Q145
SYSTEM
United Kingdom
Q145 Q145 Q145
(Q5179764,P27,c(Q15617994)) (Q5585308,P27,c(Q15617994)) (Q275511,P27,c(Q15617994))
action union
action filter_type
action find
entity Q5179764
relation P27
type Q15617994
action filter_type
action find
entity Q5585308
relation P27
type Q15617994
action filter_type
action find
entity Q275511
relation P27
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are the native countriesof Cowley Wright, Gordon Hopkirk and Lillian Hall-Davis
['Q5179764', 'P27', {'concept': 'Q15617994'}] ['Q5585308', 'P27', {'concept': 'Q15617994'}] ['Q275511', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { resource:Q5585308 property:P27 ?m . ?m rdf:type ontology:Q15617994 } UNION { resource:Q5179764 property:P27 ?m . ?m rdf:type ontology:Q15617994 } }
United Kingdom United Kingdom United Kingdom
United Kingdom, United Kingdom and United Kingdom are the native countriesof Cowley Wright, Gordon Hopkirk and Lillian Hall-Davis
United Kingdom United Kingdom United Kingdom
action union
action filter_type
action find
entity Cowley Wright
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Gordon Hopkirk
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Lillian Hall-Davis
relation country of citizenship
type designation for an administrative territorial entity
['Cowley Wright', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Gordon Hopkirk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Lillian Hall-Davis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { resource:Gordon_Hopkirk property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Cowley_Wright property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q275511
P162
Q838948
USER
Which work of art has been developed by Lillian Hall-Davis ?
(c(Q838948),P162,Q275511)
action filter_type
action find_reverse
entity Q275511
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q275511']
SELECT DISTINCT ?p WHERE { ?p property:P162 resource:Q275511 . ?p rdf:type ontology:Q838948 }
Lillian Hall-Davis
action filter_type
action find_reverse
entity Lillian Hall-Davis
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Lillian Hall-Davis']
SELECT DISTINCT ?p WHERE { ?p property:producer resource:Lillian_Hall-Davis . ?p rdf:type ontology:work_of_art }
[]
work of art
Q499031
SYSTEM
The Ring
Q499031
(c(Q838948),P162,Q275511)
action filter_type
action find_reverse
entity Q275511
relation P162
type Q838948
[ANSWER] has been developed by Lillian Hall-Davis
[{'concept': 'Q838948'}, 'P162', 'Q275511']
SELECT DISTINCT ?p WHERE { ?p property:P162 resource:Q275511 . ?p rdf:type ontology:Q838948 }
The Ring
The Ring has been developed by Lillian Hall-Davis
The Ring
action filter_type
action find_reverse
entity Lillian Hall-Davis
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Lillian Hall-Davis']
SELECT DISTINCT ?p WHERE { ?p property:producer resource:Lillian_Hall-Davis . ?p rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q499031
P840
Q1496967
USER
Which is the narrative location of that work of art ?
(Q499031,P840,c(Q1496967))
action filter_type
action find
entity Q499031
relation P840
type Q1496967
['Q499031', 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?b WHERE { resource:Q499031 property:P840 ?b . ?b rdf:type ontology:Q1496967 }
The Ring
action filter_type
action find
entity The Ring
relation narrative location
type territorial entity
['The Ring', 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:The_Ring property:narrative_location ?b . ?b rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q499031,P840,c(Q1496967))
action filter_type
action find
entity Q499031
relation P840
type Q1496967
The narrative location of that work of art is in [ANSWER]
['Q499031', 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ?b WHERE { resource:Q499031 property:P840 ?b . ?b rdf:type ontology:Q1496967 }
England
The narrative location of that work of art is in England
England
action filter_type
action find
entity The Ring
relation narrative location
type territorial entity
['The Ring', 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:The_Ring property:narrative_location ?b . ?b rdf:type ontology:territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q21 Q1208905
P840
Q838948
USER
Does Diana with Jumping Antilope have its narrative set in that territory ?
(Q1208905,P840,Q21)
action is_in
entity Q1208905
action find
entity Q21
relation P840
['Q1208905', 'P840', 'Q21']
ASK WHERE { resource:Q21 property:P840 resource:Q1208905 }
England Diana with Jumping Antilope
action is_in
entity Diana with Jumping Antilope
action find
entity England
relation narrative location
['Diana with Jumping Antilope', 'narrative location', 'England']
ASK WHERE { resource:England property:narrative_location resource:Diana_with_Jumping_Antilope }
[]
work of art
SYSTEM
NO
(Q1208905,P840,Q21)
action is_in
entity Q1208905
action find
entity Q21
relation P840
[ANSWER]
['Q1208905', 'P840', 'Q21']
ASK WHERE { resource:Q21 property:P840 resource:Q1208905 }
No
action is_in
entity Diana with Jumping Antilope
action find
entity England
relation narrative location
['Diana with Jumping Antilope', 'narrative location', 'England']
ASK WHERE { resource:England property:narrative_location resource:Diana_with_Jumping_Antilope }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q436121 Q5585308
P161
Q838948
USER
Which works of art have Gordon Hopkirk or Noriko Sengoku in their star cast ?
OR((c(Q838948),P161,Q5585308), (c(Q838948),P161,Q436121))
action filter_type
action union
action find_reverse
entity Q5585308
relation P161
action find_reverse
entity Q436121
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q5585308'], [{'concept': 'Q838948'}, 'P161', 'Q436121']]}
SELECT DISTINCT ?f WHERE { { ?f property:P161 ?a . VALUES ( ?a ) { ( resource:Q5585308 ) ( resource:Q436121 ) } } . ?f rdf:type ontology:Q838948 }
Noriko Sengoku Gordon Hopkirk
action filter_type
action union
action find_reverse
entity Gordon Hopkirk
relation cast member
action find_reverse
entity Noriko Sengoku
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Gordon Hopkirk'], [{'concept': 'work of art'}, 'cast member', 'Noriko Sengoku']]}
SELECT DISTINCT ?f WHERE { { ?f property:cast_member ?a . VALUES ( ?a ) { ( resource:Gordon_Hopkirk ) ( resource:Noriko_Sengoku ) } } . ?f rdf:type ontology:work_of_art }
[]
work of art
Q1194546 Q678972 Q2005033 Q928997 Q21528053 Q2273270 Q6387210 Q3346017 Q7399500 Q2537602
SYSTEM
Some of them are The Idiot, Stray Dog, The Quiet Duel, Blind Beast, The Skipper's Wooing, I Live in Fear, Ken, Floating Clouds, Sahara Love, The Life of Oharu
Q2537602 Q2059827 Q3010935 Q21528053 Q2297993 Q133488 Q6387210 Q928997 Q2005033 Q1341875 Q678972 Q7399500 Q2273270 Q3346017 Q2714058 Q1194546 Q7082472
OR((c(Q838948),P161,Q5585308), (c(Q838948),P161,Q436121))
action filter_type
action union
action find_reverse
entity Q5585308
relation P161
action find_reverse
entity Q436121
relation P161
type Q838948
[ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q5585308'], [{'concept': 'Q838948'}, 'P161', 'Q436121']]}
SELECT DISTINCT ?f WHERE { { ?f property:P161 ?a . VALUES ( ?a ) { ( resource:Q5585308 ) ( resource:Q436121 ) } } . ?f rdf:type ontology:Q838948 }
The Life of Oharu The Sea and Poison The Lady of Musashino The Skipper's Wooing Scandal Kwaidan Ken Blind Beast The Quiet Duel Drunken Angel Stray Dog Sahara Love I Live in Fear Floating Clouds When a Woman Ascends the Stairs The Idiot Okoge
Floating Clouds, Sahara Love and The Life of Oharu have Gordon Hopkirk or Noriko Sengoku in their star cast
The Idiot Stray Dog The Quiet Duel Blind Beast The Skipper's Wooing I Live in Fear Ken Floating Clouds Sahara Love The Life of Oharu
action filter_type
action union
action find_reverse
entity Gordon Hopkirk
relation cast member
action find_reverse
entity Noriko Sengoku
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Gordon Hopkirk'], [{'concept': 'work of art'}, 'cast member', 'Noriko Sengoku']]}
SELECT DISTINCT ?f WHERE { { ?f property:cast_member ?a . VALUES ( ?a ) { ( resource:Gordon_Hopkirk ) ( resource:Noriko_Sengoku ) } } . ?f rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q838948 Q95074 Q15619164
USER
How many works of art contain around 11 fictional characters and abstract beings ?
(c(Q95074)|c(Q15619164),P1441,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
value 11
[[{'concept': 'Q95074'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?t WHERE { { ?o property:P1441 ?t . ?t rdf:type ontology:Q838948 . ?o rdf:type ontology:Q95074 } UNION { ?o property:P1441 ?t . ?t rdf:type ontology:Q838948 . ?o rdf:type ontology:Q15619164 } } GROUP BY ?t } . FILTER ( ?w = 11 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional character
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
value 11
[[{'concept': 'fictional character'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?t WHERE { { ?o property:present_in_work ?t . ?t rdf:type ontology:work_of_art . ?o rdf:type ontology:fictional_character } UNION { ?o property:present_in_work ?t . ?t rdf:type ontology:work_of_art . ?o rdf:type ontology:abstract_being } } GROUP BY ?t } . FILTER ( ?w = 11 ) }
[]
work of art fictional character abstract being
SYSTEM
2
Q332387 Q387674
(c(Q95074)|c(Q15619164),P1441,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
value 11
[ANSWER]
[[{'concept': 'Q95074'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?t WHERE { { ?o property:P1441 ?t . ?t rdf:type ontology:Q838948 . ?o rdf:type ontology:Q95074 } UNION { ?o property:P1441 ?t . ?t rdf:type ontology:Q838948 . ?o rdf:type ontology:Q15619164 } } GROUP BY ?t } . FILTER ( ?w = 11 ) }
The Taming of the Shrew Final Fantasy VII: Advent Children
2
action count
action approx
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional character
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
value 11
[[{'concept': 'fictional character'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?t WHERE { { ?o property:present_in_work ?t . ?t rdf:type ontology:work_of_art . ?o rdf:type ontology:fictional_character } UNION { ?o property:present_in_work ?t . ?t rdf:type ontology:work_of_art . ?o rdf:type ontology:abstract_being } } GROUP BY ?t } . FILTER ( ?w = 11 ) }
[]