Simple Question (Direct)
Simple Question
Q1771427
P19
Q56061
USER
Where was Toril Brekke born ?
(Q1771427,P19,c(Q56061))
action filter_type
action find
entity Q1771427
relation P19
type Q56061
['Q1771427', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1771427 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Toril Brekke
action filter_type
action find
entity Toril Brekke
relation place of birth
type administrative territorial entity
['Toril Brekke', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Toril_Brekke property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q1771427,P19,c(Q56061))
action filter_type
action find
entity Q1771427
relation P19
type Q56061
Toril Brekke was born in [ANSWER]
['Q1771427', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1771427 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Oslo
Toril Brekke was born in Oslo
Oslo
action filter_type
action find
entity Toril Brekke
relation place of birth
type administrative territorial entity
['Toril Brekke', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Toril_Brekke property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1771427
P106
Q12737077
USER
What are the professions of that person ?
(Q585,P106,c(Q12737077))
action filter_type
action find
entity Q1771427
relation P106
type Q12737077
['Q585', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1771427 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Toril Brekke
action filter_type
action find
entity Toril Brekke
relation occupation
type occupation
['Oslo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Toril_Brekke property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q4263842 Q4853732 Q36180
SYSTEM
literary critic, children's writer, writer
Q4263842 Q4853732 Q36180 Q864380
(Q585,P106,c(Q12737077))
action filter_type
action find
entity Q1771427
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q585', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1771427 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
literary critic children's writer writer biographer
The professions of that person are literary critic, children's writer and writer
literary critic children's writer writer
action filter_type
action find
entity Toril Brekke
relation occupation
type occupation
['Oslo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Toril_Brekke property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q736886 Q1771427
P27
Q15617994
USER
Which administrative territories do Toril Brekke or Juan Barjola belong to ?
OR((Q1771427,P27,c(Q15617994)), (Q736886,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1771427
relation P27
action find
entity Q736886
relation P27
type Q15617994
{'OR': [['Q1771427', 'P27', {'concept': 'Q15617994'}], ['Q736886', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1771427 property:P27 ?s } UNION { resource:Q736886 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Juan Barjola Toril Brekke
action filter_type
action union
action find
entity Toril Brekke
relation country of citizenship
action find
entity Juan Barjola
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Toril Brekke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Juan Barjola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Toril_Brekke property:country_of_citizenship ?s } UNION { resource:Juan_Barjola property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q29
SYSTEM
Norway, Spain
Q20 Q29
OR((Q1771427,P27,c(Q15617994)), (Q736886,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1771427
relation P27
action find
entity Q736886
relation P27
type Q15617994
Toril Brekke or Juan Barjola belong to the [ANSWERS]
{'OR': [['Q1771427', 'P27', {'concept': 'Q15617994'}], ['Q736886', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1771427 property:P27 ?s } UNION { resource:Q736886 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Norway Spain
Toril Brekke or Juan Barjola belong to the Norway and Spain
Norway Spain
action filter_type
action union
action find
entity Toril Brekke
relation country of citizenship
action find
entity Juan Barjola
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Toril Brekke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Juan Barjola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Toril_Brekke property:country_of_citizenship ?s } UNION { resource:Juan_Barjola property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q56061 Q15617994
USER
How many administrative territories and administrative territories are next to the border of that administrative territory ?
(c(Q56061),P47,Q20) (c(Q15617994),P47,Q20) (c(Q56061),P47,Q20) (c(Q15617994),P47,Q20) (c(Q56061),P47,Q29) (c(Q15617994),P47,Q29)
[{'concept': 'Q56061'}, 'P47', 'Q20'] [{'concept': 'Q15617994'}, 'P47', 'Q20'] [{'concept': 'Q56061'}, 'P47', 'Q20'] [{'concept': 'Q15617994'}, 'P47', 'Q20'] [{'concept': 'Q56061'}, 'P47', 'Q29'] [{'concept': 'Q15617994'}, 'P47', 'Q29']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q7060816 } UNION { ?y property:P47 resource:Q7060816 } UNION { ?z property:P47 resource:Q7060816 } UNION { ?y property:P47 resource:Q7060816 } UNION { ?z property:P47 resource:Q20266861 } UNION { ?y property:P47 resource:Q20266861 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Spain']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Norway } UNION { ?y property:shares_border_with resource:Norway } UNION { ?z property:shares_border_with resource:Norway } UNION { ?y property:shares_border_with resource:Norway } UNION { ?z property:shares_border_with resource:Spain } UNION { ?y property:shares_border_with resource:Spain } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
administrative territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q20
SYSTEM
Did you mean Norway ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q7060816 } UNION { ?y property:P47 resource:Q7060816 } UNION { ?z property:P47 resource:Q7060816 } UNION { ?y property:P47 resource:Q7060816 } UNION { ?z property:P47 resource:Q20266861 } UNION { ?y property:P47 resource:Q20266861 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
Did you mean Norway ?
Norway
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Norway } UNION { ?y property:shares_border_with resource:Norway } UNION { ?z property:shares_border_with resource:Norway } UNION { ?y property:shares_border_with resource:Norway } UNION { ?z property:shares_border_with resource:Spain } UNION { ?y property:shares_border_with resource:Spain } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q56061),P47,Q20) (c(Q15617994),P47,Q20) (c(Q56061),P47,Q20) (c(Q15617994),P47,Q20) (c(Q56061),P47,Q29) (c(Q15617994),P47,Q29)
[{'concept': 'Q56061'}, 'P47', 'Q20'] [{'concept': 'Q15617994'}, 'P47', 'Q20'] [{'concept': 'Q56061'}, 'P47', 'Q20'] [{'concept': 'Q15617994'}, 'P47', 'Q20'] [{'concept': 'Q56061'}, 'P47', 'Q29'] [{'concept': 'Q15617994'}, 'P47', 'Q29']
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Spain']
[]
SYSTEM
4
Q33 Q159 Q458 Q34
(c(Q56061),P47,Q20) (c(Q15617994),P47,Q20) (c(Q56061),P47,Q20) (c(Q15617994),P47,Q20) (c(Q56061),P47,Q29) (c(Q15617994),P47,Q29)
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q20'] [{'concept': 'Q15617994'}, 'P47', 'Q20'] [{'concept': 'Q56061'}, 'P47', 'Q20'] [{'concept': 'Q15617994'}, 'P47', 'Q20'] [{'concept': 'Q56061'}, 'P47', 'Q29'] [{'concept': 'Q15617994'}, 'P47', 'Q29']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q7060816 } UNION { ?y property:P47 resource:Q7060816 } UNION { ?z property:P47 resource:Q7060816 } UNION { ?y property:P47 resource:Q7060816 } UNION { ?z property:P47 resource:Q20266861 } UNION { ?y property:P47 resource:Q20266861 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
Finland Russia European Union Sweden
4
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway'] [{'concept': 'administrative territorial entity'}, 'shares border with', 'Spain'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Spain']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:Norway } UNION { ?y property:shares_border_with resource:Norway } UNION { ?z property:shares_border_with resource:Norway } UNION { ?y property:shares_border_with resource:Norway } UNION { ?z property:shares_border_with resource:Spain } UNION { ?y property:shares_border_with resource:Spain } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q585
P551
Q502895
USER
Which people live in Oslo ?
(c(Q502895),P551,Q585)
action filter_type
action find_reverse
entity Q585
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q585']
SELECT DISTINCT ?a WHERE { ?a property:P551 resource:Q585 . ?a rdf:type ontology:Q502895 }
Oslo
action filter_type
action find_reverse
entity Oslo
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Oslo']
SELECT DISTINCT ?a WHERE { ?a property:residence resource:Oslo . ?a rdf:type ontology:common_name }
[]
common name
Q2567 Q107405 Q24756
SYSTEM
Richard von Weizsäcker, Lars Onsager, Knut Johannesen
Q1081654 Q107405 Q20801590 Q14552524 Q18643319 Q2567 Q4724776 Q41406 Q1618183 Q22978422 Q15650900 Q24756 Q12000522 Q18392988 Q24250266
(c(Q502895),P551,Q585)
action filter_type
action find_reverse
entity Q585
relation P551
type Q502895
[ANSWERS] live in Oslo
[{'concept': 'Q502895'}, 'P551', 'Q585']
SELECT DISTINCT ?a WHERE { ?a property:P551 resource:Q585 . ?a rdf:type ontology:Q502895 }
Christian Ruud Lars Onsager Didrik Hermansen Marte Michelet Yvonne Dåbakk Richard von Weizsäcker Ali Esbati Edvard Munch Ulrikke Eikeri Esben Holmboe Bang Gunnar Tjomlid Knut Johannesen Simeon Thoresen Stefan Kutzsche Gitte Brunstad
Richard von Weizsäcker, Lars Onsager and Knut Johannesen live in Oslo
Richard von Weizsäcker Lars Onsager Knut Johannesen
action filter_type
action find_reverse
entity Oslo
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Oslo']
SELECT DISTINCT ?a WHERE { ?a property:residence resource:Oslo . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2567 Q107405 Q24756
P551
Q56061
USER
Where did Richard von Weizsäcker, Lars Onsager and Knut Johannesen live ?
(Q2567,P551,c(Q56061)) (Q107405,P551,c(Q56061)) (Q24756,P551,c(Q56061))
action union
action filter_type
action find
entity Q2567
relation P551
type Q56061
action filter_type
action find
entity Q107405
relation P551
type Q56061
action filter_type
action find
entity Q24756
relation P551
type Q56061
['Q2567', 'P551', {'concept': 'Q56061'}] ['Q107405', 'P551', {'concept': 'Q56061'}] ['Q24756', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q56061 . resource:Q2567 property:P551 ?n } UNION { resource:Q107405 property:P551 ?n . ?n rdf:type ontology:Q56061 } }
Richard von Weizsäcker Lars Onsager Knut Johannesen
action union
action filter_type
action find
entity Richard von Weizsäcker
relation residence
type administrative territorial entity
action filter_type
action find
entity Lars Onsager
relation residence
type administrative territorial entity
action filter_type
action find
entity Knut Johannesen
relation residence
type administrative territorial entity
['Richard von Weizsäcker', 'residence', {'concept': 'administrative territorial entity'}] ['Lars Onsager', 'residence', {'concept': 'administrative territorial entity'}] ['Knut Johannesen', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:administrative_territorial_entity . resource:Richard_von_Weizsäcker property:residence ?n } UNION { resource:Lars_Onsager property:residence ?n . ?n rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q64 Q585 Q585
SYSTEM
Berlin for 1st, Oslo for 2nd, 3rd
Q1748 Q64 Q585 Q70 Q78 Q585 Q585
(Q2567,P551,c(Q56061)) (Q107405,P551,c(Q56061)) (Q24756,P551,c(Q56061))
action union
action filter_type
action find
entity Q2567
relation P551
type Q56061
action filter_type
action find
entity Q107405
relation P551
type Q56061
action filter_type
action find
entity Q24756
relation P551
type Q56061
[ANSWERS]
['Q2567', 'P551', {'concept': 'Q56061'}] ['Q107405', 'P551', {'concept': 'Q56061'}] ['Q24756', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q56061 . resource:Q2567 property:P551 ?n } UNION { resource:Q107405 property:P551 ?n . ?n rdf:type ontology:Q56061 } }
Copenhagen Berlin Oslo Bern Basel Oslo Oslo
Richard von Weizsäcker , Lars Onsager and Knut Johannesen lived in Berlin, Oslo and Oslo
Berlin Oslo Oslo
action union
action filter_type
action find
entity Richard von Weizsäcker
relation residence
type administrative territorial entity
action filter_type
action find
entity Lars Onsager
relation residence
type administrative territorial entity
action filter_type
action find
entity Knut Johannesen
relation residence
type administrative territorial entity
['Richard von Weizsäcker', 'residence', {'concept': 'administrative territorial entity'}] ['Lars Onsager', 'residence', {'concept': 'administrative territorial entity'}] ['Knut Johannesen', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:administrative_territorial_entity . resource:Richard_von_Weizsäcker property:residence ?n } UNION { resource:Lars_Onsager property:residence ?n . ?n rdf:type ontology:administrative_territorial_entity } }
[]