Simple Question (Direct)
Simple Question
Q1127998
P21
Q290
USER
Which sex does Konstantin von Waldburg zu Zeil have ?
(Q1127998,P21,c(Q290))
action filter_type
action find
entity Q1127998
relation P21
type Q290
['Q1127998', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q1127998 property:P21 ?e }
Konstantin von Waldburg zu Zeil
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation gender
type sex
['Konstantin von Waldburg zu Zeil', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Konstantin_von_Waldburg_zu_Zeil property:gender ?e }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1127998,P21,c(Q290))
action filter_type
action find
entity Q1127998
relation P21
type Q290
Konstantin von Waldburg zu Zeil has the [ANSWER]
['Q1127998', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q1127998 property:P21 ?e }
male
Konstantin von Waldburg zu Zeil has the male
male
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation gender
type sex
['Konstantin von Waldburg zu Zeil', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Konstantin_von_Waldburg_zu_Zeil property:gender ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1127998
P106
Q12737077
USER
What are the job of Konstantin von Waldburg zu Zeil ?
(Q1127998,P106,c(Q12737077))
action filter_type
action find
entity Q1127998
relation P106
type Q12737077
['Q1127998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1127998 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Konstantin von Waldburg zu Zeil
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation occupation
type occupation
['Konstantin von Waldburg zu Zeil', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q82955 Q189290
SYSTEM
politician, officer
Q82955 Q189290
(Q1127998,P106,c(Q12737077))
action filter_type
action find
entity Q1127998
relation P106
type Q12737077
The job of Konstantin von Waldburg zu Zeil are a [ANSWERS]
['Q1127998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q1127998 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
politician officer
The job of Konstantin von Waldburg zu Zeil are a politician and officer
politician officer
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation occupation
type occupation
['Konstantin von Waldburg zu Zeil', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Konstantin_von_Waldburg_zu_Zeil property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1127998
P937
Q56061
USER
What is the work location of that person ?
(Q82955,P937,c(Q56061)) (Q189290,P937,c(Q56061))
action filter_type
action find
entity Q1127998
relation P937
type Q56061
['Q82955', 'P937', {'concept': 'Q56061'}] ['Q189290', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q1127998 property:P937 ?z }
Konstantin von Waldburg zu Zeil
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation work location
type administrative territorial entity
['politician', 'work location', {'concept': 'administrative territorial entity'}] ['officer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Konstantin_von_Waldburg_zu_Zeil property:work_location ?z }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q82955,P937,c(Q56061)) (Q189290,P937,c(Q56061))
action filter_type
action find
entity Q1127998
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q82955', 'P937', {'concept': 'Q56061'}] ['Q189290', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q1127998 property:P937 ?z }
Berlin
The work location of that person is in Berlin
Berlin
action filter_type
action find
entity Konstantin von Waldburg zu Zeil
relation work location
type administrative territorial entity
['politician', 'work location', {'concept': 'administrative territorial entity'}] ['officer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Konstantin_von_Waldburg_zu_Zeil property:work_location ?z }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1633562 Q1127998
P937
Q56061
USER
Or Hubertus Halbfas?
OR((Q1127998,P937,c(Q56061)), (Q1633562,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1127998
relation P937
action find
entity Q1633562
relation P937
type Q56061
{'OR': [['Q1127998', 'P937', {'concept': 'Q56061'}], ['Q1633562', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1127998 property:P937 ?w } UNION { resource:Q1633562 property:P937 ?w } } . ?w rdf:type ontology:Q56061 }
Hubertus Halbfas Konstantin von Waldburg zu Zeil
action filter_type
action union
action find
entity Konstantin von Waldburg zu Zeil
relation work location
action find
entity Hubertus Halbfas
relation work location
type administrative territorial entity
{'OR': [['Konstantin von Waldburg zu Zeil', 'work location', {'concept': 'administrative territorial entity'}], ['Hubertus Halbfas', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Konstantin_von_Waldburg_zu_Zeil property:work_location ?w } UNION { resource:Hubertus_Halbfas property:work_location ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q3085
SYSTEM
Berlin, Reutlingen
Q64 Q3085
OR((Q1127998,P937,c(Q56061)), (Q1633562,P937,c(Q56061)))
action filter_type
action union
action find
entity Q1127998
relation P937
action find
entity Q1633562
relation P937
type Q56061
[ANSWERS]
{'OR': [['Q1127998', 'P937', {'concept': 'Q56061'}], ['Q1633562', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1127998 property:P937 ?w } UNION { resource:Q1633562 property:P937 ?w } } . ?w rdf:type ontology:Q56061 }
Berlin Reutlingen
Berlin Reutlingen
action filter_type
action union
action find
entity Konstantin von Waldburg zu Zeil
relation work location
action find
entity Hubertus Halbfas
relation work location
type administrative territorial entity
{'OR': [['Konstantin von Waldburg zu Zeil', 'work location', {'concept': 'administrative territorial entity'}], ['Hubertus Halbfas', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Konstantin_von_Waldburg_zu_Zeil property:work_location ?w } UNION { resource:Hubertus_Halbfas property:work_location ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1593385
P937
Q502895
USER
Do Hedwig Munck have those administrative territories as their work location ?
(Q1593385,P937,Q64) (Q1593385,P937,Q3085)
action is_in
entity prev_answer
action find
entity Q1593385
relation P937
['Q1593385', 'P937', 'Q64'] ['Q1593385', 'P937', 'Q3085']
ASK WHERE { VALUES ( ?n ) { ( resource:Q64 ) ( resource:Q3085 ) } . resource:Q1593385 property:P937 ?n }
Hedwig Munck
action is_in
entity prev_answer
action find
entity Hedwig Munck
relation work location
['Hedwig Munck', 'work location', 'Berlin'] ['Hedwig Munck', 'work location', 'Reutlingen']
ASK WHERE { VALUES ( ?n ) { ( resource:Berlin ) ( resource:Reutlingen ) } . resource:Hedwig_Munck property:work_location ?n }
[]
common name
SYSTEM
YES
(Q1593385,P937,Q64) (Q1593385,P937,Q3085)
action is_in
entity prev_answer
action find
entity Q1593385
relation P937
[ANSWER]
['Q1593385', 'P937', 'Q64'] ['Q1593385', 'P937', 'Q3085']
ASK WHERE { VALUES ( ?n ) { ( resource:Q64 ) ( resource:Q3085 ) } . resource:Q1593385 property:P937 ?n }
Yes
action is_in
entity prev_answer
action find
entity Hedwig Munck
relation work location
['Hedwig Munck', 'work location', 'Berlin'] ['Hedwig Munck', 'work location', 'Reutlingen']
ASK WHERE { VALUES ( ?n ) { ( resource:Berlin ) ( resource:Reutlingen ) } . resource:Hedwig_Munck property:work_location ?n }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1079201 Q1633562
P937 P20
Q56061
USER
Which administrative territories are the work locations of Hubertus Halbfas or are the places of death of Christian Conradin ?
OR((Q1633562,P937,c(Q56061)), (Q1079201,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1633562
relation P937
action find
entity Q1079201
relation P20
type Q56061
{'OR': [['Q1633562', 'P937', {'concept': 'Q56061'}], ['Q1079201', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1079201 property:P20 ?q } UNION { resource:Q1633562 property:P937 ?q } } . ?q rdf:type ontology:Q56061 }
Christian Conradin Hubertus Halbfas
action filter_type
action union
action find
entity Hubertus Halbfas
relation work location
action find
entity Christian Conradin
relation place of death
type administrative territorial entity
{'OR': [['Hubertus Halbfas', 'work location', {'concept': 'administrative territorial entity'}], ['Christian Conradin', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Christian_Conradin property:place_of_death ?q } UNION { resource:Hubertus_Halbfas property:work_location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3085 Q72
SYSTEM
Reutlingen, Zürich
Q3085 Q72
OR((Q1633562,P937,c(Q56061)), (Q1079201,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1633562
relation P937
action find
entity Q1079201
relation P20
type Q56061
[ANSWERS] are the work locations of Hubertus Halbfas or are the places of death of Christian Conradin
{'OR': [['Q1633562', 'P937', {'concept': 'Q56061'}], ['Q1079201', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1079201 property:P20 ?q } UNION { resource:Q1633562 property:P937 ?q } } . ?q rdf:type ontology:Q56061 }
Reutlingen Zürich
Reutlingen and Zürich are the work locations of Hubertus Halbfas or are the places of death of Christian Conradin
Reutlingen Zürich
action filter_type
action union
action find
entity Hubertus Halbfas
relation work location
action find
entity Christian Conradin
relation place of death
type administrative territorial entity
{'OR': [['Hubertus Halbfas', 'work location', {'concept': 'administrative territorial entity'}], ['Christian Conradin', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Christian_Conradin property:place_of_death ?q } UNION { resource:Hubertus_Halbfas property:work_location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3085
P190
Q56061
USER
Which administrative territories are twin cities of that one ?
(Q3085,P190,c(Q56061))
action filter_type
action find
entity Q3085
relation P190
type Q56061
['Q3085', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3085 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Reutlingen
action filter_type
action find
entity Reutlingen
relation sister city
type administrative territorial entity
['Reutlingen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Reutlingen property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q3085
SYSTEM
Did you mean Reutlingen ?
Q3085 Q72
(Q3085,P190,c(Q56061)) (Q72,P190,c(Q56061))
[ANSWER]
['Q3085', 'P190', {'concept': 'Q56061'}] ['Q72', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3085 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Reutlingen Zürich
Did you mean Reutlingen ?
Reutlingen
['Reutlingen', 'sister city', {'concept': 'administrative territorial entity'}] ['Zürich', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Reutlingen property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3085,P190,c(Q56061))
['Q3085', 'P190', {'concept': 'Q56061'}]
['Reutlingen', 'sister city', {'concept': 'administrative territorial entity'}]
[]
Q6477 Q9365 Q1011600
SYSTEM
Pirna, Dushanbe, Ellesmere Port
Q6477 Q9365 Q1011600
(Q3085,P190,c(Q56061))
action filter_type
action find
entity Q3085
relation P190
type Q56061
[ANSWERS] are twin cities of that one
['Q3085', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3085 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Pirna Dushanbe Ellesmere Port
Pirna, Dushanbe and Ellesmere Port are twin cities of that one
Pirna Dushanbe Ellesmere Port
action filter_type
action find
entity Reutlingen
relation sister city
type administrative territorial entity
['Reutlingen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Reutlingen property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5260020
P190
Q56061
USER
Are Deonar twin town of those ones ?
(Q5260020,P190,Q6477) (Q5260020,P190,Q9365) (Q5260020,P190,Q1011600)
action is_in
entity prev_answer
action find
entity Q5260020
relation P190
['Q5260020', 'P190', 'Q6477'] ['Q5260020', 'P190', 'Q9365'] ['Q5260020', 'P190', 'Q1011600']
ASK WHERE { VALUES ( ?p ) { ( resource:Q6477 ) ( resource:Q9365 ) ( resource:Q1011600 ) } . resource:Q5260020 property:P190 ?p }
Deonar
action is_in
entity prev_answer
action find
entity Deonar
relation sister city
['Deonar', 'sister city', 'Pirna'] ['Deonar', 'sister city', 'Dushanbe'] ['Deonar', 'sister city', 'Ellesmere Port']
ASK WHERE { VALUES ( ?p ) { ( resource:Pirna ) ( resource:Dushanbe ) ( resource:Ellesmere_Port ) } . resource:Deonar property:sister_city ?p }
[]
administrative territorial entity
SYSTEM
NO
(Q5260020,P190,Q6477) (Q5260020,P190,Q9365) (Q5260020,P190,Q1011600)
action is_in
entity prev_answer
action find
entity Q5260020
relation P190
[ANSWER]
['Q5260020', 'P190', 'Q6477'] ['Q5260020', 'P190', 'Q9365'] ['Q5260020', 'P190', 'Q1011600']
ASK WHERE { VALUES ( ?p ) { ( resource:Q6477 ) ( resource:Q9365 ) ( resource:Q1011600 ) } . resource:Q5260020 property:P190 ?p }
No
action is_in
entity prev_answer
action find
entity Deonar
relation sister city
['Deonar', 'sister city', 'Pirna'] ['Deonar', 'sister city', 'Dushanbe'] ['Deonar', 'sister city', 'Ellesmere Port']
ASK WHERE { VALUES ( ?p ) { ( resource:Pirna ) ( resource:Dushanbe ) ( resource:Ellesmere_Port ) } . resource:Deonar property:sister_city ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6477
P36
Q1048835
USER
Which political territories are Pirna the capital of ?
(c(Q1048835),P36,Q6477)
action filter_type
action find_reverse
entity Q6477
relation P36
type Q1048835
[{'concept': 'Q1048835'}, 'P36', 'Q6477']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . ?m property:P36 resource:Q6477 }
Pirna
action filter_type
action find_reverse
entity Pirna
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Pirna']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . ?m property:capital resource:Pirna }
[]
political territorial entity
Q6323 Q20264
SYSTEM
Sächsische Schweiz-Osterzgebirge, Sächsische Schweiz
Q6323 Q20264
(c(Q1048835),P36,Q6477)
action filter_type
action find_reverse
entity Q6477
relation P36
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P36', 'Q6477']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . ?m property:P36 resource:Q6477 }
Sächsische Schweiz-Osterzgebirge Sächsische Schweiz
Which political territories are Pirna the capital of
Sächsische Schweiz-Osterzgebirge Sächsische Schweiz
action filter_type
action find_reverse
entity Pirna
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Pirna']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . ?m property:capital resource:Pirna }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6477
P6
Q502895
USER
Which person has that administrative territory as its head of government ?
(Q6323,P6,c(Q502895)) (Q20264,P6,c(Q502895))
action filter_type
action find
entity Q6477
relation P6
type Q502895
['Q6323', 'P6', {'concept': 'Q502895'}] ['Q20264', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q6477 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Pirna
action filter_type
action find
entity Pirna
relation head of government
type common name
['Sächsische Schweiz-Osterzgebirge', 'head of government', {'concept': 'common name'}] ['Sächsische Schweiz', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Pirna property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
common name
Q1591007
SYSTEM
Klaus-Peter Hanke
Q1591007
(Q6323,P6,c(Q502895)) (Q20264,P6,c(Q502895))
action filter_type
action find
entity Q6477
relation P6
type Q502895
[ANSWER] has that administrative territory as its head of government
['Q6323', 'P6', {'concept': 'Q502895'}] ['Q20264', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q6477 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Klaus-Peter Hanke
Klaus-Peter Hanke has that administrative territory as its head of government
Klaus-Peter Hanke
action filter_type
action find
entity Pirna
relation head of government
type common name
['Sächsische Schweiz-Osterzgebirge', 'head of government', {'concept': 'common name'}] ['Sächsische Schweiz', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Pirna property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]