Simple Question (Direct)
Simple Question
Q619820
P86
Q502895
USER
Who did the compostion for The Apostle ?
(Q619820,P86,c(Q502895))
action filter_type
action find
entity Q619820
relation P86
type Q502895
['Q619820', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q619820 property:P86 ?j . ?j rdf:type ontology:Q502895 }
The Apostle
action filter_type
action find
entity The Apostle
relation composer
type common name
['The Apostle', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Apostle property:composer ?j . ?j rdf:type ontology:common_name }
[]
common name
Q330438
SYSTEM
David Mansfield
Q330438
(Q619820,P86,c(Q502895))
action filter_type
action find
entity Q619820
relation P86
type Q502895
[ANSWER] did the compostion for The Apostle
['Q619820', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q619820 property:P86 ?j . ?j rdf:type ontology:Q502895 }
David Mansfield
David Mansfield did the compostion for The Apostle
David Mansfield
action filter_type
action find
entity The Apostle
relation composer
type common name
['The Apostle', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Apostle property:composer ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q619820
P58
Q502895
USER
Which person wrote the script for that work of art ?
(Q330438,P58,c(Q502895))
action filter_type
action find
entity Q619820
relation P58
type Q502895
['Q330438', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q619820 property:P58 ?e . ?e rdf:type ontology:Q502895 }
The Apostle
action filter_type
action find
entity The Apostle
relation screenwriter
type common name
['David Mansfield', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:The_Apostle property:screenwriter ?e . ?e rdf:type ontology:common_name }
[]
common name
Q171736
SYSTEM
Robert Duvall
Q171736
(Q330438,P58,c(Q502895))
action filter_type
action find
entity Q619820
relation P58
type Q502895
[ANSWER] wrote the script for that work of art
['Q330438', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q619820 property:P58 ?e . ?e rdf:type ontology:Q502895 }
Robert Duvall
Robert Duvall wrote the script for that work of art
Robert Duvall
action filter_type
action find
entity The Apostle
relation screenwriter
type common name
['David Mansfield', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:The_Apostle property:screenwriter ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q619820
P495
Q15617994
USER
Which administrative territory is the origin of The Apostle ?
(Q619820,P495,c(Q15617994))
action filter_type
action find
entity Q619820
relation P495
type Q15617994
['Q619820', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q619820 property:P495 ?b . ?b rdf:type ontology:Q15617994 }
The Apostle
action filter_type
action find
entity The Apostle
relation country of origin
type designation for an administrative territorial entity
['The Apostle', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:The_Apostle property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q619820,P495,c(Q15617994))
action filter_type
action find
entity Q619820
relation P495
type Q15617994
[ANSWER] is the origin of The Apostle
['Q619820', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q619820 property:P495 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
United States of America is the origin of The Apostle
United States of America
action filter_type
action find
entity The Apostle
relation country of origin
type designation for an administrative territorial entity
['The Apostle', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:The_Apostle property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q619820
P57
Q502895
USER
Who was that work of art directed by ?
(Q30,P57,c(Q502895))
action filter_type
action find
entity Q619820
relation P57
type Q502895
['Q30', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q619820 property:P57 ?j . ?j rdf:type ontology:Q502895 }
The Apostle
action filter_type
action find
entity The Apostle
relation director
type common name
['United States of America', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Apostle property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Q171736
SYSTEM
Robert Duvall
Q171736
(Q30,P57,c(Q502895))
action filter_type
action find
entity Q619820
relation P57
type Q502895
By that work of art directed was by [ANSWER]
['Q30', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q619820 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Robert Duvall
By that work of art directed was by Robert Duvall
Robert Duvall
action filter_type
action find
entity The Apostle
relation director
type common name
['United States of America', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Apostle property:director ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q171736
P162
Q838948
USER
Which works of art have been produced by that person ?
(c(Q838948),P162,Q171736)
action filter_type
action find_reverse
entity Q171736
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q171736']
SELECT DISTINCT ?w WHERE { ?w property:P162 resource:Q171736 . ?w rdf:type ontology:Q838948 }
Robert Duvall
action filter_type
action find_reverse
entity Robert Duvall
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Robert Duvall']
SELECT DISTINCT ?w WHERE { ?w property:producer resource:Robert_Duvall . ?w rdf:type ontology:work_of_art }
[]
work of art
Q300401 Q1113987 Q1128750
SYSTEM
A Family Thing, Tender Mercies, Crazy Heart
Q300401 Q1113987 Q1128750
(c(Q838948),P162,Q171736)
action filter_type
action find_reverse
entity Q171736
relation P162
type Q838948
[ANSWERS] have been produced by that person
[{'concept': 'Q838948'}, 'P162', 'Q171736']
SELECT DISTINCT ?w WHERE { ?w property:P162 resource:Q171736 . ?w rdf:type ontology:Q838948 }
A Family Thing Tender Mercies Crazy Heart
A Family Thing, Tender Mercies and Crazy Heart have been produced by that person
A Family Thing Tender Mercies Crazy Heart
action filter_type
action find_reverse
entity Robert Duvall
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Robert Duvall']
SELECT DISTINCT ?w WHERE { ?w property:producer resource:Robert_Duvall . ?w rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1128750
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q1128750,P136,c(Q1792379))
action filter_type
action find
entity Q1128750
relation P136
type Q1792379
['Q1128750', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?p WHERE { resource:Q1128750 property:P136 ?p . ?p rdf:type ontology:Q1792379 }
Crazy Heart
action filter_type
action find
entity Crazy Heart
relation genre
type art genre
['Crazy Heart', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?p WHERE { resource:Crazy_Heart property:genre ?p . ?p rdf:type ontology:art_genre }
[]
art genre
Clarification for simple ques.
Q300401
SYSTEM
Did you mean A Family Thing ?
Q300401 Q1113987 Q1128750
(Q300401,P136,c(Q1792379)) (Q1113987,P136,c(Q1792379)) (Q1128750,P136,c(Q1792379))
[ANSWER]
['Q300401', 'P136', {'concept': 'Q1792379'}] ['Q1113987', 'P136', {'concept': 'Q1792379'}] ['Q1128750', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?p WHERE { resource:Q1128750 property:P136 ?p . ?p rdf:type ontology:Q1792379 }
A Family Thing Tender Mercies Crazy Heart
Did you mean A Family Thing ?
A Family Thing
['A Family Thing', 'genre', {'concept': 'art genre'}] ['Tender Mercies', 'genre', {'concept': 'art genre'}] ['Crazy Heart', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?p WHERE { resource:Crazy_Heart property:genre ?p . ?p rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
USER
No, I meant Crazy Heart. Could you tell me the answer for that?
(Q1128750,P136,c(Q1792379))
Q1128750
['Q1128750', 'P136', {'concept': 'Q1792379'}]
['Crazy Heart', 'genre', {'concept': 'art genre'}]
[]
Q130232 Q842256
SYSTEM
drama film, musical film
Q842256 Q130232
(Q1128750,P136,c(Q1792379))
action filter_type
action find
entity Q1128750
relation P136
type Q1792379
Of [ANSWERS] can be considered as category for that work of art
['Q1128750', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?p WHERE { resource:Q1128750 property:P136 ?p . ?p rdf:type ontology:Q1792379 }
musical film drama film
Of drama film and musical film can be considered as category for that work of art
drama film musical film
action filter_type
action find
entity Crazy Heart
relation genre
type art genre
['Crazy Heart', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?p WHERE { resource:Crazy_Heart property:genre ?p . ?p rdf:type ontology:art_genre }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1170100
P941
Q838948 Q2342494 Q95074
USER
Which works of art inspired greater number of collectables or fictional characters than The Philadelphia Experiment ?
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q1170100
relation P941
type Q2342494
type Q95074
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?m WHERE { { ?i property:P941 ?m . ?i rdf:type ontology:Q95074 . ?m rdf:type ontology:Q838948 } UNION { ?i property:P941 ?m . ?i rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q838948 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { { ?s rdf:type ontology:Q95074 } UNION { ?s rdf:type ontology:Q2342494 } } . ?s property:P941 resource:Q1170100 } } . FILTER ( ?p > ?w ) }
The Philadelphia Experiment
action greater
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 fictional character
action count
action filter_multi_types
action find_reverse
entity The Philadelphia Experiment
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?m WHERE { { ?i property:inspired_by ?m . ?i rdf:type ontology:fictional_character . ?m rdf:type ontology:work_of_art } UNION { ?i property:inspired_by ?m . ?i rdf:type ontology:collectable . ?m rdf:type ontology:work_of_art } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { { ?s rdf:type ontology:fictional_character } UNION { ?s rdf:type ontology:collectable } } . ?s property:inspired_by resource:The_Philadelphia_Experiment } } . FILTER ( ?p > ?w ) }
[]
work of art collectable fictional character
Q379873 Q493755 Q1345920
SYSTEM
Who Framed Roger Rabbit, Coming to America, Song of the South
Q19560629 Q1345920 Q379873 Q493755 Q214619
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q1170100
relation P941
type Q2342494
type Q95074
Who framed Roger Rabbit, Coming to America and Song of the South inspired greater number of collectables or fictional characters than The Philadelphia Experiment
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?m WHERE { { ?i property:P941 ?m . ?i rdf:type ontology:Q95074 . ?m rdf:type ontology:Q838948 } UNION { ?i property:P941 ?m . ?i rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q838948 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { { ?s rdf:type ontology:Q95074 } UNION { ?s rdf:type ontology:Q2342494 } } . ?s property:P941 resource:Q1170100 } } . FILTER ( ?p > ?w ) }
9/11 entschlüsselt Song of the South Who Framed Roger Rabbit Coming to America The Little Mermaid
Who framed Roger Rabbit, Coming to America and Song of the South inspired greater number of collectables or fictional characters than The Philadelphia Experiment
Who Framed Roger Rabbit Coming to America Song of the South
action greater
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 fictional character
action count
action filter_multi_types
action find_reverse
entity The Philadelphia Experiment
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) ?m WHERE { { ?i property:inspired_by ?m . ?i rdf:type ontology:fictional_character . ?m rdf:type ontology:work_of_art } UNION { ?i property:inspired_by ?m . ?i rdf:type ontology:collectable . ?m rdf:type ontology:work_of_art } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { { ?s rdf:type ontology:fictional_character } UNION { ?s rdf:type ontology:collectable } } . ?s property:inspired_by resource:The_Philadelphia_Experiment } } . FILTER ( ?p > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q107724
P941
Q838948 Q2342494 Q95074
USER
And how about Thunderball?
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q107724
relation P941
type Q2342494
type Q95074
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P941 resource:Q107724 . { VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } . ?a rdf:type ?k } } } . FILTER ( ?w > ?q ) }
Thunderball
action greater
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 fictional character
action count
action filter_multi_types
action find_reverse
entity Thunderball
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:fictional_character ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:inspired_by resource:Thunderball . { VALUES ( ?k ) { ( ontology:collectable ) ( ontology:fictional_character ) } . ?a rdf:type ?k } } } . FILTER ( ?w > ?q ) }
[]
work of art collectable fictional character
Q379873 Q493755 Q1345920
SYSTEM
Who Framed Roger Rabbit, Coming to America, Song of the South
Q19560629 Q1345920 Q379873 Q493755 Q214619
(c(Q2342494)|c(Q95074),P941,c(Q838948))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action count
action filter_multi_types
action find_reverse
entity Q107724
relation P941
type Q2342494
type Q95074
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P941 resource:Q107724 . { VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } . ?a rdf:type ?k } } } . FILTER ( ?w > ?q ) }
9/11 entschlüsselt Song of the South Who Framed Roger Rabbit Coming to America The Little Mermaid
Who Framed Roger Rabbit Coming to America Song of the South
action greater
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 fictional character
action count
action filter_multi_types
action find_reverse
entity Thunderball
relation inspired by
type collectable
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?w ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:fictional_character ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:inspired_by resource:Thunderball . { VALUES ( ?k ) { ( ontology:collectable ) ( ontology:fictional_character ) } . ?a rdf:type ?k } } } . FILTER ( ?w > ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q201658 Q2342494
USER
Which works of art were exactly 1 film genres and collectables inspired by ?
(c(Q201658)|c(Q2342494),P941,c(Q838948))
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
value 1
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?a WHERE { VALUES ( ?i ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } . ?c rdf:type ?i } GROUP BY ?a } . FILTER ( ?j = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type film genre
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
value 1
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?a WHERE { VALUES ( ?i ) { ( ontology:film_genre ) ( ontology:collectable ) } . ?c rdf:type ?i } GROUP BY ?a } . FILTER ( ?j = 1 ) }
[]
work of art film genre collectable
Q7758112 Q19560629
SYSTEM
The Pretty Sister of Jose, 9/11 entschlüsselt
Q7758112 Q19560629
(c(Q201658)|c(Q2342494),P941,c(Q838948))
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
value 1
[ANSWERS] were exactly 1 film genres and collectables inspired by
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?a WHERE { VALUES ( ?i ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } . ?c rdf:type ?i } GROUP BY ?a } . FILTER ( ?j = 1 ) }
The Pretty Sister of Jose 9/11 entschlüsselt
The Pretty Sister of Jose and 9/11 entschlüsselt were exactly 1 film genres and collectables inspired by
The Pretty Sister of Jose 9/11 entschlüsselt
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type film genre
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
value 1
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?a WHERE { VALUES ( ?i ) { ( ontology:film_genre ) ( ontology:collectable ) } . ?c rdf:type ?i } GROUP BY ?a } . FILTER ( ?j = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q129411 Q619820
P161 P58
Q502895
USER
Which people are in The Apostle or wrote the script for Tatarak ?
OR((Q619820,P161,c(Q502895)), (Q129411,P58,c(Q502895)))
action filter_type
action union
action find
entity Q619820
relation P161
action find
entity Q129411
relation P58
type Q502895
{'OR': [['Q619820', 'P161', {'concept': 'Q502895'}], ['Q129411', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . { { resource:Q619820 property:P161 ?x } UNION { resource:Q129411 property:P58 ?x } } }
Tatarak The Apostle
action filter_type
action union
action find
entity The Apostle
relation cast member
action find
entity Tatarak
relation screenwriter
type common name
{'OR': [['The Apostle', 'cast member', {'concept': 'common name'}], ['Tatarak', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . { { resource:The_Apostle property:cast_member ?x } UNION { resource:Tatarak property:screenwriter ?x } } }
[]
common name
Q229241 Q171736 Q102341 Q558960 Q2912542 Q202735 Q106685 Q320775 Q36951 Q516690
SYSTEM
Some of them are Miranda Richardson, Robert Duvall, Farrah Fawcett, Jarosław Iwaszkiewicz, Todd Allen, Billy Bob Thornton, Andrzej Wajda, Billy Joe Shaver, Sándor Márai, Walton Goggins
Q106685 Q102341 Q978184 Q229241 Q202735 Q2912542 Q272433 Q171736 Q558960 Q233253 Q320775 Q36951 Q516690
OR((Q619820,P161,c(Q502895)), (Q129411,P58,c(Q502895)))
action filter_type
action union
action find
entity Q619820
relation P161
action find
entity Q129411
relation P58
type Q502895
[ANSWERS] are in The Apostle or wrote the script for Tatarak
{'OR': [['Q619820', 'P161', {'concept': 'Q502895'}], ['Q129411', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . { { resource:Q619820 property:P161 ?x } UNION { resource:Q129411 property:P58 ?x } } }
Andrzej Wajda Farrah Fawcett James Gammon Miranda Richardson Billy Bob Thornton Todd Allen Krystyna Janda Robert Duvall Jarosław Iwaszkiewicz June Carter Cash Billy Joe Shaver Sándor Márai Walton Goggins
Miranda Richardson, Robert Duvall, Farrah Fawcett, Jarosław Iwaszkiewicz, Todd Allen, Billy Bob Thornton, Andrzej Wajda, Billy Joe Shaver, Sándor Márai and Walton Goggins are in The Apostle or wrote the script for Tatarak
Miranda Richardson Robert Duvall Farrah Fawcett Jarosław Iwaszkiewicz Todd Allen Billy Bob Thornton Andrzej Wajda Billy Joe Shaver Sándor Márai Walton Goggins
action filter_type
action union
action find
entity The Apostle
relation cast member
action find
entity Tatarak
relation screenwriter
type common name
{'OR': [['The Apostle', 'cast member', {'concept': 'common name'}], ['Tatarak', 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . { { resource:The_Apostle property:cast_member ?x } UNION { resource:Tatarak property:screenwriter ?x } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10834883 Q129411
P495 P17
Q15617994
USER
Which administrative territories are the origin of Tatarak or are Xuân Bình situated in ?
OR((Q129411,P495,c(Q15617994)), (Q10834883,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q129411
relation P495
action find
entity Q10834883
relation P17
type Q15617994
{'OR': [['Q129411', 'P495', {'concept': 'Q15617994'}], ['Q10834883', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q129411 property:P495 ?w } UNION { resource:Q10834883 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Xuân Bình Tatarak
action filter_type
action union
action find
entity Tatarak
relation country of origin
action find
entity Xuân Bình
relation country
type designation for an administrative territorial entity
{'OR': [['Tatarak', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Xuân Bình', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Tatarak property:country_of_origin ?w } UNION { resource:Xuân_Bình property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36 Q881
SYSTEM
Poland, Vietnam
Q36 Q881
OR((Q129411,P495,c(Q15617994)), (Q10834883,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q129411
relation P495
action find
entity Q10834883
relation P17
type Q15617994
[ANSWERS] are the origin of Tatarak or are Xuân Bình situated in
{'OR': [['Q129411', 'P495', {'concept': 'Q15617994'}], ['Q10834883', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q129411 property:P495 ?w } UNION { resource:Q10834883 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Poland Vietnam
Poland and Vietnam are the origin of Tatarak or are Xuân Bình situated in
Poland Vietnam
action filter_type
action union
action find
entity Tatarak
relation country of origin
action find
entity Xuân Bình
relation country
type designation for an administrative territorial entity
{'OR': [['Tatarak', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Xuân Bình', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Tatarak property:country_of_origin ?w } UNION { resource:Xuân_Bình property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]