Simple Question (Direct)
Simple Question
Q3903952
P21
Q290
USER
Which sex does Pietro Grosso have ?
(Q3903952,P21,c(Q290))
action filter_type
action find
entity Q3903952
relation P21
type Q290
['Q3903952', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3903952 property:P21 ?e . ?e rdf:type ontology:Q290 }
Pietro Grosso
action filter_type
action find
entity Pietro Grosso
relation gender
type sex
['Pietro Grosso', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Pietro_Grosso property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3903952,P21,c(Q290))
action filter_type
action find
entity Q3903952
relation P21
type Q290
Pietro Grosso has a [ANSWER]
['Q3903952', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3903952 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Pietro Grosso has a male
male
action filter_type
action find
entity Pietro Grosso
relation gender
type sex
['Pietro Grosso', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Pietro_Grosso property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3903952
P641
Q349
USER
What did Pietro Grosso participate in ?
(Q3903952,P641,c(Q349))
action filter_type
action find
entity Q3903952
relation P641
type Q349
['Q3903952', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q3903952 property:P641 ?u . ?u rdf:type ontology:Q349 }
Pietro Grosso
action filter_type
action find
entity Pietro Grosso
relation sport
type sport
['Pietro Grosso', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Pietro_Grosso property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3903952,P641,c(Q349))
action filter_type
action find
entity Q3903952
relation P641
type Q349
Pietro Grosso participated in [ANSWER]
['Q3903952', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q3903952 property:P641 ?u . ?u rdf:type ontology:Q349 }
association football
Pietro Grosso participated in association football
association football
action filter_type
action find
entity Pietro Grosso
relation sport
type sport
['Pietro Grosso', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Pietro_Grosso property:sport ?u . ?u rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3903952
P106
Q12737077
USER
What does Pietro Grosso do for a living ?
(Q3903952,P106,c(Q12737077))
action filter_type
action find
entity Q3903952
relation P106
type Q12737077
['Q3903952', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3903952 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Pietro Grosso
action filter_type
action find
entity Pietro Grosso
relation occupation
type occupation
['Pietro Grosso', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Pietro_Grosso property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3903952,P106,c(Q12737077))
action filter_type
action find
entity Q3903952
relation P106
type Q12737077
[ANSWER] Pietro Grosso does for a living
['Q3903952', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3903952 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football player
Association football player Pietro Grosso does for a living
association football player
action filter_type
action find
entity Pietro Grosso
relation occupation
type occupation
['Pietro Grosso', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Pietro_Grosso property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14184711
Q12737077
USER
And how about Line Jensen?
(Q14184711,P106,c(Q12737077))
action filter_type
action find
entity Q14184711
relation P106
type Q12737077
['Q14184711', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q14184711 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Line Jensen
action filter_type
action find
entity Line Jensen
relation occupation
type occupation
['Line Jensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Line_Jensen property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q14184711,P106,c(Q12737077))
action filter_type
action find
entity Q14184711
relation P106
type Q12737077
[ANSWERS]
['Q14184711', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q14184711 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
association football manager association football player
association football manager association football player
action filter_type
action find
entity Line Jensen
relation occupation
type occupation
['Line Jensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Line_Jensen property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q628099 Q937857
P425
Q349
USER
Who are associated with the field of occupation those ones ?
(Q628099,P425,c(Q349)) (Q937857,P425,c(Q349))
action filter_type
action find
entity prev_answer
relation P425
type Q349
['Q628099', 'P425', {'concept': 'Q349'}] ['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?z property:P425 ?g . VALUES ( ?z ) { ( resource:Q628099 ) ( resource:Q937857 ) } . ?g rdf:type ontology:Q349 }
association football manager association football player
action filter_type
action find
entity prev_answer
relation field of this occupation
type sport
['association football manager', 'field of this occupation', {'concept': 'sport'}] ['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?z property:field_of_this_occupation ?g . VALUES ( ?z ) { ( resource:association_football_manager ) ( resource:association_football_player ) } . ?g rdf:type ontology:sport }
[]
sport
Q2736 Q2736
SYSTEM
association football
Q2736 Q2736
(Q628099,P425,c(Q349)) (Q937857,P425,c(Q349))
action filter_type
action find
entity prev_answer
relation P425
type Q349
And [ANSWER] and [ANSWER] are associated with the field of occupation those ones
['Q628099', 'P425', {'concept': 'Q349'}] ['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?z property:P425 ?g . VALUES ( ?z ) { ( resource:Q628099 ) ( resource:Q937857 ) } . ?g rdf:type ontology:Q349 }
association football association football
And association football and association football are associated with the field of occupation those ones
association football association football
action filter_type
action find
entity prev_answer
relation field of this occupation
type sport
['association football manager', 'field of this occupation', {'concept': 'sport'}] ['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?z property:field_of_this_occupation ?g . VALUES ( ?z ) { ( resource:association_football_manager ) ( resource:association_football_player ) } . ?g rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3903952
P54
Q1194951
USER
What is Pietro Grosso a member of ?
(Q3903952,P54,c(Q1194951))
action filter_type
action find
entity Q3903952
relation P54
type Q1194951
['Q3903952', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?l WHERE { resource:Q3903952 property:P54 ?l . ?l rdf:type ontology:Q1194951 }
Pietro Grosso
action filter_type
action find
entity Pietro Grosso
relation member of sports team
type national sports team
['Pietro Grosso', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?l WHERE { resource:Pietro_Grosso property:member_of_sports_team ?l . ?l rdf:type ontology:national_sports_team }
[]
national sports team
Q676899
SYSTEM
Italy national football team
Q676899
(Q3903952,P54,c(Q1194951))
action filter_type
action find
entity Q3903952
relation P54
type Q1194951
Pietro Grosso a member of is [ANSWER]
['Q3903952', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?l WHERE { resource:Q3903952 property:P54 ?l . ?l rdf:type ontology:Q1194951 }
Italy national football team
Pietro Grosso a member of is Italy national football team
Italy national football team
action filter_type
action find
entity Pietro Grosso
relation member of sports team
type national sports team
['Pietro Grosso', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?l WHERE { resource:Pietro_Grosso property:member_of_sports_team ?l . ?l rdf:type ontology:national_sports_team }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q676899 Q21466126
P54
Q502895
USER
Is Harold Dearden a member of that national sports team ?
(Q21466126,P54,Q676899)
action is_in
entity Q21466126
action find
entity Q676899
relation P54
['Q21466126', 'P54', 'Q676899']
ASK WHERE { resource:Q676899 property:P54 resource:Q21466126 }
Italy national football team Harold Dearden
action is_in
entity Harold Dearden
action find
entity Italy national football team
relation member of sports team
['Harold Dearden', 'member of sports team', 'Italy national football team']
ASK WHERE { resource:Italy_national_football_team property:member_of_sports_team resource:Harold_Dearden }
[]
common name
SYSTEM
NO
(Q21466126,P54,Q676899)
action is_in
entity Q21466126
action find
entity Q676899
relation P54
[ANSWER]
['Q21466126', 'P54', 'Q676899']
ASK WHERE { resource:Q676899 property:P54 resource:Q21466126 }
No
action is_in
entity Harold Dearden
action find
entity Italy national football team
relation member of sports team
['Harold Dearden', 'member of sports team', 'Italy national football team']
ASK WHERE { resource:Italy_national_football_team property:member_of_sports_team resource:Harold_Dearden }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1923
Q1194951 Q15275719 Q13406554
USER
How many national sports teams participated in approximately 22 recurring events or sport competitions ?
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
value 22
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?x WHERE { VALUES ( ?b ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } . ?w rdf:type ?b } GROUP BY ?x } . FILTER ( ?e = 22 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
value 22
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?x WHERE { VALUES ( ?b ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } . ?w rdf:type ?b } GROUP BY ?x } . FILTER ( ?e = 22 ) }
[]
national sports team recurring event sport competition
SYSTEM
8
Q43310 Q166776 Q42267 Q83459 Q676899 Q47774 Q79800 Q47762
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
value 22
[ANSWER]
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?x WHERE { VALUES ( ?b ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } . ?w rdf:type ?b } GROUP BY ?x } . FILTER ( ?e = 22 ) }
Germany national football team Belgium national football team Spain national football team Brazil national football team Italy national football team France national football team Argentina national football team England national football team
8
action count
action approx
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
value 22
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?x WHERE { VALUES ( ?b ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } . ?w rdf:type ?b } GROUP BY ?x } . FILTER ( ?e = 22 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q33999 Q628099
P106
Q502895
USER
Which people have association football manager and actor as his/her means of employment ?
AND((c(Q502895),P106,Q628099), (c(Q502895),P106,Q33999))
action filter_type
action intersection
action find_reverse
entity Q628099
relation P106
action find_reverse
entity Q33999
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q628099'], [{'concept': 'Q502895'}, 'P106', 'Q33999']]}
SELECT DISTINCT ?y WHERE { ?y property:P106 resource:Q628099 . ?y property:P106 resource:Q33999 . ?y rdf:type ontology:Q502895 }
actor association football manager
action filter_type
action intersection
action find_reverse
entity association football manager
relation occupation
action find_reverse
entity actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football manager'], [{'concept': 'common name'}, 'occupation', 'actor']]}
SELECT DISTINCT ?y WHERE { ?y property:occupation resource:association_football_manager . ?y property:occupation resource:actor . ?y rdf:type ontology:common_name }
[]
common name
Q1333373 Q2714577 Q264715 Q121685 Q21066614 Q302314
SYSTEM
Florencio Amarilla, Luigi Scarabello, Co Prins, Hannes Schmidhauser, Steve Nijjar, Pietro Pastore
Q1333373 Q2714577 Q264715 Q121685 Q21066614 Q302314
AND((c(Q502895),P106,Q628099), (c(Q502895),P106,Q33999))
action filter_type
action intersection
action find_reverse
entity Q628099
relation P106
action find_reverse
entity Q33999
relation P106
type Q502895
[ANSWERS] have association football manager and actor as his/her means of employment
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q628099'], [{'concept': 'Q502895'}, 'P106', 'Q33999']]}
SELECT DISTINCT ?y WHERE { ?y property:P106 resource:Q628099 . ?y property:P106 resource:Q33999 . ?y rdf:type ontology:Q502895 }
Florencio Amarilla Luigi Scarabello Co Prins Hannes Schmidhauser Steve Nijjar Pietro Pastore
Florencio Amarilla, Luigi Scarabello, Co Prins, Hannes Schmidhauser, Steve Nijjar and Pietro Pastore have association football manager and actor as his/her means of employment
Florencio Amarilla Luigi Scarabello Co Prins Hannes Schmidhauser Steve Nijjar Pietro Pastore
action filter_type
action intersection
action find_reverse
entity association football manager
relation occupation
action find_reverse
entity actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football manager'], [{'concept': 'common name'}, 'occupation', 'actor']]}
SELECT DISTINCT ?y WHERE { ?y property:occupation resource:association_football_manager . ?y property:occupation resource:actor . ?y rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2714577
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q2714577,P27,c(Q15617994))
action filter_type
action find
entity Q2714577
relation P27
type Q15617994
['Q2714577', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q2714577 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Luigi Scarabello
action filter_type
action find
entity Luigi Scarabello
relation country of citizenship
type designation for an administrative territorial entity
['Luigi Scarabello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Luigi_Scarabello property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q264715
SYSTEM
Did you mean Co Prins ?
Q1333373 Q2714577 Q264715 Q121685 Q21066614 Q302314
(Q1333373,P27,c(Q15617994)) (Q2714577,P27,c(Q15617994)) (Q264715,P27,c(Q15617994)) (Q121685,P27,c(Q15617994)) (Q21066614,P27,c(Q15617994)) (Q302314,P27,c(Q15617994))
[ANSWER]
['Q1333373', 'P27', {'concept': 'Q15617994'}] ['Q2714577', 'P27', {'concept': 'Q15617994'}] ['Q264715', 'P27', {'concept': 'Q15617994'}] ['Q121685', 'P27', {'concept': 'Q15617994'}] ['Q21066614', 'P27', {'concept': 'Q15617994'}] ['Q302314', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q2714577 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Florencio Amarilla Luigi Scarabello Co Prins Hannes Schmidhauser Steve Nijjar Pietro Pastore
Did you mean Co Prins ?
Co Prins
['Florencio Amarilla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Luigi Scarabello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Co Prins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Hannes Schmidhauser', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Steve Nijjar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Pietro Pastore', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Luigi_Scarabello property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Luigi Scarabello. Could you tell me the answer for that?
(Q2714577,P27,c(Q15617994))
Q2714577
['Q2714577', 'P27', {'concept': 'Q15617994'}]
['Luigi Scarabello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q2714577,P27,c(Q15617994))
action filter_type
action find
entity Q2714577
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q2714577', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q2714577 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Italy
That person belongs to the Italy
Italy
action filter_type
action find
entity Luigi Scarabello
relation country of citizenship
type designation for an administrative territorial entity
['Luigi Scarabello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Luigi_Scarabello property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]