Simple Question (Direct)
Simple Question
Q1624565
P27
Q1048835
USER
Which political territory does Holger Mann belong to ?
(Q1624565,P27,c(Q1048835))
action filter_type
action find
entity Q1624565
relation P27
type Q1048835
['Q1624565', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q1624565 property:P27 ?m }
Holger Mann
action filter_type
action find
entity Holger Mann
relation country of citizenship
type political territorial entity
['Holger Mann', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Holger_Mann property:country_of_citizenship ?m }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1624565,P27,c(Q1048835))
action filter_type
action find
entity Q1624565
relation P27
type Q1048835
Holger Mann belongs to [ANSWER]
['Q1624565', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q1624565 property:P27 ?m }
Germany
Holger Mann belongs to Germany
Germany
action filter_type
action find
entity Holger Mann
relation country of citizenship
type political territorial entity
['Holger Mann', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Holger_Mann property:country_of_citizenship ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1624565
P21
Q290
USER
Which sex does that person have ?
(Q183,P21,c(Q290))
action filter_type
action find
entity Q1624565
relation P21
type Q290
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1624565 property:P21 ?a . ?a rdf:type ontology:Q290 }
Holger Mann
action filter_type
action find
entity Holger Mann
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Holger_Mann property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q183,P21,c(Q290))
action filter_type
action find
entity Q1624565
relation P21
type Q290
That person has a [ANSWER]
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1624565 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Holger Mann
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Holger_Mann property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1624565
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q1624565
relation P39
type Q12737077
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1624565 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Holger Mann
action filter_type
action find
entity Holger Mann
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Holger_Mann property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q17334379
SYSTEM
Member of the Landtag of Saxony
Q17334379
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q1624565
relation P39
type Q12737077
The [ANSWER] was a position held by that person
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q1624565 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Member of the Landtag of Saxony
The Member of the Landtag of Saxony was a position held by that person
Member of the Landtag of Saxony
action filter_type
action find
entity Holger Mann
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Holger_Mann property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1624565
P937
Q515
USER
Where did that person work ?
(Q17334379,P937,c(Q515))
action filter_type
action find
entity Q1624565
relation P937
type Q515
['Q17334379', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q1624565 property:P937 ?l . ?l rdf:type ontology:Q515 }
Holger Mann
action filter_type
action find
entity Holger Mann
relation work location
type city
['Member of the Landtag of Saxony', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Holger_Mann property:work_location ?l . ?l rdf:type ontology:city }
[]
city
Q1731
SYSTEM
Dresden
Q1731
(Q17334379,P937,c(Q515))
action filter_type
action find
entity Q1624565
relation P937
type Q515
That person worked in [ANSWER]
['Q17334379', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q1624565 property:P937 ?l . ?l rdf:type ontology:Q515 }
Dresden
That person worked in Dresden
Dresden
action filter_type
action find
entity Holger Mann
relation work location
type city
['Member of the Landtag of Saxony', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Holger_Mann property:work_location ?l . ?l rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q1048835
USER
How many administrative territories and political territories are partner town of that city ?
(c(Q56061),P190,Q1731) (c(Q1048835),P190,Q1731) (c(Q56061),P190,Q1731) (c(Q1048835),P190,Q1731)
action count
action union
action filter_type
action find_reverse
entity Q1731
relation P190
type Q56061
action filter_type
action find_reverse
entity Q1731
relation P190
type Q1048835
[{'concept': 'Q56061'}, 'P190', 'Q1731'] [{'concept': 'Q1048835'}, 'P190', 'Q1731'] [{'concept': 'Q56061'}, 'P190', 'Q1731'] [{'concept': 'Q1048835'}, 'P190', 'Q1731']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?g rdf:type ?z }
action count
action union
action filter_type
action find_reverse
entity Dresden
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Dresden
relation sister city
type political territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Dresden'] [{'concept': 'political territorial entity'}, 'sister city', 'Dresden'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Dresden'] [{'concept': 'political territorial entity'}, 'sister city', 'Dresden']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?z }
[]
administrative territorial entity political territorial entity
SYSTEM
9 administrative territories and 1 political territories
Q34713 Q4970 Q182428 Q34370 Q2044 Q384 Q16567 Q6225 Q8385 Q3844
(c(Q56061),P190,Q1731) (c(Q1048835),P190,Q1731) (c(Q56061),P190,Q1731) (c(Q1048835),P190,Q1731)
action count
action union
action filter_type
action find_reverse
entity Q1731
relation P190
type Q56061
action filter_type
action find_reverse
entity Q1731
relation P190
type Q1048835
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q1731'] [{'concept': 'Q1048835'}, 'P190', 'Q1731'] [{'concept': 'Q56061'}, 'P190', 'Q1731'] [{'concept': 'Q1048835'}, 'P190', 'Q1731']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } . ?g rdf:type ?z }
Salzburg Hangzhou Silistra Rotterdam Florence Skopje Columbus Coventry Ostrava Brazzaville
9 administrative territories and 1 political territories
action count
action union
action filter_type
action find_reverse
entity Dresden
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Dresden
relation sister city
type political territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Dresden'] [{'concept': 'political territorial entity'}, 'sister city', 'Dresden'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Dresden'] [{'concept': 'political territorial entity'}, 'sister city', 'Dresden']
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { VALUES ( ?z ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17334379
P361
Q1752346
USER
Which assembly is Member of the Landtag of Saxony a part of ?
(Q17334379,P361,c(Q1752346))
action filter_type
action find
entity Q17334379
relation P361
type Q1752346
['Q17334379', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1752346 . resource:Q17334379 property:P361 ?b }
Member of the Landtag of Saxony
action filter_type
action find
entity Member of the Landtag of Saxony
relation part of
type assembly
['Member of the Landtag of Saxony', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:assembly . resource:Member_of_the_Landtag_of_Saxony property:part_of ?b }
[]
assembly
Q884824
SYSTEM
Landtag of Saxony
Q884824
(Q17334379,P361,c(Q1752346))
action filter_type
action find
entity Q17334379
relation P361
type Q1752346
The [ANSWER] is Member of the [ANSWER] a part of
['Q17334379', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1752346 . resource:Q17334379 property:P361 ?b }
Landtag of Saxony
The Landtag of Saxony is Member of the Landtag of Saxony a part of
Landtag of Saxony
action filter_type
action find
entity Member of the Landtag of Saxony
relation part of
type assembly
['Member of the Landtag of Saxony', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:assembly . resource:Member_of_the_Landtag_of_Saxony property:part_of ?b }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3510833
Q1752346
USER
And how about Senate of the Bahamas?
(Q3510833,P361,c(Q1752346))
action filter_type
action find
entity Q3510833
relation P361
type Q1752346
['Q3510833', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?i WHERE { resource:Q3510833 property:P361 ?i . ?i rdf:type ontology:Q1752346 }
Senate of the Bahamas
action filter_type
action find
entity Senate of the Bahamas
relation part of
type assembly
['Senate of the Bahamas', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?i WHERE { resource:Senate_of_the_Bahamas property:part_of ?i . ?i rdf:type ontology:assembly }
[]
assembly
Q1572486
SYSTEM
Parliament of The Bahamas
Q1572486
(Q3510833,P361,c(Q1752346))
action filter_type
action find
entity Q3510833
relation P361
type Q1752346
[ANSWER]
['Q3510833', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?i WHERE { resource:Q3510833 property:P361 ?i . ?i rdf:type ontology:Q1752346 }
Parliament of The Bahamas
Parliament of The Bahamas
action filter_type
action find
entity Senate of the Bahamas
relation part of
type assembly
['Senate of the Bahamas', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?i WHERE { resource:Senate_of_the_Bahamas property:part_of ?i . ?i rdf:type ontology:assembly }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1572486 Q778
P194
Q1048835
USER
Does The Bahamas have that assembly as its representative body ?
(Q778,P194,Q1572486)
action is_in
entity Q1572486
action find
entity Q778
relation P194
['Q778', 'P194', 'Q1572486']
ASK WHERE { resource:Q778 property:P194 resource:Q1572486 }
Parliament of The Bahamas The Bahamas
action is_in
entity Parliament of The Bahamas
action find
entity The Bahamas
relation legislative body
['The Bahamas', 'legislative body', 'Parliament of The Bahamas']
ASK WHERE { resource:The_Bahamas property:legislative_body resource:Parliament_of_The_Bahamas }
[]
political territorial entity
SYSTEM
YES
(Q778,P194,Q1572486)
action is_in
entity Q1572486
action find
entity Q778
relation P194
[ANSWER]
['Q778', 'P194', 'Q1572486']
ASK WHERE { resource:Q778 property:P194 resource:Q1572486 }
Yes
action is_in
entity Parliament of The Bahamas
action find
entity The Bahamas
relation legislative body
['The Bahamas', 'legislative body', 'Parliament of The Bahamas']
ASK WHERE { resource:The_Bahamas property:legislative_body resource:Parliament_of_The_Bahamas }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1572486
P17
Q1048835
USER
Which political territory is that assembly present in ?
action filter_type
action find
entity Q1572486
relation P17
type Q1048835
SELECT DISTINCT ?t WHERE { resource:Q1572486 property:P17 ?t . ?t rdf:type ontology:Q1048835 }
Parliament of The Bahamas
action filter_type
action find
entity Parliament of The Bahamas
relation country
type political territorial entity
SELECT DISTINCT ?t WHERE { resource:Parliament_of_The_Bahamas property:country ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q778
SYSTEM
The Bahamas
Q778
action filter_type
action find
entity Q1572486
relation P17
type Q1048835
That assembly is in [ANSWER]
SELECT DISTINCT ?t WHERE { resource:Q1572486 property:P17 ?t . ?t rdf:type ontology:Q1048835 }
The Bahamas
That assembly is in The Bahamas
The Bahamas
action filter_type
action find
entity Parliament of The Bahamas
relation country
type political territorial entity
SELECT DISTINCT ?t WHERE { resource:Parliament_of_The_Bahamas property:country ?t . ?t rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q873812 Q1624565
P19
Q515
USER
Which cities were Holger Mann or Ferenc Csizmarik born at ?
OR((Q1624565,P19,c(Q515)), (Q873812,P19,c(Q515)))
action filter_type
action union
action find
entity Q1624565
relation P19
action find
entity Q873812
relation P19
type Q515
{'OR': [['Q1624565', 'P19', {'concept': 'Q515'}], ['Q873812', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1624565 property:P19 ?v } UNION { resource:Q873812 property:P19 ?v } } . ?v rdf:type ontology:Q515 }
Ferenc Csizmarik Holger Mann
action filter_type
action union
action find
entity Holger Mann
relation place of birth
action find
entity Ferenc Csizmarik
relation place of birth
type city
{'OR': [['Holger Mann', 'place of birth', {'concept': 'city'}], ['Ferenc Csizmarik', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Holger_Mann property:place_of_birth ?v } UNION { resource:Ferenc_Csizmarik property:place_of_birth ?v } } . ?v rdf:type ontology:city }
[]
city
Q207408 Q1731
SYSTEM
Vác, Dresden
Q207408 Q1731
OR((Q1624565,P19,c(Q515)), (Q873812,P19,c(Q515)))
action filter_type
action union
action find
entity Q1624565
relation P19
action find
entity Q873812
relation P19
type Q515
Holger Mann or Ferenc Csizmarik were born in [ANSWERS]
{'OR': [['Q1624565', 'P19', {'concept': 'Q515'}], ['Q873812', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1624565 property:P19 ?v } UNION { resource:Q873812 property:P19 ?v } } . ?v rdf:type ontology:Q515 }
Vác Dresden
Holger Mann or Ferenc Csizmarik were born in Vác and Dresden
Vác Dresden
action filter_type
action union
action find
entity Holger Mann
relation place of birth
action find
entity Ferenc Csizmarik
relation place of birth
type city
{'OR': [['Holger Mann', 'place of birth', {'concept': 'city'}], ['Ferenc Csizmarik', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Holger_Mann property:place_of_birth ?v } UNION { resource:Ferenc_Csizmarik property:place_of_birth ?v } } . ?v rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q873812
P20
Q515
USER
Where did the demise of Ferenc Csizmarik occur ?
(Q873812,P20,c(Q515))
action filter_type
action find
entity Q873812
relation P20
type Q515
['Q873812', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q873812 property:P20 ?m . ?m rdf:type ontology:Q515 }
Ferenc Csizmarik
action filter_type
action find
entity Ferenc Csizmarik
relation place of death
type city
['Ferenc Csizmarik', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Ferenc_Csizmarik property:place_of_death ?m . ?m rdf:type ontology:city }
[]
city
Q207408
SYSTEM
Vác
Q207408
(Q873812,P20,c(Q515))
action filter_type
action find
entity Q873812
relation P20
type Q515
The demise of Ferenc Csizmarik occurred in [ANSWER]
['Q873812', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q873812 property:P20 ?m . ?m rdf:type ontology:Q515 }
Vác
The demise of Ferenc Csizmarik occurred in Vác
Vác
action filter_type
action find
entity Ferenc Csizmarik
relation place of death
type city
['Ferenc Csizmarik', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Ferenc_Csizmarik property:place_of_death ?m . ?m rdf:type ontology:city }
[]