Simple Question (Direct)
Simple Question
Q15880594
P106
Q12737077
USER
Which occupation is the profession of Paul Thomas ?
(Q15880594,P106,c(Q12737077))
action filter_type
action find
entity Q15880594
relation P106
type Q12737077
['Q15880594', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q15880594 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Paul Thomas
action filter_type
action find
entity Paul Thomas
relation occupation
type occupation
['Paul Thomas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Thomas property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q13418253
SYSTEM
philologist
Q13418253
(Q15880594,P106,c(Q12737077))
action filter_type
action find
entity Q15880594
relation P106
type Q12737077
The [ANSWER] is the profession of Paul Thomas
['Q15880594', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q15880594 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
philologist
The philologist is the profession of Paul Thomas
philologist
action filter_type
action find
entity Paul Thomas
relation occupation
type occupation
['Paul Thomas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Thomas property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15880594
P166
Q193622
USER
Which order was that person awarded with ?
(Q13418253,P166,c(Q193622))
action filter_type
action find
entity Q15880594
relation P166
type Q193622
['Q13418253', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ?d WHERE { resource:Q15880594 property:P166 ?d . ?d rdf:type ontology:Q193622 }
Paul Thomas
action filter_type
action find
entity Paul Thomas
relation award received
type order
['philologist', 'award received', {'concept': 'order'}]
SELECT DISTINCT ?d WHERE { resource:Paul_Thomas property:award_received ?d . ?d rdf:type ontology:order }
[]
order
Q14900497
SYSTEM
Knight of the Order of Leopold
Q14900497
(Q13418253,P166,c(Q193622))
action filter_type
action find
entity Q15880594
relation P166
type Q193622
That person was awarded a [ANSWER]
['Q13418253', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ?d WHERE { resource:Q15880594 property:P166 ?d . ?d rdf:type ontology:Q193622 }
Knight of the Order of Leopold
That person was awarded a Knight of the Order of Leopold
Knight of the Order of Leopold
action filter_type
action find
entity Paul Thomas
relation award received
type order
['philologist', 'award received', {'concept': 'order'}]
SELECT DISTINCT ?d WHERE { resource:Paul_Thomas property:award_received ?d . ?d rdf:type ontology:order }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3127709
P180
Q12737077 Q11060274 Q1792379
USER
Which occupations are depicted in more number of prints or art genres than harpist ?
(c(Q11060274)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q3127709
relation P180
type Q11060274
type Q1792379
[[{'concept': 'Q11060274'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?l WHERE { { ?s property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q11060274 } UNION { ?s property:P180 ?l . ?s rdf:type ontology:Q1792379 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P180 resource:Q3127709 . { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:Q11060274 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?m > ?f ) }
harpist
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity harpist
relation depicts
type print
type art genre
[[{'concept': 'print'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?l WHERE { { ?s property:depicts ?l . ?l rdf:type ontology:occupation . ?s rdf:type ontology:print } UNION { ?s property:depicts ?l . ?s rdf:type ontology:art_genre . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:depicts resource:harpist . { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:print ) ( ontology:art_genre ) } } } } . FILTER ( ?m > ?f ) }
[]
occupation print art genre
Q131512 Q4991371 Q838811
SYSTEM
farmer, soldier, peasant
Q2486919 Q131512 Q2079936 Q483501 Q4991371 Q376924 Q848466 Q20489032 Q1509714 Q2730732 Q11063 Q838811 Q2251335 Q639669
(c(Q11060274)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q3127709
relation P180
type Q11060274
type Q1792379
[ANSWERS] are depicted in more number of prints or art genres than harpist
[[{'concept': 'Q11060274'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?l WHERE { { ?s property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q11060274 } UNION { ?s property:P180 ?l . ?s rdf:type ontology:Q1792379 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:P180 resource:Q3127709 . { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:Q11060274 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?m > ?f ) }
standard-bearer farmer king of marksmen artist soldier courtesan courier salt pan worker porter equestrian astronomer peasant school teacher musician
Farmer, soldier and peasant are depicted in more number of prints or art genres than harpist
farmer soldier peasant
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity harpist
relation depicts
type print
type art genre
[[{'concept': 'print'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) ?l WHERE { { ?s property:depicts ?l . ?l rdf:type ontology:occupation . ?s rdf:type ontology:print } UNION { ?s property:depicts ?l . ?s rdf:type ontology:art_genre . ?l rdf:type ontology:occupation } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { ?b property:depicts resource:harpist . { ?b rdf:type ?g . VALUES ( ?g ) { ( ontology:print ) ( ontology:art_genre ) } } } } . FILTER ( ?m > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q680928
P180
Q12737077 Q11060274 Q1792379
USER
And what about guard?
(c(Q11060274)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q680928
relation P180
type Q11060274
type Q1792379
[[{'concept': 'Q11060274'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?r ) WHERE { { ?s property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q11060274 } UNION { ?s property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q1792379 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P180 resource:Q680928 . { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11060274 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?r > ?i ) }
guard
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity guard
relation depicts
type print
type art genre
[[{'concept': 'print'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?r ) WHERE { { ?s property:depicts ?f . ?f rdf:type ontology:occupation . ?s rdf:type ontology:print } UNION { ?s property:depicts ?f . ?f rdf:type ontology:occupation . ?s rdf:type ontology:art_genre } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:depicts resource:guard . { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:print ) ( ontology:art_genre ) } } } } . FILTER ( ?r > ?i ) }
[]
occupation print art genre
Q131512 Q4991371 Q838811
SYSTEM
farmer, soldier, peasant
Q2486919 Q131512 Q2079936 Q483501 Q4991371 Q376924 Q848466 Q20489032 Q1509714 Q2730732 Q11063 Q838811 Q2251335 Q639669
(c(Q11060274)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q680928
relation P180
type Q11060274
type Q1792379
[ANSWERS]
[[{'concept': 'Q11060274'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?r ) WHERE { { ?s property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q11060274 } UNION { ?s property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q1792379 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P180 resource:Q680928 . { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11060274 ) ( ontology:Q1792379 ) } } } } . FILTER ( ?r > ?i ) }
standard-bearer farmer king of marksmen artist soldier courtesan courier salt pan worker porter equestrian astronomer peasant school teacher musician
farmer soldier peasant
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity guard
relation depicts
type print
type art genre
[[{'concept': 'print'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?r ) WHERE { { ?s property:depicts ?f . ?f rdf:type ontology:occupation . ?s rdf:type ontology:print } UNION { ?s property:depicts ?f . ?f rdf:type ontology:occupation . ?s rdf:type ontology:art_genre } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:depicts resource:guard . { ?y rdf:type ?n . VALUES ( ?n ) { ( ontology:print ) ( ontology:art_genre ) } } } } . FILTER ( ?r > ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q4991371
P180
Q21711025 Q340169
USER
How many sculpture techniques and medias demonstrate soldier ?
(c(Q21711025),P180,Q4991371) (c(Q340169),P180,Q4991371)
action count
action union
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q21711025
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q340169
[{'concept': 'Q21711025'}, 'P180', 'Q4991371'] [{'concept': 'Q340169'}, 'P180', 'Q4991371']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { VALUES ( ?h ) { ( ontology:Q21711025 ) ( ontology:Q340169 ) } . ?b rdf:type ?h }
soldier
action count
action union
action filter_type
action find_reverse
entity soldier
relation depicts
type sculpture technique
action filter_type
action find_reverse
entity soldier
relation depicts
type media
[{'concept': 'sculpture technique'}, 'depicts', 'soldier'] [{'concept': 'media'}, 'depicts', 'soldier']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { VALUES ( ?h ) { ( ontology:sculpture_technique ) ( ontology:media ) } . ?b rdf:type ?h }
[]
sculpture technique media
SYSTEM
2 sculpture techniques and 2 medias
Q20668033 Q21866311 Q21802337 Q20392038
(c(Q21711025),P180,Q4991371) (c(Q340169),P180,Q4991371)
action count
action union
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q21711025
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q340169
[ANSWER]
[{'concept': 'Q21711025'}, 'P180', 'Q4991371'] [{'concept': 'Q340169'}, 'P180', 'Q4991371']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { VALUES ( ?h ) { ( ontology:Q21711025 ) ( ontology:Q340169 ) } . ?b rdf:type ?h }
The Last Flag Raising Ceremony: Cession of New Orleans (1803) Memorial of the battle of Summa Memorial of the war of liberation The Massacre of the Innocents
2 sculpture techniques and 2 medias
action count
action union
action filter_type
action find_reverse
entity soldier
relation depicts
type sculpture technique
action filter_type
action find_reverse
entity soldier
relation depicts
type media
[{'concept': 'sculpture technique'}, 'depicts', 'soldier'] [{'concept': 'media'}, 'depicts', 'soldier']
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { VALUES ( ?h ) { ( ontology:sculpture_technique ) ( ontology:media ) } . ?b rdf:type ?h }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3665646 Q131512
P106
Q502895
USER
Which people have farmer and basketball player as his/her means of employment ?
AND((c(Q502895),P106,Q131512), (c(Q502895),P106,Q3665646))
action filter_type
action intersection
action find_reverse
entity Q131512
relation P106
action find_reverse
entity Q3665646
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q131512'], [{'concept': 'Q502895'}, 'P106', 'Q3665646']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P106 resource:Q131512 . ?f property:P106 resource:Q3665646 }
basketball player farmer
action filter_type
action intersection
action find_reverse
entity farmer
relation occupation
action find_reverse
entity basketball player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'farmer'], [{'concept': 'common name'}, 'occupation', 'basketball player']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:occupation resource:farmer . ?f property:occupation resource:basketball_player }
[]
common name
Q16104832 Q8002672
SYSTEM
James David Cain, Will Allen
Q16104832 Q8002672
AND((c(Q502895),P106,Q131512), (c(Q502895),P106,Q3665646))
action filter_type
action intersection
action find_reverse
entity Q131512
relation P106
action find_reverse
entity Q3665646
relation P106
type Q502895
[ANSWERS] have farmer and basketball player as his/her means of employment
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q131512'], [{'concept': 'Q502895'}, 'P106', 'Q3665646']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P106 resource:Q131512 . ?f property:P106 resource:Q3665646 }
James David Cain Will Allen
James David Cain and Will Allen have farmer and basketball player as his/her means of employment
James David Cain Will Allen
action filter_type
action intersection
action find_reverse
entity farmer
relation occupation
action find_reverse
entity basketball player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'farmer'], [{'concept': 'common name'}, 'occupation', 'basketball player']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:occupation resource:farmer . ?f property:occupation resource:basketball_player }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2064578 Q15880594
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Paul Thomas or Pavel Florián ?
OR((Q15880594,P27,c(Q15617994)), (Q2064578,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15880594
relation P27
action find
entity Q2064578
relation P27
type Q15617994
{'OR': [['Q15880594', 'P27', {'concept': 'Q15617994'}], ['Q2064578', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { { resource:Q2064578 property:P27 ?q } UNION { resource:Q15880594 property:P27 ?q } } }
Pavel Florián Paul Thomas
action filter_type
action union
action find
entity Paul Thomas
relation country of citizenship
action find
entity Pavel Florián
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Paul Thomas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pavel Florián', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pavel_Florián property:country_of_citizenship ?q } UNION { resource:Paul_Thomas property:country_of_citizenship ?q } } }
[]
designation for an administrative territorial entity
Q213 Q31
SYSTEM
Czech Republic, Belgium
Q213 Q31
OR((Q15880594,P27,c(Q15617994)), (Q2064578,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15880594
relation P27
action find
entity Q2064578
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Paul Thomas or Pavel Florián
{'OR': [['Q15880594', 'P27', {'concept': 'Q15617994'}], ['Q2064578', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { { resource:Q2064578 property:P27 ?q } UNION { resource:Q15880594 property:P27 ?q } } }
Czech Republic Belgium
Czech Republic and Belgium are the countries of citizenship of Paul Thomas or Pavel Florián
Czech Republic Belgium
action filter_type
action union
action find
entity Paul Thomas
relation country of citizenship
action find
entity Pavel Florián
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Paul Thomas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pavel Florián', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pavel_Florián property:country_of_citizenship ?q } UNION { resource:Paul_Thomas property:country_of_citizenship ?q } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q347
P530
Q15617994
USER
Do Liechtenstein have diplomatic relations with those ones ?
(Q347,P530,Q213) (Q347,P530,Q31)
action is_in
entity prev_answer
action find
entity Q347
relation P530
['Q347', 'P530', 'Q213'] ['Q347', 'P530', 'Q31']
ASK WHERE { resource:Q347 property:P530 ?f . VALUES ( ?f ) { ( resource:Q213 ) ( resource:Q31 ) } }
Liechtenstein
action is_in
entity prev_answer
action find
entity Liechtenstein
relation diplomatic relation
['Liechtenstein', 'diplomatic relation', 'Czech Republic'] ['Liechtenstein', 'diplomatic relation', 'Belgium']
ASK WHERE { resource:Liechtenstein property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Czech_Republic ) ( resource:Belgium ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q347,P530,Q213) (Q347,P530,Q31)
action is_in
entity prev_answer
action find
entity Q347
relation P530
[ANSWER]
['Q347', 'P530', 'Q213'] ['Q347', 'P530', 'Q31']
ASK WHERE { resource:Q347 property:P530 ?f . VALUES ( ?f ) { ( resource:Q213 ) ( resource:Q31 ) } }
Yes
action is_in
entity prev_answer
action find
entity Liechtenstein
relation diplomatic relation
['Liechtenstein', 'diplomatic relation', 'Czech Republic'] ['Liechtenstein', 'diplomatic relation', 'Belgium']
ASK WHERE { resource:Liechtenstein property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Czech_Republic ) ( resource:Belgium ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q31 Q183 Q1452663
P47
Q1048835
USER
Is Belgium next to the border of Germany and Monterrei ?
(Q31,P47,Q183) (Q31,P47,Q1452663)
action is_in
entity Q31
action intersection
action find_reverse
entity Q183
relation P47
action find_reverse
entity Q1452663
relation P47
['Q31', 'P47', 'Q183'] ['Q31', 'P47', 'Q1452663']
ASK WHERE { resource:Q31 property:P47 resource:Q183 . resource:Q31 property:P47 resource:Q1452663 }
Belgium Germany Monterrei
action is_in
entity Belgium
action intersection
action find_reverse
entity Germany
relation shares border with
action find_reverse
entity Monterrei
relation shares border with
['Belgium', 'shares border with', 'Germany'] ['Belgium', 'shares border with', 'Monterrei']
ASK WHERE { resource:Belgium property:shares_border_with resource:Germany . resource:Belgium property:shares_border_with resource:Monterrei }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q31,P47,Q183) (Q31,P47,Q1452663)
action is_in
entity Q31
action intersection
action find_reverse
entity Q183
relation P47
action find_reverse
entity Q1452663
relation P47
[ANSWER]
['Q31', 'P47', 'Q183'] ['Q31', 'P47', 'Q1452663']
ASK WHERE { resource:Q31 property:P47 resource:Q183 . resource:Q31 property:P47 resource:Q1452663 }
YES and NO respectively
action is_in
entity Belgium
action intersection
action find_reverse
entity Germany
relation shares border with
action find_reverse
entity Monterrei
relation shares border with
['Belgium', 'shares border with', 'Germany'] ['Belgium', 'shares border with', 'Monterrei']
ASK WHERE { resource:Belgium property:shares_border_with resource:Germany . resource:Belgium property:shares_border_with resource:Monterrei }
[]