Simple Question (Direct)
Simple Question
Q1948686
P27
Q1048835
USER
Which political territory is Morten Pedersen an inhabitant of ?
(Q1948686,P27,c(Q1048835))
action filter_type
action find
entity Q1948686
relation P27
type Q1048835
['Q1948686', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1948686 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Morten Pedersen
action filter_type
action find
entity Morten Pedersen
relation country of citizenship
type political territorial entity
['Morten Pedersen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Morten_Pedersen property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q1948686,P27,c(Q1048835))
action filter_type
action find
entity Q1948686
relation P27
type Q1048835
The [ANSWER] is Morten Pedersen an inhabitant of
['Q1948686', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1948686 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Denmark
The Denmark is Morten Pedersen an inhabitant of
Denmark
action filter_type
action find
entity Morten Pedersen
relation country of citizenship
type political territorial entity
['Morten Pedersen', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Morten_Pedersen property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1948686
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q35,P20,c(Q56061))
action filter_type
action find
entity Q1948686
relation P20
type Q56061
['Q35', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1948686 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Morten Pedersen
action filter_type
action find
entity Morten Pedersen
relation place of death
type administrative territorial entity
['Denmark', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Morten_Pedersen property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q26563
SYSTEM
Roskilde
Q26563
(Q35,P20,c(Q56061))
action filter_type
action find
entity Q1948686
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q35', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1948686 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Roskilde
The expiration of that person occurred in Roskilde
Roskilde
action filter_type
action find
entity Morten Pedersen
relation place of death
type administrative territorial entity
['Denmark', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Morten_Pedersen property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1948686
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q26563,P106,c(Q12737077))
action filter_type
action find
entity Q1948686
relation P106
type Q12737077
['Q26563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q1948686 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Morten Pedersen
action filter_type
action find
entity Morten Pedersen
relation occupation
type occupation
['Roskilde', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Morten_Pedersen property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q201788 Q1234713 Q36180
SYSTEM
historian, theologian, writer
Q201788 Q1234713 Q36180 Q11063
(Q26563,P106,c(Q12737077))
action filter_type
action find
entity Q1948686
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q26563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q1948686 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
historian theologian writer astronomer
The professions of that person are historian, theologian and writer
historian theologian writer
action filter_type
action find
entity Morten Pedersen
relation occupation
type occupation
['Roskilde', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Morten_Pedersen property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q6298402 Q1948686
P106
Q12737077
USER
And also João Teixeira Soares de Sousa
AND((Q1948686,P106,c(Q12737077)), (Q6298402,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1948686
relation P106
action find
entity Q6298402
relation P106
type Q12737077
{'AND': [['Q1948686', 'P106', {'concept': 'Q12737077'}], ['Q6298402', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { resource:Q1948686 property:P106 ?i . resource:Q6298402 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
João Teixeira Soares de Sousa Morten Pedersen
action filter_type
action intersection
action find
entity Morten Pedersen
relation occupation
action find
entity João Teixeira Soares de Sousa
relation occupation
type occupation
{'AND': [['Morten Pedersen', 'occupation', {'concept': 'occupation'}], ['João Teixeira Soares de Sousa', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { resource:Morten_Pedersen property:occupation ?i . resource:João_Teixeira_Soares_de_Sousa property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q201788
SYSTEM
historian
Q201788
AND((Q1948686,P106,c(Q12737077)), (Q6298402,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1948686
relation P106
action find
entity Q6298402
relation P106
type Q12737077
[ANSWER]
{'AND': [['Q1948686', 'P106', {'concept': 'Q12737077'}], ['Q6298402', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { resource:Q1948686 property:P106 ?i . resource:Q6298402 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
historian
historian
action filter_type
action intersection
action find
entity Morten Pedersen
relation occupation
action find
entity João Teixeira Soares de Sousa
relation occupation
type occupation
{'AND': [['Morten Pedersen', 'occupation', {'concept': 'occupation'}], ['João Teixeira Soares de Sousa', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { resource:Morten_Pedersen property:occupation ?i . resource:João_Teixeira_Soares_de_Sousa property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26563
P532
Q2235308
USER
What is the registry port of Roskilde ?
(c(Q2235308),P532,Q26563)
action filter_type
action find_reverse
entity Q26563
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', 'Q26563']
SELECT DISTINCT ?c WHERE { ?c property:P532 resource:Q26563 . ?c rdf:type ontology:Q2235308 }
Roskilde
action filter_type
action find_reverse
entity Roskilde
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Roskilde']
SELECT DISTINCT ?c WHERE { ?c property:port_of_registry resource:Roskilde . ?c rdf:type ontology:ship_type }
[]
ship type
Q5338632
SYSTEM
Edith Mærsk
Q5338632
(c(Q2235308),P532,Q26563)
action filter_type
action find_reverse
entity Q26563
relation P532
type Q2235308
The registry port of Roskilde is [ANSWER]
[{'concept': 'Q2235308'}, 'P532', 'Q26563']
SELECT DISTINCT ?c WHERE { ?c property:P532 resource:Q26563 . ?c rdf:type ontology:Q2235308 }
Edith Mærsk
The registry port of Roskilde is Edith Mærsk
Edith Mærsk
action filter_type
action find_reverse
entity Roskilde
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Roskilde']
SELECT DISTINCT ?c WHERE { ?c property:port_of_registry resource:Roskilde . ?c rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26563
P17
Q1048835
USER
Which political territory does that administrative territory belong to ?
(Q5338632,P17,c(Q1048835))
action filter_type
action find
entity Q26563
relation P17
type Q1048835
['Q5338632', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q26563 property:P17 ?r . ?r rdf:type ontology:Q1048835 }
Roskilde
action filter_type
action find
entity Roskilde
relation country
type political territorial entity
['Edith Mærsk', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Roskilde property:country ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q5338632,P17,c(Q1048835))
action filter_type
action find
entity Q26563
relation P17
type Q1048835
That administrative territory belongs to [ANSWER]
['Q5338632', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q26563 property:P17 ?r . ?r rdf:type ontology:Q1048835 }
Denmark
That administrative territory belongs to Denmark
Denmark
action filter_type
action find
entity Roskilde
relation country
type political territorial entity
['Edith Mærsk', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Roskilde property:country ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q15617994
USER
How many political territories and administrative territories have diplomatic relationships with that political territory ?
(Q35,P530,c(Q1048835)) (Q35,P530,c(Q15617994)) (Q35,P530,c(Q1048835)) (Q35,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q35
relation P530
type Q1048835
action filter_type
action find
entity Q35
relation P530
type Q15617994
['Q35', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q15617994'}] ['Q35', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
action count
action union
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
3 political territories and 3 administrative territories
Q155 Q183 Q408 Q16 Q953 Q38
(Q35,P530,c(Q1048835)) (Q35,P530,c(Q15617994)) (Q35,P530,c(Q1048835)) (Q35,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q35
relation P530
type Q1048835
action filter_type
action find
entity Q35
relation P530
type Q15617994
[ANSWER]
['Q35', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q15617994'}] ['Q35', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Brazil Germany Australia Canada Zambia Italy
3 political territories and 3 administrative territories
action count
action union
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ?v . VALUES ( ?v ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]