Simple Question (Direct)
Simple Question
Q16192
P17
Q15617994
USER
Which administrative territory does Ruffey-lès-Beaune belong to ?
(Q16192,P17,c(Q15617994))
action filter_type
action find
entity Q16192
relation P17
type Q15617994
['Q16192', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q16192 property:P17 ?k }
Ruffey-lès-Beaune
action filter_type
action find
entity Ruffey-lès-Beaune
relation country
type designation for an administrative territorial entity
['Ruffey-lès-Beaune', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ruffey-lès-Beaune property:country ?k }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q16192,P17,c(Q15617994))
action filter_type
action find
entity Q16192
relation P17
type Q15617994
Ruffey-lès-Beaune belongs de [ANSWER]
['Q16192', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q16192 property:P17 ?k }
France
Ruffey-lès-Beaune belongs de France
France
action filter_type
action find
entity Ruffey-lès-Beaune
relation country
type designation for an administrative territorial entity
['Ruffey-lès-Beaune', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ruffey-lès-Beaune property:country ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16192
P47
Q20667921
USER
Which french administrative divisions are bordered by Ruffey-lès-Beaune ?
(Q16192,P47,c(Q20667921))
action filter_type
action find
entity Q16192
relation P47
type Q20667921
['Q16192', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q16192 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Ruffey-lès-Beaune
action filter_type
action find
entity Ruffey-lès-Beaune
relation shares border with
type type of french administrative division
['Ruffey-lès-Beaune', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Ruffey-lès-Beaune property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q16121 Q16176 Q16190
SYSTEM
Beaune, Ladoix-Serrigny, Meursanges
Q16178 Q16121 Q16173 Q16176 Q16190 Q16639 Q16195
(Q16192,P47,c(Q20667921))
action filter_type
action find
entity Q16192
relation P47
type Q20667921
The [ANSWERS] are bordered by Ruffey-lès-Beaune
['Q16192', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?o WHERE { resource:Q16192 property:P47 ?o . ?o rdf:type ontology:Q20667921 }
Marigny-lès-Reullée Beaune Combertault Ladoix-Serrigny Meursanges Villy-le-Moutier Vignoles
The Beaune, Ladoix-Serrigny and Meursanges are bordered by Ruffey-lès-Beaune
Beaune Ladoix-Serrigny Meursanges
action filter_type
action find
entity Ruffey-lès-Beaune
relation shares border with
type type of french administrative division
['Ruffey-lès-Beaune', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?o WHERE { resource:Ruffey-lès-Beaune property:shares_border_with ?o . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16121
P36
Q13220204
USER
Which administrative country subdivision is Beaune the capital of ?
(c(Q13220204),P36,Q16121)
action filter_type
action find_reverse
entity Q16121
relation P36
type Q13220204
[{'concept': 'Q13220204'}, 'P36', 'Q16121']
SELECT DISTINCT ?v WHERE { ?v property:P36 resource:Q16121 . ?v rdf:type ontology:Q13220204 }
Beaune
action filter_type
action find_reverse
entity Beaune
relation capital
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Beaune']
SELECT DISTINCT ?v WHERE { ?v property:capital resource:Beaune . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q14812
SYSTEM
arrondissement of Beaune
Q14812
(c(Q13220204),P36,Q16121)
action filter_type
action find_reverse
entity Q16121
relation P36
type Q13220204
The [ANSWER] is Beaune the capital of
[{'concept': 'Q13220204'}, 'P36', 'Q16121']
SELECT DISTINCT ?v WHERE { ?v property:P36 resource:Q16121 . ?v rdf:type ontology:Q13220204 }
arrondissement of Beaune
The arrondissement of Beaune is Beaune the capital of
arrondissement of Beaune
action filter_type
action find_reverse
entity Beaune
relation capital
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Beaune']
SELECT DISTINCT ?v WHERE { ?v property:capital resource:Beaune . ?v rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16121
P6
Q502895
USER
Which person does Beaune serve as the head of government for ?
(Q16121,P6,c(Q502895))
action filter_type
action find
entity Q16121
relation P6
type Q502895
['Q16121', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q16121 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Beaune
action filter_type
action find
entity Beaune
relation head of government
type common name
['Beaune', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Beaune property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
common name
Q2830299
SYSTEM
Alain Suguenot
Q2830299
(Q16121,P6,c(Q502895))
action filter_type
action find
entity Q16121
relation P6
type Q502895
[ANSWER] Beaune serves as the head of government
['Q16121', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q16121 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Alain Suguenot
Alain Suguenot Beaune serves as the head of government
Alain Suguenot
action filter_type
action find
entity Beaune
relation head of government
type common name
['Beaune', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Beaune property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2830299 Q918925 Q622503
P19
Q20667921
USER
Was Alain Suguenot born at Villers-sur-Saulnot and Plobannalec-Lesconil ?
(Q2830299,P19,Q918925) (Q2830299,P19,Q622503)
action is_in
entity Q2830299
action intersection
action find_reverse
entity Q918925
relation P19
action find_reverse
entity Q622503
relation P19
['Q2830299', 'P19', 'Q918925'] ['Q2830299', 'P19', 'Q622503']
ASK WHERE { resource:Q2830299 property:P19 resource:Q918925 . resource:Q2830299 property:P19 resource:Q622503 }
Alain Suguenot Villers-sur-Saulnot Plobannalec-Lesconil
action is_in
entity Alain Suguenot
action intersection
action find_reverse
entity Villers-sur-Saulnot
relation place of birth
action find_reverse
entity Plobannalec-Lesconil
relation place of birth
['Alain Suguenot', 'place of birth', 'Villers-sur-Saulnot'] ['Alain Suguenot', 'place of birth', 'Plobannalec-Lesconil']
ASK WHERE { resource:Alain_Suguenot property:place_of_birth resource:Villers-sur-Saulnot . resource:Alain_Suguenot property:place_of_birth resource:Plobannalec-Lesconil }
[]
type of french administrative division
SYSTEM
NO
(Q2830299,P19,Q918925) (Q2830299,P19,Q622503)
action is_in
entity Q2830299
action intersection
action find_reverse
entity Q918925
relation P19
action find_reverse
entity Q622503
relation P19
[ANSWER]
['Q2830299', 'P19', 'Q918925'] ['Q2830299', 'P19', 'Q622503']
ASK WHERE { resource:Q2830299 property:P19 resource:Q918925 . resource:Q2830299 property:P19 resource:Q622503 }
No
action is_in
entity Alain Suguenot
action intersection
action find_reverse
entity Villers-sur-Saulnot
relation place of birth
action find_reverse
entity Plobannalec-Lesconil
relation place of birth
['Alain Suguenot', 'place of birth', 'Villers-sur-Saulnot'] ['Alain Suguenot', 'place of birth', 'Plobannalec-Lesconil']
ASK WHERE { resource:Alain_Suguenot property:place_of_birth resource:Villers-sur-Saulnot . resource:Alain_Suguenot property:place_of_birth resource:Plobannalec-Lesconil }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q15180
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with France or Soviet Union ?
(c(Q1048835),P530,Q142) (c(Q1048835),P530,Q15180)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q15180
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q142'] [{'concept': 'Q1048835'}, 'P530', 'Q15180']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { ?n property:P530 resource:Q15180 . ?n rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q1048835 . ?n property:P530 resource:Q142 } }
France Soviet Union
action count
action union
action filter_type
action find_reverse
entity France
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Soviet Union
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Soviet Union']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { ?n property:diplomatic_relation resource:Soviet_Union . ?n rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation resource:France } }
[]
political territorial entity
SYSTEM
4
Q16 Q408 Q183 Q40
(c(Q1048835),P530,Q142) (c(Q1048835),P530,Q15180)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q15180
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q142'] [{'concept': 'Q1048835'}, 'P530', 'Q15180']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { ?n property:P530 resource:Q15180 . ?n rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q1048835 . ?n property:P530 resource:Q142 } }
Canada Australia Germany Austria
4
action count
action union
action filter_type
action find_reverse
entity France
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Soviet Union
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Soviet Union']
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { ?n property:diplomatic_relation resource:Soviet_Union . ?n rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation resource:France } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q334
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with France or Singapore ?
(Q142,P530,c(Q15617994)) (Q334,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q142
relation P530
type Q15617994
action filter_type
action find
entity Q334
relation P530
type Q15617994
['Q142', 'P530', {'concept': 'Q15617994'}] ['Q334', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { resource:Q334 property:P530 ?t . ?t rdf:type ontology:Q15617994 } UNION { resource:Q142 property:P530 ?t . ?t rdf:type ontology:Q15617994 } }
France Singapore
action count
action union
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { resource:Singapore property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:France property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
15
Q711 Q159 Q222 Q801 Q145 Q155 Q1011 Q228 Q32 Q17 Q30 Q399 Q27 Q403 Q38
(Q142,P530,c(Q15617994)) (Q334,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q142
relation P530
type Q15617994
action filter_type
action find
entity Q334
relation P530
type Q15617994
[ANSWER]
['Q142', 'P530', {'concept': 'Q15617994'}] ['Q334', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { resource:Q334 property:P530 ?t . ?t rdf:type ontology:Q15617994 } UNION { resource:Q142 property:P530 ?t . ?t rdf:type ontology:Q15617994 } }
Mongolia Russia Albania Israel United Kingdom Brazil Cape Verde Andorra Luxembourg Japan United States of America Armenia Ireland Serbia Italy
15
action count
action union
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { resource:Singapore property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:France property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13747 Q142
P47
Q1048835
USER
Which political territories share the border with France or Isòvol ?
OR((Q142,P47,c(Q1048835)), (Q13747,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q13747
relation P47
type Q1048835
{'OR': [['Q142', 'P47', {'concept': 'Q1048835'}], ['Q13747', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q142 property:P47 ?o } UNION { resource:Q13747 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Isòvol France
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Isòvol
relation shares border with
type political territorial entity
{'OR': [['France', 'shares border with', {'concept': 'political territorial entity'}], ['Isòvol', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:France property:shares_border_with ?o } UNION { resource:Isòvol property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13116 Q183 Q13734 Q13732 Q13757 Q13749
SYSTEM
Benelux, Germany, Das, Catalonia, Bellver de Cerdanya, Prats i Sansor, Ger
Q13116 Q183 Q13734 Q13732 Q13757 Q13749
OR((Q142,P47,c(Q1048835)), (Q13747,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q142
relation P47
action find
entity Q13747
relation P47
type Q1048835
[ANSWERS] share the border with France or Isòvol
{'OR': [['Q142', 'P47', {'concept': 'Q1048835'}], ['Q13747', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q142 property:P47 ?o } UNION { resource:Q13747 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Benelux Germany Das, Catalonia Bellver de Cerdanya Prats i Sansor Ger
Benelux, Germany, Das, Catalonia, Bellver de Cerdanya, Prats i Sansor and Ger share the border with France or Isòvol
Benelux Germany Das, Catalonia Bellver de Cerdanya Prats i Sansor Ger
action filter_type
action union
action find
entity France
relation shares border with
action find
entity Isòvol
relation shares border with
type political territorial entity
{'OR': [['France', 'shares border with', {'concept': 'political territorial entity'}], ['Isòvol', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:France property:shares_border_with ?o } UNION { resource:Isòvol property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q1048835
USER
How many political territories are bordered by that political territory ?
(Q13732,P47,c(Q1048835))
['Q13732', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q13732 property:P47 ?z . ?z rdf:type ontology:Q1048835 }
['Bellver de Cerdanya', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bellver_de_Cerdanya property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q13116
SYSTEM
Did you mean Benelux ?
(Q13116,P47,c(Q1048835)) (Q183,P47,c(Q1048835)) (Q13734,P47,c(Q1048835)) (Q13732,P47,c(Q1048835)) (Q13757,P47,c(Q1048835)) (Q13749,P47,c(Q1048835))
[ANSWER]
['Q13116', 'P47', {'concept': 'Q1048835'}] ['Q183', 'P47', {'concept': 'Q1048835'}] ['Q13734', 'P47', {'concept': 'Q1048835'}] ['Q13732', 'P47', {'concept': 'Q1048835'}] ['Q13757', 'P47', {'concept': 'Q1048835'}] ['Q13749', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q13732 property:P47 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean Benelux ?
Benelux
['Benelux', 'shares border with', {'concept': 'political territorial entity'}] ['Germany', 'shares border with', {'concept': 'political territorial entity'}] ['Das, Catalonia', 'shares border with', {'concept': 'political territorial entity'}] ['Bellver de Cerdanya', 'shares border with', {'concept': 'political territorial entity'}] ['Prats i Sansor', 'shares border with', {'concept': 'political territorial entity'}] ['Ger', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bellver_de_Cerdanya property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Bellver de Cerdanya. Could you tell me the answer for that?
(Q13732,P47,c(Q1048835))
Q13732
['Q13732', 'P47', {'concept': 'Q1048835'}]
['Bellver de Cerdanya', 'shares border with', {'concept': 'political territorial entity'}]
[]
SYSTEM
11
Q15519 Q15511 Q15486 Q13746 Q13754 Q13757 Q13756 Q13764 Q13758 Q13749 Q13747
(Q13732,P47,c(Q1048835))
[ANSWER]
['Q13732', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q13732 property:P47 ?z . ?z rdf:type ontology:Q1048835 }
Guardiola de Berguedà Gisclareny Bagà Lles de Cerdanya Meranges Prats i Sansor Montellà i Martinet Riu de Cerdanya Prullans Ger Isòvol
11
['Bellver de Cerdanya', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bellver_de_Cerdanya property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22206 Q16121
P47
Q20667921
USER
Which french administrative divisions have a shared border with Beaune or Retonfey ?
OR((Q16121,P47,c(Q20667921)), (Q22206,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q16121
relation P47
action find
entity Q22206
relation P47
type Q20667921
{'OR': [['Q16121', 'P47', {'concept': 'Q20667921'}], ['Q22206', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?c WHERE { { ?b property:P47 ?c . VALUES ( ?b ) { ( resource:Q16121 ) ( resource:Q22206 ) } } . ?c rdf:type ontology:Q20667921 }
Retonfey Beaune
action filter_type
action union
action find
entity Beaune
relation shares border with
action find
entity Retonfey
relation shares border with
type type of french administrative division
{'OR': [['Beaune', 'shares border with', {'concept': 'type of french administrative division'}], ['Retonfey', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?c WHERE { { ?b property:shares_border_with ?c . VALUES ( ?b ) { ( resource:Beaune ) ( resource:Retonfey ) } } . ?c rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q22021 Q22263 Q22153 Q21935 Q16156 Q16127 Q22235 Q16195 Q16191 Q22452
SYSTEM
Some of them are Ogy, Montoy-Flanville, Sainte-Barbe, Silly-sur-Nied, Savigny-lès-Beaune, Bouze-lès-Beaune, Servigny-lès-Sainte-Barbe, Vignoles, Montagny-lès-Beaune, Glatigny
Q16169 Q16127 Q22213 Q22021 Q16173 Q22263 Q16171 Q22153 Q16177 Q16155 Q16156 Q22235 Q22452 Q21935 Q16191 Q16192 Q22031 Q16195 Q22914
OR((Q16121,P47,c(Q20667921)), (Q22206,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q16121
relation P47
action find
entity Q22206
relation P47
type Q20667921
[ANSWERS] have a shared border with Beaune or Retonfey
{'OR': [['Q16121', 'P47', {'concept': 'Q20667921'}], ['Q22206', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?c WHERE { { ?b property:P47 ?c . VALUES ( ?b ) { ( resource:Q16121 ) ( resource:Q22206 ) } } . ?c rdf:type ontology:Q20667921 }
Bligny-lès-Beaune Bouze-lès-Beaune Maizery Ogy Combertault Montoy-Flanville Chorey-les-Beaune Sainte-Barbe Levernois Pommard Savigny-lès-Beaune Servigny-lès-Sainte-Barbe Glatigny Silly-sur-Nied Montagny-lès-Beaune Ruffey-lès-Beaune Les Étangs Vignoles Noisseville
Ogy, Montoy-Flanville, Sainte-Barbe, Silly-sur-Nied, Savigny-lès-Beaune, Bouze-lès-Beaune, Servigny-lès-Sainte-Barbe, Vignoles, Montagny-lès-Beaune and Glatigny have a shared border with Beaune or Retonfey
Ogy Montoy-Flanville Sainte-Barbe Silly-sur-Nied Savigny-lès-Beaune Bouze-lès-Beaune Servigny-lès-Sainte-Barbe Vignoles Montagny-lès-Beaune Glatigny
action filter_type
action union
action find
entity Beaune
relation shares border with
action find
entity Retonfey
relation shares border with
type type of french administrative division
{'OR': [['Beaune', 'shares border with', {'concept': 'type of french administrative division'}], ['Retonfey', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?c WHERE { { ?b property:shares_border_with ?c . VALUES ( ?b ) { ( resource:Beaune ) ( resource:Retonfey ) } } . ?c rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q646699 Q16121
P17
Q15617994
USER
Which administrative territories are Beaune or Algyő present in ?
OR((Q16121,P17,c(Q15617994)), (Q646699,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16121
relation P17
action find
entity Q646699
relation P17
type Q15617994
{'OR': [['Q16121', 'P17', {'concept': 'Q15617994'}], ['Q646699', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Q646699 ) ( resource:Q16121 ) } . ?k property:P17 ?l } . ?l rdf:type ontology:Q15617994 }
Algyő Beaune
action filter_type
action union
action find
entity Beaune
relation country
action find
entity Algyő
relation country
type designation for an administrative territorial entity
{'OR': [['Beaune', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Algyő', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Algyő ) ( resource:Beaune ) } . ?k property:country ?l } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q28
SYSTEM
France, Hungary
Q142 Q28
OR((Q16121,P17,c(Q15617994)), (Q646699,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16121
relation P17
action find
entity Q646699
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q16121', 'P17', {'concept': 'Q15617994'}], ['Q646699', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Q646699 ) ( resource:Q16121 ) } . ?k property:P17 ?l } . ?l rdf:type ontology:Q15617994 }
France Hungary
Which administrative territories are Beaune or Algyő present in
France Hungary
action filter_type
action union
action find
entity Beaune
relation country
action find
entity Algyő
relation country
type designation for an administrative territorial entity
{'OR': [['Beaune', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Algyő', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { VALUES ( ?k ) { ( resource:Algyő ) ( resource:Beaune ) } . ?k property:country ?l } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q142 Q28
P463
Q874405
USER
Which social groups were those administrative territories a member of ?
(Q142,P463,c(Q874405)) (Q28,P463,c(Q874405))
action filter_type
action find
entity prev_answer
relation P463
type Q874405
['Q142', 'P463', {'concept': 'Q874405'}] ['Q28', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q874405 . VALUES ( ?x ) { ( resource:Q142 ) ( resource:Q28 ) } . ?x property:P463 ?i }
France Hungary
action filter_type
action find
entity prev_answer
relation member of
type social group
['France', 'member of', {'concept': 'social group'}] ['Hungary', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:social_group . VALUES ( ?x ) { ( resource:France ) ( resource:Hungary ) } . ?x property:member_of ?i }
[]
social group
Q8908 Q8908 Q782942
SYSTEM
Australia Group for 3rd, Council of Europe for 1st, 2nd
Q8908 Q782942 Q782942 Q8908
(Q142,P463,c(Q874405)) (Q28,P463,c(Q874405))
action filter_type
action find
entity prev_answer
relation P463
type Q874405
[ANSWERS]
['Q142', 'P463', {'concept': 'Q874405'}] ['Q28', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q874405 . VALUES ( ?x ) { ( resource:Q142 ) ( resource:Q28 ) } . ?x property:P463 ?i }
Council of Europe Australia Group Australia Group Council of Europe
Council of Europe, Council of Europe and Australia Group were those administrative territories a member of
Council of Europe Council of Europe Australia Group
action filter_type
action find
entity prev_answer
relation member of
type social group
['France', 'member of', {'concept': 'social group'}] ['Hungary', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:social_group . VALUES ( ?x ) { ( resource:France ) ( resource:Hungary ) } . ?x property:member_of ?i }
[]