Simple Question (Direct)
Simple Question
Q855085
P27
Q15617994
USER
Which administrative territory is the native country of Sándor Bökönyi ?
(Q855085,P27,c(Q15617994))
action filter_type
action find
entity Q855085
relation P27
type Q15617994
['Q855085', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q855085 property:P27 ?n }
Sándor Bökönyi
action filter_type
action find
entity Sándor Bökönyi
relation country of citizenship
type designation for an administrative territorial entity
['Sándor Bökönyi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sándor_Bökönyi property:country_of_citizenship ?n }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q855085,P27,c(Q15617994))
action filter_type
action find
entity Q855085
relation P27
type Q15617994
In [ANSWER] is the native country of Sándor Bökönyi
['Q855085', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q855085 property:P27 ?n }
Hungary
In Hungary is the native country of Sándor Bökönyi
Hungary
action filter_type
action find
entity Sándor Bökönyi
relation country of citizenship
type designation for an administrative territorial entity
['Sándor Bökönyi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Sándor_Bökönyi property:country_of_citizenship ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q28
P710
Q930933
USER
What event did that administrative territory particiate in ?
(c(Q930933),P710,Q28)
action filter_type
action find_reverse
entity Q28
relation P710
type Q930933
[{'concept': 'Q930933'}, 'P710', 'Q28']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q930933 . ?b property:P710 resource:Q28 }
Hungary
action filter_type
action find_reverse
entity Hungary
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Hungary']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:relationship . ?b property:participant resource:Hungary }
[]
relationship
Q4793356
SYSTEM
Armenia–Hungary relations
Q4793356
(c(Q930933),P710,Q28)
action filter_type
action find_reverse
entity Q28
relation P710
type Q930933
That administrative territory particiated in [ANSWER]
[{'concept': 'Q930933'}, 'P710', 'Q28']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q930933 . ?b property:P710 resource:Q28 }
Armenia–Hungary relations
That administrative territory particiated in Armenia–Hungary relations
Armenia–Hungary relations
action filter_type
action find_reverse
entity Hungary
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Hungary']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:relationship . ?b property:participant resource:Hungary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28
P138
Q2472587
USER
Which people is Hungary named after ?
(Q28,P138,c(Q2472587))
action filter_type
action find
entity Q28
relation P138
type Q2472587
['Q28', 'P138', {'concept': 'Q2472587'}]
SELECT DISTINCT ?b WHERE { resource:Q28 property:P138 ?b . ?b rdf:type ontology:Q2472587 }
Hungary
action filter_type
action find
entity Hungary
relation named after
type people
['Hungary', 'named after', {'concept': 'people'}]
SELECT DISTINCT ?b WHERE { resource:Hungary property:named_after ?b . ?b rdf:type ontology:people }
[]
people
Q133032
SYSTEM
Hungarian people
Q133032
(Q28,P138,c(Q2472587))
action filter_type
action find
entity Q28
relation P138
type Q2472587
Hungary is named for [ANSWER]
['Q28', 'P138', {'concept': 'Q2472587'}]
SELECT DISTINCT ?b WHERE { resource:Q28 property:P138 ?b . ?b rdf:type ontology:Q2472587 }
Hungarian people
Hungary is named for Hungarian people
Hungarian people
action filter_type
action find
entity Hungary
relation named after
type people
['Hungary', 'named after', {'concept': 'people'}]
SELECT DISTINCT ?b WHERE { resource:Hungary property:named_after ?b . ?b rdf:type ontology:people }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q28
Q41710
USER
And which ethnic group?
(Q28,P138,c(Q41710))
action filter_type
action find
entity Q28
relation P138
type Q41710
['Q28', 'P138', {'concept': 'Q41710'}]
SELECT DISTINCT ?f WHERE { resource:Q28 property:P138 ?f . ?f rdf:type ontology:Q41710 }
Hungary
action filter_type
action find
entity Hungary
relation named after
type ethnic group
['Hungary', 'named after', {'concept': 'ethnic group'}]
SELECT DISTINCT ?f WHERE { resource:Hungary property:named_after ?f . ?f rdf:type ontology:ethnic_group }
[]
ethnic group
Q762453
SYSTEM
Onogurs
Q762453
(Q28,P138,c(Q41710))
action filter_type
action find
entity Q28
relation P138
type Q41710
[ANSWER]
['Q28', 'P138', {'concept': 'Q41710'}]
SELECT DISTINCT ?f WHERE { resource:Q28 property:P138 ?f . ?f rdf:type ontology:Q41710 }
Onogurs
Onogurs
action filter_type
action find
entity Hungary
relation named after
type ethnic group
['Hungary', 'named after', {'concept': 'ethnic group'}]
SELECT DISTINCT ?f WHERE { resource:Hungary property:named_after ?f . ?f rdf:type ontology:ethnic_group }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q28 Q819819
P88
Q811430
USER
How many constructions were approved by Hungary or Bergisch-Märkische Railway Company ?
(c(Q811430),P88,Q28) (c(Q811430),P88,Q819819)
action count
action union
action filter_type
action find_reverse
entity Q28
relation P88
type Q811430
action filter_type
action find_reverse
entity Q819819
relation P88
type Q811430
[{'concept': 'Q811430'}, 'P88', 'Q28'] [{'concept': 'Q811430'}, 'P88', 'Q819819']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:P88 resource:Q28 . ?v rdf:type ontology:Q811430 } UNION { ?v property:P88 resource:Q819819 . ?v rdf:type ontology:Q811430 } }
Hungary Bergisch-Märkische Railway Company
action count
action union
action filter_type
action find_reverse
entity Hungary
relation commissioned by
type construction
action filter_type
action find_reverse
entity Bergisch-Märkische Railway Company
relation commissioned by
type construction
[{'concept': 'construction'}, 'commissioned by', 'Hungary'] [{'concept': 'construction'}, 'commissioned by', 'Bergisch-Märkische Railway Company']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:commissioned_by resource:Hungary . ?v rdf:type ontology:construction } UNION { ?v property:commissioned_by resource:Bergisch-Märkische_Railway_Company . ?v rdf:type ontology:construction } }
[]
construction
SYSTEM
2
Q20730345 Q1229638
(c(Q811430),P88,Q28) (c(Q811430),P88,Q819819)
action count
action union
action filter_type
action find_reverse
entity Q28
relation P88
type Q811430
action filter_type
action find_reverse
entity Q819819
relation P88
type Q811430
[ANSWER]
[{'concept': 'Q811430'}, 'P88', 'Q28'] [{'concept': 'Q811430'}, 'P88', 'Q819819']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:P88 resource:Q28 . ?v rdf:type ontology:Q811430 } UNION { ?v property:P88 resource:Q819819 . ?v rdf:type ontology:Q811430 } }
Hungary–Serbia barrier Gemmenich Tunnel
2
action count
action union
action filter_type
action find_reverse
entity Hungary
relation commissioned by
type construction
action filter_type
action find_reverse
entity Bergisch-Märkische Railway Company
relation commissioned by
type construction
[{'concept': 'construction'}, 'commissioned by', 'Hungary'] [{'concept': 'construction'}, 'commissioned by', 'Bergisch-Märkische Railway Company']
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { ?v property:commissioned_by resource:Hungary . ?v rdf:type ontology:construction } UNION { ?v property:commissioned_by resource:Bergisch-Märkische_Railway_Company . ?v rdf:type ontology:construction } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28
P35
Q502895
USER
Which person has the highest formal authority in Hungary ?
(Q28,P35,c(Q502895))
action filter_type
action find
entity Q28
relation P35
type Q502895
['Q28', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q28 property:P35 ?l . ?l rdf:type ontology:Q502895 }
Hungary
action filter_type
action find
entity Hungary
relation head of state
type common name
['Hungary', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Hungary property:head_of_state ?l . ?l rdf:type ontology:common_name }
[]
common name
Q57467
SYSTEM
János Áder
Q57467
(Q28,P35,c(Q502895))
action filter_type
action find
entity Q28
relation P35
type Q502895
[ANSWER] has the highest formal authority in Hungary
['Q28', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q28 property:P35 ?l . ?l rdf:type ontology:Q502895 }
János Áder
János Áder has the highest formal authority in Hungary
János Áder
action filter_type
action find
entity Hungary
relation head of state
type common name
['Hungary', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Hungary property:head_of_state ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57467
P19
Q515
USER
Which city was that person born in ?
(Q57467,P19,c(Q515))
action filter_type
action find
entity Q57467
relation P19
type Q515
['Q57467', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q515 . resource:Q57467 property:P19 ?f }
János Áder
action filter_type
action find
entity János Áder
relation place of birth
type city
['János Áder', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:city . resource:János_Áder property:place_of_birth ?f }
[]
city
Q843001
SYSTEM
Csorna
Q843001
(Q57467,P19,c(Q515))
action filter_type
action find
entity Q57467
relation P19
type Q515
That person was born in [ANSWER]
['Q57467', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q515 . resource:Q57467 property:P19 ?f }
Csorna
That person was born in Csorna
Csorna
action filter_type
action find
entity János Áder
relation place of birth
type city
['János Áder', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:city . resource:János_Áder property:place_of_birth ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q843001 Q28 Q269617
P17
Q15617994
USER
Is that city situated in Hungary and Ahorntal ?
(Q843001,P17,Q28) (Q843001,P17,Q269617)
action is_in
entity Q843001
action intersection
action find_reverse
entity Q28
relation P17
action find_reverse
entity Q269617
relation P17
['Q843001', 'P17', 'Q28'] ['Q843001', 'P17', 'Q269617']
ASK WHERE { resource:Q843001 property:P17 resource:Q269617 . resource:Q843001 property:P17 resource:Q28 }
Csorna Hungary Ahorntal
action is_in
entity Csorna
action intersection
action find_reverse
entity Hungary
relation country
action find_reverse
entity Ahorntal
relation country
['Csorna', 'country', 'Hungary'] ['Csorna', 'country', 'Ahorntal']
ASK WHERE { resource:Csorna property:country resource:Ahorntal . resource:Csorna property:country resource:Hungary }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q843001,P17,Q28) (Q843001,P17,Q269617)
action is_in
entity Q843001
action intersection
action find_reverse
entity Q28
relation P17
action find_reverse
entity Q269617
relation P17
[ANSWER]
['Q843001', 'P17', 'Q28'] ['Q843001', 'P17', 'Q269617']
ASK WHERE { resource:Q843001 property:P17 resource:Q269617 . resource:Q843001 property:P17 resource:Q28 }
YES and NO respectively
action is_in
entity Csorna
action intersection
action find_reverse
entity Hungary
relation country
action find_reverse
entity Ahorntal
relation country
['Csorna', 'country', 'Hungary'] ['Csorna', 'country', 'Ahorntal']
ASK WHERE { resource:Csorna property:country resource:Ahorntal . resource:Csorna property:country resource:Hungary }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q843001
P190
Q13220204
USER
Which administrative country subdivision is the sister city of that one ?
action filter_type
action find
entity Q843001
relation P190
type Q13220204
SELECT DISTINCT ?r WHERE { resource:Q843001 property:P190 ?r . ?r rdf:type ontology:Q13220204 }
Csorna
action filter_type
action find
entity Csorna
relation sister city
type second-level administrative country subdivision
SELECT DISTINCT ?r WHERE { resource:Csorna property:sister_city ?r . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q932155
SYSTEM
Heumen
Q932155
action filter_type
action find
entity Q843001
relation P190
type Q13220204
[ANSWER] is the sister city of that one
SELECT DISTINCT ?r WHERE { resource:Q843001 property:P190 ?r . ?r rdf:type ontology:Q13220204 }
Heumen
Heumen is the sister city of that one
Heumen
action filter_type
action find
entity Csorna
relation sister city
type second-level administrative country subdivision
SELECT DISTINCT ?r WHERE { resource:Csorna property:sister_city ?r . ?r rdf:type ontology:second-level_administrative_country_subdivision }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q932155 Q1198087 Q55
P17
Q15617994
USER
Is that administrative country subdivision present in Hekou District and Netherlands ?
(Q932155,P17,Q1198087) (Q932155,P17,Q55)
action is_in
entity Q932155
action intersection
action find_reverse
entity Q1198087
relation P17
action find_reverse
entity Q55
relation P17
['Q932155', 'P17', 'Q1198087'] ['Q932155', 'P17', 'Q55']
ASK WHERE { resource:Q932155 property:P17 resource:Q55 . resource:Q932155 property:P17 resource:Q1198087 }
Heumen Hekou District Netherlands
action is_in
entity Heumen
action intersection
action find_reverse
entity Hekou District
relation country
action find_reverse
entity Netherlands
relation country
['Heumen', 'country', 'Hekou District'] ['Heumen', 'country', 'Netherlands']
ASK WHERE { resource:Heumen property:country resource:Netherlands . resource:Heumen property:country resource:Hekou_District }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q932155,P17,Q1198087) (Q932155,P17,Q55)
action is_in
entity Q932155
action intersection
action find_reverse
entity Q1198087
relation P17
action find_reverse
entity Q55
relation P17
[ANSWER]
['Q932155', 'P17', 'Q1198087'] ['Q932155', 'P17', 'Q55']
ASK WHERE { resource:Q932155 property:P17 resource:Q55 . resource:Q932155 property:P17 resource:Q1198087 }
NO and YES respectively
action is_in
entity Heumen
action intersection
action find_reverse
entity Hekou District
relation country
action find_reverse
entity Netherlands
relation country
['Heumen', 'country', 'Hekou District'] ['Heumen', 'country', 'Netherlands']
ASK WHERE { resource:Heumen property:country resource:Netherlands . resource:Heumen property:country resource:Hekou_District }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q271669 Q13220204
USER
Which landforms are namesakes of approximately 1 administrative country subdivision ?
(c(Q13220204),P138,c(Q271669))
action approx
action find_reverse_tuple_counts
relation P138
type Q271669
type Q13220204
value 1
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q271669'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P138 ?x . ?j rdf:type ontology:Q13220204 . ?x rdf:type ontology:Q271669 } GROUP BY ?x } . FILTER ( ?f = 1 ) }
action approx
action find_reverse_tuple_counts
relation named after
type landform
type second-level administrative country subdivision
value 1
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'landform'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:named_after ?x . ?j rdf:type ontology:second-level_administrative_country_subdivision . ?x rdf:type ontology:landform } GROUP BY ?x } . FILTER ( ?f = 1 ) }
[]
landform second-level administrative country subdivision
Q270375 Q1069922
SYSTEM
Ko Samui, Ko Pha Ngan
Q270375 Q1069922
(c(Q13220204),P138,c(Q271669))
action approx
action find_reverse_tuple_counts
relation P138
type Q271669
type Q13220204
value 1
[ANSWERS] are namesakes of approximately 1 administrative country subdivision
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q271669'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P138 ?x . ?j rdf:type ontology:Q13220204 . ?x rdf:type ontology:Q271669 } GROUP BY ?x } . FILTER ( ?f = 1 ) }
Ko Samui Ko Pha Ngan
Ko Samui and Ko Pha Ngan are namesakes of approximately 1 administrative country subdivision
Ko Samui Ko Pha Ngan
action approx
action find_reverse_tuple_counts
relation named after
type landform
type second-level administrative country subdivision
value 1
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'landform'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:named_after ?x . ?j rdf:type ontology:second-level_administrative_country_subdivision . ?x rdf:type ontology:landform } GROUP BY ?x } . FILTER ( ?f = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4833298 Q1198087
P17
Q15617994
USER
Which administrative territories are Hekou District or Aïn Tédelès District located in ?
OR((Q1198087,P17,c(Q15617994)), (Q4833298,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1198087
relation P17
action find
entity Q4833298
relation P17
type Q15617994
{'OR': [['Q1198087', 'P17', {'concept': 'Q15617994'}], ['Q4833298', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:Q1198087 ) ( resource:Q4833298 ) } . ?h property:P17 ?t } . ?t rdf:type ontology:Q15617994 }
Aïn Tédelès District Hekou District
action filter_type
action union
action find
entity Hekou District
relation country
action find
entity Aïn Tédelès District
relation country
type designation for an administrative territorial entity
{'OR': [['Hekou District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Aïn Tédelès District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:Hekou_District ) ( resource:Aïn_Tédelès_District ) } . ?h property:country ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262 Q148
SYSTEM
Algeria, People's Republic of China
Q262 Q148
OR((Q1198087,P17,c(Q15617994)), (Q4833298,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1198087
relation P17
action find
entity Q4833298
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q1198087', 'P17', {'concept': 'Q15617994'}], ['Q4833298', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:Q1198087 ) ( resource:Q4833298 ) } . ?h property:P17 ?t } . ?t rdf:type ontology:Q15617994 }
Algeria People's Republic of China
Which administrative territories are Hekou District or Aïn Tédelès District located in
Algeria People's Republic of China
action filter_type
action union
action find
entity Hekou District
relation country
action find
entity Aïn Tédelès District
relation country
type designation for an administrative territorial entity
{'OR': [['Hekou District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Aïn Tédelès District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:Hekou_District ) ( resource:Aïn_Tédelès_District ) } . ?h property:country ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21045
P530
Q15617994
USER
Do Dunsum have diplomatic associations with those ones ?
(Q21045,P530,Q262) (Q21045,P530,Q148)
action is_in
entity prev_answer
action find
entity Q21045
relation P530
['Q21045', 'P530', 'Q262'] ['Q21045', 'P530', 'Q148']
ASK WHERE { resource:Q21045 property:P530 ?j . VALUES ( ?j ) { ( resource:Q262 ) ( resource:Q148 ) } }
Dunsum
action is_in
entity prev_answer
action find
entity Dunsum
relation diplomatic relation
['Dunsum', 'diplomatic relation', 'Algeria'] ['Dunsum', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Dunsum property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Algeria ) ( resource:People's_Republic_of_China ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q21045,P530,Q262) (Q21045,P530,Q148)
action is_in
entity prev_answer
action find
entity Q21045
relation P530
[ANSWER]
['Q21045', 'P530', 'Q262'] ['Q21045', 'P530', 'Q148']
ASK WHERE { resource:Q21045 property:P530 ?j . VALUES ( ?j ) { ( resource:Q262 ) ( resource:Q148 ) } }
No
action is_in
entity prev_answer
action find
entity Dunsum
relation diplomatic relation
['Dunsum', 'diplomatic relation', 'Algeria'] ['Dunsum', 'diplomatic relation', "People's Republic of China"]
ASK WHERE { resource:Dunsum property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Algeria ) ( resource:People's_Republic_of_China ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q55 Q932155
P47 P17
Q56061
USER
Which administrative territories have an adjacent border with Heumen and are located in Netherlands ?
AND((c(Q56061),P47,Q932155), (c(Q56061),P17,Q55))
action filter_type
action intersection
action find_reverse
entity Q932155
relation P47
action find_reverse
entity Q55
relation P17
type Q56061
{'AND': [[{'concept': 'Q56061'}, 'P47', 'Q932155'], [{'concept': 'Q56061'}, 'P17', 'Q55']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . ?p property:P17 resource:Q55 . ?p property:P47 resource:Q932155 }
Netherlands Heumen
action filter_type
action intersection
action find_reverse
entity Heumen
relation shares border with
action find_reverse
entity Netherlands
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'shares border with', 'Heumen'], [{'concept': 'administrative territorial entity'}, 'country', 'Netherlands']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . ?p property:country resource:Netherlands . ?p property:shares_border_with resource:Heumen }
[]
administrative territorial entity
Q47887
SYSTEM
Nijmegen
Q47887
AND((c(Q56061),P47,Q932155), (c(Q56061),P17,Q55))
action filter_type
action intersection
action find_reverse
entity Q932155
relation P47
action find_reverse
entity Q55
relation P17
type Q56061
[ANSWER] have an adjacent border with Heumen and are located in Netherlands
{'AND': [[{'concept': 'Q56061'}, 'P47', 'Q932155'], [{'concept': 'Q56061'}, 'P17', 'Q55']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . ?p property:P17 resource:Q55 . ?p property:P47 resource:Q932155 }
Nijmegen
Nijmegen have an adjacent border with Heumen and are located in Netherlands
Nijmegen
action filter_type
action intersection
action find_reverse
entity Heumen
relation shares border with
action find_reverse
entity Netherlands
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'shares border with', 'Heumen'], [{'concept': 'administrative territorial entity'}, 'country', 'Netherlands']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . ?p property:country resource:Netherlands . ?p property:shares_border_with resource:Heumen }
[]