Simple Question (Direct)
Simple Question
Q5617299
P937
Q56061
USER
Where did Gulbrand Eriksen Tandberg work ?
(Q5617299,P937,c(Q56061))
action filter_type
action find
entity Q5617299
relation P937
type Q56061
['Q5617299', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q5617299 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Gulbrand Eriksen Tandberg
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation work location
type administrative territorial entity
['Gulbrand Eriksen Tandberg', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Gulbrand_Eriksen_Tandberg property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q5617299,P937,c(Q56061))
action filter_type
action find
entity Q5617299
relation P937
type Q56061
Gulbrand Eriksen Tandberg worked in [ANSWER]
['Q5617299', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q5617299 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Oslo
Gulbrand Eriksen Tandberg worked in Oslo
Oslo
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation work location
type administrative territorial entity
['Gulbrand Eriksen Tandberg', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Gulbrand_Eriksen_Tandberg property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5617299
P21
Q290
USER
Which sex does Gulbrand Eriksen Tandberg possess ?
(Q5617299,P21,c(Q290))
action filter_type
action find
entity Q5617299
relation P21
type Q290
['Q5617299', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q5617299 property:P21 ?j }
Gulbrand Eriksen Tandberg
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation gender
type sex
['Gulbrand Eriksen Tandberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Gulbrand_Eriksen_Tandberg property:gender ?j }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5617299,P21,c(Q290))
action filter_type
action find
entity Q5617299
relation P21
type Q290
Gulbrand Eriksen Tandberg possesses 1 [ANSWER]
['Q5617299', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q290 . resource:Q5617299 property:P21 ?j }
male
Gulbrand Eriksen Tandberg possesses 1 male
male
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation gender
type sex
['Gulbrand Eriksen Tandberg', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sex . resource:Gulbrand_Eriksen_Tandberg property:gender ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5617299
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q5617299
relation P39
type Q12737077
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5617299 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Gulbrand Eriksen Tandberg
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Gulbrand_Eriksen_Tandberg property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q6581097,P39,c(Q12737077))
action filter_type
action find
entity Q5617299
relation P39
type Q12737077
A [ANSWER] was a position held by that person
['Q6581097', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5617299 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
member of the Parliament of Norway
A member of the Parliament of Norway was a position held by that person
member of the Parliament of Norway
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation position held
type occupation
['male', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Gulbrand_Eriksen_Tandberg property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5617299
P106
Q12737077
USER
What do Gulbrand Eriksen Tandberg do for a living ?
(Q5617299,P106,c(Q12737077))
action filter_type
action find
entity Q5617299
relation P106
type Q12737077
['Q5617299', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q5617299 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Gulbrand Eriksen Tandberg
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation occupation
type occupation
['Gulbrand Eriksen Tandberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Gulbrand_Eriksen_Tandberg property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q131512 Q82955
SYSTEM
farmer, politician
Q131512 Q82955
(Q5617299,P106,c(Q12737077))
action filter_type
action find
entity Q5617299
relation P106
type Q12737077
Gulbrand Eriksen Tandberg do for a living [ANSWERS]
['Q5617299', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q5617299 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
farmer politician
Gulbrand Eriksen Tandberg do for a living farmer and politician
farmer politician
action filter_type
action find
entity Gulbrand Eriksen Tandberg
relation occupation
type occupation
['Gulbrand Eriksen Tandberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Gulbrand_Eriksen_Tandberg property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3724703
Q12737077
USER
And how about Emmanuele Milano?
(Q3724703,P106,c(Q12737077))
action filter_type
action find
entity Q3724703
relation P106
type Q12737077
['Q3724703', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q3724703 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Emmanuele Milano
action filter_type
action find
entity Emmanuele Milano
relation occupation
type occupation
['Emmanuele Milano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Emmanuele_Milano property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q3724703,P106,c(Q12737077))
action filter_type
action find
entity Q3724703
relation P106
type Q12737077
[ANSWER]
['Q3724703', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q3724703 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
journalist
journalist
action filter_type
action find
entity Emmanuele Milano
relation occupation
type occupation
['Emmanuele Milano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Emmanuele_Milano property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1930187 Q36180 Q26696688
P425
Q12737077
USER
Does that occupation have writer and mayor of Berlanga de Duero as thier field of occupation ?
(Q1930187,P425,Q36180) (Q1930187,P425,Q26696688)
action is_in
entity Q1930187
action intersection
action find_reverse
entity Q36180
relation P425
action find_reverse
entity Q26696688
relation P425
['Q1930187', 'P425', 'Q36180'] ['Q1930187', 'P425', 'Q26696688']
ASK WHERE { resource:Q1930187 property:P425 resource:Q36180 . resource:Q1930187 property:P425 resource:Q26696688 }
journalist writer mayor of Berlanga de Duero
action is_in
entity journalist
action intersection
action find_reverse
entity writer
relation field of this occupation
action find_reverse
entity mayor of Berlanga de Duero
relation field of this occupation
['journalist', 'field of this occupation', 'writer'] ['journalist', 'field of this occupation', 'mayor of Berlanga de Duero']
ASK WHERE { resource:journalist property:field_of_this_occupation resource:writer . resource:journalist property:field_of_this_occupation resource:mayor_of_Berlanga_de_Duero }
[]
occupation
SYSTEM
YES and NO respectively
(Q1930187,P425,Q36180) (Q1930187,P425,Q26696688)
action is_in
entity Q1930187
action intersection
action find_reverse
entity Q36180
relation P425
action find_reverse
entity Q26696688
relation P425
[ANSWER]
['Q1930187', 'P425', 'Q36180'] ['Q1930187', 'P425', 'Q26696688']
ASK WHERE { resource:Q1930187 property:P425 resource:Q36180 . resource:Q1930187 property:P425 resource:Q26696688 }
YES and NO respectively
action is_in
entity journalist
action intersection
action find_reverse
entity writer
relation field of this occupation
action find_reverse
entity mayor of Berlanga de Duero
relation field of this occupation
['journalist', 'field of this occupation', 'writer'] ['journalist', 'field of this occupation', 'mayor of Berlanga de Duero']
ASK WHERE { resource:journalist property:field_of_this_occupation resource:writer . resource:journalist property:field_of_this_occupation resource:mayor_of_Berlanga_de_Duero }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q192816
P417
Q502895 Q12737077
USER
Which people are the patron saints of around the same number of occupations as Saint Barbara ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q192816
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q192816 property:P417 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q502895 . ?v property:P417 ?n } GROUP BY ?n } }
Saint Barbara
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Barbara
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Saint_Barbara property:patron_saint ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ontology:occupation . ?n rdf:type ontology:common_name . ?v property:patron_saint ?n } GROUP BY ?n } }
[]
common name occupation
Q128538 Q192816 Q200895
SYSTEM
Luke the Evangelist, Saint Barbara, Agatha of Sicily
Q128538 Q192816 Q200895
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q192816
relation P417
type Q502895
[ANSWERS] are the patron saints of around the same number of occupations as Saint Barbara
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q192816 property:P417 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q502895 . ?v property:P417 ?n } GROUP BY ?n } }
Luke the Evangelist Saint Barbara Agatha of Sicily
Luke the Evangelist, Saint Barbara and Agatha of Sicily are the patron saints of around the same number of occupations as Saint Barbara
Luke the Evangelist Saint Barbara Agatha of Sicily
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Barbara
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Saint_Barbara property:patron_saint ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ontology:occupation . ?n rdf:type ontology:common_name . ?v property:patron_saint ?n } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q203636 Q192816
P2348
Q3024240
USER
Which former countries did Saint Barbara or Stilicho belong to ?
OR((Q192816,P2348,c(Q3024240)), (Q203636,P2348,c(Q3024240)))
action filter_type
action union
action find
entity Q192816
relation P2348
action find
entity Q203636
relation P2348
type Q3024240
{'OR': [['Q192816', 'P2348', {'concept': 'Q3024240'}], ['Q203636', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q192816 property:P2348 ?w } UNION { resource:Q203636 property:P2348 ?w } } . ?w rdf:type ontology:Q3024240 }
Stilicho Saint Barbara
action filter_type
action union
action find
entity Saint Barbara
relation period
action find
entity Stilicho
relation period
type former country
{'OR': [['Saint Barbara', 'period', {'concept': 'former country'}], ['Stilicho', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Saint_Barbara property:period ?w } UNION { resource:Stilicho property:period ?w } } . ?w rdf:type ontology:former_country }
[]
former country
Q2277
SYSTEM
Roman Empire
Q2277
OR((Q192816,P2348,c(Q3024240)), (Q203636,P2348,c(Q3024240)))
action filter_type
action union
action find
entity Q192816
relation P2348
action find
entity Q203636
relation P2348
type Q3024240
Saint Barbara or Stilicho belonged to the [ANSWER]
{'OR': [['Q192816', 'P2348', {'concept': 'Q3024240'}], ['Q203636', 'P2348', {'concept': 'Q3024240'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q192816 property:P2348 ?w } UNION { resource:Q203636 property:P2348 ?w } } . ?w rdf:type ontology:Q3024240 }
Roman Empire
Saint Barbara or Stilicho belonged to the Roman Empire
Roman Empire
action filter_type
action union
action find
entity Saint Barbara
relation period
action find
entity Stilicho
relation period
type former country
{'OR': [['Saint Barbara', 'period', {'concept': 'former country'}], ['Stilicho', 'period', {'concept': 'former country'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Saint_Barbara property:period ?w } UNION { resource:Stilicho property:period ?w } } . ?w rdf:type ontology:former_country }
[]