Simple Question (Direct)
Simple Question
Q81967
P106
Q12737077
USER
Which occupation is the profession of Lorenz Hess ?
(Q81967,P106,c(Q12737077))
action filter_type
action find
entity Q81967
relation P106
type Q12737077
['Q81967', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q81967 property:P106 ?i }
Lorenz Hess
action filter_type
action find
entity Lorenz Hess
relation occupation
type occupation
['Lorenz Hess', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Lorenz_Hess property:occupation ?i }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q81967,P106,c(Q12737077))
action filter_type
action find
entity Q81967
relation P106
type Q12737077
The [ANSWER] is the profession of Lorenz Hess
['Q81967', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q81967 property:P106 ?i }
politician
The politician is the profession of Lorenz Hess
politician
action filter_type
action find
entity Lorenz Hess
relation occupation
type occupation
['Lorenz Hess', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Lorenz_Hess property:occupation ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81967
P19
Q56061
USER
Which administrative territory was Lorenz Hess born at ?
(Q81967,P19,c(Q56061))
action filter_type
action find
entity Q81967
relation P19
type Q56061
['Q81967', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q81967 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Lorenz Hess
action filter_type
action find
entity Lorenz Hess
relation place of birth
type administrative territorial entity
['Lorenz Hess', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Lorenz_Hess property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q70
SYSTEM
Bern
Q70
(Q81967,P19,c(Q56061))
action filter_type
action find
entity Q81967
relation P19
type Q56061
The [ANSWER] was Lorenz Hess born at
['Q81967', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q81967 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Bern
The Bern was Lorenz Hess born at
Bern
action filter_type
action find
entity Lorenz Hess
relation place of birth
type administrative territorial entity
['Lorenz Hess', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Lorenz_Hess property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q81967
P39
Q12737077
USER
Which occupation was a position for which that person was appointed ?
(Q70,P39,c(Q12737077))
action filter_type
action find
entity Q81967
relation P39
type Q12737077
['Q70', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q81967 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Lorenz Hess
action filter_type
action find
entity Lorenz Hess
relation position held
type occupation
['Bern', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Lorenz_Hess property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q18510612
SYSTEM
Member of the Swiss National Council
Q18510612
(Q70,P39,c(Q12737077))
action filter_type
action find
entity Q81967
relation P39
type Q12737077
[ANSWER] was a position for which that person was appointed
['Q70', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q81967 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Member of the Swiss National Council
Member of the Swiss National Council was a position for which that person was appointed
Member of the Swiss National Council
action filter_type
action find
entity Lorenz Hess
relation position held
type occupation
['Bern', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Lorenz_Hess property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q18510612 Q17148190
P39
Q502895
USER
Did Josep Fortuny i Guarro hold the position of that occupation ?
(Q17148190,P39,Q18510612)
action is_in
entity Q17148190
action find
entity Q18510612
relation P39
['Q17148190', 'P39', 'Q18510612']
ASK WHERE { resource:Q18510612 property:P39 resource:Q17148190 }
Member of the Swiss National Council Josep Fortuny i Guarro
action is_in
entity Josep Fortuny i Guarro
action find
entity Member of the Swiss National Council
relation position held
['Josep Fortuny i Guarro', 'position held', 'Member of the Swiss National Council']
ASK WHERE { resource:Member_of_the_Swiss_National_Council property:position_held resource:Josep_Fortuny_i_Guarro }
[]
common name
SYSTEM
NO
(Q17148190,P39,Q18510612)
action is_in
entity Q17148190
action find
entity Q18510612
relation P39
[ANSWER]
['Q17148190', 'P39', 'Q18510612']
ASK WHERE { resource:Q18510612 property:P39 resource:Q17148190 }
No
action is_in
entity Josep Fortuny i Guarro
action find
entity Member of the Swiss National Council
relation position held
['Josep Fortuny i Guarro', 'position held', 'Member of the Swiss National Council']
ASK WHERE { resource:Member_of_the_Swiss_National_Council property:position_held resource:Josep_Fortuny_i_Guarro }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q70
P30
Q2221906
USER
Where is Bern located ?
(Q70,P30,c(Q2221906))
action filter_type
action find
entity Q70
relation P30
type Q2221906
['Q70', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q70 property:P30 ?w . ?w rdf:type ontology:Q2221906 }
Bern
action filter_type
action find
entity Bern
relation continent
type geographic location
['Bern', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Bern property:continent ?w . ?w rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q70,P30,c(Q2221906))
action filter_type
action find
entity Q70
relation P30
type Q2221906
Bern is located in [ANSWER]
['Q70', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q70 property:P30 ?w . ?w rdf:type ontology:Q2221906 }
Europe
Bern is located in Europe
Europe
action filter_type
action find
entity Bern
relation continent
type geographic location
['Bern', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Bern property:continent ?w . ?w rdf:type ontology:geographic_location }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q2221906 Q43229 Q21114848
USER
Which geographic locations are the fields of work of around the same number of organizations or magazine genres as that geographic location ?
(c(Q43229)|c(Q21114848),P101,c(Q2221906))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q2221906
type Q43229
action find_reverse_tuple_counts
relation P101
type Q2221906
type Q21114848
action count
action filter_multi_types
action find_reverse
entity Q46
relation P101
type Q43229
type Q21114848
[[{'concept': 'Q43229'}, {'concept': 'Q21114848'}], 'P101', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q21114848 ) } . ?j rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:Q43229 ) ( ontology:Q21114848 ) } } . ?v property:P101 resource:Q46 } } . FILTER ( ?a = ?t ) }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type geographic location
type organization
action find_reverse_tuple_counts
relation field of work
type geographic location
type magazine genre
action count
action filter_multi_types
action find_reverse
entity Europe
relation field of work
type organization
type magazine genre
[[{'concept': 'organization'}, {'concept': 'magazine genre'}], 'field of work', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:magazine_genre ) } . ?j rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:organization ) ( ontology:magazine_genre ) } } . ?v property:field_of_work resource:Europe } } . FILTER ( ?a = ?t ) }
[]
geographic location organization magazine genre
Q46
SYSTEM
Europe
Q46
(c(Q43229)|c(Q21114848),P101,c(Q2221906))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q2221906
type Q43229
action find_reverse_tuple_counts
relation P101
type Q2221906
type Q21114848
action count
action filter_multi_types
action find_reverse
entity Q46
relation P101
type Q43229
type Q21114848
[ANSWER] is the fields of work of around the same number of organizations or magazine genres as that geographic location
[[{'concept': 'Q43229'}, {'concept': 'Q21114848'}], 'P101', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q21114848 ) } . ?j rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:Q43229 ) ( ontology:Q21114848 ) } } . ?v property:P101 resource:Q46 } } . FILTER ( ?a = ?t ) }
Europe
Europe is the fields of work of around the same number of organizations or magazine genres as that geographic location
Europe
action approx
action union
action find_reverse_tuple_counts
relation field of work
type geographic location
type organization
action find_reverse_tuple_counts
relation field of work
type geographic location
type magazine genre
action count
action filter_multi_types
action find_reverse
entity Europe
relation field of work
type organization
type magazine genre
[[{'concept': 'organization'}, {'concept': 'magazine genre'}], 'field of work', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:magazine_genre ) } . ?j rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:organization ) ( ontology:magazine_genre ) } } . ?v property:field_of_work resource:Europe } } . FILTER ( ?a = ?t ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q46 Q584605
P30
Q56061
USER
Is Nuzi included in that geographic location ?
(Q584605,P30,Q46)
action is_in
entity Q584605
action find
entity Q46
relation P30
['Q584605', 'P30', 'Q46']
ASK WHERE { resource:Q46 property:P30 resource:Q584605 }
Europe Nuzi
action is_in
entity Nuzi
action find
entity Europe
relation continent
['Nuzi', 'continent', 'Europe']
ASK WHERE { resource:Europe property:continent resource:Nuzi }
[]
administrative territorial entity
SYSTEM
NO
(Q584605,P30,Q46)
action is_in
entity Q584605
action find
entity Q46
relation P30
[ANSWER]
['Q584605', 'P30', 'Q46']
ASK WHERE { resource:Q46 property:P30 resource:Q584605 }
No
action is_in
entity Nuzi
action find
entity Europe
relation continent
['Nuzi', 'continent', 'Europe']
ASK WHERE { resource:Europe property:continent resource:Nuzi }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q81967 Q5242621
P937
Q56061
USER
Did Lorenz Hess work Dawson's Cove ?
(Q81967,P937,Q5242621)
action is_in
entity Q5242621
action find
entity Q81967
relation P937
['Q81967', 'P937', 'Q5242621']
ASK WHERE { resource:Q81967 property:P937 resource:Q5242621 }
Lorenz Hess Dawson's Cove
action is_in
entity Dawson's Cove
action find
entity Lorenz Hess
relation work location
['Lorenz Hess', 'work location', "Dawson's Cove"]
ASK WHERE { resource:Lorenz_Hess property:work_location resource:Dawson's_Cove }
[]
administrative territorial entity
SYSTEM
NO
(Q81967,P937,Q5242621)
action is_in
entity Q5242621
action find
entity Q81967
relation P937
[ANSWER]
['Q81967', 'P937', 'Q5242621']
ASK WHERE { resource:Q81967 property:P937 resource:Q5242621 }
No
action is_in
entity Dawson's Cove
action find
entity Lorenz Hess
relation work location
['Lorenz Hess', 'work location', "Dawson's Cove"]
ASK WHERE { resource:Lorenz_Hess property:work_location resource:Dawson's_Cove }
[]