Simple Question (Direct)
Simple Question
Q2640217
P463
Q48204
USER
Which voluntary association was Albéric Rolin a member of ?
(Q2640217,P463,c(Q48204))
action filter_type
action find
entity Q2640217
relation P463
type Q48204
['Q2640217', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?o WHERE { resource:Q2640217 property:P463 ?o . ?o rdf:type ontology:Q48204 }
Albéric Rolin
action filter_type
action find
entity Albéric Rolin
relation member of
type voluntary association
['Albéric Rolin', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?o WHERE { resource:Albéric_Rolin property:member_of ?o . ?o rdf:type ontology:voluntary_association }
[]
voluntary association
Q115095
SYSTEM
Institut de Droit International
Q115095
(Q2640217,P463,c(Q48204))
action filter_type
action find
entity Q2640217
relation P463
type Q48204
[ANSWER] was Albéric Rolin a member of
['Q2640217', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?o WHERE { resource:Q2640217 property:P463 ?o . ?o rdf:type ontology:Q48204 }
Institut de Droit International
Institut de Droit International was Albéric Rolin a member of
Institut de Droit International
action filter_type
action find
entity Albéric Rolin
relation member of
type voluntary association
['Albéric Rolin', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?o WHERE { resource:Albéric_Rolin property:member_of ?o . ?o rdf:type ontology:voluntary_association }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16863404 Q2640217
P20
Q515
USER
Which cities did Albéric Rolin or Saray Mulk Khanum die ?
OR((Q2640217,P20,c(Q515)), (Q16863404,P20,c(Q515)))
action filter_type
action union
action find
entity Q2640217
relation P20
action find
entity Q16863404
relation P20
type Q515
{'OR': [['Q2640217', 'P20', {'concept': 'Q515'}], ['Q16863404', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?l ) { ( resource:Q2640217 ) ( resource:Q16863404 ) } . ?l property:P20 ?a } . ?a rdf:type ontology:Q515 }
Saray Mulk Khanum Albéric Rolin
action filter_type
action union
action find
entity Albéric Rolin
relation place of death
action find
entity Saray Mulk Khanum
relation place of death
type city
{'OR': [['Albéric Rolin', 'place of death', {'concept': 'city'}], ['Saray Mulk Khanum', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?l ) { ( resource:Albéric_Rolin ) ( resource:Saray_Mulk_Khanum ) } . ?l property:place_of_death ?a } . ?a rdf:type ontology:city }
[]
city
Q5753 Q9005
SYSTEM
Samarkand, Brussels
Q5753 Q9005
OR((Q2640217,P20,c(Q515)), (Q16863404,P20,c(Q515)))
action filter_type
action union
action find
entity Q2640217
relation P20
action find
entity Q16863404
relation P20
type Q515
Albéric Rolin or Saray Mulk Khanum died in [ANSWERS]
{'OR': [['Q2640217', 'P20', {'concept': 'Q515'}], ['Q16863404', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?l ) { ( resource:Q2640217 ) ( resource:Q16863404 ) } . ?l property:P20 ?a } . ?a rdf:type ontology:Q515 }
Samarkand Brussels
Albéric Rolin or Saray Mulk Khanum died in Samarkand and Brussels
Samarkand Brussels
action filter_type
action union
action find
entity Albéric Rolin
relation place of death
action find
entity Saray Mulk Khanum
relation place of death
type city
{'OR': [['Albéric Rolin', 'place of death', {'concept': 'city'}], ['Saray Mulk Khanum', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?l ) { ( resource:Albéric_Rolin ) ( resource:Saray_Mulk_Khanum ) } . ?l property:place_of_death ?a } . ?a rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q515 Q56061 Q1048835
USER
Which cities are sister towns of max number of administrative territories and political territories ?
(c(Q56061)|c(Q1048835),P190,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
[[{'concept': 'Q56061'}, {'concept': 'Q1048835'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:P190 ?j . ?n rdf:type ontology:Q56061 . ?j rdf:type ontology:Q515 } UNION { ?n property:P190 ?j . ?j rdf:type ontology:Q515 . ?n rdf:type ontology:Q1048835 } } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } } GROUP BY ?i } . FILTER ( ?b = ?d ) }
action argmax
action union
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
[[{'concept': 'administrative territorial entity'}, {'concept': 'political territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:sister_city ?j . ?n rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:city } UNION { ?n property:sister_city ?j . ?j rdf:type ontology:city . ?n rdf:type ontology:political_territorial_entity } } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?i } . FILTER ( ?b = ?d ) }
[]
city administrative territorial entity political territorial entity
Q1486
SYSTEM
Buenos Aires
Q1486
(c(Q56061)|c(Q1048835),P190,c(Q515))
action argmax
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
[ANSWER] is sister towns of max number of administrative territories and political territories
[[{'concept': 'Q56061'}, {'concept': 'Q1048835'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:P190 ?j . ?n rdf:type ontology:Q56061 . ?j rdf:type ontology:Q515 } UNION { ?n property:P190 ?j . ?j rdf:type ontology:Q515 . ?n rdf:type ontology:Q1048835 } } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } } GROUP BY ?i } . FILTER ( ?b = ?d ) }
Buenos Aires
Buenos Aires is sister towns of max number of administrative territories and political territories
Buenos Aires
action argmax
action union
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
[[{'concept': 'administrative territorial entity'}, {'concept': 'political territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?d ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:sister_city ?j . ?n rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:city } UNION { ?n property:sister_city ?j . ?j rdf:type ontology:city . ?n rdf:type ontology:political_territorial_entity } } GROUP BY ?j } } . { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?i } . FILTER ( ?b = ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q23774055 Q2640217
P27
Q15617994
USER
Which administrative territories are the native countriesof Albéric Rolin or Pierre Lottin ?
OR((Q2640217,P27,c(Q15617994)), (Q23774055,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2640217
relation P27
action find
entity Q23774055
relation P27
type Q15617994
{'OR': [['Q2640217', 'P27', {'concept': 'Q15617994'}], ['Q23774055', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q2640217 property:P27 ?l } UNION { resource:Q23774055 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Pierre Lottin Albéric Rolin
action filter_type
action union
action find
entity Albéric Rolin
relation country of citizenship
action find
entity Pierre Lottin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Albéric Rolin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Lottin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Albéric_Rolin property:country_of_citizenship ?l } UNION { resource:Pierre_Lottin property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q31
SYSTEM
France, Belgium
Q142 Q31
OR((Q2640217,P27,c(Q15617994)), (Q23774055,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2640217
relation P27
action find
entity Q23774055
relation P27
type Q15617994
[ANSWERS] are the native countriesof Albéric Rolin or Pierre Lottin
{'OR': [['Q2640217', 'P27', {'concept': 'Q15617994'}], ['Q23774055', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q2640217 property:P27 ?l } UNION { resource:Q23774055 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
France Belgium
France and Belgium are the native countriesof Albéric Rolin or Pierre Lottin
France Belgium
action filter_type
action union
action find
entity Albéric Rolin
relation country of citizenship
action find
entity Pierre Lottin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Albéric Rolin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Lottin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Albéric_Rolin property:country_of_citizenship ?l } UNION { resource:Pierre_Lottin property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q572437
P495
Q838948
USER
Did Don't Say a Word originate in those administrative territories ?
(Q572437,P495,Q142) (Q572437,P495,Q31)
action is_in
entity prev_answer
action find
entity Q572437
relation P495
['Q572437', 'P495', 'Q142'] ['Q572437', 'P495', 'Q31']
ASK WHERE { resource:Q572437 property:P495 ?j . VALUES ( ?j ) { ( resource:Q142 ) ( resource:Q31 ) } }
Don't Say a Word
action is_in
entity prev_answer
action find
entity Don't Say a Word
relation country of origin
["Don't Say a Word", 'country of origin', 'France'] ["Don't Say a Word", 'country of origin', 'Belgium']
ASK WHERE { resource:Don't_Say_a_Word property:country_of_origin ?j . VALUES ( ?j ) { ( resource:France ) ( resource:Belgium ) } }
[]
work of art
SYSTEM
NO
(Q572437,P495,Q142) (Q572437,P495,Q31)
action is_in
entity prev_answer
action find
entity Q572437
relation P495
[ANSWER]
['Q572437', 'P495', 'Q142'] ['Q572437', 'P495', 'Q31']
ASK WHERE { resource:Q572437 property:P495 ?j . VALUES ( ?j ) { ( resource:Q142 ) ( resource:Q31 ) } }
No
action is_in
entity prev_answer
action find
entity Don't Say a Word
relation country of origin
["Don't Say a Word", 'country of origin', 'France'] ["Don't Say a Word", 'country of origin', 'Belgium']
ASK WHERE { resource:Don't_Say_a_Word property:country_of_origin ?j . VALUES ( ?j ) { ( resource:France ) ( resource:Belgium ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5753 Q548502 Q5779
P190
Q515
USER
Is Samarkand partner town of Anina and Banda Aceh ?
(Q5753,P190,Q548502) (Q5753,P190,Q5779)
action is_in
entity Q5753
action intersection
action find_reverse
entity Q548502
relation P190
action find_reverse
entity Q5779
relation P190
['Q5753', 'P190', 'Q548502'] ['Q5753', 'P190', 'Q5779']
ASK WHERE { resource:Q5753 property:P190 resource:Q548502 . resource:Q5753 property:P190 resource:Q5779 }
Samarkand Anina Banda Aceh
action is_in
entity Samarkand
action intersection
action find_reverse
entity Anina
relation sister city
action find_reverse
entity Banda Aceh
relation sister city
['Samarkand', 'sister city', 'Anina'] ['Samarkand', 'sister city', 'Banda Aceh']
ASK WHERE { resource:Samarkand property:sister_city resource:Anina . resource:Samarkand property:sister_city resource:Banda_Aceh }
[]
city
SYSTEM
NO and YES respectively
(Q5753,P190,Q548502) (Q5753,P190,Q5779)
action is_in
entity Q5753
action intersection
action find_reverse
entity Q548502
relation P190
action find_reverse
entity Q5779
relation P190
[ANSWER]
['Q5753', 'P190', 'Q548502'] ['Q5753', 'P190', 'Q5779']
ASK WHERE { resource:Q5753 property:P190 resource:Q548502 . resource:Q5753 property:P190 resource:Q5779 }
NO and YES respectively
action is_in
entity Samarkand
action intersection
action find_reverse
entity Anina
relation sister city
action find_reverse
entity Banda Aceh
relation sister city
['Samarkand', 'sister city', 'Anina'] ['Samarkand', 'sister city', 'Banda Aceh']
ASK WHERE { resource:Samarkand property:sister_city resource:Anina . resource:Samarkand property:sister_city resource:Banda_Aceh }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4021581 Q5753
P19 P190
Q56061
USER
Which administrative territories are partner towns of Samarkand or were Rob Hornstra born at ?
OR((Q5753,P190,c(Q56061)), (Q4021581,P19,c(Q56061)))
action filter_type
action union
action find
entity Q5753
relation P190
action find
entity Q4021581
relation P19
type Q56061
{'OR': [['Q5753', 'P190', {'concept': 'Q56061'}], ['Q4021581', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q4021581 property:P19 ?z } UNION { resource:Q5753 property:P190 ?z } } . ?z rdf:type ontology:Q56061 }
Rob Hornstra Samarkand
action filter_type
action union
action find
entity Samarkand
relation sister city
action find
entity Rob Hornstra
relation place of birth
type administrative territorial entity
{'OR': [['Samarkand', 'sister city', {'concept': 'administrative territorial entity'}], ['Rob Hornstra', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Rob_Hornstra property:place_of_birth ?z } UNION { resource:Samarkand property:sister_city ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2044 Q182159 Q5582862 Q36036 Q5764 Q131350 Q9997 Q406 Q6487 Q373808
SYSTEM
Some of them are Florence, Balkh, Cusco, Lviv, Bukhara, Nishapur, Borne, Istanbul, Antalya, Khujand
Q373808 Q6487 Q5713 Q131350 Q406 Q5582862 Q182159 Q2044 Q9997 Q5764 Q36036
OR((Q5753,P190,c(Q56061)), (Q4021581,P19,c(Q56061)))
action filter_type
action union
action find
entity Q5753
relation P190
action find
entity Q4021581
relation P19
type Q56061
[ANSWERS] are partner towns of Samarkand or were Rob Hornstra born at
{'OR': [['Q5753', 'P190', {'concept': 'Q56061'}], ['Q4021581', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q4021581 property:P19 ?z } UNION { resource:Q5753 property:P190 ?z } } . ?z rdf:type ontology:Q56061 }
Khujand Antalya Mary Nishapur Istanbul Cusco Balkh Florence Borne Bukhara Lviv
Florence, Balkh, Cusco, Lviv, Bukhara, Nishapur, Borne, Istanbul, Antalya and Khujand are partner towns of Samarkand or were Rob Hornstra born at
Florence Balkh Cusco Lviv Bukhara Nishapur Borne Istanbul Antalya Khujand
action filter_type
action union
action find
entity Samarkand
relation sister city
action find
entity Rob Hornstra
relation place of birth
type administrative territorial entity
{'OR': [['Samarkand', 'sister city', {'concept': 'administrative territorial entity'}], ['Rob Hornstra', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Rob_Hornstra property:place_of_birth ?z } UNION { resource:Samarkand property:sister_city ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2044 Q182159 Q5582862 Q36036 Q5764 Q131350 Q9997 Q406 Q6487 Q373808
P17
Q15617994
USER
Which administrative territories are those administrative territories present in ?
(Q2044,P17,c(Q15617994)) (Q182159,P17,c(Q15617994)) (Q5582862,P17,c(Q15617994)) (Q36036,P17,c(Q15617994)) (Q5764,P17,c(Q15617994)) (Q131350,P17,c(Q15617994)) (Q9997,P17,c(Q15617994)) (Q406,P17,c(Q15617994)) (Q6487,P17,c(Q15617994)) (Q373808,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q2044', 'P17', {'concept': 'Q15617994'}] ['Q182159', 'P17', {'concept': 'Q15617994'}] ['Q5582862', 'P17', {'concept': 'Q15617994'}] ['Q36036', 'P17', {'concept': 'Q15617994'}] ['Q5764', 'P17', {'concept': 'Q15617994'}] ['Q131350', 'P17', {'concept': 'Q15617994'}] ['Q9997', 'P17', {'concept': 'Q15617994'}] ['Q406', 'P17', {'concept': 'Q15617994'}] ['Q6487', 'P17', {'concept': 'Q15617994'}] ['Q373808', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?u property:P17 ?p . ?p rdf:type ontology:Q15617994 . VALUES ( ?u ) { ( resource:Q373808 ) ( resource:Q6487 ) ( resource:Q5713 ) } }
Florence Balkh Cusco Lviv Bukhara Nishapur Borne Istanbul Antalya Khujand
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Florence', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Balkh', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cusco', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lviv', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bukhara', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Nishapur', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Borne', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Istanbul', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Antalya', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Khujand', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?u property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?u ) { ( resource:Khujand ) ( resource:Antalya ) ( resource:Mary ) } }
[]
designation for an administrative territorial entity
Q38 Q55 Q142
SYSTEM
Italy, Netherlands, France
Q142 Q38 Q154849 Q889 Q419 Q212 Q153136 Q36 Q239502 Q265 Q794 Q55 Q43 Q43 Q863
(Q2044,P17,c(Q15617994)) (Q182159,P17,c(Q15617994)) (Q5582862,P17,c(Q15617994)) (Q36036,P17,c(Q15617994)) (Q5764,P17,c(Q15617994)) (Q131350,P17,c(Q15617994)) (Q9997,P17,c(Q15617994)) (Q406,P17,c(Q15617994)) (Q6487,P17,c(Q15617994)) (Q373808,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those administrative territories are in [ANSWERS]
['Q2044', 'P17', {'concept': 'Q15617994'}] ['Q182159', 'P17', {'concept': 'Q15617994'}] ['Q5582862', 'P17', {'concept': 'Q15617994'}] ['Q36036', 'P17', {'concept': 'Q15617994'}] ['Q5764', 'P17', {'concept': 'Q15617994'}] ['Q131350', 'P17', {'concept': 'Q15617994'}] ['Q9997', 'P17', {'concept': 'Q15617994'}] ['Q406', 'P17', {'concept': 'Q15617994'}] ['Q6487', 'P17', {'concept': 'Q15617994'}] ['Q373808', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?u property:P17 ?p . ?p rdf:type ontology:Q15617994 . VALUES ( ?u ) { ( resource:Q373808 ) ( resource:Q6487 ) ( resource:Q5713 ) } }
France Italy Grand Duchy of Tuscany Afghanistan Peru Ukraine Habsburg Empire Poland Kingdom of Galicia–Volhynia Uzbekistan Iran Netherlands Turkey Turkey Tajikistan
Those administrative territories are in Italy, Netherlands and France
Italy Netherlands France
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Florence', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Balkh', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cusco', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lviv', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bukhara', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Nishapur', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Borne', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Istanbul', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Antalya', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Khujand', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?u property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?u ) { ( resource:Khujand ) ( resource:Antalya ) ( resource:Mary ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q142
P47
Q15617994
USER
Which administrative territories share border with that one ?
(c(Q15617994),P47,Q142)
action filter_type
action find
entity Q142
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q142']
SELECT DISTINCT ?j WHERE { resource:Q142 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
France
action filter_type
action find
entity France
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'France']
SELECT DISTINCT ?j WHERE { resource:France property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q55
SYSTEM
Did you mean Netherlands ?
Q38 Q55 Q142
(c(Q15617994),P47,Q38) (c(Q15617994),P47,Q55) (c(Q15617994),P47,Q142)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q38'] [{'concept': 'Q15617994'}, 'P47', 'Q55'] [{'concept': 'Q15617994'}, 'P47', 'Q142']
SELECT DISTINCT ?j WHERE { resource:Q142 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Italy Netherlands France
Did you mean Netherlands ?
Netherlands
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Italy'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Netherlands'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'France']
SELECT DISTINCT ?j WHERE { resource:France property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant France. Could you tell me the answer for that?
(c(Q15617994),P47,Q142)
Q142
[{'concept': 'Q15617994'}, 'P47', 'Q142']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'France']
[]
Q155 Q38 Q145
SYSTEM
Brazil, Italy, United Kingdom
Q717 Q145 Q155 Q730 Q29999 Q228 Q32 Q31 Q29 Q39 Q38
(c(Q15617994),P47,Q142)
action filter_type
action find
entity Q142
relation P47
type Q15617994
[ANSWERS] share border with that one
[{'concept': 'Q15617994'}, 'P47', 'Q142']
SELECT DISTINCT ?j WHERE { resource:Q142 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Venezuela United Kingdom Brazil Suriname Kingdom of the Netherlands Andorra Luxembourg Belgium Spain Switzerland Italy
Brazil, Italy and United Kingdom share border with that one
Brazil Italy United Kingdom
action filter_type
action find
entity France
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'France']
SELECT DISTINCT ?j WHERE { resource:France property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]