Simple Question (Direct)
Simple Question
Q6381343
P641
Q349
USER
Which sport was Mike Lankshear a part of ?
(Q6381343,P641,c(Q349))
action filter_type
action find
entity Q6381343
relation P641
type Q349
['Q6381343', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q6381343 property:P641 ?b . ?b rdf:type ontology:Q349 }
Mike Lankshear
action filter_type
action find
entity Mike Lankshear
relation sport
type sport
['Mike Lankshear', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Mike_Lankshear property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q6381343,P641,c(Q349))
action filter_type
action find
entity Q6381343
relation P641
type Q349
Mike Lankshear was in [ANSWER]
['Q6381343', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q6381343 property:P641 ?b . ?b rdf:type ontology:Q349 }
ice hockey
Mike Lankshear was in ice hockey
ice hockey
action filter_type
action find
entity Mike Lankshear
relation sport
type sport
['Mike Lankshear', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Mike_Lankshear property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6381343
P54
Q12973014
USER
Which sports team is Mike Lankshear a member of ?
(Q6381343,P54,c(Q12973014))
action filter_type
action find
entity Q6381343
relation P54
type Q12973014
['Q6381343', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?z WHERE { resource:Q6381343 property:P54 ?z . ?z rdf:type ontology:Q12973014 }
Mike Lankshear
action filter_type
action find
entity Mike Lankshear
relation member of sports team
type sports team
['Mike Lankshear', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?z WHERE { resource:Mike_Lankshear property:member_of_sports_team ?z . ?z rdf:type ontology:sports_team }
[]
sports team
Q5314772
SYSTEM
Dundas Real McCoys
Q5314772
(Q6381343,P54,c(Q12973014))
action filter_type
action find
entity Q6381343
relation P54
type Q12973014
The [ANSWER] is Mike Lankshear a member of
['Q6381343', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?z WHERE { resource:Q6381343 property:P54 ?z . ?z rdf:type ontology:Q12973014 }
Dundas Real McCoys
The Dundas Real McCoys is Mike Lankshear a member of
Dundas Real McCoys
action filter_type
action find
entity Mike Lankshear
relation member of sports team
type sports team
['Mike Lankshear', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?z WHERE { resource:Mike_Lankshear property:member_of_sports_team ?z . ?z rdf:type ontology:sports_team }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5314772 Q16
P17
Q1048835
USER
Is that sports team situated in Canada ?
(Q5314772,P17,Q16)
action is_in
entity Q16
action find
entity Q5314772
relation P17
['Q5314772', 'P17', 'Q16']
ASK WHERE { resource:Q5314772 property:P17 resource:Q16 }
Dundas Real McCoys Canada
action is_in
entity Canada
action find
entity Dundas Real McCoys
relation country
['Dundas Real McCoys', 'country', 'Canada']
ASK WHERE { resource:Dundas_Real_McCoys property:country resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q5314772,P17,Q16)
action is_in
entity Q16
action find
entity Q5314772
relation P17
[ANSWER]
['Q5314772', 'P17', 'Q16']
ASK WHERE { resource:Q5314772 property:P17 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Dundas Real McCoys
relation country
['Dundas Real McCoys', 'country', 'Canada']
ASK WHERE { resource:Dundas_Real_McCoys property:country resource:Canada }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6381343 Q16
P27
Q1048835
USER
Is that person a civilian of Canada ?
(Q6381343,P27,Q16)
action is_in
entity Q16
action find
entity Q6381343
relation P27
['Q6381343', 'P27', 'Q16']
ASK WHERE { resource:Q6381343 property:P27 resource:Q16 }
Mike Lankshear Canada
action is_in
entity Canada
action find
entity Mike Lankshear
relation country of citizenship
['Mike Lankshear', 'country of citizenship', 'Canada']
ASK WHERE { resource:Mike_Lankshear property:country_of_citizenship resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q6381343,P27,Q16)
action is_in
entity Q16
action find
entity Q6381343
relation P27
[ANSWER]
['Q6381343', 'P27', 'Q16']
ASK WHERE { resource:Q6381343 property:P27 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Mike Lankshear
relation country of citizenship
['Mike Lankshear', 'country of citizenship', 'Canada']
ASK WHERE { resource:Mike_Lankshear property:country_of_citizenship resource:Canada }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7851821 Q16
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Canada or do Tukdoji Maharaj belong to ?
OR((Q16,P530,c(Q15617994)), (Q7851821,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q7851821
relation P27
type Q15617994
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q7851821', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q16 property:P530 ?u } UNION { resource:Q7851821 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Tukdoji Maharaj Canada
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Tukdoji Maharaj
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tukdoji Maharaj', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Canada property:diplomatic_relation ?u } UNION { resource:Tukdoji_Maharaj property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34 Q218 Q801 Q739 Q145 Q833 Q79 Q878 Q843 Q668
SYSTEM
Some of them are Sweden, Romania, Israel, Colombia, United Kingdom, Malaysia, Egypt, United Arab Emirates, Pakistan, India
Q804 Q801 Q843 Q1029 Q1028 Q668 Q145 Q229 Q33 Q30 Q36 Q79 Q34 Q928 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q29999 Q77 Q115 Q258 Q212 Q159 Q43 Q155 Q218 Q20 Q423 Q252 Q884
OR((Q16,P530,c(Q15617994)), (Q7851821,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q7851821
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Canada or do Tukdoji Maharaj belong to
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q7851821', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q16 property:P530 ?u } UNION { resource:Q7851821 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco India United Kingdom Cyprus Finland United States of America Poland Egypt Sweden Philippines Switzerland Italy United Arab Emirates Colombia Malaysia Mongolia Namibia Saudi Arabia Kingdom of the Netherlands Uruguay Ethiopia South Africa Ukraine Russia Turkey Brazil Romania Norway North Korea Indonesia South Korea
Sweden, Romania, Israel, Colombia, United Kingdom, Malaysia, Egypt, United Arab Emirates, Pakistan and India have diplomatic relationships with Canada or do Tukdoji Maharaj belong to
Sweden Romania Israel Colombia United Kingdom Malaysia Egypt United Arab Emirates Pakistan India
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Tukdoji Maharaj
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tukdoji Maharaj', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Canada property:diplomatic_relation ?u } UNION { resource:Tukdoji_Maharaj property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with atmost 90 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 90
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?v ) WHERE { ?f property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?v <= 90 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 90
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?v ) WHERE { ?f property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?v <= 90 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 90
[ANSWERS] have ambassadorial relations with atmost 90 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?v ) WHERE { ?f property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?v <= 90 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have ambassadorial relations with atmost 90 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 90
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?v ) WHERE { ?f property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?v <= 90 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q14459429 Q843
P530 P27
Q1048835
USER
Which political territories holds diplomatic relationship with Pakistan and are the countries of citizenship of John Ford Paterson ?
AND((Q843,P530,c(Q1048835)), (Q14459429,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q843
relation P530
action find
entity Q14459429
relation P27
type Q1048835
{'AND': [['Q843', 'P530', {'concept': 'Q1048835'}], ['Q14459429', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q843 property:P530 ?t . resource:Q14459429 property:P27 ?t }
John Ford Paterson Pakistan
action filter_type
action intersection
action find
entity Pakistan
relation diplomatic relation
action find
entity John Ford Paterson
relation country of citizenship
type political territorial entity
{'AND': [['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}], ['John Ford Paterson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Pakistan property:diplomatic_relation ?t . resource:John_Ford_Paterson property:country_of_citizenship ?t }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q843,P530,c(Q1048835)), (Q14459429,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q843
relation P530
action find
entity Q14459429
relation P27
type Q1048835
[ANSWER] holds diplomatic relationship with Pakistan and are the countries of citizenship of John Ford Paterson
{'AND': [['Q843', 'P530', {'concept': 'Q1048835'}], ['Q14459429', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q843 property:P530 ?t . resource:Q14459429 property:P27 ?t }
Australia
Australia holds diplomatic relationship with Pakistan and are the countries of citizenship of John Ford Paterson
Australia
action filter_type
action intersection
action find
entity Pakistan
relation diplomatic relation
action find
entity John Ford Paterson
relation country of citizenship
type political territorial entity
{'AND': [['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}], ['John Ford Paterson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Pakistan property:diplomatic_relation ?t . resource:John_Ford_Paterson property:country_of_citizenship ?t }
[]