Simple Question (Direct)
Simple Question
Q1445880
P106
Q12737077
USER
Which occupations are the professions of Håkan Samuelsson ?
(Q1445880,P106,c(Q12737077))
action filter_type
action find
entity Q1445880
relation P106
type Q12737077
['Q1445880', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1445880 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Håkan Samuelsson
action filter_type
action find
entity Håkan Samuelsson
relation occupation
type occupation
['Håkan Samuelsson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Håkan_Samuelsson property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q43845 Q131524
SYSTEM
businessperson, entrepreneur
Q43845 Q131524
(Q1445880,P106,c(Q12737077))
action filter_type
action find
entity Q1445880
relation P106
type Q12737077
The professions of Håkan Samuelsson are a [ANSWERS]
['Q1445880', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1445880 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
businessperson entrepreneur
The professions of Håkan Samuelsson are a businessperson and entrepreneur
businessperson entrepreneur
action filter_type
action find
entity Håkan Samuelsson
relation occupation
type occupation
['Håkan Samuelsson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Håkan_Samuelsson property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1445880
P39
Q595523
USER
Which notion was a position occupied by that person ?
(Q43845,P39,c(Q595523)) (Q131524,P39,c(Q595523))
action filter_type
action find
entity Q1445880
relation P39
type Q595523
['Q43845', 'P39', {'concept': 'Q595523'}] ['Q131524', 'P39', {'concept': 'Q595523'}]
SELECT DISTINCT ?y WHERE { resource:Q1445880 property:P39 ?y . ?y rdf:type ontology:Q595523 }
Håkan Samuelsson
action filter_type
action find
entity Håkan Samuelsson
relation position held
type notion
['businessperson', 'position held', {'concept': 'notion'}] ['entrepreneur', 'position held', {'concept': 'notion'}]
SELECT DISTINCT ?y WHERE { resource:Håkan_Samuelsson property:position_held ?y . ?y rdf:type ontology:notion }
[]
notion
Q484876
SYSTEM
chief executive officer
Q484876
(Q43845,P39,c(Q595523)) (Q131524,P39,c(Q595523))
action filter_type
action find
entity Q1445880
relation P39
type Q595523
Officer [ANSWER] was a position occupied by that person
['Q43845', 'P39', {'concept': 'Q595523'}] ['Q131524', 'P39', {'concept': 'Q595523'}]
SELECT DISTINCT ?y WHERE { resource:Q1445880 property:P39 ?y . ?y rdf:type ontology:Q595523 }
chief executive officer
Officer chief executive officer was a position occupied by that person
chief executive officer
action filter_type
action find
entity Håkan Samuelsson
relation position held
type notion
['businessperson', 'position held', {'concept': 'notion'}] ['entrepreneur', 'position held', {'concept': 'notion'}]
SELECT DISTINCT ?y WHERE { resource:Håkan_Samuelsson property:position_held ?y . ?y rdf:type ontology:notion }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q484876 Q4341576 Q183
P17
Q1048835
USER
Is that notion located in Pavliv, Radekhiv Raion and Germany ?
(Q484876,P17,Q4341576) (Q484876,P17,Q183)
action is_in
entity Q484876
action intersection
action find_reverse
entity Q4341576
relation P17
action find_reverse
entity Q183
relation P17
['Q484876', 'P17', 'Q4341576'] ['Q484876', 'P17', 'Q183']
ASK WHERE { resource:Q484876 property:P17 resource:Q4341576 . resource:Q484876 property:P17 resource:Q183 }
chief executive officer Pavliv, Radekhiv Raion Germany
action is_in
entity chief executive officer
action intersection
action find_reverse
entity Pavliv, Radekhiv Raion
relation country
action find_reverse
entity Germany
relation country
['chief executive officer', 'country', 'Pavliv, Radekhiv Raion'] ['chief executive officer', 'country', 'Germany']
ASK WHERE { resource:chief_executive_officer property:country resource:Pavliv,_Radekhiv_Raion . resource:chief_executive_officer property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q484876,P17,Q4341576) (Q484876,P17,Q183)
action is_in
entity Q484876
action intersection
action find_reverse
entity Q4341576
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q484876', 'P17', 'Q4341576'] ['Q484876', 'P17', 'Q183']
ASK WHERE { resource:Q484876 property:P17 resource:Q4341576 . resource:Q484876 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity chief executive officer
action intersection
action find_reverse
entity Pavliv, Radekhiv Raion
relation country
action find_reverse
entity Germany
relation country
['chief executive officer', 'country', 'Pavliv, Radekhiv Raion'] ['chief executive officer', 'country', 'Germany']
ASK WHERE { resource:chief_executive_officer property:country resource:Pavliv,_Radekhiv_Raion . resource:chief_executive_officer property:country resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1445880
P21
Q290
USER
Which sex does Håkan Samuelsson have ?
(Q1445880,P21,c(Q290))
action filter_type
action find
entity Q1445880
relation P21
type Q290
['Q1445880', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q1445880 property:P21 ?j . ?j rdf:type ontology:Q290 }
Håkan Samuelsson
action filter_type
action find
entity Håkan Samuelsson
relation gender
type sex
['Håkan Samuelsson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Håkan_Samuelsson property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1445880,P21,c(Q290))
action filter_type
action find
entity Q1445880
relation P21
type Q290
Håkan Samuelsson has 1 [ANSWER]
['Q1445880', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q1445880 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
Håkan Samuelsson has 1 male
male
action filter_type
action find
entity Håkan Samuelsson
relation gender
type sex
['Håkan Samuelsson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Håkan_Samuelsson property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15455488
Q290
USER
And how about Andreas Bihrer?
(Q15455488,P21,c(Q290))
action filter_type
action find
entity Q15455488
relation P21
type Q290
['Q15455488', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q15455488 property:P21 ?b }
Andreas Bihrer
action filter_type
action find
entity Andreas Bihrer
relation gender
type sex
['Andreas Bihrer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Andreas_Bihrer property:gender ?b }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15455488,P21,c(Q290))
action filter_type
action find
entity Q15455488
relation P21
type Q290
[ANSWER]
['Q15455488', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q15455488 property:P21 ?b }
male
male
action filter_type
action find
entity Andreas Bihrer
relation gender
type sex
['Andreas Bihrer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Andreas_Bihrer property:gender ?b }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q81710
P180
Q12737077 Q340169 Q3305213
USER
Which occupations are expressed in approximately the same number of medias or paintings as shepherd ?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q81710
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?m WHERE { { ?h property:P180 ?m . ?m rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q340169 } UNION { ?h property:P180 ?m . ?m rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q3305213 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P180 resource:Q81710 . { { ?i rdf:type ontology:Q340169 } UNION { ?i rdf:type ontology:Q3305213 } } } } . FILTER ( ?j = ?a ) }
shepherd
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity shepherd
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?m WHERE { { ?h property:depicts ?m . ?m rdf:type ontology:occupation . ?h rdf:type ontology:media } UNION { ?h property:depicts ?m . ?m rdf:type ontology:occupation . ?h rdf:type ontology:painting } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:depicts resource:shepherd . { { ?i rdf:type ontology:media } UNION { ?i rdf:type ontology:painting } } } } . FILTER ( ?j = ?a ) }
[]
occupation media painting
Q131512 Q186360 Q1401609
SYSTEM
farmer, nurse, vaquero
Q177220 Q131512 Q1401609 Q1124183 Q2995983 Q81710 Q1259917 Q45199 Q4504549 Q842782 Q486748 Q483501 Q215536 Q186360 Q1139055 Q1028181 Q12097 Q14009165 Q10833314 Q1318187 Q250867 Q273108 Q10873124 Q589897 Q2730732 Q103163 Q207651 Q18575684 Q833860 Q2191547 Q838811 Q331432 Q49757 Q384593 Q1281618 Q811122
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q81710
relation P180
type Q340169
type Q3305213
[ANSWERS] are expressed in approximately the same number of medias or paintings as shepherd
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?m WHERE { { ?h property:P180 ?m . ?m rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q340169 } UNION { ?h property:P180 ?m . ?m rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q3305213 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:P180 resource:Q81710 . { { ?i rdf:type ontology:Q340169 } UNION { ?i rdf:type ontology:Q3305213 } } } } . FILTER ( ?j = ?a ) }
singer farmer vaquero lumberjack double-bassist shepherd violinist sailor religious servant detective pianist artist merchant nurse tax collector painter king trapper tennis player scrivener Catholic priest condottiero chess player mahout equestrian abbot executioner embroiderer maid picador peasant fisherman poet police officer sculptor construction worker
Farmer, nurse and vaquero are expressed in approximately the same number of medias or paintings as shepherd
farmer nurse vaquero
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity shepherd
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) ?m WHERE { { ?h property:depicts ?m . ?m rdf:type ontology:occupation . ?h rdf:type ontology:media } UNION { ?h property:depicts ?m . ?m rdf:type ontology:occupation . ?h rdf:type ontology:painting } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { ?i property:depicts resource:shepherd . { { ?i rdf:type ontology:media } UNION { ?i rdf:type ontology:painting } } } } . FILTER ( ?j = ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2995983
P180
Q12737077 Q340169 Q3305213
USER
And also tell me about double-bassist?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q2995983
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?l WHERE { VALUES ( ?n ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?c rdf:type ?n } GROUP BY ?l } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:P180 resource:Q2995983 . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } }
double-bassist
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity double-bassist
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?l WHERE { VALUES ( ?n ) { ( ontology:media ) ( ontology:painting ) } . ?c rdf:type ?n } GROUP BY ?l } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:depicts resource:double-bassist . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:painting ) ( ontology:media ) } } } } }
[]
occupation media painting
Q131512 Q186360 Q1401609
SYSTEM
farmer, nurse, vaquero
Q177220 Q131512 Q1401609 Q1124183 Q2995983 Q81710 Q1259917 Q45199 Q4504549 Q842782 Q486748 Q483501 Q215536 Q186360 Q1139055 Q1028181 Q12097 Q14009165 Q10833314 Q1318187 Q250867 Q273108 Q10873124 Q589897 Q2730732 Q103163 Q207651 Q18575684 Q833860 Q2191547 Q838811 Q331432 Q49757 Q384593 Q1281618 Q811122
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q2995983
relation P180
type Q340169
type Q3305213
[ANSWERS]
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?l WHERE { VALUES ( ?n ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?c rdf:type ?n } GROUP BY ?l } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:P180 resource:Q2995983 . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q3305213 ) ( ontology:Q340169 ) } } } } }
singer farmer vaquero lumberjack double-bassist shepherd violinist sailor religious servant detective pianist artist merchant nurse tax collector painter king trapper tennis player scrivener Catholic priest condottiero chess player mahout equestrian abbot executioner embroiderer maid picador peasant fisherman poet police officer sculptor construction worker
farmer nurse vaquero
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity double-bassist
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) ?l WHERE { VALUES ( ?n ) { ( ontology:media ) ( ontology:painting ) } . ?c rdf:type ?n } GROUP BY ?l } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:depicts resource:double-bassist . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:painting ) ( ontology:media ) } } } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1401609
P425
Q451967
USER
Which human action has that one as the associated field of occupation ?
(Q1401609,P425,c(Q451967))
action filter_type
action find
entity Q1401609
relation P425
type Q451967
['Q1401609', 'P425', {'concept': 'Q451967'}]
SELECT DISTINCT ?d WHERE { resource:Q1401609 property:P425 ?d . ?d rdf:type ontology:Q451967 }
vaquero
action filter_type
action find
entity vaquero
relation field of this occupation
type human action
['vaquero', 'field of this occupation', {'concept': 'human action'}]
SELECT DISTINCT ?d WHERE { resource:vaquero property:field_of_this_occupation ?d . ?d rdf:type ontology:human_action }
[]
human action
Clarification for simple ques.
Q131512
SYSTEM
Did you mean farmer ?
Q131512 Q186360 Q1401609
(Q131512,P425,c(Q451967)) (Q186360,P425,c(Q451967)) (Q1401609,P425,c(Q451967))
[ANSWER]
['Q131512', 'P425', {'concept': 'Q451967'}] ['Q186360', 'P425', {'concept': 'Q451967'}] ['Q1401609', 'P425', {'concept': 'Q451967'}]
SELECT DISTINCT ?d WHERE { resource:Q1401609 property:P425 ?d . ?d rdf:type ontology:Q451967 }
farmer nurse vaquero
Did you mean farmer ?
farmer
['farmer', 'field of this occupation', {'concept': 'human action'}] ['nurse', 'field of this occupation', {'concept': 'human action'}] ['vaquero', 'field of this occupation', {'concept': 'human action'}]
SELECT DISTINCT ?d WHERE { resource:vaquero property:field_of_this_occupation ?d . ?d rdf:type ontology:human_action }
[]
Simple Question (Coreferenced)
USER
No, I meant vaquero. Could you tell me the answer for that?
(Q1401609,P425,c(Q451967))
Q1401609
['Q1401609', 'P425', {'concept': 'Q451967'}]
['vaquero', 'field of this occupation', {'concept': 'human action'}]
[]
Q3239189
SYSTEM
grazing
Q3239189
(Q1401609,P425,c(Q451967))
action filter_type
action find
entity Q1401609
relation P425
type Q451967
[ANSWER] has that one as the associated field of occupation
['Q1401609', 'P425', {'concept': 'Q451967'}]
SELECT DISTINCT ?d WHERE { resource:Q1401609 property:P425 ?d . ?d rdf:type ontology:Q451967 }
grazing
Grazing has that one as the associated field of occupation
grazing
action filter_type
action find
entity vaquero
relation field of this occupation
type human action
['vaquero', 'field of this occupation', {'concept': 'human action'}]
SELECT DISTINCT ?d WHERE { resource:vaquero property:field_of_this_occupation ?d . ?d rdf:type ontology:human_action }
[]