Simple Question (Direct)
Simple Question
Q7151183
P54
Q1194951
USER
What is Paul Hasule a member of ?
(Q7151183,P54,c(Q1194951))
action filter_type
action find
entity Q7151183
relation P54
type Q1194951
['Q7151183', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q7151183 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Paul Hasule
action filter_type
action find
entity Paul Hasule
relation member of sports team
type national sports team
['Paul Hasule', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Paul_Hasule property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
national sports team
Q242845
SYSTEM
Uganda national football team
Q242845
(Q7151183,P54,c(Q1194951))
action filter_type
action find
entity Q7151183
relation P54
type Q1194951
Paul Hasule a member of is the [ANSWER]
['Q7151183', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?y WHERE { resource:Q7151183 property:P54 ?y . ?y rdf:type ontology:Q1194951 }
Uganda national football team
Paul Hasule a member of is the Uganda national football team
Uganda national football team
action filter_type
action find
entity Paul Hasule
relation member of sports team
type national sports team
['Paul Hasule', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?y WHERE { resource:Paul_Hasule property:member_of_sports_team ?y . ?y rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q242845
P17
Q15617994
USER
Which administrative territory is that national sports team a part of ?
(Q242845,P17,c(Q15617994))
action filter_type
action find
entity Q242845
relation P17
type Q15617994
['Q242845', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q242845 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Uganda national football team
action filter_type
action find
entity Uganda national football team
relation country
type designation for an administrative territorial entity
['Uganda national football team', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Uganda_national_football_team property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036
SYSTEM
Uganda
Q1036
(Q242845,P17,c(Q15617994))
action filter_type
action find
entity Q242845
relation P17
type Q15617994
[ANSWER] is that national sports team a part of
['Q242845', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q242845 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Uganda
Uganda is that national sports team a part of
Uganda
action filter_type
action find
entity Uganda national football team
relation country
type designation for an administrative territorial entity
['Uganda national football team', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Uganda_national_football_team property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1036 Q408
P530
Q1048835
USER
Does Australia have diplomatic relationships with Uganda ?
(Q1036,P530,Q408)
action is_in
entity Q408
action find
entity Q1036
relation P530
['Q1036', 'P530', 'Q408']
ASK WHERE { resource:Q1036 property:P530 resource:Q408 }
Uganda Australia
action is_in
entity Australia
action find
entity Uganda
relation diplomatic relation
['Uganda', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Uganda property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
YES
(Q1036,P530,Q408)
action is_in
entity Q408
action find
entity Q1036
relation P530
[ANSWER]
['Q1036', 'P530', 'Q408']
ASK WHERE { resource:Q1036 property:P530 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Uganda
relation diplomatic relation
['Uganda', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Uganda property:diplomatic_relation resource:Australia }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7151183 Q1036
P27
Q15617994
USER
Is Uganda the country of citizenship of Paul Hasule ?
(Q7151183,P27,Q1036)
action is_in
entity Q1036
action find
entity Q7151183
relation P27
['Q7151183', 'P27', 'Q1036']
ASK WHERE { resource:Q7151183 property:P27 resource:Q1036 }
Paul Hasule Uganda
action is_in
entity Uganda
action find
entity Paul Hasule
relation country of citizenship
['Paul Hasule', 'country of citizenship', 'Uganda']
ASK WHERE { resource:Paul_Hasule property:country_of_citizenship resource:Uganda }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7151183,P27,Q1036)
action is_in
entity Q1036
action find
entity Q7151183
relation P27
[ANSWER]
['Q7151183', 'P27', 'Q1036']
ASK WHERE { resource:Q7151183 property:P27 resource:Q1036 }
Yes
action is_in
entity Uganda
action find
entity Paul Hasule
relation country of citizenship
['Paul Hasule', 'country of citizenship', 'Uganda']
ASK WHERE { resource:Paul_Hasule property:country_of_citizenship resource:Uganda }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with atleast 34 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 34
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { FILTER ( ?t >= 34 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?j property:P530 ?e . ?j rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?j } }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 34
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { FILTER ( ?t >= 34 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?j property:diplomatic_relation ?e . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q155 Q38
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 34
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { FILTER ( ?t >= 34 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?j property:P530 ?e . ?j rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?j } }
Brazil Italy
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 34
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { FILTER ( ?t >= 34 ) . { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?t ) WHERE { ?j property:diplomatic_relation ?e . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1101867 Q7151183
P27
Q15617994
USER
Which administrative territories are the native countriesof Paul Hasule or Zoltán Juhár ?
OR((Q7151183,P27,c(Q15617994)), (Q1101867,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7151183
relation P27
action find
entity Q1101867
relation P27
type Q15617994
{'OR': [['Q7151183', 'P27', {'concept': 'Q15617994'}], ['Q1101867', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q7151183 property:P27 ?j } UNION { resource:Q1101867 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Zoltán Juhár Paul Hasule
action filter_type
action union
action find
entity Paul Hasule
relation country of citizenship
action find
entity Zoltán Juhár
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Paul Hasule', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zoltán Juhár', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Paul_Hasule property:country_of_citizenship ?j } UNION { resource:Zoltán_Juhár property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1036 Q28
SYSTEM
Uganda, Hungary
Q1036 Q28
OR((Q7151183,P27,c(Q15617994)), (Q1101867,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7151183
relation P27
action find
entity Q1101867
relation P27
type Q15617994
[ANSWERS] are the native countriesof Paul Hasule or Zoltán Juhár
{'OR': [['Q7151183', 'P27', {'concept': 'Q15617994'}], ['Q1101867', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q7151183 property:P27 ?j } UNION { resource:Q1101867 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Uganda Hungary
Uganda and Hungary are the native countriesof Paul Hasule or Zoltán Juhár
Uganda Hungary
action filter_type
action union
action find
entity Paul Hasule
relation country of citizenship
action find
entity Zoltán Juhár
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Paul Hasule', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zoltán Juhár', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Paul_Hasule property:country_of_citizenship ?j } UNION { resource:Zoltán_Juhár property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P17
Q7210356 Q699405
USER
How many political organizations or dwellings are located in that administrative territory ?
(c(Q7210356),P17,Q1036) (c(Q699405),P17,Q1036) (c(Q7210356),P17,Q1036) (c(Q699405),P17,Q1036) (c(Q7210356),P17,Q28) (c(Q699405),P17,Q28)
[{'concept': 'Q7210356'}, 'P17', 'Q1036'] [{'concept': 'Q699405'}, 'P17', 'Q1036'] [{'concept': 'Q7210356'}, 'P17', 'Q1036'] [{'concept': 'Q699405'}, 'P17', 'Q1036'] [{'concept': 'Q7210356'}, 'P17', 'Q28'] [{'concept': 'Q699405'}, 'P17', 'Q28']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q1036 } UNION { ?y property:Q6256 resource:Q1036 } UNION { ?z property:Q6256 resource:Q1036 } UNION { ?y property:Q6256 resource:Q1036 } UNION { ?z property:Q6256 resource:Q5943060 } UNION { ?y property:Q6256 resource:Q5943060 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q699405 }
[{'concept': 'political organization'}, 'country', 'Uganda'] [{'concept': 'dwelling'}, 'country', 'Uganda'] [{'concept': 'political organization'}, 'country', 'Uganda'] [{'concept': 'dwelling'}, 'country', 'Uganda'] [{'concept': 'political organization'}, 'country', 'Hungary'] [{'concept': 'dwelling'}, 'country', 'Hungary']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Uganda } UNION { ?y property:country resource:Uganda } UNION { ?z property:country resource:Uganda } UNION { ?y property:country resource:Uganda } UNION { ?z property:country resource:Hungary } UNION { ?y property:country resource:Hungary } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:dwelling }
[]
political organization dwelling
Quantitative|Count|Mult. entity type|Clarification
Q28
SYSTEM
Did you mean Hungary ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q1036 } UNION { ?y property:Q6256 resource:Q1036 } UNION { ?z property:Q6256 resource:Q1036 } UNION { ?y property:Q6256 resource:Q1036 } UNION { ?z property:Q6256 resource:Q5943060 } UNION { ?y property:Q6256 resource:Q5943060 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q699405 }
Did you mean Hungary ?
Hungary
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Uganda } UNION { ?y property:country resource:Uganda } UNION { ?z property:country resource:Uganda } UNION { ?y property:country resource:Uganda } UNION { ?z property:country resource:Hungary } UNION { ?y property:country resource:Hungary } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:dwelling }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Uganda. Could you tell me the answer for that?
(c(Q7210356),P17,Q1036) (c(Q699405),P17,Q1036) (c(Q7210356),P17,Q1036) (c(Q699405),P17,Q1036) (c(Q7210356),P17,Q28) (c(Q699405),P17,Q28)
Q1036
[{'concept': 'Q7210356'}, 'P17', 'Q1036'] [{'concept': 'Q699405'}, 'P17', 'Q1036'] [{'concept': 'Q7210356'}, 'P17', 'Q1036'] [{'concept': 'Q699405'}, 'P17', 'Q1036'] [{'concept': 'Q7210356'}, 'P17', 'Q28'] [{'concept': 'Q699405'}, 'P17', 'Q28']
[{'concept': 'political organization'}, 'country', 'Uganda'] [{'concept': 'dwelling'}, 'country', 'Uganda'] [{'concept': 'political organization'}, 'country', 'Uganda'] [{'concept': 'dwelling'}, 'country', 'Uganda'] [{'concept': 'political organization'}, 'country', 'Hungary'] [{'concept': 'dwelling'}, 'country', 'Hungary']
[]
SYSTEM
11
Q5473101 Q3366253 Q4157645 Q382674 Q5911457 Q6359126 Q6359121 Q5911157 Q2187095 Q6359104 Q376642
(c(Q7210356),P17,Q1036) (c(Q699405),P17,Q1036) (c(Q7210356),P17,Q1036) (c(Q699405),P17,Q1036) (c(Q7210356),P17,Q28) (c(Q699405),P17,Q28)
[ANSWER]
[{'concept': 'Q7210356'}, 'P17', 'Q1036'] [{'concept': 'Q699405'}, 'P17', 'Q1036'] [{'concept': 'Q7210356'}, 'P17', 'Q1036'] [{'concept': 'Q699405'}, 'P17', 'Q1036'] [{'concept': 'Q7210356'}, 'P17', 'Q28'] [{'concept': 'Q699405'}, 'P17', 'Q28']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q1036 } UNION { ?y property:Q6256 resource:Q1036 } UNION { ?z property:Q6256 resource:Q1036 } UNION { ?y property:Q6256 resource:Q1036 } UNION { ?z property:Q6256 resource:Q5943060 } UNION { ?y property:Q6256 resource:Q5943060 } } . ?z rdf:type ontology:Q7210356 . ?y rdf:type ontology:Q699405 }
Forum for Democratic Change Conservative Party Democratic Party National Resistance Movement Hotel Equatoria Kampala Speke Hotel Kampala Serena Hotel Hotel Africana Uganda People's Congress Kampala Hilton Hotel Justice Forum
11
[{'concept': 'political organization'}, 'country', 'Uganda'] [{'concept': 'dwelling'}, 'country', 'Uganda'] [{'concept': 'political organization'}, 'country', 'Uganda'] [{'concept': 'dwelling'}, 'country', 'Uganda'] [{'concept': 'political organization'}, 'country', 'Hungary'] [{'concept': 'dwelling'}, 'country', 'Hungary']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Uganda } UNION { ?y property:country resource:Uganda } UNION { ?z property:country resource:Uganda } UNION { ?y property:country resource:Uganda } UNION { ?z property:country resource:Hungary } UNION { ?y property:country resource:Hungary } } . ?z rdf:type ontology:political_organization . ?y rdf:type ontology:dwelling }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1036
P85
Q484692
USER
What is the anthem for Uganda ?
(Q1036,P85,c(Q484692))
action filter_type
action find
entity Q1036
relation P85
type Q484692
['Q1036', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?m WHERE { resource:Q1036 property:P85 ?m . ?m rdf:type ontology:Q484692 }
Uganda
action filter_type
action find
entity Uganda
relation anthem
type hymn
['Uganda', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?m WHERE { resource:Uganda property:anthem ?m . ?m rdf:type ontology:hymn }
[]
hymn
Q110193
SYSTEM
Oh Uganda, Land of Beauty
Q110193
(Q1036,P85,c(Q484692))
action filter_type
action find
entity Q1036
relation P85
type Q484692
The anthem for Uganda is Uganda [ANSWER]
['Q1036', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?m WHERE { resource:Q1036 property:P85 ?m . ?m rdf:type ontology:Q484692 }
Oh Uganda, Land of Beauty
The anthem for Uganda is Uganda Oh Uganda, Land of Beauty
Oh Uganda, Land of Beauty
action filter_type
action find
entity Uganda
relation anthem
type hymn
['Uganda', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?m WHERE { resource:Uganda property:anthem ?m . ?m rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q977
Q484692
USER
And also tell me about Djibouti?
(Q977,P85,c(Q484692))
action filter_type
action find
entity Q977
relation P85
type Q484692
['Q977', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?y WHERE { resource:Q977 property:P85 ?y . ?y rdf:type ontology:Q484692 }
Djibouti
action filter_type
action find
entity Djibouti
relation anthem
type hymn
['Djibouti', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?y WHERE { resource:Djibouti property:anthem ?y . ?y rdf:type ontology:hymn }
[]
hymn
Q503135
SYSTEM
Djibouti (anthem)
Q503135
(Q977,P85,c(Q484692))
action filter_type
action find
entity Q977
relation P85
type Q484692
[ANSWER]
['Q977', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?y WHERE { resource:Q977 property:P85 ?y . ?y rdf:type ontology:Q484692 }
Djibouti (anthem)
Djibouti (anthem)
action filter_type
action find
entity Djibouti
relation anthem
type hymn
['Djibouti', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?y WHERE { resource:Djibouti property:anthem ?y . ?y rdf:type ontology:hymn }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28
P138
Q2472587
USER
What is Hungary named after ?
(Q28,P138,c(Q2472587))
action filter_type
action find
entity Q28
relation P138
type Q2472587
['Q28', 'P138', {'concept': 'Q2472587'}]
SELECT DISTINCT ?h WHERE { resource:Q28 property:P138 ?h . ?h rdf:type ontology:Q2472587 }
Hungary
action filter_type
action find
entity Hungary
relation named after
type people
['Hungary', 'named after', {'concept': 'people'}]
SELECT DISTINCT ?h WHERE { resource:Hungary property:named_after ?h . ?h rdf:type ontology:people }
[]
people
Q133032
SYSTEM
Hungarian people
Q133032
(Q28,P138,c(Q2472587))
action filter_type
action find
entity Q28
relation P138
type Q2472587
Hungary is named for [ANSWER]
['Q28', 'P138', {'concept': 'Q2472587'}]
SELECT DISTINCT ?h WHERE { resource:Q28 property:P138 ?h . ?h rdf:type ontology:Q2472587 }
Hungarian people
Hungary is named for Hungarian people
Hungarian people
action filter_type
action find
entity Hungary
relation named after
type people
['Hungary', 'named after', {'concept': 'people'}]
SELECT DISTINCT ?h WHERE { resource:Hungary property:named_after ?h . ?h rdf:type ontology:people }
[]