Simple Question (Direct)
Simple Question
Q20111890
P106
Q12737077
USER
What does Victor Zetterberg do for a living ?
(Q20111890,P106,c(Q12737077))
action filter_type
action find
entity Q20111890
relation P106
type Q12737077
['Q20111890', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q20111890 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Victor Zetterberg
action filter_type
action find
entity Victor Zetterberg
relation occupation
type occupation
['Victor Zetterberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Victor_Zetterberg property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q11774891
SYSTEM
ice hockey player
Q11774891
(Q20111890,P106,c(Q12737077))
action filter_type
action find
entity Q20111890
relation P106
type Q12737077
Victor Zetterberg does for a living as [ANSWER]
['Q20111890', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q20111890 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
ice hockey player
Victor Zetterberg does for a living as ice hockey player
ice hockey player
action filter_type
action find
entity Victor Zetterberg
relation occupation
type occupation
['Victor Zetterberg', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Victor_Zetterberg property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20111890
P54
Q12973014
USER
Which sports teams are Victor Zetterberg a member of ?
(Q20111890,P54,c(Q12973014))
action filter_type
action find
entity Q20111890
relation P54
type Q12973014
['Q20111890', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { resource:Q20111890 property:P54 ?x . ?x rdf:type ontology:Q12973014 }
Victor Zetterberg
action filter_type
action find
entity Victor Zetterberg
relation member of sports team
type sports team
['Victor Zetterberg', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { resource:Victor_Zetterberg property:member_of_sports_team ?x . ?x rdf:type ontology:sports_team }
[]
sports team
Q1538282 Q1792166 Q1530964
SYSTEM
Huddinge IK, Kungälvs IK, IK Comet
Q1530964 Q1538282 Q1357499 Q1792166
(Q20111890,P54,c(Q12973014))
action filter_type
action find
entity Q20111890
relation P54
type Q12973014
The [ANSWERS] are Victor Zetterberg a member of
['Q20111890', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?x WHERE { resource:Q20111890 property:P54 ?x . ?x rdf:type ontology:Q12973014 }
IK Comet Huddinge IK Kongsvinger Knights Kungälvs IK
The Huddinge IK, Kungälvs IK and IK Comet are Victor Zetterberg a member of
Huddinge IK Kungälvs IK IK Comet
action filter_type
action find
entity Victor Zetterberg
relation member of sports team
type sports team
['Victor Zetterberg', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?x WHERE { resource:Victor_Zetterberg property:member_of_sports_team ?x . ?x rdf:type ontology:sports_team }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q980399
Q12973014
USER
And how about Jimmy Baron?
(Q980399,P54,c(Q12973014))
action filter_type
action find
entity Q980399
relation P54
type Q12973014
['Q980399', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?l WHERE { resource:Q980399 property:P54 ?l . ?l rdf:type ontology:Q12973014 }
Jimmy Baron
action filter_type
action find
entity Jimmy Baron
relation member of sports team
type sports team
['Jimmy Baron', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?l WHERE { resource:Jimmy_Baron property:member_of_sports_team ?l . ?l rdf:type ontology:sports_team }
[]
sports team
Q1458596 Q54924 Q2677455
SYSTEM
PBC Lokomotiv-Kuban, San Sebastián Gipuzkoa BC, Mersin Büyükşehir Belediyesi S.K.
Q1458596 Q54924 Q2677455
(Q980399,P54,c(Q12973014))
action filter_type
action find
entity Q980399
relation P54
type Q12973014
[ANSWERS]
['Q980399', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?l WHERE { resource:Q980399 property:P54 ?l . ?l rdf:type ontology:Q12973014 }
PBC Lokomotiv-Kuban San Sebastián Gipuzkoa BC Mersin Büyükşehir Belediyesi S.K.
PBC Lokomotiv-Kuban San Sebastián Gipuzkoa BC Mersin Büyükşehir Belediyesi S.K.
action filter_type
action find
entity Jimmy Baron
relation member of sports team
type sports team
['Jimmy Baron', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?l WHERE { resource:Jimmy_Baron property:member_of_sports_team ?l . ?l rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q980399
P69
Q1935049
USER
Which military school was that person educated at ?
(Q1458596,P69,c(Q1935049)) (Q54924,P69,c(Q1935049)) (Q2677455,P69,c(Q1935049))
action filter_type
action find
entity Q980399
relation P69
type Q1935049
['Q1458596', 'P69', {'concept': 'Q1935049'}] ['Q54924', 'P69', {'concept': 'Q1935049'}] ['Q2677455', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?w WHERE { resource:Q980399 property:P69 ?w . ?w rdf:type ontology:Q1935049 }
Jimmy Baron
action filter_type
action find
entity Jimmy Baron
relation educated at
type military school
['PBC Lokomotiv-Kuban', 'educated at', {'concept': 'military school'}] ['San Sebastián Gipuzkoa BC', 'educated at', {'concept': 'military school'}] ['Mersin Büyükşehir Belediyesi S.K.', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?w WHERE { resource:Jimmy_Baron property:educated_at ?w . ?w rdf:type ontology:military_school }
[]
military school
Q635078
SYSTEM
United States Army War College
Q635078
(Q1458596,P69,c(Q1935049)) (Q54924,P69,c(Q1935049)) (Q2677455,P69,c(Q1935049))
action filter_type
action find
entity Q980399
relation P69
type Q1935049
That person was educated at [ANSWER]
['Q1458596', 'P69', {'concept': 'Q1935049'}] ['Q54924', 'P69', {'concept': 'Q1935049'}] ['Q2677455', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?w WHERE { resource:Q980399 property:P69 ?w . ?w rdf:type ontology:Q1935049 }
United States Army War College
That person was educated at United States Army War College
United States Army War College
action filter_type
action find
entity Jimmy Baron
relation educated at
type military school
['PBC Lokomotiv-Kuban', 'educated at', {'concept': 'military school'}] ['San Sebastián Gipuzkoa BC', 'educated at', {'concept': 'military school'}] ['Mersin Büyükşehir Belediyesi S.K.', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?w WHERE { resource:Jimmy_Baron property:educated_at ?w . ?w rdf:type ontology:military_school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q980399
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q635078,P19,c(Q56061))
action filter_type
action find
entity Q980399
relation P19
type Q56061
['Q635078', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q980399 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Jimmy Baron
action filter_type
action find
entity Jimmy Baron
relation place of birth
type administrative territorial entity
['United States Army War College', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Jimmy_Baron property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q999257
SYSTEM
East Greenwich
Q999257
(Q635078,P19,c(Q56061))
action filter_type
action find
entity Q980399
relation P19
type Q56061
That person was born in [ANSWER]
['Q635078', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q980399 property:P19 ?c . ?c rdf:type ontology:Q56061 }
East Greenwich
That person was born in East Greenwich
East Greenwich
action filter_type
action find
entity Jimmy Baron
relation place of birth
type administrative territorial entity
['United States Army War College', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Jimmy_Baron property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q999257 Q7327171
P19
Q502895
USER
Does Richard L. Cevoli have place of birth as that administrative territory ?
(Q7327171,P19,Q999257)
action is_in
entity Q999257
action find
entity Q7327171
relation P19
['Q7327171', 'P19', 'Q999257']
ASK WHERE { resource:Q7327171 property:P19 resource:Q999257 }
East Greenwich Richard L. Cevoli
action is_in
entity East Greenwich
action find
entity Richard L. Cevoli
relation place of birth
['Richard L. Cevoli', 'place of birth', 'East Greenwich']
ASK WHERE { resource:Richard_L._Cevoli property:place_of_birth resource:East_Greenwich }
[]
common name
SYSTEM
YES
(Q7327171,P19,Q999257)
action is_in
entity Q999257
action find
entity Q7327171
relation P19
[ANSWER]
['Q7327171', 'P19', 'Q999257']
ASK WHERE { resource:Q7327171 property:P19 resource:Q999257 }
Yes
action is_in
entity East Greenwich
action find
entity Richard L. Cevoli
relation place of birth
['Richard L. Cevoli', 'place of birth', 'East Greenwich']
ASK WHERE { resource:Richard_L._Cevoli property:place_of_birth resource:East_Greenwich }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16360321 Q20111890
P27
Q15617994
USER
Which administrative territories are Victor Zetterberg or Kristīne Buša a civilian of ?
OR((Q20111890,P27,c(Q15617994)), (Q16360321,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q20111890
relation P27
action find
entity Q16360321
relation P27
type Q15617994
{'OR': [['Q20111890', 'P27', {'concept': 'Q15617994'}], ['Q16360321', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q20111890 property:P27 ?q } UNION { resource:Q16360321 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Kristīne Buša Victor Zetterberg
action filter_type
action union
action find
entity Victor Zetterberg
relation country of citizenship
action find
entity Kristīne Buša
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Victor Zetterberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kristīne Buša', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Victor_Zetterberg property:country_of_citizenship ?q } UNION { resource:Kristīne_Buša property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q211 Q34
SYSTEM
Latvia, Sweden
Q211 Q34
OR((Q20111890,P27,c(Q15617994)), (Q16360321,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q20111890
relation P27
action find
entity Q16360321
relation P27
type Q15617994
[ANSWERS] are Victor Zetterberg or Kristīne Buša a civilian of
{'OR': [['Q20111890', 'P27', {'concept': 'Q15617994'}], ['Q16360321', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q20111890 property:P27 ?q } UNION { resource:Q16360321 property:P27 ?q } } . ?q rdf:type ontology:Q15617994 }
Latvia Sweden
Latvia and Sweden are Victor Zetterberg or Kristīne Buša a civilian of
Latvia Sweden
action filter_type
action union
action find
entity Victor Zetterberg
relation country of citizenship
action find
entity Kristīne Buša
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Victor Zetterberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kristīne Buša', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Victor_Zetterberg property:country_of_citizenship ?q } UNION { resource:Kristīne_Buša property:country_of_citizenship ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with around 10 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 10
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?j ) WHERE { ?p property:P530 ?e . ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j = 10 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?j ) WHERE { ?p property:diplomatic_relation ?e . ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j = 10 ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 10
[ANSWERS] have diplomatic relations with around 10 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?j ) WHERE { ?p property:P530 ?e . ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j = 10 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with around 10 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?j ) WHERE { ?p property:diplomatic_relation ?e . ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j = 10 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q874405 Q163740 Q12973014
USER
Which sports teams are a portion of max number of social groups and nonprofit organizations ?
(c(Q12973014),P361,c(Q874405)|c(Q163740))
action argmax
action union
action find_tuple_counts
relation P361
type Q12973014
type Q874405
action find_tuple_counts
relation P361
type Q12973014
type Q163740
[{'concept': 'Q12973014'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?n ) { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:Q874405 ) ( ontology:Q163740 ) } . ?e rdf:type ?y } GROUP BY ?w } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?r ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q874405 ) ( ontology:Q163740 ) } } GROUP BY ?k } }
action argmax
action union
action find_tuple_counts
relation part of
type sports team
type social group
action find_tuple_counts
relation part of
type sports team
type nonprofit organization
[{'concept': 'sports team'}, 'part of', [{'concept': 'social group'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?n ) { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:social_group ) ( ontology:nonprofit_organization ) } . ?e rdf:type ?y } GROUP BY ?w } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?r ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:social_group ) ( ontology:nonprofit_organization ) } } GROUP BY ?k } }
[]
social group nonprofit organization sports team
Q16197479 Q3589926
SYSTEM
High Point Panthers men's basketball, Catalonia national rugby league team
Q16197479 Q3589926
(c(Q12973014),P361,c(Q874405)|c(Q163740))
action argmax
action union
action find_tuple_counts
relation P361
type Q12973014
type Q874405
action find_tuple_counts
relation P361
type Q12973014
type Q163740
Team [ANSWERS] are a portion of max number of social groups and nonprofit organizations
[{'concept': 'Q12973014'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q163740'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?n ) { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:Q874405 ) ( ontology:Q163740 ) } . ?e rdf:type ?y } GROUP BY ?w } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?r ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q874405 ) ( ontology:Q163740 ) } } GROUP BY ?k } }
High Point Panthers men's basketball Catalonia national rugby league team
Team High Point Panthers men's basketball and Catalonia national rugby league team are a portion of max number of social groups and nonprofit organizations
High Point Panthers men's basketball Catalonia national rugby league team
action argmax
action union
action find_tuple_counts
relation part of
type sports team
type social group
action find_tuple_counts
relation part of
type sports team
type nonprofit organization
[{'concept': 'sports team'}, 'part of', [{'concept': 'social group'}, {'concept': 'nonprofit organization'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?n ) { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:social_group ) ( ontology:nonprofit_organization ) } . ?e rdf:type ?y } GROUP BY ?w } } . FILTER ( ?r = ?n ) . { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?r ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:social_group ) ( ontology:nonprofit_organization ) } } GROUP BY ?k } }
[]