Simple Question (Direct)
Simple Question
Q1772857
P19
Q15700808
USER
Which urban unit definition was Sven-Ingvar Andersson born at ?
(Q1772857,P19,c(Q15700808))
action filter_type
action find
entity Q1772857
relation P19
type Q15700808
['Q1772857', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?w WHERE { resource:Q1772857 property:P19 ?w . ?w rdf:type ontology:Q15700808 }
Sven-Ingvar Andersson
action filter_type
action find
entity Sven-Ingvar Andersson
relation place of birth
type urban unit definition
['Sven-Ingvar Andersson', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?w WHERE { resource:Sven-Ingvar_Andersson property:place_of_birth ?w . ?w rdf:type ontology:urban_unit_definition }
[]
urban unit definition
Q569800
SYSTEM
Södra Sandby
Q569800
(Q1772857,P19,c(Q15700808))
action filter_type
action find
entity Q1772857
relation P19
type Q15700808
Which urban unit definition was Sven-Ingvar Andersson born at
['Q1772857', 'P19', {'concept': 'Q15700808'}]
SELECT DISTINCT ?w WHERE { resource:Q1772857 property:P19 ?w . ?w rdf:type ontology:Q15700808 }
Södra Sandby
Which urban unit definition was Sven-Ingvar Andersson born at
Södra Sandby
action filter_type
action find
entity Sven-Ingvar Andersson
relation place of birth
type urban unit definition
['Sven-Ingvar Andersson', 'place of birth', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?w WHERE { resource:Sven-Ingvar_Andersson property:place_of_birth ?w . ?w rdf:type ontology:urban_unit_definition }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q569800
P17
Q15617994
USER
Which administrative territory is that urban unit definition a part of ?
(Q569800,P17,c(Q15617994))
action filter_type
action find
entity Q569800
relation P17
type Q15617994
['Q569800', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q569800 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Södra Sandby
action filter_type
action find
entity Södra Sandby
relation country
type designation for an administrative territorial entity
['Södra Sandby', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Södra_Sandby property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q569800,P17,c(Q15617994))
action filter_type
action find
entity Q569800
relation P17
type Q15617994
[ANSWER] is that urban unit definition a part of
['Q569800', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q569800 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Sweden
Sweden is that urban unit definition a part of
Sweden
action filter_type
action find
entity Södra Sandby
relation country
type designation for an administrative territorial entity
['Södra Sandby', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Södra_Sandby property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P119
Q502895
USER
Which people were burried at that administrative territory ?
(c(Q502895),P119,Q34)
action filter_type
action find_reverse
entity Q34
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q34']
SELECT DISTINCT ?h WHERE { ?h property:P119 resource:Q34 . ?h rdf:type ontology:Q502895 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Sweden']
SELECT DISTINCT ?h WHERE { ?h property:place_of_burial resource:Sweden . ?h rdf:type ontology:common_name }
[]
common name
Q10720409 Q10492595
SYSTEM
Wivi-Anne Cederqvist, Eva von Bahr
Q10720409 Q10492595
(c(Q502895),P119,Q34)
action filter_type
action find_reverse
entity Q34
relation P119
type Q502895
[ANSWERS] were burried at that administrative territory
[{'concept': 'Q502895'}, 'P119', 'Q34']
SELECT DISTINCT ?h WHERE { ?h property:P119 resource:Q34 . ?h rdf:type ontology:Q502895 }
Wivi-Anne Cederqvist Eva von Bahr
Wivi-Anne Cederqvist and Eva von Bahr were burried at that administrative territory
Wivi-Anne Cederqvist Eva von Bahr
action filter_type
action find_reverse
entity Sweden
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Sweden']
SELECT DISTINCT ?h WHERE { ?h property:place_of_burial resource:Sweden . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q10720409 Q10492595
P106
Q12737077
USER
Which occupations have Wivi-Anne Cederqvist and Eva von Bahr as his/her 's career ?
(Q10720409,P106,c(Q12737077)) (Q10492595,P106,c(Q12737077))
action union
action filter_type
action find
entity Q10720409
relation P106
type Q12737077
action filter_type
action find
entity Q10492595
relation P106
type Q12737077
['Q10720409', 'P106', {'concept': 'Q12737077'}] ['Q10492595', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { resource:Q10720409 property:P106 ?x . ?x rdf:type ontology:Q12737077 } UNION { resource:Q10492595 property:P106 ?x . ?x rdf:type ontology:Q12737077 } }
Wivi-Anne Cederqvist Eva von Bahr
action union
action filter_type
action find
entity Wivi-Anne Cederqvist
relation occupation
type occupation
action filter_type
action find
entity Eva von Bahr
relation occupation
type occupation
['Wivi-Anne Cederqvist', 'occupation', {'concept': 'occupation'}] ['Eva von Bahr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { resource:Wivi-Anne_Cederqvist property:occupation ?x . ?x rdf:type ontology:occupation } UNION { resource:Eva_von_Bahr property:occupation ?x . ?x rdf:type ontology:occupation } }
[]
occupation
Q82955 Q169470 Q462390
SYSTEM
politician, physicist, docent
Q82955 Q169470 Q462390
(Q10720409,P106,c(Q12737077)) (Q10492595,P106,c(Q12737077))
action union
action filter_type
action find
entity Q10720409
relation P106
type Q12737077
action filter_type
action find
entity Q10492595
relation P106
type Q12737077
[ANSWERS] have Wivi-Anne Cederqvist and Eva von Bahr as his/her 's career
['Q10720409', 'P106', {'concept': 'Q12737077'}] ['Q10492595', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { { resource:Q10720409 property:P106 ?x . ?x rdf:type ontology:Q12737077 } UNION { resource:Q10492595 property:P106 ?x . ?x rdf:type ontology:Q12737077 } }
politician physicist docent
Politician, physicist and docent have Wivi-Anne Cederqvist and Eva von Bahr as his/her 's career
politician physicist docent
action union
action filter_type
action find
entity Wivi-Anne Cederqvist
relation occupation
type occupation
action filter_type
action find
entity Eva von Bahr
relation occupation
type occupation
['Wivi-Anne Cederqvist', 'occupation', {'concept': 'occupation'}] ['Eva von Bahr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { { resource:Wivi-Anne_Cederqvist property:occupation ?x . ?x rdf:type ontology:occupation } UNION { resource:Eva_von_Bahr property:occupation ?x . ?x rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q462390
P39
Q502895
USER
Who held the position of that occupation ?
(c(Q502895),P39,Q462390)
action filter_type
action find_reverse
entity Q462390
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q462390']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P39 resource:Q462390 }
docent
action filter_type
action find_reverse
entity docent
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'docent']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:position_held resource:docent }
[]
common name
Clarification for simple ques.
Q169470
SYSTEM
Did you mean physicist ?
Q82955 Q169470 Q462390
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q169470) (c(Q502895),P39,Q462390)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q169470'] [{'concept': 'Q502895'}, 'P39', 'Q462390']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P39 resource:Q462390 }
politician physicist docent
Did you mean physicist ?
physicist
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'physicist'] [{'concept': 'common name'}, 'position held', 'docent']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:position_held resource:docent }
[]
Simple Question (Coreferenced)
USER
No, I meant docent. Could you tell me the answer for that?
(c(Q502895),P39,Q462390)
Q462390
[{'concept': 'Q502895'}, 'P39', 'Q462390']
[{'concept': 'common name'}, 'position held', 'docent']
[]
Q26736564 Q4103982 Q19741977
SYSTEM
Hartmut Waetzoldt, Vera Varsonofeva, Zinaida Belykh
Q3229191 Q2074264 Q4180618 Q2965190 Q16698998 Q23021505 Q17522669 Q4103982 Q26736564 Q27701842 Q18221297 Q3168671 Q17497084 Q18744995 Q17493969 Q17630871 Q21708173 Q3350761 Q19969046 Q19741977
(c(Q502895),P39,Q462390)
action filter_type
action find_reverse
entity Q462390
relation P39
type Q502895
[ANSWERS] held the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q462390']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P39 resource:Q462390 }
Leili Anvar Peter Calmeyer Aleksandr Zhitenev Christian Daudel Vladimir Ivanovich Sobolev Diana Lemay Kinga Miodońska-Joucaviel Vera Varsonofeva Hartmut Waetzoldt Valérie Magdelaine Cécile Dejoux Jean-Paul Rogues Thierry Tillet Errol Véla André Dumoulin Jean-Luc Blaquart Jean-Luc Le Cam Olivier Archambeau Corinne Baylac Zinaida Belykh
Hartmut Waetzoldt, Vera Varsonofeva and Zinaida Belykh held the position of that occupation
Hartmut Waetzoldt Vera Varsonofeva Zinaida Belykh
action filter_type
action find_reverse
entity docent
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'docent']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:position_held resource:docent }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P35
Q502895 Q15617994 Q1048835
USER
Which people are the heads of state of max number of administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?r rdf:type ?b } GROUP BY ?z } } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?g rdf:type ?x } GROUP BY ?s } }
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?r rdf:type ?b } GROUP BY ?z } } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?x } GROUP BY ?s } }
[]
common name designation for an administrative territorial entity political territorial entity
Q9682
SYSTEM
Elizabeth II
Q9682
(c(Q15617994)|c(Q1048835),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
[ANSWER] is the heads of state of max number of administrative territories or political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?r rdf:type ?b } GROUP BY ?z } } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?g rdf:type ?x } GROUP BY ?s } }
Elizabeth II
Elizabeth II is the heads of state of max number of administrative territories or political territories
Elizabeth II
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?o ) { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?r rdf:type ?b } GROUP BY ?z } } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?g rdf:type ?x } GROUP BY ?s } }
[]