Simple Question (Direct)
Simple Question
Q10409401
P54
Q1194951
USER
What is Maher Al-Sayed a member of ?
(Q10409401,P54,c(Q1194951))
action filter_type
action find
entity Q10409401
relation P54
type Q1194951
['Q10409401', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q10409401 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Maher Al-Sayed
action filter_type
action find
entity Maher Al-Sayed
relation member of sports team
type national sports team
['Maher Al-Sayed', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Maher_Al-Sayed property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
national sports team
Q272097
SYSTEM
Syria national football team
Q272097
(Q10409401,P54,c(Q1194951))
action filter_type
action find
entity Q10409401
relation P54
type Q1194951
Maher Al-Sayed a member of is h [ANSWER]
['Q10409401', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { resource:Q10409401 property:P54 ?v . ?v rdf:type ontology:Q1194951 }
Syria national football team
Maher Al-Sayed a member of is h Syria national football team
Syria national football team
action filter_type
action find
entity Maher Al-Sayed
relation member of sports team
type national sports team
['Maher Al-Sayed', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { resource:Maher_Al-Sayed property:member_of_sports_team ?v . ?v rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10409401
P641
Q349
USER
What did Maher Al-Sayed participate in ?
(Q10409401,P641,c(Q349))
action filter_type
action find
entity Q10409401
relation P641
type Q349
['Q10409401', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q10409401 property:P641 ?v . ?v rdf:type ontology:Q349 }
Maher Al-Sayed
action filter_type
action find
entity Maher Al-Sayed
relation sport
type sport
['Maher Al-Sayed', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Maher_Al-Sayed property:sport ?v . ?v rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q10409401,P641,c(Q349))
action filter_type
action find
entity Q10409401
relation P641
type Q349
Maher Al-Sayed participated in [ANSWER]
['Q10409401', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q10409401 property:P641 ?v . ?v rdf:type ontology:Q349 }
association football
Maher Al-Sayed participated in association football
association football
action filter_type
action find
entity Maher Al-Sayed
relation sport
type sport
['Maher Al-Sayed', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Maher_Al-Sayed property:sport ?v . ?v rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q16586604
P641
Q502895
USER
Does Kevin Méndez play that sport ?
(Q16586604,P641,Q2736)
action is_in
entity Q2736
action find
entity Q16586604
relation P641
['Q16586604', 'P641', 'Q2736']
ASK WHERE { resource:Q16586604 property:P641 resource:Q2736 }
association football Kevin Méndez
action is_in
entity association football
action find
entity Kevin Méndez
relation sport
['Kevin Méndez', 'sport', 'association football']
ASK WHERE { resource:Kevin_Méndez property:sport resource:association_football }
[]
common name
SYSTEM
YES
(Q16586604,P641,Q2736)
action is_in
entity Q2736
action find
entity Q16586604
relation P641
[ANSWER]
['Q16586604', 'P641', 'Q2736']
ASK WHERE { resource:Q16586604 property:P641 resource:Q2736 }
Yes
action is_in
entity association football
action find
entity Kevin Méndez
relation sport
['Kevin Méndez', 'sport', 'association football']
ASK WHERE { resource:Kevin_Méndez property:sport resource:association_football }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q272097
P17
Q15617994
USER
Which administrative territory does Syria national football team belong to ?
(Q272097,P17,c(Q15617994))
action filter_type
action find
entity Q272097
relation P17
type Q15617994
['Q272097', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q272097 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Syria national football team
action filter_type
action find
entity Syria national football team
relation country
type designation for an administrative territorial entity
['Syria national football team', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Syria_national_football_team property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q858
SYSTEM
Syria
Q858
(Q272097,P17,c(Q15617994))
action filter_type
action find
entity Q272097
relation P17
type Q15617994
[ANSWER] national football team belongs to the [ANSWER]
['Q272097', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q272097 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Syria
Syria national football team belongs to the Syria
Syria
action filter_type
action find
entity Syria national football team
relation country
type designation for an administrative territorial entity
['Syria national football team', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Syria_national_football_team property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19266618
Q15617994
USER
And how about Johanna Hoeve?
(Q19266618,P17,c(Q15617994))
action filter_type
action find
entity Q19266618
relation P17
type Q15617994
['Q19266618', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q19266618 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Johanna Hoeve
action filter_type
action find
entity Johanna Hoeve
relation country
type designation for an administrative territorial entity
['Johanna Hoeve', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Johanna_Hoeve property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q19266618,P17,c(Q15617994))
action filter_type
action find
entity Q19266618
relation P17
type Q15617994
[ANSWER]
['Q19266618', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q19266618 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Netherlands
Netherlands
action filter_type
action find
entity Johanna Hoeve
relation country
type designation for an administrative territorial entity
['Johanna Hoeve', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Johanna_Hoeve property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q55 Q1751454 Q183
P530
Q1048835
USER
Is that administrative territory known to have diplomatic connections with Rafal and Germany ?
(Q55,P530,Q1751454) (Q55,P530,Q183)
action is_in
entity Q55
action intersection
action find_reverse
entity Q1751454
relation P530
action find_reverse
entity Q183
relation P530
['Q55', 'P530', 'Q1751454'] ['Q55', 'P530', 'Q183']
ASK WHERE { resource:Q55 property:P530 resource:Q1751454 . resource:Q55 property:P530 resource:Q183 }
Netherlands Rafal Germany
action is_in
entity Netherlands
action intersection
action find_reverse
entity Rafal
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Netherlands', 'diplomatic relation', 'Rafal'] ['Netherlands', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Netherlands property:diplomatic_relation resource:Rafal . resource:Netherlands property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q55,P530,Q1751454) (Q55,P530,Q183)
action is_in
entity Q55
action intersection
action find_reverse
entity Q1751454
relation P530
action find_reverse
entity Q183
relation P530
[ANSWER]
['Q55', 'P530', 'Q1751454'] ['Q55', 'P530', 'Q183']
ASK WHERE { resource:Q55 property:P530 resource:Q1751454 . resource:Q55 property:P530 resource:Q183 }
NO and YES respectively
action is_in
entity Netherlands
action intersection
action find_reverse
entity Rafal
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Netherlands', 'diplomatic relation', 'Rafal'] ['Netherlands', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Netherlands property:diplomatic_relation resource:Rafal . resource:Netherlands property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have diplomatic relationships with max number of political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } } . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?x } . FILTER ( ?d = ?c ) }
action argmax
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } } . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?x } . FILTER ( ?d = ?c ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic relationships with max number of political territories and administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } } . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } UNION { ?v property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?x } . FILTER ( ?d = ?c ) }
Italy
Italy have diplomatic relationships with max number of political territories and administrative territories
Italy
action argmax
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?c ) { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } } . { SELECT DISTINCT ?x ( COUNT ( ?v ) AS ?d ) WHERE { { ?v property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?x } . FILTER ( ?d = ?c ) }
[]