Simple Question (Direct)
Simple Question
Q7807045
P54
Q1194951
USER
Which national sports team is Timothy Batabaire a member of ?
(Q7807045,P54,c(Q1194951))
action filter_type
action find
entity Q7807045
relation P54
type Q1194951
['Q7807045', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1194951 . resource:Q7807045 property:P54 ?t }
Timothy Batabaire
action filter_type
action find
entity Timothy Batabaire
relation member of sports team
type national sports team
['Timothy Batabaire', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:national_sports_team . resource:Timothy_Batabaire property:member_of_sports_team ?t }
[]
national sports team
Q242845
SYSTEM
Uganda national football team
Q242845
(Q7807045,P54,c(Q1194951))
action filter_type
action find
entity Q7807045
relation P54
type Q1194951
The [ANSWER] is Timothy Batabaire a member of
['Q7807045', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1194951 . resource:Q7807045 property:P54 ?t }
Uganda national football team
The Uganda national football team is Timothy Batabaire a member of
Uganda national football team
action filter_type
action find
entity Timothy Batabaire
relation member of sports team
type national sports team
['Timothy Batabaire', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:national_sports_team . resource:Timothy_Batabaire property:member_of_sports_team ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7807045
P106
Q12737077
USER
Which occupation is the profession of Timothy Batabaire ?
(Q7807045,P106,c(Q12737077))
action filter_type
action find
entity Q7807045
relation P106
type Q12737077
['Q7807045', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q7807045 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Timothy Batabaire
action filter_type
action find
entity Timothy Batabaire
relation occupation
type occupation
['Timothy Batabaire', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Timothy_Batabaire property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7807045,P106,c(Q12737077))
action filter_type
action find
entity Q7807045
relation P106
type Q12737077
Player [ANSWER] is the profession of Timothy Batabaire
['Q7807045', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q7807045 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Timothy Batabaire
association football player
action filter_type
action find
entity Timothy Batabaire
relation occupation
type occupation
['Timothy Batabaire', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Timothy_Batabaire property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q242845
P466
Q483110
USER
Which stadium is inhabited by Uganda national football team ?
(c(Q483110),P466,Q242845)
action filter_type
action find_reverse
entity Q242845
relation P466
type Q483110
[{'concept': 'Q483110'}, 'P466', 'Q242845']
SELECT DISTINCT ?c WHERE { ?c property:P466 resource:Q242845 . ?c rdf:type ontology:Q483110 }
Uganda national football team
action filter_type
action find_reverse
entity Uganda national football team
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Uganda national football team']
SELECT DISTINCT ?c WHERE { ?c property:occupant resource:Uganda_national_football_team . ?c rdf:type ontology:stadium }
[]
stadium
Q4118193
SYSTEM
National Stadium
Q4118193
(c(Q483110),P466,Q242845)
action filter_type
action find_reverse
entity Q242845
relation P466
type Q483110
[ANSWER] is inhabited by Uganda national football team
[{'concept': 'Q483110'}, 'P466', 'Q242845']
SELECT DISTINCT ?c WHERE { ?c property:P466 resource:Q242845 . ?c rdf:type ontology:Q483110 }
National Stadium
National Stadium is inhabited by Uganda national football team
National Stadium
action filter_type
action find_reverse
entity Uganda national football team
relation occupant
type stadium
[{'concept': 'stadium'}, 'occupant', 'Uganda national football team']
SELECT DISTINCT ?c WHERE { ?c property:occupant resource:Uganda_national_football_team . ?c rdf:type ontology:stadium }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q242845
P641
Q349
USER
Which sport did Uganda national football team participate in ?
(Q242845,P641,c(Q349))
action filter_type
action find
entity Q242845
relation P641
type Q349
['Q242845', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q242845 property:P641 ?m . ?m rdf:type ontology:Q349 }
Uganda national football team
action filter_type
action find
entity Uganda national football team
relation sport
type sport
['Uganda national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Uganda_national_football_team property:sport ?m . ?m rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q242845,P641,c(Q349))
action filter_type
action find
entity Q242845
relation P641
type Q349
Uganda national football team participated in [ANSWER]
['Q242845', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q242845 property:P641 ?m . ?m rdf:type ontology:Q349 }
association football
Uganda national football team participated in association football
association football
action filter_type
action find
entity Uganda national football team
relation sport
type sport
['Uganda national football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Uganda_national_football_team property:sport ?m . ?m rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16576318 Q7807045
P27
Q15617994
USER
Which administrative territories are the native countriesof Timothy Batabaire or Mario Cianfanelli ?
OR((Q7807045,P27,c(Q15617994)), (Q16576318,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7807045
relation P27
action find
entity Q16576318
relation P27
type Q15617994
{'OR': [['Q7807045', 'P27', {'concept': 'Q15617994'}], ['Q16576318', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { ?t property:P27 ?d . VALUES ( ?t ) { ( resource:Q7807045 ) ( resource:Q16576318 ) } } }
Mario Cianfanelli Timothy Batabaire
action filter_type
action union
action find
entity Timothy Batabaire
relation country of citizenship
action find
entity Mario Cianfanelli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Timothy Batabaire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mario Cianfanelli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?t property:country_of_citizenship ?d . VALUES ( ?t ) { ( resource:Timothy_Batabaire ) ( resource:Mario_Cianfanelli ) } } }
[]
designation for an administrative territorial entity
Q1036 Q38
SYSTEM
Uganda, Italy
Q1036 Q38
OR((Q7807045,P27,c(Q15617994)), (Q16576318,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7807045
relation P27
action find
entity Q16576318
relation P27
type Q15617994
[ANSWERS] are the native countriesof Timothy Batabaire or Mario Cianfanelli
{'OR': [['Q7807045', 'P27', {'concept': 'Q15617994'}], ['Q16576318', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { ?t property:P27 ?d . VALUES ( ?t ) { ( resource:Q7807045 ) ( resource:Q16576318 ) } } }
Uganda Italy
Uganda and Italy are the native countriesof Timothy Batabaire or Mario Cianfanelli
Uganda Italy
action filter_type
action union
action find
entity Timothy Batabaire
relation country of citizenship
action find
entity Mario Cianfanelli
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Timothy Batabaire', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mario Cianfanelli', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?t property:country_of_citizenship ?d . VALUES ( ?t ) { ( resource:Timothy_Batabaire ) ( resource:Mario_Cianfanelli ) } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have ambassadorial relations with those administrative territories ?
(Q183,P530,Q1036) (Q183,P530,Q38)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q1036'] ['Q183', 'P530', 'Q38']
ASK WHERE { VALUES ( ?n ) { ( resource:Q1036 ) ( resource:Q38 ) } . resource:Q183 property:P530 ?n }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Uganda'] ['Germany', 'diplomatic relation', 'Italy']
ASK WHERE { VALUES ( ?n ) { ( resource:Uganda ) ( resource:Italy ) } . resource:Germany property:diplomatic_relation ?n }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q1036) (Q183,P530,Q38)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q1036'] ['Q183', 'P530', 'Q38']
ASK WHERE { VALUES ( ?n ) { ( resource:Q1036 ) ( resource:Q38 ) } . resource:Q183 property:P530 ?n }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Uganda'] ['Germany', 'diplomatic relation', 'Italy']
ASK WHERE { VALUES ( ?n ) { ( resource:Uganda ) ( resource:Italy ) } . resource:Germany property:diplomatic_relation ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8418
P641
Q349 Q13406554 Q502895
USER
How many sports did more number of sport competitions or people participate in than handball ?
(c(Q13406554)|c(Q502895),P641,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q13406554
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q8418
relation P641
type Q13406554
type Q502895
[[{'concept': 'Q13406554'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?h WHERE { VALUES ( ?e ) { ( ontology:Q13406554 ) ( ontology:Q502895 ) } . ?f rdf:type ?e } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { { ?n rdf:type ontology:Q13406554 } UNION { ?n rdf:type ontology:Q502895 } } . ?n property:P641 resource:Q8418 } } . FILTER ( ?w > ?o ) }
handball
action count
action greater
action union
action find_reverse_tuple_counts
relation sport
type sport
type sport competition
action find_reverse_tuple_counts
relation sport
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity handball
relation sport
type sport competition
type common name
[[{'concept': 'sport competition'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?h WHERE { VALUES ( ?e ) { ( ontology:sport_competition ) ( ontology:common_name ) } . ?f rdf:type ?e } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { { ?n rdf:type ontology:sport_competition } UNION { ?n rdf:type ontology:common_name } } . ?n property:sport resource:handball } } . FILTER ( ?w > ?o ) }
[]
sport sport competition common name
SYSTEM
9
Q847 Q41323 Q7291 Q5372 Q5369 Q41466 Q2215841 Q1734 Q2736
(c(Q13406554)|c(Q502895),P641,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P641
type Q349
type Q13406554
action find_reverse_tuple_counts
relation P641
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q8418
relation P641
type Q13406554
type Q502895
[ANSWER]
[[{'concept': 'Q13406554'}, {'concept': 'Q502895'}], 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?h WHERE { VALUES ( ?e ) { ( ontology:Q13406554 ) ( ontology:Q502895 ) } . ?f rdf:type ?e } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { { ?n rdf:type ontology:Q13406554 } UNION { ?n rdf:type ontology:Q502895 } } . ?n property:P641 resource:Q8418 } } . FILTER ( ?w > ?o ) }
tennis American football badminton basketball baseball ice hockey cycle sport volleyball association football
9
action count
action greater
action union
action find_reverse_tuple_counts
relation sport
type sport
type sport competition
action find_reverse_tuple_counts
relation sport
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity handball
relation sport
type sport competition
type common name
[[{'concept': 'sport competition'}, {'concept': 'common name'}], 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?h WHERE { VALUES ( ?e ) { ( ontology:sport_competition ) ( ontology:common_name ) } . ?f rdf:type ?e } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { { { ?n rdf:type ontology:sport_competition } UNION { ?n rdf:type ontology:common_name } } . ?n property:sport resource:handball } } . FILTER ( ?w > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7807045
P21
Q290
USER
Which sex does Timothy Batabaire belong to ?
(Q7807045,P21,c(Q290))
action filter_type
action find
entity Q7807045
relation P21
type Q290
['Q7807045', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q7807045 property:P21 ?n }
Timothy Batabaire
action filter_type
action find
entity Timothy Batabaire
relation gender
type sex
['Timothy Batabaire', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Timothy_Batabaire property:gender ?n }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7807045,P21,c(Q290))
action filter_type
action find
entity Q7807045
relation P21
type Q290
Timothy Batabaire belongs to [ANSWER]
['Q7807045', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q7807045 property:P21 ?n }
male
Timothy Batabaire belongs to male
male
action filter_type
action find
entity Timothy Batabaire
relation gender
type sex
['Timothy Batabaire', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Timothy_Batabaire property:gender ?n }
[]