Simple Question (Direct)
Simple Question
Q6012166
P21
Q290
USER
Which sex does Ulf Nilsson belong to ?
(Q6012166,P21,c(Q290))
action filter_type
action find
entity Q6012166
relation P21
type Q290
['Q6012166', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q6012166 property:P21 ?s . ?s rdf:type ontology:Q290 }
Ulf Nilsson
action filter_type
action find
entity Ulf Nilsson
relation gender
type sex
['Ulf Nilsson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Ulf_Nilsson property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6012166,P21,c(Q290))
action filter_type
action find
entity Q6012166
relation P21
type Q290
Ulf Nilsson belongs to [ANSWER]
['Q6012166', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q6012166 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Ulf Nilsson belongs to male
male
action filter_type
action find
entity Ulf Nilsson
relation gender
type sex
['Ulf Nilsson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Ulf_Nilsson property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6012166
P937
Q56061
USER
What is the work location of Ulf Nilsson ?
(Q6012166,P937,c(Q56061))
action filter_type
action find
entity Q6012166
relation P937
type Q56061
['Q6012166', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q6012166 property:P937 ?o }
Ulf Nilsson
action filter_type
action find
entity Ulf Nilsson
relation work location
type administrative territorial entity
['Ulf Nilsson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Ulf_Nilsson property:work_location ?o }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q6012166,P937,c(Q56061))
action filter_type
action find
entity Q6012166
relation P937
type Q56061
The work location of Ulf Nilsson is in [ANSWER]
['Q6012166', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q6012166 property:P937 ?o }
Stockholm
The work location of Ulf Nilsson is in Stockholm
Stockholm
action filter_type
action find
entity Ulf Nilsson
relation work location
type administrative territorial entity
['Ulf Nilsson', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Ulf_Nilsson property:work_location ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6012166
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q1754,P39,c(Q12737077))
action filter_type
action find
entity Q6012166
relation P39
type Q12737077
['Q1754', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q6012166 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Ulf Nilsson
action filter_type
action find
entity Ulf Nilsson
relation position held
type occupation
['Stockholm', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ulf_Nilsson property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q1754,P39,c(Q12737077))
action filter_type
action find
entity Q6012166
relation P39
type Q12737077
[ANSWER]
['Q1754', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q6012166 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag
Member of the Riksdag
action filter_type
action find
entity Ulf Nilsson
relation position held
type occupation
['Stockholm', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ulf_Nilsson property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18644842 Q6012166
P39 P106
Q12737077
USER
Which occupations were the positions occupied by Ulf Nilsson or have Nikolaj Meznarič as his/her as a career ?
OR((Q6012166,P39,c(Q12737077)), (Q18644842,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6012166
relation P39
action find
entity Q18644842
relation P106
type Q12737077
{'OR': [['Q6012166', 'P39', {'concept': 'Q12737077'}], ['Q18644842', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q6012166 property:P39 ?r } UNION { resource:Q18644842 property:P106 ?r } } . ?r rdf:type ontology:Q12737077 }
Nikolaj Meznarič Ulf Nilsson
action filter_type
action union
action find
entity Ulf Nilsson
relation position held
action find
entity Nikolaj Meznarič
relation occupation
type occupation
{'OR': [['Ulf Nilsson', 'position held', {'concept': 'occupation'}], ['Nikolaj Meznarič', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Ulf_Nilsson property:position_held ?r } UNION { resource:Nikolaj_Meznarič property:occupation ?r } } . ?r rdf:type ontology:occupation }
[]
occupation
Q10655178 Q42603
SYSTEM
Member of the Riksdag, priest
Q10655178 Q42603
OR((Q6012166,P39,c(Q12737077)), (Q18644842,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6012166
relation P39
action find
entity Q18644842
relation P106
type Q12737077
[ANSWERS] were the positions occupied by Ulf Nilsson or have Nikolaj Meznarič as his/her as a career
{'OR': [['Q6012166', 'P39', {'concept': 'Q12737077'}], ['Q18644842', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q6012166 property:P39 ?r } UNION { resource:Q18644842 property:P106 ?r } } . ?r rdf:type ontology:Q12737077 }
Member of the Riksdag priest
Member of the Riksdag and priest were the positions occupied by Ulf Nilsson or have Nikolaj Meznarič as his/her as a career
Member of the Riksdag priest
action filter_type
action union
action find
entity Ulf Nilsson
relation position held
action find
entity Nikolaj Meznarič
relation occupation
type occupation
{'OR': [['Ulf Nilsson', 'position held', {'concept': 'occupation'}], ['Nikolaj Meznarič', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Ulf_Nilsson property:position_held ?r } UNION { resource:Nikolaj_Meznarič property:occupation ?r } } . ?r rdf:type ontology:occupation }
[]