Simple Question (Direct)
Simple Question
Q5978301
P937
Q56061
USER
What is the location where Jerry Martinger worked ?
(Q5978301,P937,c(Q56061))
action filter_type
action find
entity Q5978301
relation P937
type Q56061
['Q5978301', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q5978301 property:P937 ?f }
Jerry Martinger
action filter_type
action find
entity Jerry Martinger
relation work location
type administrative territorial entity
['Jerry Martinger', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Jerry_Martinger property:work_location ?f }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q5978301,P937,c(Q56061))
action filter_type
action find
entity Q5978301
relation P937
type Q56061
The location Jerry Martinger worked is in [ANSWER]
['Q5978301', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q5978301 property:P937 ?f }
Stockholm
The location Jerry Martinger worked is in Stockholm
Stockholm
action filter_type
action find
entity Jerry Martinger
relation work location
type administrative territorial entity
['Jerry Martinger', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Jerry_Martinger property:work_location ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1754
P119
Q502895
USER
Which person was burried at that administrative territory ?
(c(Q502895),P119,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q1754']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P119 resource:Q1754 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Stockholm']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:place_of_burial resource:Stockholm }
[]
common name
Q21014565
SYSTEM
John Lagerkranz
Q21014565
(c(Q502895),P119,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P119
type Q502895
[ANSWER] was burried at that administrative territory
[{'concept': 'Q502895'}, 'P119', 'Q1754']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P119 resource:Q1754 }
John Lagerkranz
John Lagerkranz was burried at that administrative territory
John Lagerkranz
action filter_type
action find_reverse
entity Stockholm
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Stockholm']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:place_of_burial resource:Stockholm }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21014565
P21
Q290
USER
What is the sex of that person ?
(Q21014565,P21,c(Q290))
action filter_type
action find
entity Q21014565
relation P21
type Q290
['Q21014565', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q21014565 property:P21 ?j . ?j rdf:type ontology:Q290 }
John Lagerkranz
action filter_type
action find
entity John Lagerkranz
relation gender
type sex
['John Lagerkranz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:John_Lagerkranz property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21014565,P21,c(Q290))
action filter_type
action find
entity Q21014565
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q21014565', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q21014565 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity John Lagerkranz
relation gender
type sex
['John Lagerkranz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:John_Lagerkranz property:gender ?j . ?j rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q3419488
P21
Q502895
USER
Does Raphaël Millet have the gender as that sex ?
(Q3419488,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3419488
relation P21
['Q3419488', 'P21', 'Q6581097']
ASK WHERE { resource:Q3419488 property:P21 resource:Q6581097 }
male Raphaël Millet
action is_in
entity male
action find
entity Raphaël Millet
relation gender
['Raphaël Millet', 'gender', 'male']
ASK WHERE { resource:Raphaël_Millet property:gender resource:male }
[]
common name
SYSTEM
YES
(Q3419488,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3419488
relation P21
[ANSWER]
['Q3419488', 'P21', 'Q6581097']
ASK WHERE { resource:Q3419488 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Raphaël Millet
relation gender
['Raphaël Millet', 'gender', 'male']
ASK WHERE { resource:Raphaël_Millet property:gender resource:male }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1754
P532
Q2235308
USER
Which ship types have their base port as Stockholm ?
(c(Q2235308),P532,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', 'Q1754']
SELECT DISTINCT ?p WHERE { ?p property:P532 resource:Q1754 . ?p rdf:type ontology:Q2235308 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Stockholm']
SELECT DISTINCT ?p WHERE { ?p property:port_of_registry resource:Stockholm . ?p rdf:type ontology:ship_type }
[]
ship type
Q10659251 Q15662618
SYSTEM
S/S Drottningholm, Djurgården 8
Q10659251 Q15662618
(c(Q2235308),P532,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P532
type Q2235308
[ANSWERS] have their base port as Stockholm
[{'concept': 'Q2235308'}, 'P532', 'Q1754']
SELECT DISTINCT ?p WHERE { ?p property:P532 resource:Q1754 . ?p rdf:type ontology:Q2235308 }
S/S Drottningholm Djurgården 8
S/S Drottningholm and Djurgården 8 have their base port as Stockholm
S/S Drottningholm Djurgården 8
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Stockholm']
SELECT DISTINCT ?p WHERE { ?p property:port_of_registry resource:Stockholm . ?p rdf:type ontology:ship_type }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15662618
P516
Q16058315
USER
What is used to power that ship type ?
(Q15662618,P516,c(Q16058315))
action filter_type
action find
entity Q15662618
relation P516
type Q16058315
['Q15662618', 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?w WHERE { resource:Q15662618 property:P516 ?w . ?w rdf:type ontology:Q16058315 }
Djurgården 8
action filter_type
action find
entity Djurgården 8
relation powerplant
type combustion engine
['Djurgården 8', 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?w WHERE { resource:Djurgården_8 property:powerplant ?w . ?w rdf:type ontology:combustion_engine }
[]
combustion engine
Clarification for simple ques.
Q15662618
SYSTEM
Did you mean Djurgården 8 ?
Q10659251 Q15662618
(Q10659251,P516,c(Q16058315)) (Q15662618,P516,c(Q16058315))
[ANSWER]
['Q10659251', 'P516', {'concept': 'Q16058315'}] ['Q15662618', 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?w WHERE { resource:Q15662618 property:P516 ?w . ?w rdf:type ontology:Q16058315 }
S/S Drottningholm Djurgården 8
Did you mean Djurgården 8 ?
Djurgården 8
['S/S Drottningholm', 'powerplant', {'concept': 'combustion engine'}] ['Djurgården 8', 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?w WHERE { resource:Djurgården_8 property:powerplant ?w . ?w rdf:type ontology:combustion_engine }
[]
Simple Question (Coreferenced)
USER
Yes
(Q15662618,P516,c(Q16058315))
['Q15662618', 'P516', {'concept': 'Q16058315'}]
['Djurgården 8', 'powerplant', {'concept': 'combustion engine'}]
[]
Q174174
SYSTEM
diesel engine
Q174174
(Q15662618,P516,c(Q16058315))
action filter_type
action find
entity Q15662618
relation P516
type Q16058315
[ANSWER] is used to power that ship type
['Q15662618', 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?w WHERE { resource:Q15662618 property:P516 ?w . ?w rdf:type ontology:Q16058315 }
diesel engine
Diesel engine is used to power that ship type
diesel engine
action filter_type
action find
entity Djurgården 8
relation powerplant
type combustion engine
['Djurgården 8', 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?w WHERE { resource:Djurgården_8 property:powerplant ?w . ?w rdf:type ontology:combustion_engine }
[]