Simple Question (Direct)
Simple Question
Q582012
P54
Q1194951
USER
Which national sports team is Peter Schöttel a member of ?
(Q582012,P54,c(Q1194951))
action filter_type
action find
entity Q582012
relation P54
type Q1194951
['Q582012', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1194951 . resource:Q582012 property:P54 ?h }
Peter Schöttel
action filter_type
action find
entity Peter Schöttel
relation member of sports team
type national sports team
['Peter Schöttel', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:national_sports_team . resource:Peter_Schöttel property:member_of_sports_team ?h }
[]
national sports team
Q163534
SYSTEM
Austria national football team
Q163534
(Q582012,P54,c(Q1194951))
action filter_type
action find
entity Q582012
relation P54
type Q1194951
The [ANSWER] is Peter Schöttel a member of
['Q582012', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1194951 . resource:Q582012 property:P54 ?h }
Austria national football team
The Austria national football team is Peter Schöttel a member of
Austria national football team
action filter_type
action find
entity Peter Schöttel
relation member of sports team
type national sports team
['Peter Schöttel', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:national_sports_team . resource:Peter_Schöttel property:member_of_sports_team ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q163534
P1532
Q1048835
USER
Which political territory does that national sports team play for ?
(Q163534,P1532,c(Q1048835))
action filter_type
action find
entity Q163534
relation P1532
type Q1048835
['Q163534', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q163534 property:P1532 ?l }
Austria national football team
action filter_type
action find
entity Austria national football team
relation country for sport
type political territorial entity
['Austria national football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Austria_national_football_team property:country_for_sport ?l }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q163534,P1532,c(Q1048835))
action filter_type
action find
entity Q163534
relation P1532
type Q1048835
That national sports team plays in [ANSWER]
['Q163534', 'P1532', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q163534 property:P1532 ?l }
Austria
That national sports team plays in Austria
Austria
action filter_type
action find
entity Austria national football team
relation country for sport
type political territorial entity
['Austria national football team', 'country for sport', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Austria_national_football_team property:country_for_sport ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q40 Q1803525
P530
Q1048835
USER
Does Marumbi have diplomatic relations with that one ?
(Q40,P530,Q1803525)
action is_in
entity Q1803525
action find
entity Q40
relation P530
['Q40', 'P530', 'Q1803525']
ASK WHERE { resource:Q40 property:P530 resource:Q1803525 }
Austria Marumbi
action is_in
entity Marumbi
action find
entity Austria
relation diplomatic relation
['Austria', 'diplomatic relation', 'Marumbi']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Marumbi }
[]
political territorial entity
SYSTEM
NO
(Q40,P530,Q1803525)
action is_in
entity Q1803525
action find
entity Q40
relation P530
[ANSWER]
['Q40', 'P530', 'Q1803525']
ASK WHERE { resource:Q40 property:P530 resource:Q1803525 }
No
action is_in
entity Marumbi
action find
entity Austria
relation diplomatic relation
['Austria', 'diplomatic relation', 'Marumbi']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Marumbi }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with atmost 5 political territories ?
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f <= 5 ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?f ) WHERE { ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 . ?z property:P530 ?y } GROUP BY ?z } }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f <= 5 ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?f ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?y } GROUP BY ?z } }
[]
political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[ANSWERS] have diplomatic relationships with atmost 5 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f <= 5 ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?f ) WHERE { ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 . ?z property:P530 ?y } GROUP BY ?z } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with atmost 5 political territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f <= 5 ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?f ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?y } GROUP BY ?z } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Are Australia known to have diplomatic connections with those ones ?
(Q408,P530,Q35) (Q408,P530,Q16) (Q408,P530,Q40)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q35'] ['Q408', 'P530', 'Q16'] ['Q408', 'P530', 'Q40']
ASK WHERE { VALUES ( ?u ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q408 property:P530 ?u }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Denmark'] ['Australia', 'diplomatic relation', 'Canada'] ['Australia', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?u ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Australia property:diplomatic_relation ?u }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q35) (Q408,P530,Q16) (Q408,P530,Q40)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q35'] ['Q408', 'P530', 'Q16'] ['Q408', 'P530', 'Q40']
ASK WHERE { VALUES ( ?u ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q408 property:P530 ?u }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Denmark'] ['Australia', 'diplomatic relation', 'Canada'] ['Australia', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?u ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Australia property:diplomatic_relation ?u }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7736964 Q35
P161 P35
Q502895
USER
Which people are the heads of state of Denmark or were casted in The Gold Cure ?
OR((Q35,P35,c(Q502895)), (Q7736964,P161,c(Q502895)))
action filter_type
action union
action find
entity Q35
relation P35
action find
entity Q7736964
relation P161
type Q502895
{'OR': [['Q35', 'P35', {'concept': 'Q502895'}], ['Q7736964', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . { { resource:Q35 property:P35 ?n } UNION { resource:Q7736964 property:P161 ?n } } }
The Gold Cure Denmark
action filter_type
action union
action find
entity Denmark
relation head of state
action find
entity The Gold Cure
relation cast member
type common name
{'OR': [['Denmark', 'head of state', {'concept': 'common name'}], ['The Gold Cure', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . { { resource:Denmark property:head_of_state ?n } UNION { resource:The_Gold_Cure property:cast_member ?n } } }
[]
common name
Q7270709 Q151305 Q102139 Q5229491 Q157812 Q153940 Q6266413 Q151312 Q6908186 Q58056
SYSTEM
Some of them are Queenie Thomas, Christian IX of Denmark, Margrethe II of Denmark, Dave O'Toole, Frederick III of Denmark, Christian I of Denmark, Johnny Butt, Frederick IX of Denmark, Moore Marriott, Christopher of Bavaria
Q151305 Q7270709 Q154041 Q161958 Q156187 Q157793 Q151312 Q156572 Q5229491 Q157776 Q152756 Q154460 Q1681350 Q157812 Q6908186 Q5769910 Q5386177 Q157789 Q153940 Q5566418 Q161059 Q157781 Q6266413 Q58056 Q102139 Q156617 Q155002 Q154998 Q94941 Q153586 Q154993
OR((Q35,P35,c(Q502895)), (Q7736964,P161,c(Q502895)))
action filter_type
action union
action find
entity Q35
relation P35
action find
entity Q7736964
relation P161
type Q502895
[ANSWERS] are the heads of state of Denmark or were casted in The Gold Cure
{'OR': [['Q35', 'P35', {'concept': 'Q502895'}], ['Q7736964', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . { { resource:Q35 property:P35 ?n } UNION { resource:Q7736964 property:P161 ?n } } }
Christian IX of Denmark Queenie Thomas Frederick II of Denmark Eric of Pomerania Frederick V of Denmark Christian V of Denmark Frederick IX of Denmark Christian VII of Denmark Dave O'Toole John, King of Denmark Frederick VIII of Denmark Christian II of Denmark Jameson Thomas Frederick III of Denmark Moore Marriott Judd Green Eric Bransby Williams Frederick I of Denmark Christian I of Denmark Gladys Hamer Frederick IV of Denmark Christian VIII of Denmark Johnny Butt Christopher of Bavaria Margrethe II of Denmark Christian X of Denmark Frederick VI of Denmark Christian III of Denmark Frederick VII of Denmark Christian IV of Denmark Christian VI of Denmark
Queenie Thomas, Christian IX of Denmark, Margrethe II of Denmark, Dave O'Toole, Frederick III of Denmark, Christian I of Denmark, Johnny Butt, Frederick IX of Denmark, Moore Marriott and Christopher of Bavaria are the heads of state of Denmark or were casted in The Gold Cure
Queenie Thomas Christian IX of Denmark Margrethe II of Denmark Dave O'Toole Frederick III of Denmark Christian I of Denmark Johnny Butt Frederick IX of Denmark Moore Marriott Christopher of Bavaria
action filter_type
action union
action find
entity Denmark
relation head of state
action find
entity The Gold Cure
relation cast member
type common name
{'OR': [['Denmark', 'head of state', {'concept': 'common name'}], ['The Gold Cure', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . { { resource:Denmark property:head_of_state ?n } UNION { resource:The_Gold_Cure property:cast_member ?n } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q1001378
USER
Which cinematic techniques had max number of people as the dubbing artist ?
(c(Q1001378),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q1001378
type Q502895
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?z ) WHERE { ?k property:P725 ?y . ?y rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1001378 } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?a ) WHERE { ?x property:P725 ?t . ?x rdf:type ontology:Q1001378 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?a = ?c ) }
action argmax
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?z ) WHERE { ?k property:voice_actor ?y . ?y rdf:type ontology:common_name . ?k rdf:type ontology:cinematic_technique } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?a ) WHERE { ?x property:voice_actor ?t . ?x rdf:type ontology:cinematic_technique . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?a = ?c ) }
[]
common name cinematic technique
Q9321426
SYSTEM
Finding Dory
Q9321426
(c(Q1001378),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q1001378
type Q502895
[ANSWER] had max number of people as the dubbing artist
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?z ) WHERE { ?k property:P725 ?y . ?y rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1001378 } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?a ) WHERE { ?x property:P725 ?t . ?x rdf:type ontology:Q1001378 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?a = ?c ) }
Finding Dory
Finding Dory had max number of people as the dubbing artist
Finding Dory
action argmax
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?z ) WHERE { ?k property:voice_actor ?y . ?y rdf:type ontology:common_name . ?k rdf:type ontology:cinematic_technique } GROUP BY ?k } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?a ) WHERE { ?x property:voice_actor ?t . ?x rdf:type ontology:cinematic_technique . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?a = ?c ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q9321426 Q24564027
P1441
Q15707583
USER
Does Squirt appear in that cinematic technique ?
(Q24564027,P1441,Q9321426)
action is_in
entity Q9321426
action find
entity Q24564027
relation P1441
['Q24564027', 'P1441', 'Q9321426']
ASK WHERE { resource:Q24564027 property:P1441 resource:Q9321426 }
Finding Dory Squirt
action is_in
entity Finding Dory
action find
entity Squirt
relation present in work
['Squirt', 'present in work', 'Finding Dory']
ASK WHERE { resource:Squirt property:present_in_work resource:Finding_Dory }
[]
fictional taxon
SYSTEM
YES
(Q24564027,P1441,Q9321426)
action is_in
entity Q9321426
action find
entity Q24564027
relation P1441
[ANSWER]
['Q24564027', 'P1441', 'Q9321426']
ASK WHERE { resource:Q24564027 property:P1441 resource:Q9321426 }
Yes
action is_in
entity Finding Dory
action find
entity Squirt
relation present in work
['Squirt', 'present in work', 'Finding Dory']
ASK WHERE { resource:Squirt property:present_in_work resource:Finding_Dory }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q151305 Q1758344
P27
Q1048835
USER
Is Christian IX of Denmark a civilian of Barão ?
(Q151305,P27,Q1758344)
action is_in
entity Q1758344
action find
entity Q151305
relation P27
['Q151305', 'P27', 'Q1758344']
ASK WHERE { resource:Q151305 property:P27 resource:Q1758344 }
Christian IX of Denmark Barão
action is_in
entity Barão
action find
entity Christian IX of Denmark
relation country of citizenship
['Christian IX of Denmark', 'country of citizenship', 'Barão']
ASK WHERE { resource:Christian_IX_of_Denmark property:country_of_citizenship resource:Barão }
[]
political territorial entity
SYSTEM
NO
(Q151305,P27,Q1758344)
action is_in
entity Q1758344
action find
entity Q151305
relation P27
[ANSWER]
['Q151305', 'P27', 'Q1758344']
ASK WHERE { resource:Q151305 property:P27 resource:Q1758344 }
No
action is_in
entity Barão
action find
entity Christian IX of Denmark
relation country of citizenship
['Christian IX of Denmark', 'country of citizenship', 'Barão']
ASK WHERE { resource:Christian_IX_of_Denmark property:country_of_citizenship resource:Barão }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q5229491
P161 P364
Q838948
USER
Which works of art have Dave O'Toole as actor and were originally created in English language ?
AND((c(Q838948),P161,Q5229491), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q5229491
relation P161
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q5229491'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q5229491 . ?v property:P364 resource:Q1860 . ?v rdf:type ontology:Q838948 }
English Dave O'Toole
action filter_type
action intersection
action find_reverse
entity Dave O'Toole
relation cast member
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', "Dave O'Toole"], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Dave_O'Toole . ?v property:original_language_of_work resource:English . ?v rdf:type ontology:work_of_art }
[]
work of art
Q7736964
SYSTEM
The Gold Cure
Q7736964
AND((c(Q838948),P161,Q5229491), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q5229491
relation P161
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWER] have Dave O'Toole as actor and were originally created in English language
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q5229491'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q5229491 . ?v property:P364 resource:Q1860 . ?v rdf:type ontology:Q838948 }
The Gold Cure
The Gold Cure have Dave O'Toole as actor and were originally created in English language
The Gold Cure
action filter_type
action intersection
action find_reverse
entity Dave O'Toole
relation cast member
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', "Dave O'Toole"], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Dave_O'Toole . ?v property:original_language_of_work resource:English . ?v rdf:type ontology:work_of_art }
[]