Simple Question (Direct)
Simple Question
Q5958869
P39
Q12737077
USER
Which occupation was a position for which Torsten Lindström was appointed ?
(Q5958869,P39,c(Q12737077))
action filter_type
action find
entity Q5958869
relation P39
type Q12737077
['Q5958869', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5958869 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Torsten Lindström
action filter_type
action find
entity Torsten Lindström
relation position held
type occupation
['Torsten Lindström', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Torsten_Lindström property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q5958869,P39,c(Q12737077))
action filter_type
action find
entity Q5958869
relation P39
type Q12737077
[ANSWER] was a position for which Torsten Lindström was appointed
['Q5958869', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q5958869 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag was a position for which Torsten Lindström was appointed
Member of the Riksdag
action filter_type
action find
entity Torsten Lindström
relation position held
type occupation
['Torsten Lindström', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Torsten_Lindström property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5958869
P734
Q82799
USER
Which name is associated with that person ?
(Q10655178,P734,c(Q82799))
action filter_type
action find
entity Q5958869
relation P734
type Q82799
['Q10655178', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q5958869 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Torsten Lindström
action filter_type
action find
entity Torsten Lindström
relation family name
type name
['Member of the Riksdag', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Torsten_Lindström property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q23305486
SYSTEM
Lindström
Q23305486
(Q10655178,P734,c(Q82799))
action filter_type
action find
entity Q5958869
relation P734
type Q82799
[ANSWER] is associated with that person
['Q10655178', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q5958869 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Lindström
Lindström is associated with that person
Lindström
action filter_type
action find
entity Torsten Lindström
relation family name
type name
['Member of the Riksdag', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Torsten_Lindström property:family_name ?j . ?j rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5958869
P937
Q56061
USER
What is the location where Torsten Lindström worked ?
(Q5958869,P937,c(Q56061))
action filter_type
action find
entity Q5958869
relation P937
type Q56061
['Q5958869', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q5958869 property:P937 ?q . ?q rdf:type ontology:Q56061 }
Torsten Lindström
action filter_type
action find
entity Torsten Lindström
relation work location
type administrative territorial entity
['Torsten Lindström', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Torsten_Lindström property:work_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q5958869,P937,c(Q56061))
action filter_type
action find
entity Q5958869
relation P937
type Q56061
The location Torsten Lindström worked is in [ANSWER]
['Q5958869', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q5958869 property:P937 ?q . ?q rdf:type ontology:Q56061 }
Stockholm
The location Torsten Lindström worked is in Stockholm
Stockholm
action filter_type
action find
entity Torsten Lindström
relation work location
type administrative territorial entity
['Torsten Lindström', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Torsten_Lindström property:work_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2077290
Q56061
USER
And what about Peter Niggli?
(Q2077290,P937,c(Q56061))
action filter_type
action find
entity Q2077290
relation P937
type Q56061
['Q2077290', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q2077290 property:P937 ?p }
Peter Niggli
action filter_type
action find
entity Peter Niggli
relation work location
type administrative territorial entity
['Peter Niggli', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Peter_Niggli property:work_location ?p }
[]
administrative territorial entity
Q72
SYSTEM
Zürich
Q72
(Q2077290,P937,c(Q56061))
action filter_type
action find
entity Q2077290
relation P937
type Q56061
[ANSWER]
['Q2077290', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q2077290 property:P937 ?p }
Zürich
Zürich
action filter_type
action find
entity Peter Niggli
relation work location
type administrative territorial entity
['Peter Niggli', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Peter_Niggli property:work_location ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q72
P190
Q515 Q13220204
USER
How many cities or administrative country subdivisions are sister town of Zürich ?
(c(Q515),P190,Q72) (c(Q13220204),P190,Q72)
action count
action union
action filter_type
action find_reverse
entity Q72
relation P190
type Q515
action filter_type
action find_reverse
entity Q72
relation P190
type Q13220204
[{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q72']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:P190 resource:Q72 . ?f rdf:type ontology:Q515 } UNION { ?f rdf:type ontology:Q13220204 . ?f property:P190 resource:Q72 } }
Zürich
action count
action union
action filter_type
action find_reverse
entity Zürich
relation sister city
type city
action filter_type
action find_reverse
entity Zürich
relation sister city
type second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:sister_city resource:Zürich . ?f rdf:type ontology:city } UNION { ?f rdf:type ontology:second-level_administrative_country_subdivision . ?f property:sister_city resource:Zürich } }
[]
city second-level administrative country subdivision
SYSTEM
2
Q182852 Q157144
(c(Q515),P190,Q72) (c(Q13220204),P190,Q72)
action count
action union
action filter_type
action find_reverse
entity Q72
relation P190
type Q515
action filter_type
action find_reverse
entity Q72
relation P190
type Q13220204
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q72'] [{'concept': 'Q13220204'}, 'P190', 'Q72']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:P190 resource:Q72 . ?f rdf:type ontology:Q515 } UNION { ?f rdf:type ontology:Q13220204 . ?f property:P190 resource:Q72 } }
Kunming Vinnytsia
2
action count
action union
action filter_type
action find_reverse
entity Zürich
relation sister city
type city
action filter_type
action find_reverse
entity Zürich
relation sister city
type second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', 'Zürich'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Zürich']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:sister_city resource:Zürich . ?f rdf:type ontology:city } UNION { ?f rdf:type ontology:second-level_administrative_country_subdivision . ?f property:sister_city resource:Zürich } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1754
P532
Q16103215 Q2235308
USER
How many boat types or ship types have Stockholm as registry port ?
(c(Q16103215),P532,Q1754) (c(Q2235308),P532,Q1754)
action count
action union
action filter_type
action find_reverse
entity Q1754
relation P532
type Q16103215
action filter_type
action find_reverse
entity Q1754
relation P532
type Q2235308
[{'concept': 'Q16103215'}, 'P532', 'Q1754'] [{'concept': 'Q2235308'}, 'P532', 'Q1754']
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:P532 resource:Q1754 . ?y rdf:type ontology:Q16103215 } UNION { ?y property:P532 resource:Q1754 . ?y rdf:type ontology:Q2235308 } }
Stockholm
action count
action union
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type boat type
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type ship type
[{'concept': 'boat type'}, 'port of registry', 'Stockholm'] [{'concept': 'ship type'}, 'port of registry', 'Stockholm']
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:port_of_registry resource:Stockholm . ?y rdf:type ontology:boat_type } UNION { ?y property:port_of_registry resource:Stockholm . ?y rdf:type ontology:ship_type } }
[]
boat type ship type
SYSTEM
3
Q7394166 Q10659251 Q15662618
(c(Q16103215),P532,Q1754) (c(Q2235308),P532,Q1754)
action count
action union
action filter_type
action find_reverse
entity Q1754
relation P532
type Q16103215
action filter_type
action find_reverse
entity Q1754
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q16103215'}, 'P532', 'Q1754'] [{'concept': 'Q2235308'}, 'P532', 'Q1754']
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:P532 resource:Q1754 . ?y rdf:type ontology:Q16103215 } UNION { ?y property:P532 resource:Q1754 . ?y rdf:type ontology:Q2235308 } }
SS Orion S/S Drottningholm Djurgården 8
3
action count
action union
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type boat type
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type ship type
[{'concept': 'boat type'}, 'port of registry', 'Stockholm'] [{'concept': 'ship type'}, 'port of registry', 'Stockholm']
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { ?y property:port_of_registry resource:Stockholm . ?y rdf:type ontology:boat_type } UNION { ?y property:port_of_registry resource:Stockholm . ?y rdf:type ontology:ship_type } }
[]