Simple Question (Direct)
Simple Question
Q465191
P106
Q12737077
USER
Which occupations are the professions of Roberto Carlos ?
(Q465191,P106,c(Q12737077))
action filter_type
action find
entity Q465191
relation P106
type Q12737077
['Q465191', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q465191 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Roberto Carlos
action filter_type
action find
entity Roberto Carlos
relation occupation
type occupation
['Roberto Carlos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Roberto_Carlos property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q36834 Q753110 Q177220
SYSTEM
composer, songwriter, singer
Q753110 Q177220 Q36834 Q486748
(Q465191,P106,c(Q12737077))
action filter_type
action find
entity Q465191
relation P106
type Q12737077
The professions of Roberto Carlos are the [ANSWERS]
['Q465191', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q465191 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
songwriter singer composer pianist
The professions of Roberto Carlos are the composer, songwriter and singer
composer songwriter singer
action filter_type
action find
entity Roberto Carlos
relation occupation
type occupation
['Roberto Carlos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Roberto_Carlos property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36834
P287
Q166142
USER
Which application had designs produced by composer ?
(c(Q166142),P287,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P287
type Q166142
[{'concept': 'Q166142'}, 'P287', 'Q36834']
SELECT DISTINCT ?w WHERE { ?w property:P287 resource:Q36834 . ?w rdf:type ontology:Q166142 }
composer
action filter_type
action find_reverse
entity composer
relation designer
type application
[{'concept': 'application'}, 'designer', 'composer']
SELECT DISTINCT ?w WHERE { ?w property:designer resource:composer . ?w rdf:type ontology:application }
[]
application
Q7506275
SYSTEM
Shūjin e no Pert-em-Hru
Q7506275
(c(Q166142),P287,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P287
type Q166142
[ANSWER] had designs produced by composer
[{'concept': 'Q166142'}, 'P287', 'Q36834']
SELECT DISTINCT ?w WHERE { ?w property:P287 resource:Q36834 . ?w rdf:type ontology:Q166142 }
Shūjin e no Pert-em-Hru
Shūjin e no Pert-em-Hru had designs produced by composer
Shūjin e no Pert-em-Hru
action filter_type
action find_reverse
entity composer
relation designer
type application
[{'concept': 'application'}, 'designer', 'composer']
SELECT DISTINCT ?w WHERE { ?w property:designer resource:composer . ?w rdf:type ontology:application }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36834
P101
Q502895
USER
Which people work in the domain of that occupation ?
(c(Q502895),P101,Q7506275)
action filter_type
action find_reverse
entity Q36834
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q7506275']
SELECT DISTINCT ?j WHERE { ?j property:P101 resource:Q36834 . ?j rdf:type ontology:Q502895 }
composer
action filter_type
action find_reverse
entity composer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Shūjin e no Pert-em-Hru']
SELECT DISTINCT ?j WHERE { ?j property:field_of_work resource:composer . ?j rdf:type ontology:common_name }
[]
common name
Q18171888 Q554775
SYSTEM
Kim André Arnesen, Frans Bak
Q18171888 Q554775
(c(Q502895),P101,Q7506275)
action filter_type
action find_reverse
entity Q36834
relation P101
type Q502895
[ANSWERS] work in the domain of that occupation
[{'concept': 'Q502895'}, 'P101', 'Q7506275']
SELECT DISTINCT ?j WHERE { ?j property:P101 resource:Q36834 . ?j rdf:type ontology:Q502895 }
Kim André Arnesen Frans Bak
Kim André Arnesen and Frans Bak work in the domain of that occupation
Kim André Arnesen Frans Bak
action filter_type
action find_reverse
entity composer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Shūjin e no Pert-em-Hru']
SELECT DISTINCT ?j WHERE { ?j property:field_of_work resource:composer . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18171888 Q554775
P106
Q12737077
USER
What do Kim André Arnesen and Frans Bak do for a living ?
(Q18171888,P106,c(Q12737077)) (Q554775,P106,c(Q12737077))
action union
action filter_type
action find
entity Q18171888
relation P106
type Q12737077
action filter_type
action find
entity Q554775
relation P106
type Q12737077
['Q18171888', 'P106', {'concept': 'Q12737077'}] ['Q554775', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?o property:P106 ?v . VALUES ( ?o ) { ( resource:Q18171888 ) ( resource:Q554775 ) } }
Kim André Arnesen Frans Bak
action union
action filter_type
action find
entity Kim André Arnesen
relation occupation
type occupation
action filter_type
action find
entity Frans Bak
relation occupation
type occupation
['Kim André Arnesen', 'occupation', {'concept': 'occupation'}] ['Frans Bak', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?o property:occupation ?v . VALUES ( ?o ) { ( resource:Kim_André_Arnesen ) ( resource:Frans_Bak ) } }
[]
occupation
Q36834 Q36834 Q12800682
SYSTEM
saxophonist for 3rd, composer for 1st, 2nd
Q36834 Q12800682 Q15981151 Q36834 Q486748
(Q18171888,P106,c(Q12737077)) (Q554775,P106,c(Q12737077))
action union
action filter_type
action find
entity Q18171888
relation P106
type Q12737077
action filter_type
action find
entity Q554775
relation P106
type Q12737077
[ANSWERS]
['Q18171888', 'P106', {'concept': 'Q12737077'}] ['Q554775', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?o property:P106 ?v . VALUES ( ?o ) { ( resource:Q18171888 ) ( resource:Q554775 ) } }
composer saxophonist jazz musician composer pianist
Kim André Arnesen and Frans Bak do as composer, composer and saxophonist for a living
composer composer saxophonist
action union
action filter_type
action find
entity Kim André Arnesen
relation occupation
type occupation
action filter_type
action find
entity Frans Bak
relation occupation
type occupation
['Kim André Arnesen', 'occupation', {'concept': 'occupation'}] ['Frans Bak', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?o property:occupation ?v . VALUES ( ?o ) { ( resource:Kim_André_Arnesen ) ( resource:Frans_Bak ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18171888
P21
Q290
USER
Which sex does that person have ?
(Q18171888,P21,c(Q290))
action filter_type
action find
entity Q18171888
relation P21
type Q290
['Q18171888', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q18171888 property:P21 ?g . ?g rdf:type ontology:Q290 }
Kim André Arnesen
action filter_type
action find
entity Kim André Arnesen
relation gender
type sex
['Kim André Arnesen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Kim_André_Arnesen property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q18171888
SYSTEM
Did you mean Kim André Arnesen ?
Q36834 Q36834 Q12800682
(Q36834,P21,c(Q290)) (Q36834,P21,c(Q290)) (Q12800682,P21,c(Q290))
[ANSWER]
['Q36834', 'P21', {'concept': 'Q290'}] ['Q36834', 'P21', {'concept': 'Q290'}] ['Q12800682', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q18171888 property:P21 ?g . ?g rdf:type ontology:Q290 }
composer composer saxophonist
Did you mean Kim André Arnesen ?
Kim André Arnesen
['composer', 'gender', {'concept': 'sex'}] ['composer', 'gender', {'concept': 'sex'}] ['saxophonist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Kim_André_Arnesen property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q18171888,P21,c(Q290))
['Q18171888', 'P21', {'concept': 'Q290'}]
['Kim André Arnesen', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q18171888,P21,c(Q290))
action filter_type
action find
entity Q18171888
relation P21
type Q290
That person has a [ANSWER]
['Q18171888', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q18171888 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Kim André Arnesen
relation gender
type sex
['Kim André Arnesen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Kim_André_Arnesen property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q465191
P21
Q290
USER
Which sex does Roberto Carlos belong to ?
(Q465191,P21,c(Q290))
action filter_type
action find
entity Q465191
relation P21
type Q290
['Q465191', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q465191 property:P21 ?b . ?b rdf:type ontology:Q290 }
Roberto Carlos
action filter_type
action find
entity Roberto Carlos
relation gender
type sex
['Roberto Carlos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Roberto_Carlos property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q465191,P21,c(Q290))
action filter_type
action find
entity Q465191
relation P21
type Q290
Roberto Carlos belongs to [ANSWER]
['Q465191', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q465191 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
Roberto Carlos belongs to male
male
action filter_type
action find
entity Roberto Carlos
relation gender
type sex
['Roberto Carlos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Roberto_Carlos property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36834
P425
Q838948
USER
Who is associated with the field of occupation composer ?
(Q36834,P425,c(Q838948))
action filter_type
action find
entity Q36834
relation P425
type Q838948
['Q36834', 'P425', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { resource:Q36834 property:P425 ?z . ?z rdf:type ontology:Q838948 }
composer
action filter_type
action find
entity composer
relation field of this occupation
type work of art
['composer', 'field of this occupation', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { resource:composer property:field_of_this_occupation ?z . ?z rdf:type ontology:work_of_art }
[]
work of art
Q207628
SYSTEM
musical composition
Q207628
(Q36834,P425,c(Q838948))
action filter_type
action find
entity Q36834
relation P425
type Q838948
The [ANSWER] is associated with the field of occupation composer
['Q36834', 'P425', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { resource:Q36834 property:P425 ?z . ?z rdf:type ontology:Q838948 }
musical composition
The musical composition is associated with the field of occupation composer
musical composition
action filter_type
action find
entity composer
relation field of this occupation
type work of art
['composer', 'field of this occupation', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { resource:composer property:field_of_this_occupation ?z . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q10798782
Q838948
USER
And how about television actor?
(Q10798782,P425,c(Q838948))
action filter_type
action find
entity Q10798782
relation P425
type Q838948
['Q10798782', 'P425', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { resource:Q10798782 property:P425 ?m . ?m rdf:type ontology:Q838948 }
television actor
action filter_type
action find
entity television actor
relation field of this occupation
type work of art
['television actor', 'field of this occupation', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { resource:television_actor property:field_of_this_occupation ?m . ?m rdf:type ontology:work_of_art }
[]
work of art
Q506240
SYSTEM
television film
Q506240
(Q10798782,P425,c(Q838948))
action filter_type
action find
entity Q10798782
relation P425
type Q838948
[ANSWER]
['Q10798782', 'P425', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { resource:Q10798782 property:P425 ?m . ?m rdf:type ontology:Q838948 }
television film
television film
action filter_type
action find
entity television actor
relation field of this occupation
type work of art
['television actor', 'field of this occupation', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { resource:television_actor property:field_of_this_occupation ?m . ?m rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P1056
Q838948 Q4830453 Q43229
USER
How many works of art are produced by approximately the same number of business enterprises or organizations as that work of art ?
(c(Q4830453)|c(Q43229),P1056,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1056
type Q838948
type Q4830453
action find_reverse_tuple_counts
relation P1056
type Q838948
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q506240
relation P1056
type Q4830453
type Q43229
[[{'concept': 'Q4830453'}, {'concept': 'Q43229'}], 'P1056', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P1056 resource:Q506240 . { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q4830453 ) ( ontology:Q43229 ) } } } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:P1056 ?h . ?h rdf:type ontology:Q838948 . ?b rdf:type ontology:Q4830453 } UNION { ?b property:P1056 ?h . ?b rdf:type ontology:Q43229 . ?h rdf:type ontology:Q838948 } } GROUP BY ?h } }
action count
action approx
action union
action find_reverse_tuple_counts
relation product
type work of art
type business enterprise
action find_reverse_tuple_counts
relation product
type work of art
type organization
action count
action filter_multi_types
action find_reverse
entity television film
relation product
type business enterprise
type organization
[[{'concept': 'business enterprise'}, {'concept': 'organization'}], 'product', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:product resource:television_film . { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:business_enterprise ) ( ontology:organization ) } } } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:product ?h . ?h rdf:type ontology:work_of_art . ?b rdf:type ontology:business_enterprise } UNION { ?b property:product ?h . ?b rdf:type ontology:organization . ?h rdf:type ontology:work_of_art } } GROUP BY ?h } }
[]
work of art business enterprise organization
SYSTEM
6
Q125191 Q18218093 Q93184 Q22669857 Q3305213 Q506240
(c(Q4830453)|c(Q43229),P1056,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1056
type Q838948
type Q4830453
action find_reverse_tuple_counts
relation P1056
type Q838948
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q506240
relation P1056
type Q4830453
type Q43229
[ANSWER]
[[{'concept': 'Q4830453'}, {'concept': 'Q43229'}], 'P1056', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P1056 resource:Q506240 . { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:Q4830453 ) ( ontology:Q43229 ) } } } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:P1056 ?h . ?h rdf:type ontology:Q838948 . ?b rdf:type ontology:Q4830453 } UNION { ?b property:P1056 ?h . ?b rdf:type ontology:Q43229 . ?h rdf:type ontology:Q838948 } } GROUP BY ?h } }
photograph etching (print) drawing collage painting television film
6
action count
action approx
action union
action find_reverse_tuple_counts
relation product
type work of art
type business enterprise
action find_reverse_tuple_counts
relation product
type work of art
type organization
action count
action filter_multi_types
action find_reverse
entity television film
relation product
type business enterprise
type organization
[[{'concept': 'business enterprise'}, {'concept': 'organization'}], 'product', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:product resource:television_film . { ?a rdf:type ?p . VALUES ( ?p ) { ( ontology:business_enterprise ) ( ontology:organization ) } } } } . FILTER ( ?s = ?u ) . { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?s ) WHERE { { ?b property:product ?h . ?h rdf:type ontology:work_of_art . ?b rdf:type ontology:business_enterprise } UNION { ?b property:product ?h . ?b rdf:type ontology:organization . ?h rdf:type ontology:work_of_art } } GROUP BY ?h } }
[]