Simple Question (Direct)
Simple Question
Q5293423
P54
Q12973014
USER
Which sports teams are Don Robinson a member of ?
(Q5293423,P54,c(Q12973014))
action filter_type
action find
entity Q5293423
relation P54
type Q12973014
['Q5293423', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12973014 . resource:Q5293423 property:P54 ?g }
Don Robinson
action filter_type
action find
entity Don Robinson
relation member of sports team
type sports team
['Don Robinson', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sports_team . resource:Don_Robinson property:member_of_sports_team ?g }
[]
sports team
Q653772 Q650840 Q308966
SYSTEM
Pittsburgh Pirates, Philadelphia Phillies, San Francisco Giants
Q653772 Q650840 Q308966
(Q5293423,P54,c(Q12973014))
action filter_type
action find
entity Q5293423
relation P54
type Q12973014
The [ANSWERS] are Don Robinson a member of
['Q5293423', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12973014 . resource:Q5293423 property:P54 ?g }
Pittsburgh Pirates Philadelphia Phillies San Francisco Giants
The Pittsburgh Pirates, Philadelphia Phillies and San Francisco Giants are Don Robinson a member of
Pittsburgh Pirates Philadelphia Phillies San Francisco Giants
action filter_type
action find
entity Don Robinson
relation member of sports team
type sports team
['Don Robinson', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sports_team . resource:Don_Robinson property:member_of_sports_team ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5293423
P27
Q15617994
USER
Which administrative territory is Don Robinson a civilian of ?
(Q5293423,P27,c(Q15617994))
action filter_type
action find
entity Q5293423
relation P27
type Q15617994
['Q5293423', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q5293423 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Don Robinson
action filter_type
action find
entity Don Robinson
relation country of citizenship
type designation for an administrative territorial entity
['Don Robinson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Don_Robinson property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5293423,P27,c(Q15617994))
action filter_type
action find
entity Q5293423
relation P27
type Q15617994
Which administrative territory is Don Robinson a civilian of
['Q5293423', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q5293423 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United States of America
Which administrative territory is Don Robinson a civilian of
United States of America
action filter_type
action find
entity Don Robinson
relation country of citizenship
type designation for an administrative territorial entity
['Don Robinson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Don_Robinson property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5293423
P641
Q349
USER
Which sport was Don Robinson a part of ?
(Q5293423,P641,c(Q349))
action filter_type
action find
entity Q5293423
relation P641
type Q349
['Q5293423', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q5293423 property:P641 ?r . ?r rdf:type ontology:Q349 }
Don Robinson
action filter_type
action find
entity Don Robinson
relation sport
type sport
['Don Robinson', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Don_Robinson property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q5369
SYSTEM
baseball
Q5369
(Q5293423,P641,c(Q349))
action filter_type
action find
entity Q5293423
relation P641
type Q349
Don Robinson was the [ANSWER]
['Q5293423', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q5293423 property:P641 ?r . ?r rdf:type ontology:Q349 }
baseball
Don Robinson was the baseball
baseball
action filter_type
action find
entity Don Robinson
relation sport
type sport
['Don Robinson', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Don_Robinson property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5293423
P106
Q151885
USER
Which concept is the profession of Don Robinson ?
(Q5293423,P106,c(Q151885))
action filter_type
action find
entity Q5293423
relation P106
type Q151885
['Q5293423', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?h WHERE { resource:Q5293423 property:P106 ?h . ?h rdf:type ontology:Q151885 }
Don Robinson
action filter_type
action find
entity Don Robinson
relation occupation
type concept
['Don Robinson', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?h WHERE { resource:Don_Robinson property:occupation ?h . ?h rdf:type ontology:concept }
[]
concept
Q10871364
SYSTEM
baseball player
Q10871364
(Q5293423,P106,c(Q151885))
action filter_type
action find
entity Q5293423
relation P106
type Q151885
[ANSWER] is the profession of Don Robinson
['Q5293423', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?h WHERE { resource:Q5293423 property:P106 ?h . ?h rdf:type ontology:Q151885 }
baseball player
Baseball player is the profession of Don Robinson
baseball player
action filter_type
action find
entity Don Robinson
relation occupation
type concept
['Don Robinson', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?h WHERE { resource:Don_Robinson property:occupation ?h . ?h rdf:type ontology:concept }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4761394
Q151885
USER
And how about Andy Thompson?
(Q4761394,P106,c(Q151885))
action filter_type
action find
entity Q4761394
relation P106
type Q151885
['Q4761394', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q151885 . resource:Q4761394 property:P106 ?j }
Andy Thompson
action filter_type
action find
entity Andy Thompson
relation occupation
type concept
['Andy Thompson', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:concept . resource:Andy_Thompson property:occupation ?j }
[]
concept
Q10871364
SYSTEM
baseball player
Q10871364
(Q4761394,P106,c(Q151885))
action filter_type
action find
entity Q4761394
relation P106
type Q151885
[ANSWER]
['Q4761394', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q151885 . resource:Q4761394 property:P106 ?j }
baseball player
baseball player
action filter_type
action find
entity Andy Thompson
relation occupation
type concept
['Andy Thompson', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:concept . resource:Andy_Thompson property:occupation ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3091
Q502895 Q3745054 Q502895
USER
How many people use exactly 4 people or horse breeds as steed ?
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action count
action equal
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
value 4
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } . ?k rdf:type ?a } GROUP BY ?j } . FILTER ( ?h = 4 ) }
action count
action equal
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
value 4
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?a ) { ( ontology:common_name ) ( ontology:horse_breed ) } . ?k rdf:type ?a } GROUP BY ?j } . FILTER ( ?h = 4 ) }
[]
common name horse breed common name
SYSTEM
2
Q538006 Q1538882
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action count
action equal
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
value 4
[ANSWER]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } . ?k rdf:type ?a } GROUP BY ?j } . FILTER ( ?h = 4 ) }
Pat Eddery Kevin Staut
2
action count
action equal
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
value 4
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?h ) WHERE { VALUES ( ?a ) { ( ontology:common_name ) ( ontology:horse_breed ) } . ?k rdf:type ?a } GROUP BY ?j } . FILTER ( ?h = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q835456 Q5293423
P19 P159
Q56061
USER
Which administrative territories were Don Robinson born at or are the head office for Sun Life Financial located ?
OR((Q5293423,P19,c(Q56061)), (Q835456,P159,c(Q56061)))
action filter_type
action union
action find
entity Q5293423
relation P19
action find
entity Q835456
relation P159
type Q56061
{'OR': [['Q5293423', 'P19', {'concept': 'Q56061'}], ['Q835456', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q5293423 property:P19 ?o } UNION { resource:Q835456 property:P159 ?o } } . ?o rdf:type ontology:Q56061 }
Sun Life Financial Don Robinson
action filter_type
action union
action find
entity Don Robinson
relation place of birth
action find
entity Sun Life Financial
relation headquarters location
type administrative territorial entity
{'OR': [['Don Robinson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sun Life Financial', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Don_Robinson property:place_of_birth ?o } UNION { resource:Sun_Life_Financial property:headquarters_location ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q639408 Q172 Q725562
SYSTEM
Waterloo, Toronto, Ashland
Q639408 Q172 Q725562
OR((Q5293423,P19,c(Q56061)), (Q835456,P159,c(Q56061)))
action filter_type
action union
action find
entity Q5293423
relation P19
action find
entity Q835456
relation P159
type Q56061
Don Robinson were born at located in [ANSWERS]
{'OR': [['Q5293423', 'P19', {'concept': 'Q56061'}], ['Q835456', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q5293423 property:P19 ?o } UNION { resource:Q835456 property:P159 ?o } } . ?o rdf:type ontology:Q56061 }
Waterloo Toronto Ashland
Don Robinson were born at located in Waterloo, Toronto and Ashland
Waterloo Toronto Ashland
action filter_type
action union
action find
entity Don Robinson
relation place of birth
action find
entity Sun Life Financial
relation headquarters location
type administrative territorial entity
{'OR': [['Don Robinson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sun Life Financial', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Don_Robinson property:place_of_birth ?o } UNION { resource:Sun_Life_Financial property:headquarters_location ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q515
USER
How many administrative territories and cities are twin town of that administrative territory ?
(c(Q56061),P190,Q172) (c(Q515),P190,Q172) (c(Q56061),P190,Q639408) (c(Q515),P190,Q639408) (c(Q56061),P190,Q172) (c(Q515),P190,Q172) (c(Q56061),P190,Q725562) (c(Q515),P190,Q725562)
[{'concept': 'Q56061'}, 'P190', 'Q172'] [{'concept': 'Q515'}, 'P190', 'Q172'] [{'concept': 'Q56061'}, 'P190', 'Q639408'] [{'concept': 'Q515'}, 'P190', 'Q639408'] [{'concept': 'Q56061'}, 'P190', 'Q172'] [{'concept': 'Q515'}, 'P190', 'Q172'] [{'concept': 'Q56061'}, 'P190', 'Q725562'] [{'concept': 'Q515'}, 'P190', 'Q725562']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q26832708 } UNION { ?y property:P190 resource:Q26832708 } UNION { ?z property:P190 resource:Q1569723 } UNION { ?y property:P190 resource:Q1569723 } UNION { ?z property:P190 resource:Q26832708 } UNION { ?y property:P190 resource:Q26832708 } UNION { ?z property:P190 resource:Q450100 } UNION { ?y property:P190 resource:Q450100 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
[{'concept': 'administrative territorial entity'}, 'sister city', 'Toronto'] [{'concept': 'city'}, 'sister city', 'Toronto'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Waterloo'] [{'concept': 'city'}, 'sister city', 'Waterloo'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Toronto'] [{'concept': 'city'}, 'sister city', 'Toronto'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Ashland'] [{'concept': 'city'}, 'sister city', 'Ashland']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Toronto } UNION { ?y property:sister_city resource:Toronto } UNION { ?z property:sister_city resource:Waterloo } UNION { ?y property:sister_city resource:Waterloo } UNION { ?z property:sister_city resource:Toronto } UNION { ?y property:sister_city resource:Toronto } UNION { ?z property:sister_city resource:Ashland } UNION { ?y property:sister_city resource:Ashland } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
administrative territorial entity city
Quantitative|Count|Mult. entity type|Clarification
Q172
SYSTEM
Did you mean Toronto ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q26832708 } UNION { ?y property:P190 resource:Q26832708 } UNION { ?z property:P190 resource:Q1569723 } UNION { ?y property:P190 resource:Q1569723 } UNION { ?z property:P190 resource:Q26832708 } UNION { ?y property:P190 resource:Q26832708 } UNION { ?z property:P190 resource:Q450100 } UNION { ?y property:P190 resource:Q450100 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
Did you mean Toronto ?
Toronto
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Toronto } UNION { ?y property:sister_city resource:Toronto } UNION { ?z property:sister_city resource:Waterloo } UNION { ?y property:sister_city resource:Waterloo } UNION { ?z property:sister_city resource:Toronto } UNION { ?y property:sister_city resource:Toronto } UNION { ?z property:sister_city resource:Ashland } UNION { ?y property:sister_city resource:Ashland } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q56061),P190,Q172) (c(Q515),P190,Q172) (c(Q56061),P190,Q639408) (c(Q515),P190,Q639408) (c(Q56061),P190,Q172) (c(Q515),P190,Q172) (c(Q56061),P190,Q725562) (c(Q515),P190,Q725562)
[{'concept': 'Q56061'}, 'P190', 'Q172'] [{'concept': 'Q515'}, 'P190', 'Q172'] [{'concept': 'Q56061'}, 'P190', 'Q639408'] [{'concept': 'Q515'}, 'P190', 'Q639408'] [{'concept': 'Q56061'}, 'P190', 'Q172'] [{'concept': 'Q515'}, 'P190', 'Q172'] [{'concept': 'Q56061'}, 'P190', 'Q725562'] [{'concept': 'Q515'}, 'P190', 'Q725562']
[{'concept': 'administrative territorial entity'}, 'sister city', 'Toronto'] [{'concept': 'city'}, 'sister city', 'Toronto'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Waterloo'] [{'concept': 'city'}, 'sister city', 'Waterloo'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Toronto'] [{'concept': 'city'}, 'sister city', 'Toronto'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Ashland'] [{'concept': 'city'}, 'sister city', 'Ashland']
[]
SYSTEM
12 administrative territories and 5 cities
Q174 Q216 Q2900 Q9361 Q270 Q134762 Q3766 Q1899 Q1362 Q914 Q490 Q2634 Q1489 Q1794 Q1297 Q406 Q11725
(c(Q56061),P190,Q172) (c(Q515),P190,Q172) (c(Q56061),P190,Q639408) (c(Q515),P190,Q639408) (c(Q56061),P190,Q172) (c(Q515),P190,Q172) (c(Q56061),P190,Q725562) (c(Q515),P190,Q725562)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q172'] [{'concept': 'Q515'}, 'P190', 'Q172'] [{'concept': 'Q56061'}, 'P190', 'Q639408'] [{'concept': 'Q515'}, 'P190', 'Q639408'] [{'concept': 'Q56061'}, 'P190', 'Q172'] [{'concept': 'Q515'}, 'P190', 'Q172'] [{'concept': 'Q56061'}, 'P190', 'Q725562'] [{'concept': 'Q515'}, 'P190', 'Q725562']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q26832708 } UNION { ?y property:P190 resource:Q26832708 } UNION { ?z property:P190 resource:Q1569723 } UNION { ?y property:P190 resource:Q1569723 } UNION { ?z property:P190 resource:Q26832708 } UNION { ?y property:P190 resource:Q26832708 } UNION { ?z property:P190 resource:Q450100 } UNION { ?y property:P190 resource:Q450100 } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7930989 }
São Paulo Vilnius Quito Bishkek Warsaw Eilat Damascus Kyiv Islamabad Volgograd Milan Naples Mexico City Frankfurt Chicago Istanbul Chongqing
12 administrative territories and 5 cities
[{'concept': 'administrative territorial entity'}, 'sister city', 'Toronto'] [{'concept': 'city'}, 'sister city', 'Toronto'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Waterloo'] [{'concept': 'city'}, 'sister city', 'Waterloo'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Toronto'] [{'concept': 'city'}, 'sister city', 'Toronto'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Ashland'] [{'concept': 'city'}, 'sister city', 'Ashland']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Toronto } UNION { ?y property:sister_city resource:Toronto } UNION { ?z property:sister_city resource:Waterloo } UNION { ?y property:sister_city resource:Waterloo } UNION { ?z property:sister_city resource:Toronto } UNION { ?y property:sister_city resource:Toronto } UNION { ?z property:sister_city resource:Ashland } UNION { ?y property:sister_city resource:Ashland } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:city }
[]