Simple Question (Direct)
Simple Question
Q109501
P20
Q56061
USER
Where did Richard von Helmholtz expire ?
(Q109501,P20,c(Q56061))
action filter_type
action find
entity Q109501
relation P20
type Q56061
['Q109501', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q109501 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Richard von Helmholtz
action filter_type
action find
entity Richard von Helmholtz
relation place of death
type administrative territorial entity
['Richard von Helmholtz', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Richard_von_Helmholtz property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q109501,P20,c(Q56061))
action filter_type
action find
entity Q109501
relation P20
type Q56061
Richard von Helmholtz expired in [ANSWER]
['Q109501', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q109501 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Munich
Richard von Helmholtz expired in Munich
Munich
action filter_type
action find
entity Richard von Helmholtz
relation place of death
type administrative territorial entity
['Richard von Helmholtz', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Richard_von_Helmholtz property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q109501
P21
Q290
USER
What is the sex of Richard von Helmholtz ?
(Q109501,P21,c(Q290))
action filter_type
action find
entity Q109501
relation P21
type Q290
['Q109501', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q109501 property:P21 ?l . ?l rdf:type ontology:Q290 }
Richard von Helmholtz
action filter_type
action find
entity Richard von Helmholtz
relation gender
type sex
['Richard von Helmholtz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Richard_von_Helmholtz property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q109501,P21,c(Q290))
action filter_type
action find
entity Q109501
relation P21
type Q290
The sex of Richard von Helmholtz is the [ANSWER]
['Q109501', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q109501 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Richard von Helmholtz is the male
male
action filter_type
action find
entity Richard von Helmholtz
relation gender
type sex
['Richard von Helmholtz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Richard_von_Helmholtz property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q109501
P937
Q56061
USER
Which administrative territories are the work locations of that person ?
(Q6581097,P937,c(Q56061))
action filter_type
action find
entity Q109501
relation P937
type Q56061
['Q6581097', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q109501 property:P937 ?b }
Richard von Helmholtz
action filter_type
action find
entity Richard von Helmholtz
relation work location
type administrative territorial entity
['male', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Richard_von_Helmholtz property:work_location ?b }
[]
administrative territorial entity
Q64 Q1726 Q1022
SYSTEM
Berlin, Munich, Stuttgart
Q64 Q1726 Q586 Q1022
(Q6581097,P937,c(Q56061))
action filter_type
action find
entity Q109501
relation P937
type Q56061
[ANSWERS] are the work locations of that person
['Q6581097', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q109501 property:P937 ?b }
Berlin Munich Bonn Stuttgart
Berlin, Munich and Stuttgart are the work locations of that person
Berlin Munich Stuttgart
action filter_type
action find
entity Richard von Helmholtz
relation work location
type administrative territorial entity
['male', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Richard_von_Helmholtz property:work_location ?b }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q64 Q1726 Q1022
P47
Q1048835
USER
Which political territories are adjacent to those administrative territories ?
(Q64,P47,c(Q1048835)) (Q1726,P47,c(Q1048835)) (Q1022,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
['Q64', 'P47', {'concept': 'Q1048835'}] ['Q1726', 'P47', {'concept': 'Q1048835'}] ['Q1022', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . ?u property:P47 ?f . VALUES ( ?u ) { ( resource:Q64 ) ( resource:Q1726 ) ( resource:Q586 ) } }
Berlin Munich Stuttgart
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}] ['Munich', 'shares border with', {'concept': 'political territorial entity'}] ['Stuttgart', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . ?u property:shares_border_with ?f . VALUES ( ?u ) { ( resource:Berlin ) ( resource:Munich ) ( resource:Bonn ) } }
[]
political territorial entity
Q6142 Q6146 Q10544
SYSTEM
Potsdam-Mittelmark, Teltow-Fläming, Munich (district)
Q6115 Q6139 Q6119 Q6173 Q6181 Q6146 Q6178 Q6142 Q10544 Q10502 Q10500 Q8533 Q8541 Q8536 Q8528
(Q64,P47,c(Q1048835)) (Q1726,P47,c(Q1048835)) (Q1022,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[ANSWERS] are adjacent to those administrative territories
['Q64', 'P47', {'concept': 'Q1048835'}] ['Q1726', 'P47', {'concept': 'Q1048835'}] ['Q1022', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . ?u property:P47 ?f . VALUES ( ?u ) { ( resource:Q64 ) ( resource:Q1726 ) ( resource:Q586 ) } }
Barnim Havelland Oberhavel Dahme-Spreewald Märkisch-Oderland Teltow-Fläming Oder-Spree Potsdam-Mittelmark Munich (district) Fürstenfeldbruck Dachau Esslingen Ludwigsburg Böblingen Rems-Murr
Potsdam-Mittelmark, Teltow-Fläming and Munich (district) are adjacent to those administrative territories
Potsdam-Mittelmark Teltow-Fläming Munich (district)
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Berlin', 'shares border with', {'concept': 'political territorial entity'}] ['Munich', 'shares border with', {'concept': 'political territorial entity'}] ['Stuttgart', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . ?u property:shares_border_with ?f . VALUES ( ?u ) { ( resource:Berlin ) ( resource:Munich ) ( resource:Bonn ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6142 Q6146 Q10544
P47
Q56061
USER
Which administrative territories have a shared border with Potsdam-Mittelmark, Teltow-Fläming and Munich (district) ?
(Q6142,P47,c(Q56061)) (Q6146,P47,c(Q56061)) (Q10544,P47,c(Q56061))
action union
action filter_type
action find
entity Q6142
relation P47
type Q56061
action filter_type
action find
entity Q6146
relation P47
type Q56061
action filter_type
action find
entity Q10544
relation P47
type Q56061
['Q6142', 'P47', {'concept': 'Q56061'}] ['Q6146', 'P47', {'concept': 'Q56061'}] ['Q10544', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?n property:P47 ?h . VALUES ( ?n ) { ( resource:Q6142 ) ( resource:Q6146 ) } }
Potsdam-Mittelmark Teltow-Fläming Munich (district)
action union
action filter_type
action find
entity Potsdam-Mittelmark
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Teltow-Fläming
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Munich (district)
relation shares border with
type administrative territorial entity
['Potsdam-Mittelmark', 'shares border with', {'concept': 'administrative territorial entity'}] ['Teltow-Fläming', 'shares border with', {'concept': 'administrative territorial entity'}] ['Munich (district)', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?n property:shares_border_with ?h . VALUES ( ?n ) { ( resource:Potsdam-Mittelmark ) ( resource:Teltow-Fläming ) } }
[]
administrative territorial entity
Q64 Q64 Q1726
SYSTEM
Berlin for 1st, 2nd, Munich for 3rd
Q64 Q64 Q1726
(Q6142,P47,c(Q56061)) (Q6146,P47,c(Q56061)) (Q10544,P47,c(Q56061))
action union
action filter_type
action find
entity Q6142
relation P47
type Q56061
action filter_type
action find
entity Q6146
relation P47
type Q56061
action filter_type
action find
entity Q10544
relation P47
type Q56061
[ANSWERS]
['Q6142', 'P47', {'concept': 'Q56061'}] ['Q6146', 'P47', {'concept': 'Q56061'}] ['Q10544', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?n property:P47 ?h . VALUES ( ?n ) { ( resource:Q6142 ) ( resource:Q6146 ) } }
Berlin Berlin Munich
Berlin, Berlin and Munich have a shared border with Potsdam-Mittelmark, Teltow-Fläming and Munich (district)
Berlin Berlin Munich
action union
action filter_type
action find
entity Potsdam-Mittelmark
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Teltow-Fläming
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Munich (district)
relation shares border with
type administrative territorial entity
['Potsdam-Mittelmark', 'shares border with', {'concept': 'administrative territorial entity'}] ['Teltow-Fläming', 'shares border with', {'concept': 'administrative territorial entity'}] ['Munich (district)', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?n property:shares_border_with ?h . VALUES ( ?n ) { ( resource:Potsdam-Mittelmark ) ( resource:Teltow-Fläming ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q109501
P19
Q56061
USER
Which administrative territory is the birthplace of Richard von Helmholtz ?
(Q109501,P19,c(Q56061))
action filter_type
action find
entity Q109501
relation P19
type Q56061
['Q109501', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q109501 property:P19 ?y }
Richard von Helmholtz
action filter_type
action find
entity Richard von Helmholtz
relation place of birth
type administrative territorial entity
['Richard von Helmholtz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Richard_von_Helmholtz property:place_of_birth ?y }
[]
administrative territorial entity
Q4120832
SYSTEM
Königsberg
Q4120832
(Q109501,P19,c(Q56061))
action filter_type
action find
entity Q109501
relation P19
type Q56061
In [ANSWER] is the birthplace of Richard von Helmholtz
['Q109501', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . resource:Q109501 property:P19 ?y }
Königsberg
In Königsberg is the birthplace of Richard von Helmholtz
Königsberg
action filter_type
action find
entity Richard von Helmholtz
relation place of birth
type administrative territorial entity
['Richard von Helmholtz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . resource:Richard_von_Helmholtz property:place_of_birth ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4120832
P36
Q183366
USER
Which territory consists of that administrative territory as its capital ?
(c(Q183366),P36,Q4120832)
action filter_type
action find_reverse
entity Q4120832
relation P36
type Q183366
[{'concept': 'Q183366'}, 'P36', 'Q4120832']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q183366 . ?r property:P36 resource:Q4120832 }
Königsberg
action filter_type
action find_reverse
entity Königsberg
relation capital
type territory
[{'concept': 'territory'}, 'capital', 'Königsberg']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:territory . ?r property:capital resource:Königsberg }
[]
territory
Q570767
SYSTEM
Ober Ost
Q570767
(c(Q183366),P36,Q4120832)
action filter_type
action find_reverse
entity Q4120832
relation P36
type Q183366
[ANSWER] consists of that administrative territory as its capital
[{'concept': 'Q183366'}, 'P36', 'Q4120832']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q183366 . ?r property:P36 resource:Q4120832 }
Ober Ost
Ober Ost consists of that administrative territory as its capital
Ober Ost
action filter_type
action find_reverse
entity Königsberg
relation capital
type territory
[{'concept': 'territory'}, 'capital', 'Königsberg']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:territory . ?r property:capital resource:Königsberg }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1769146 Q6142
P47
Q1048835
USER
Which political territories are next to the border of Potsdam-Mittelmark or La Pobla Tornesa ?
OR((c(Q1048835),P47,Q6142), (c(Q1048835),P47,Q1769146))
action filter_type
action union
action find_reverse
entity Q6142
relation P47
action find_reverse
entity Q1769146
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q6142'], [{'concept': 'Q1048835'}, 'P47', 'Q1769146']]}
SELECT DISTINCT ?h WHERE { { ?h property:P47 ?j . VALUES ( ?j ) { ( resource:Q6142 ) ( resource:Q1769146 ) } } . ?h rdf:type ontology:Q1048835 }
La Pobla Tornesa Potsdam-Mittelmark
action filter_type
action union
action find_reverse
entity Potsdam-Mittelmark
relation shares border with
action find_reverse
entity La Pobla Tornesa
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Potsdam-Mittelmark'], [{'concept': 'political territorial entity'}, 'shares border with', 'La Pobla Tornesa']]}
SELECT DISTINCT ?h WHERE { { ?h property:shares_border_with ?j . VALUES ( ?j ) { ( resource:Potsdam-Mittelmark ) ( resource:La_Pobla_Tornesa ) } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1646899 Q978356 Q6139 Q6071 Q6075 Q636467 Q1116829 Q6146 Q6068
SYSTEM
Cabanes, Borriol, Havelland, Anhalt-Bitterfeld, Wittenberg, Benicàssim, Vilafamés, Teltow-Fläming, Jerichower Land
Q1646899 Q978356 Q6139 Q6071 Q6075 Q636467 Q1116829 Q6146 Q6068
OR((c(Q1048835),P47,Q6142), (c(Q1048835),P47,Q1769146))
action filter_type
action union
action find_reverse
entity Q6142
relation P47
action find_reverse
entity Q1769146
relation P47
type Q1048835
[ANSWERS] are next to the border of Potsdam-Mittelmark or La Pobla Tornesa
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q6142'], [{'concept': 'Q1048835'}, 'P47', 'Q1769146']]}
SELECT DISTINCT ?h WHERE { { ?h property:P47 ?j . VALUES ( ?j ) { ( resource:Q6142 ) ( resource:Q1769146 ) } } . ?h rdf:type ontology:Q1048835 }
Cabanes Borriol Havelland Anhalt-Bitterfeld Wittenberg Benicàssim Vilafamés Teltow-Fläming Jerichower Land
Cabanes, Borriol, Havelland, Anhalt-Bitterfeld, Wittenberg, Benicàssim, Vilafamés, Teltow-Fläming and Jerichower Land are next to the border of Potsdam-Mittelmark or La Pobla Tornesa
Cabanes Borriol Havelland Anhalt-Bitterfeld Wittenberg Benicàssim Vilafamés Teltow-Fläming Jerichower Land
action filter_type
action union
action find_reverse
entity Potsdam-Mittelmark
relation shares border with
action find_reverse
entity La Pobla Tornesa
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Potsdam-Mittelmark'], [{'concept': 'political territorial entity'}, 'shares border with', 'La Pobla Tornesa']]}
SELECT DISTINCT ?h WHERE { { ?h property:shares_border_with ?j . VALUES ( ?j ) { ( resource:Potsdam-Mittelmark ) ( resource:La_Pobla_Tornesa ) } } . ?h rdf:type ontology:political_territorial_entity }
[]