Simple Question (Direct)
Simple Question
Q747551
P495
Q1048835
USER
What is the country of origin of Videodrome ?
(Q747551,P495,c(Q1048835))
action filter_type
action find
entity Q747551
relation P495
type Q1048835
['Q747551', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q747551 property:P495 ?s . ?s rdf:type ontology:Q1048835 }
Videodrome
action filter_type
action find
entity Videodrome
relation country of origin
type political territorial entity
['Videodrome', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Videodrome property:country_of_origin ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q747551,P495,c(Q1048835))
action filter_type
action find
entity Q747551
relation P495
type Q1048835
The country of origin of Videodrome is of [ANSWER]
['Q747551', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q747551 property:P495 ?s . ?s rdf:type ontology:Q1048835 }
Canada
The country of origin of Videodrome is of Canada
Canada
action filter_type
action find
entity Videodrome
relation country of origin
type political territorial entity
['Videodrome', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Videodrome property:country_of_origin ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q747551
P86
Q502895
USER
Who composed that work of art ?
(Q16,P86,c(Q502895))
action filter_type
action find
entity Q747551
relation P86
type Q502895
['Q16', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q747551 property:P86 ?h . ?h rdf:type ontology:Q502895 }
Videodrome
action filter_type
action find
entity Videodrome
relation composer
type common name
['Canada', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Videodrome property:composer ?h . ?h rdf:type ontology:common_name }
[]
common name
Q207773
SYSTEM
Howard Shore
Q207773
(Q16,P86,c(Q502895))
action filter_type
action find
entity Q747551
relation P86
type Q502895
[ANSWER] composed that work of art
['Q16', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q747551 property:P86 ?h . ?h rdf:type ontology:Q502895 }
Howard Shore
Howard Shore composed that work of art
Howard Shore
action filter_type
action find
entity Videodrome
relation composer
type common name
['Canada', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Videodrome property:composer ?h . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q207773
P27
Q1048835
USER
How many political territories are the native countriesof Howard Shore ?
(Q207773,P27,c(Q1048835))
action count
action filter_type
action find
entity Q207773
relation P27
type Q1048835
['Q207773', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Q207773 property:P27 ?x . ?x rdf:type ontology:Q1048835 }
Howard Shore
action count
action filter_type
action find
entity Howard Shore
relation country of citizenship
type political territorial entity
['Howard Shore', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Howard_Shore property:country_of_citizenship ?x . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q16
(Q207773,P27,c(Q1048835))
action count
action filter_type
action find
entity Q207773
relation P27
type Q1048835
[ANSWER]
['Q207773', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Q207773 property:P27 ?x . ?x rdf:type ontology:Q1048835 }
Canada
1
action count
action filter_type
action find
entity Howard Shore
relation country of citizenship
type political territorial entity
['Howard Shore', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { resource:Howard_Shore property:country_of_citizenship ?x . ?x rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q207773
P676
Q7725634
USER
Which literary work did that person write the lyrics for ?
action filter_type
action find_reverse
entity Q207773
relation P676
type Q7725634
SELECT DISTINCT ?b WHERE { ?b property:P676 resource:Q207773 . ?b rdf:type ontology:Q7725634 }
Howard Shore
action filter_type
action find_reverse
entity Howard Shore
relation lyrics by
type literary work
SELECT DISTINCT ?b WHERE { ?b property:lyrics_by resource:Howard_Shore . ?b rdf:type ontology:literary_work }
[]
literary work
Q7475195
SYSTEM
Gollum's Song
Q7475195
action filter_type
action find_reverse
entity Q207773
relation P676
type Q7725634
That person wrote the lyrics for [ANSWER]
SELECT DISTINCT ?b WHERE { ?b property:P676 resource:Q207773 . ?b rdf:type ontology:Q7725634 }
Gollum's Song
That person wrote the lyrics for Gollum's Song
Gollum's Song
action filter_type
action find_reverse
entity Howard Shore
relation lyrics by
type literary work
SELECT DISTINCT ?b WHERE { ?b property:lyrics_by resource:Howard_Shore . ?b rdf:type ontology:literary_work }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35499
P407
Q34770 Q7725634
USER
Which languages are the languages of work for greater number of literary works than Old Church Slavonic ?
(c(Q7725634),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q35499
relation P407
type Q34770
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?r ) WHERE { ?v rdf:type ontology:Q34770 . ?l rdf:type ontology:Q7725634 . ?l property:P407 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q35499 property:P407 ?e . ?e rdf:type ontology:Q34770 } } . FILTER ( ?r > ?y ) }
Old Church Slavonic
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Old Church Slavonic
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?r ) WHERE { ?v rdf:type ontology:language . ?l rdf:type ontology:literary_work . ?l property:language_of_work_or_name ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Old_Church_Slavonic property:language_of_work_or_name ?e . ?e rdf:type ontology:language } } . FILTER ( ?r > ?y ) }
[]
language literary work
Q1860 Q397 Q9056
SYSTEM
English, Latin, Czech
Q1860 Q8785 Q1321 Q397 Q9056 Q37041 Q652
(c(Q7725634),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q35499
relation P407
type Q34770
[ANSWERS] are the languages of work for greater number of literary works than Old Church Slavonic
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?r ) WHERE { ?v rdf:type ontology:Q34770 . ?l rdf:type ontology:Q7725634 . ?l property:P407 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q35499 property:P407 ?e . ?e rdf:type ontology:Q34770 } } . FILTER ( ?r > ?y ) }
English Armenian Spanish Latin Czech classical Chinese Italian
English, Latin and Czech are the languages of work for greater number of literary works than Old Church Slavonic
English Latin Czech
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Old Church Slavonic
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?r ) WHERE { ?v rdf:type ontology:language . ?l rdf:type ontology:literary_work . ?l property:language_of_work_or_name ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Old_Church_Slavonic property:language_of_work_or_name ?e . ?e rdf:type ontology:language } } . FILTER ( ?r > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q9056
P407
Q34770 Q7725634
USER
And also tell me about Czech?
(c(Q7725634),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q9056
relation P407
type Q34770
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:P407 ?i . ?i rdf:type ontology:Q34770 . ?s rdf:type ontology:Q7725634 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q9056 property:P407 ?z . ?z rdf:type ontology:Q34770 } } . FILTER ( ?l > ?o ) }
Czech
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Czech
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:language_of_work_or_name ?i . ?i rdf:type ontology:language . ?s rdf:type ontology:literary_work } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Czech property:language_of_work_or_name ?z . ?z rdf:type ontology:language } } . FILTER ( ?l > ?o ) }
[]
language literary work
Q1860 Q1321 Q652
SYSTEM
English, Spanish, Italian
Q1860 Q1321 Q652
(c(Q7725634),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_type
action find
entity Q9056
relation P407
type Q34770
[ANSWERS]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:P407 ?i . ?i rdf:type ontology:Q34770 . ?s rdf:type ontology:Q7725634 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q9056 property:P407 ?z . ?z rdf:type ontology:Q34770 } } . FILTER ( ?l > ?o ) }
English Spanish Italian
English Spanish Italian
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_type
action find
entity Czech
relation language of work or name
type language
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?l ) WHERE { ?s property:language_of_work_or_name ?i . ?i rdf:type ontology:language . ?s rdf:type ontology:literary_work } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Czech property:language_of_work_or_name ?z . ?z rdf:type ontology:language } } . FILTER ( ?l > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q747551
P272
Q874405
USER
Who was the producer of Videodrome ?
(Q747551,P272,c(Q874405))
action filter_type
action find
entity Q747551
relation P272
type Q874405
['Q747551', 'P272', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { resource:Q747551 property:P272 ?s . ?s rdf:type ontology:Q874405 }
Videodrome
action filter_type
action find
entity Videodrome
relation production company
type social group
['Videodrome', 'production company', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { resource:Videodrome property:production_company ?s . ?s rdf:type ontology:social_group }
[]
social group
Q3546604
SYSTEM
Telefilm Canada
Q3546604
(Q747551,P272,c(Q874405))
action filter_type
action find
entity Q747551
relation P272
type Q874405
The producer of Videodrome was [ANSWER]
['Q747551', 'P272', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { resource:Q747551 property:P272 ?s . ?s rdf:type ontology:Q874405 }
Telefilm Canada
The producer of Videodrome was Telefilm Canada
Telefilm Canada
action filter_type
action find
entity Videodrome
relation production company
type social group
['Videodrome', 'production company', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { resource:Videodrome property:production_company ?s . ?s rdf:type ontology:social_group }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1402938
Q874405
USER
And what about The Apprenticeship of Duddy Kravitz?
(Q1402938,P272,c(Q874405))
action filter_type
action find
entity Q1402938
relation P272
type Q874405
['Q1402938', 'P272', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q1402938 property:P272 ?v . ?v rdf:type ontology:Q874405 }
The Apprenticeship of Duddy Kravitz
action filter_type
action find
entity The Apprenticeship of Duddy Kravitz
relation production company
type social group
['The Apprenticeship of Duddy Kravitz', 'production company', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:The_Apprenticeship_of_Duddy_Kravitz property:production_company ?v . ?v rdf:type ontology:social_group }
[]
social group
Q3546604
SYSTEM
Telefilm Canada
Q3546604
(Q1402938,P272,c(Q874405))
action filter_type
action find
entity Q1402938
relation P272
type Q874405
[ANSWER]
['Q1402938', 'P272', {'concept': 'Q874405'}]
SELECT DISTINCT ?v WHERE { resource:Q1402938 property:P272 ?v . ?v rdf:type ontology:Q874405 }
Telefilm Canada
Telefilm Canada
action filter_type
action find
entity The Apprenticeship of Duddy Kravitz
relation production company
type social group
['The Apprenticeship of Duddy Kravitz', 'production company', {'concept': 'social group'}]
SELECT DISTINCT ?v WHERE { resource:The_Apprenticeship_of_Duddy_Kravitz property:production_company ?v . ?v rdf:type ontology:social_group }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3546604 Q3225798
P272
Q838948
USER
Did The Pornographer have that social group as its motion picture studio ?
(Q3225798,P272,Q3546604)
action is_in
entity Q3546604
action find
entity Q3225798
relation P272
['Q3225798', 'P272', 'Q3546604']
ASK WHERE { resource:Q3225798 property:P272 resource:Q3546604 }
Telefilm Canada The Pornographer
action is_in
entity Telefilm Canada
action find
entity The Pornographer
relation production company
['The Pornographer', 'production company', 'Telefilm Canada']
ASK WHERE { resource:The_Pornographer property:production_company resource:Telefilm_Canada }
[]
work of art
SYSTEM
YES
(Q3225798,P272,Q3546604)
action is_in
entity Q3546604
action find
entity Q3225798
relation P272
[ANSWER]
['Q3225798', 'P272', 'Q3546604']
ASK WHERE { resource:Q3225798 property:P272 resource:Q3546604 }
Yes
action is_in
entity Telefilm Canada
action find
entity The Pornographer
relation production company
['The Pornographer', 'production company', 'Telefilm Canada']
ASK WHERE { resource:The_Pornographer property:production_company resource:Telefilm_Canada }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q7475195 Q207773 Q5072540
P676
Q502895
USER
Did Howard Shore and Channi Singh pen down the lyrics for Gollum's Song ?
(Q7475195,P676,Q207773) (Q7475195,P676,Q5072540)
action is_in
entity Q7475195
action intersection
action find_reverse
entity Q207773
relation P676
action find_reverse
entity Q5072540
relation P676
['Q7475195', 'P676', 'Q207773'] ['Q7475195', 'P676', 'Q5072540']
ASK WHERE { resource:Q7475195 property:P676 resource:Q207773 . resource:Q7475195 property:P676 resource:Q5072540 }
Gollum's Song Howard Shore Channi Singh
action is_in
entity Gollum's Song
action intersection
action find_reverse
entity Howard Shore
relation lyrics by
action find_reverse
entity Channi Singh
relation lyrics by
["Gollum's Song", 'lyrics by', 'Howard Shore'] ["Gollum's Song", 'lyrics by', 'Channi Singh']
ASK WHERE { resource:Gollum's_Song property:lyrics_by resource:Howard_Shore . resource:Gollum's_Song property:lyrics_by resource:Channi_Singh }
[]
common name
SYSTEM
YES and NO respectively
(Q7475195,P676,Q207773) (Q7475195,P676,Q5072540)
action is_in
entity Q7475195
action intersection
action find_reverse
entity Q207773
relation P676
action find_reverse
entity Q5072540
relation P676
[ANSWER]
['Q7475195', 'P676', 'Q207773'] ['Q7475195', 'P676', 'Q5072540']
ASK WHERE { resource:Q7475195 property:P676 resource:Q207773 . resource:Q7475195 property:P676 resource:Q5072540 }
YES and NO respectively
action is_in
entity Gollum's Song
action intersection
action find_reverse
entity Howard Shore
relation lyrics by
action find_reverse
entity Channi Singh
relation lyrics by
["Gollum's Song", 'lyrics by', 'Howard Shore'] ["Gollum's Song", 'lyrics by', 'Channi Singh']
ASK WHERE { resource:Gollum's_Song property:lyrics_by resource:Howard_Shore . resource:Gollum's_Song property:lyrics_by resource:Channi_Singh }
[]