Simple Question (Direct)
Simple Question
Q4956960
P641
Q349
USER
What was the sport that Brandon Massie was a part of ?
(Q4956960,P641,c(Q349))
action filter_type
action find
entity Q4956960
relation P641
type Q349
['Q4956960', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q4956960 property:P641 ?u . ?u rdf:type ontology:Q349 }
Brandon Massie
action filter_type
action find
entity Brandon Massie
relation sport
type sport
['Brandon Massie', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Brandon_Massie property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4956960,P641,c(Q349))
action filter_type
action find
entity Q4956960
relation P641
type Q349
The sport that Brandon Massie was a part of was the [ANSWER]
['Q4956960', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q4956960 property:P641 ?u . ?u rdf:type ontology:Q349 }
association football
The sport that Brandon Massie was a part of was the association football
association football
action filter_type
action find
entity Brandon Massie
relation sport
type sport
['Brandon Massie', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Brandon_Massie property:sport ?u . ?u rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4956960
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q4956960
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q4956960 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Brandon Massie
action filter_type
action find
entity Brandon Massie
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Brandon_Massie property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q4956960
relation P106
type Q12737077
Player [ANSWER] has that person as his/her 's career
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q4956960 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
association football player
Player association football player has that person as his/her 's career
association football player
action filter_type
action find
entity Brandon Massie
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Brandon_Massie property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3033823 Q4956960
P27 P495
Q15617994
USER
Which administrative territories do Brandon Massie belong to and are the origin of Lor Girl ?
AND((Q4956960,P27,c(Q15617994)), (Q3033823,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q4956960
relation P27
action find
entity Q3033823
relation P495
type Q15617994
{'AND': [['Q4956960', 'P27', {'concept': 'Q15617994'}], ['Q3033823', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { resource:Q4956960 property:P27 ?w . resource:Q3033823 property:P495 ?w . ?w rdf:type ontology:Q15617994 }
Lor Girl Brandon Massie
action filter_type
action intersection
action find
entity Brandon Massie
relation country of citizenship
action find
entity Lor Girl
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Brandon Massie', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lor Girl', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Brandon_Massie property:country_of_citizenship ?w . resource:Lor_Girl property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q4956960,P27,c(Q15617994)), (Q3033823,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q4956960
relation P27
action find
entity Q3033823
relation P495
type Q15617994
Brandon Massie belong to [ANSWER] and are the origin of Lor Girl
{'AND': [['Q4956960', 'P27', {'concept': 'Q15617994'}], ['Q3033823', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { resource:Q4956960 property:P27 ?w . resource:Q3033823 property:P495 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
Brandon Massie belong to United States of America and are the origin of Lor Girl
United States of America
action filter_type
action intersection
action find
entity Brandon Massie
relation country of citizenship
action find
entity Lor Girl
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Brandon Massie', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lor Girl', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { resource:Brandon_Massie property:country_of_citizenship ?w . resource:Lor_Girl property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q18022228
P27
Q502895
USER
Is Seth Casteel a citizen of that administrative territory ?
(Q18022228,P27,Q30)
action is_in
entity Q30
action find
entity Q18022228
relation P27
['Q18022228', 'P27', 'Q30']
ASK WHERE { resource:Q18022228 property:P27 resource:Q30 }
United States of America Seth Casteel
action is_in
entity United States of America
action find
entity Seth Casteel
relation country of citizenship
['Seth Casteel', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Seth_Casteel property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q18022228,P27,Q30)
action is_in
entity Q30
action find
entity Q18022228
relation P27
[ANSWER]
['Q18022228', 'P27', 'Q30']
ASK WHERE { resource:Q18022228 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Seth Casteel
relation country of citizenship
['Seth Casteel', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Seth_Casteel property:country_of_citizenship resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4956960 Q1649483
P27
Q15617994
USER
Is Bir Ghbalou the country of citizenship of Brandon Massie ?
(Q4956960,P27,Q1649483)
action is_in
entity Q1649483
action find
entity Q4956960
relation P27
['Q4956960', 'P27', 'Q1649483']
ASK WHERE { resource:Q4956960 property:P27 resource:Q1649483 }
Brandon Massie Bir Ghbalou
action is_in
entity Bir Ghbalou
action find
entity Brandon Massie
relation country of citizenship
['Brandon Massie', 'country of citizenship', 'Bir Ghbalou']
ASK WHERE { resource:Brandon_Massie property:country_of_citizenship resource:Bir_Ghbalou }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4956960,P27,Q1649483)
action is_in
entity Q1649483
action find
entity Q4956960
relation P27
[ANSWER]
['Q4956960', 'P27', 'Q1649483']
ASK WHERE { resource:Q4956960 property:P27 resource:Q1649483 }
No
action is_in
entity Bir Ghbalou
action find
entity Brandon Massie
relation country of citizenship
['Brandon Massie', 'country of citizenship', 'Bir Ghbalou']
ASK WHERE { resource:Brandon_Massie property:country_of_citizenship resource:Bir_Ghbalou }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q4956960 Q4931648
P54
Q12973014
USER
How many sports teams have Brandon Massie or Bob Allen as their member ?
(Q4956960,P54,c(Q12973014)) (Q4931648,P54,c(Q12973014))
action count
action union
action filter_type
action find
entity Q4956960
relation P54
type Q12973014
action filter_type
action find
entity Q4931648
relation P54
type Q12973014
['Q4956960', 'P54', {'concept': 'Q12973014'}] ['Q4931648', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Q4956960 property:P54 ?c . ?c rdf:type ontology:Q12973014 } UNION { resource:Q4931648 property:P54 ?c . ?c rdf:type ontology:Q12973014 } }
Brandon Massie Bob Allen
action count
action union
action filter_type
action find
entity Brandon Massie
relation member of sports team
type sports team
action filter_type
action find
entity Bob Allen
relation member of sports team
type sports team
['Brandon Massie', 'member of sports team', {'concept': 'sports team'}] ['Bob Allen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Brandon_Massie property:member_of_sports_team ?c . ?c rdf:type ontology:sports_team } UNION { resource:Bob_Allen property:member_of_sports_team ?c . ?c rdf:type ontology:sports_team } }
[]
sports team
SYSTEM
3
Q650840 Q6868005 Q826751
(Q4956960,P54,c(Q12973014)) (Q4931648,P54,c(Q12973014))
action count
action union
action filter_type
action find
entity Q4956960
relation P54
type Q12973014
action filter_type
action find
entity Q4931648
relation P54
type Q12973014
[ANSWER]
['Q4956960', 'P54', {'concept': 'Q12973014'}] ['Q4931648', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Q4956960 property:P54 ?c . ?c rdf:type ontology:Q12973014 } UNION { resource:Q4931648 property:P54 ?c . ?c rdf:type ontology:Q12973014 } }
Philadelphia Phillies Minneapolis Millers Cincinnati Reds
3
action count
action union
action filter_type
action find
entity Brandon Massie
relation member of sports team
type sports team
action filter_type
action find
entity Bob Allen
relation member of sports team
type sports team
['Brandon Massie', 'member of sports team', {'concept': 'sports team'}] ['Bob Allen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Brandon_Massie property:member_of_sports_team ?c . ?c rdf:type ontology:sports_team } UNION { resource:Bob_Allen property:member_of_sports_team ?c . ?c rdf:type ontology:sports_team } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q937857
P106
Q874405 Q188451
USER
How many social groups or music genres have career as association football player ?
(c(Q874405),P106,Q937857) (c(Q188451),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q874405
action filter_type
action find_reverse
entity Q937857
relation P106
type Q188451
[{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q188451'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { VALUES ( ?j ) { ( ontology:Q874405 ) ( ontology:Q188451 ) } . ?r rdf:type ?j }
association football player
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type social group
action filter_type
action find_reverse
entity association football player
relation occupation
type music genre
[{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'music genre'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { VALUES ( ?j ) { ( ontology:social_group ) ( ontology:music_genre ) } . ?r rdf:type ?j }
[]
social group music genre
SYSTEM
2
Q3752378 Q4933787
(c(Q874405),P106,Q937857) (c(Q188451),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q874405
action filter_type
action find_reverse
entity Q937857
relation P106
type Q188451
[ANSWER]
[{'concept': 'Q874405'}, 'P106', 'Q937857'] [{'concept': 'Q188451'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { VALUES ( ?j ) { ( ontology:Q874405 ) ( ontology:Q188451 ) } . ?r rdf:type ?j }
Fratelli Céspedes Bob Ridley
2
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type social group
action filter_type
action find_reverse
entity association football player
relation occupation
type music genre
[{'concept': 'social group'}, 'occupation', 'association football player'] [{'concept': 'music genre'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { VALUES ( ?j ) { ( ontology:social_group ) ( ontology:music_genre ) } . ?r rdf:type ?j }
[]