Simple Question (Direct)
Simple Question
Q656044
P86
Q502895
USER
Which person composed Bloodsport II: The Next Kumite ?
(Q656044,P86,c(Q502895))
action filter_type
action find
entity Q656044
relation P86
type Q502895
['Q656044', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q656044 property:P86 ?g . ?g rdf:type ontology:Q502895 }
Bloodsport II: The Next Kumite
action filter_type
action find
entity Bloodsport II: The Next Kumite
relation composer
type common name
['Bloodsport II: The Next Kumite', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Bloodsport_II:_The_Next_Kumite property:composer ?g . ?g rdf:type ontology:common_name }
[]
common name
Q1769342
SYSTEM
Stephen Edwards
Q1769342
(Q656044,P86,c(Q502895))
action filter_type
action find
entity Q656044
relation P86
type Q502895
[ANSWER] composed Bloodsport II: The Next Kumite
['Q656044', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q656044 property:P86 ?g . ?g rdf:type ontology:Q502895 }
Stephen Edwards
Stephen Edwards composed Bloodsport II: The Next Kumite
Stephen Edwards
action filter_type
action find
entity Bloodsport II: The Next Kumite
relation composer
type common name
['Bloodsport II: The Next Kumite', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Bloodsport_II:_The_Next_Kumite property:composer ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q656044
P344
Q502895
USER
Who is the cinematographer of that work of art ?
(Q1769342,P344,c(Q502895))
action filter_type
action find
entity Q656044
relation P344
type Q502895
['Q1769342', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q656044 property:P344 ?p }
Bloodsport II: The Next Kumite
action filter_type
action find
entity Bloodsport II: The Next Kumite
relation director of photography
type common name
['Stephen Edwards', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Bloodsport_II:_The_Next_Kumite property:director_of_photography ?p }
[]
common name
Q1677993
SYSTEM
Jacques Haitkin
Q1677993
(Q1769342,P344,c(Q502895))
action filter_type
action find
entity Q656044
relation P344
type Q502895
The cinematographer of that work of art is Monsieur [ANSWER]
['Q1769342', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q656044 property:P344 ?p }
Jacques Haitkin
The cinematographer of that work of art is Monsieur Jacques Haitkin
Jacques Haitkin
action filter_type
action find
entity Bloodsport II: The Next Kumite
relation director of photography
type common name
['Stephen Edwards', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Bloodsport_II:_The_Next_Kumite property:director_of_photography ?p }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q2342494 Q107425
USER
Which works of art are exactly 1 collectables or landscapes a part of ?
(c(Q2342494)|c(Q107425),P361,c(Q838948))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q107425
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q107425'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?k WHERE { { ?k rdf:type ontology:Q838948 . ?x rdf:type ontology:Q2342494 . ?x property:P361 ?k } UNION { ?x property:P361 ?k . ?k rdf:type ontology:Q838948 . ?x rdf:type ontology:Q107425 } } GROUP BY ?k } . FILTER ( ?t = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type landscape
value 1
[[{'concept': 'collectable'}, {'concept': 'landscape'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?k WHERE { { ?k rdf:type ontology:work_of_art . ?x rdf:type ontology:collectable . ?x property:part_of ?k } UNION { ?x property:part_of ?k . ?k rdf:type ontology:work_of_art . ?x rdf:type ontology:landscape } } GROUP BY ?k } . FILTER ( ?t = 1 ) }
[]
work of art collectable landscape
Q1195466 Q1297233 Q22260775
SYSTEM
The Man on the Roof, Ferdinand the Bull, Sonar Kella
Q22260775 Q1195466 Q489772 Q1297233
(c(Q2342494)|c(Q107425),P361,c(Q838948))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q107425
value 1
[ANSWERS] are exactly 1 collectables or landscapes a part of
[[{'concept': 'Q2342494'}, {'concept': 'Q107425'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?k WHERE { { ?k rdf:type ontology:Q838948 . ?x rdf:type ontology:Q2342494 . ?x property:P361 ?k } UNION { ?x property:P361 ?k . ?k rdf:type ontology:Q838948 . ?x rdf:type ontology:Q107425 } } GROUP BY ?k } . FILTER ( ?t = 1 ) }
Sonar Kella The Man on the Roof Seven Wonders of the Ancient World Ferdinand the Bull
The Man on the Roof, Ferdinand the Bull and Sonar Kella are exactly 1 collectables or landscapes a part of
The Man on the Roof Ferdinand the Bull Sonar Kella
action equal
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type landscape
value 1
[[{'concept': 'collectable'}, {'concept': 'landscape'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) ?k WHERE { { ?k rdf:type ontology:work_of_art . ?x rdf:type ontology:collectable . ?x property:part_of ?k } UNION { ?x property:part_of ?k . ?k rdf:type ontology:work_of_art . ?x rdf:type ontology:landscape } } GROUP BY ?k } . FILTER ( ?t = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1677993
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Jacques Haitkin ?
(Q1677993,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1677993
relation P27
type Q15617994
['Q1677993', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q1677993 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Jacques Haitkin
action count
action filter_type
action find
entity Jacques Haitkin
relation country of citizenship
type designation for an administrative territorial entity
['Jacques Haitkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Jacques_Haitkin property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q1677993,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1677993
relation P27
type Q15617994
[ANSWER]
['Q1677993', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q1677993 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Jacques Haitkin
relation country of citizenship
type designation for an administrative territorial entity
['Jacques Haitkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Jacques_Haitkin property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q3538580
P27
Q15617994
USER
And what about Trevor Ford?
(Q3538580,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3538580
relation P27
type Q15617994
['Q3538580', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q3538580 property:P27 ?k }
Trevor Ford
action count
action filter_type
action find
entity Trevor Ford
relation country of citizenship
type designation for an administrative territorial entity
['Trevor Ford', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Trevor_Ford property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q3538580,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3538580
relation P27
type Q15617994
[ANSWER]
['Q3538580', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ontology:Q15617994 . resource:Q3538580 property:P27 ?k }
United States of America
1
action count
action filter_type
action find
entity Trevor Ford
relation country of citizenship
type designation for an administrative territorial entity
['Trevor Ford', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Trevor_Ford property:country_of_citizenship ?k }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q11541795
Q15617994
USER
And what about Akemi Enokida?
(Q11541795,P27,c(Q15617994))
action count
action filter_type
action find
entity Q11541795
relation P27
type Q15617994
['Q11541795', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q11541795 property:P27 ?e }
Akemi Enokida
action count
action filter_type
action find
entity Akemi Enokida
relation country of citizenship
type designation for an administrative territorial entity
['Akemi Enokida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Akemi_Enokida property:country_of_citizenship ?e }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q11541795,P27,c(Q15617994))
action count
action filter_type
action find
entity Q11541795
relation P27
type Q15617994
[ANSWER]
['Q11541795', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q11541795 property:P27 ?e }
1
action count
action filter_type
action find
entity Akemi Enokida
relation country of citizenship
type designation for an administrative territorial entity
['Akemi Enokida', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Akemi_Enokida property:country_of_citizenship ?e }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q838948 Q386724
USER
Which works represents a fictional universe described in exactly 5 works of art ?
(c(Q386724),P1445,c(Q838948))
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 5
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?h ) WHERE { ?d property:P1445 ?j . ?d rdf:type ontology:Q386724 . ?j rdf:type ontology:Q838948 } GROUP BY ?d } . FILTER ( ?h = 5 ) }
action equal
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 5
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?h ) WHERE { ?d property:fictional_universe_described_in ?j . ?d rdf:type ontology:work . ?j rdf:type ontology:work_of_art } GROUP BY ?d } . FILTER ( ?h = 5 ) }
[]
work of art work
Q384426
SYSTEM
Pirates of the Caribbean
Q384426
(c(Q386724),P1445,c(Q838948))
action equal
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 5
[ANSWER] represents a fictional universe described in exactly 5 works of art
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?h ) WHERE { ?d property:P1445 ?j . ?d rdf:type ontology:Q386724 . ?j rdf:type ontology:Q838948 } GROUP BY ?d } . FILTER ( ?h = 5 ) }
Pirates of the Caribbean
Pirates of the Caribbean represents a fictional universe described in exactly 5 works of art
Pirates of the Caribbean
action equal
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 5
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?h ) WHERE { ?d property:fictional_universe_described_in ?j . ?d rdf:type ontology:work . ?j rdf:type ontology:work_of_art } GROUP BY ?d } . FILTER ( ?h = 5 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5807125 Q1677993
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Jacques Haitkin or Lars Ivar Hising ?
OR((Q1677993,P27,c(Q15617994)), (Q5807125,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1677993
relation P27
action find
entity Q5807125
relation P27
type Q15617994
{'OR': [['Q1677993', 'P27', {'concept': 'Q15617994'}], ['Q5807125', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Q1677993 ) ( resource:Q5807125 ) } . ?c property:P27 ?v } . ?v rdf:type ontology:Q15617994 }
Lars Ivar Hising Jacques Haitkin
action filter_type
action union
action find
entity Jacques Haitkin
relation country of citizenship
action find
entity Lars Ivar Hising
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jacques Haitkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lars Ivar Hising', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Jacques_Haitkin ) ( resource:Lars_Ivar_Hising ) } . ?c property:country_of_citizenship ?v } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q34
SYSTEM
United States of America, Sweden
Q30 Q34
OR((Q1677993,P27,c(Q15617994)), (Q5807125,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1677993
relation P27
action find
entity Q5807125
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Jacques Haitkin or Lars Ivar Hising
{'OR': [['Q1677993', 'P27', {'concept': 'Q15617994'}], ['Q5807125', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Q1677993 ) ( resource:Q5807125 ) } . ?c property:P27 ?v } . ?v rdf:type ontology:Q15617994 }
United States of America Sweden
United States of America and Sweden are the countries of citizenship of Jacques Haitkin or Lars Ivar Hising
United States of America Sweden
action filter_type
action union
action find
entity Jacques Haitkin
relation country of citizenship
action find
entity Lars Ivar Hising
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jacques Haitkin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lars Ivar Hising', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?c ) { ( resource:Jacques_Haitkin ) ( resource:Lars_Ivar_Hising ) } . ?c property:country_of_citizenship ?v } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q8261 Q1195466
P361 P136
Q2342494
USER
Which collectables are a portion of The Man on the Roof and have novel as their type ?
AND((c(Q2342494),P361,Q1195466), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q1195466
relation P361
action find_reverse
entity Q8261
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P361', 'Q1195466'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?c WHERE { ?c property:P361 resource:Q1195466 . ?c property:P136 resource:Q8261 . ?c rdf:type ontology:Q2342494 }
novel The Man on the Roof
action filter_type
action intersection
action find_reverse
entity The Man on the Roof
relation part of
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'part of', 'The Man on the Roof'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?c WHERE { ?c property:part_of resource:The_Man_on_the_Roof . ?c property:genre resource:novel . ?c rdf:type ontology:collectable }
[]
collectable
Q939635
SYSTEM
The Abominable Man
Q939635
AND((c(Q2342494),P361,Q1195466), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q1195466
relation P361
action find_reverse
entity Q8261
relation P136
type Q2342494
[ANSWER] is a portion of The Man on the Roof and have novel as their type
{'AND': [[{'concept': 'Q2342494'}, 'P361', 'Q1195466'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?c WHERE { ?c property:P361 resource:Q1195466 . ?c property:P136 resource:Q8261 . ?c rdf:type ontology:Q2342494 }
The Abominable Man
The Abominable Man is a portion of The Man on the Roof and have novel as their type
The Abominable Man
action filter_type
action intersection
action find_reverse
entity The Man on the Roof
relation part of
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'part of', 'The Man on the Roof'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?c WHERE { ?c property:part_of resource:The_Man_on_the_Roof . ?c property:genre resource:novel . ?c rdf:type ontology:collectable }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q939635 Q553730
P50
Q502895
USER
Did Per Wahlöö write that collectable ?
(Q939635,P50,Q553730)
action is_in
entity Q553730
action find
entity Q939635
relation P50
['Q939635', 'P50', 'Q553730']
ASK WHERE { resource:Q939635 property:P50 resource:Q553730 }
The Abominable Man Per Wahlöö
action is_in
entity Per Wahlöö
action find
entity The Abominable Man
relation author
['The Abominable Man', 'author', 'Per Wahlöö']
ASK WHERE { resource:The_Abominable_Man property:author resource:Per_Wahlöö }
[]
common name
SYSTEM
YES
(Q939635,P50,Q553730)
action is_in
entity Q553730
action find
entity Q939635
relation P50
[ANSWER]
['Q939635', 'P50', 'Q553730']
ASK WHERE { resource:Q939635 property:P50 resource:Q553730 }
Yes
action is_in
entity Per Wahlöö
action find
entity The Abominable Man
relation author
['The Abominable Man', 'author', 'Per Wahlöö']
ASK WHERE { resource:The_Abominable_Man property:author resource:Per_Wahlöö }
[]