Simple Question (Direct)
Simple Question
Q8009051
P27
Q1048835
USER
Which political territory is the country of citizenship of William Finlayson ?
(Q8009051,P27,c(Q1048835))
action filter_type
action find
entity Q8009051
relation P27
type Q1048835
['Q8009051', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q8009051 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
William Finlayson
action filter_type
action find
entity William Finlayson
relation country of citizenship
type political territorial entity
['William Finlayson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:William_Finlayson property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q8009051,P27,c(Q1048835))
action filter_type
action find
entity Q8009051
relation P27
type Q1048835
[ANSWER] is the country of citizenship of William Finlayson
['Q8009051', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q8009051 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Canada
Canada is the country of citizenship of William Finlayson
Canada
action filter_type
action find
entity William Finlayson
relation country of citizenship
type political territorial entity
['William Finlayson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:William_Finlayson property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P530
Q15617994
USER
Which administrative territories have diplomatic relations with that political territory ?
(Q16,P530,c(Q15617994))
action filter_type
action find
entity Q16
relation P530
type Q15617994
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q16 property:P530 ?v . ?v rdf:type ontology:Q15617994 }
Canada
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Canada property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q843 Q1029 Q1028 Q145 Q229 Q33 Q30 Q36 Q79 Q34 Q928 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q29999 Q77 Q252 Q258 Q212 Q159 Q43 Q155 Q218 Q20 Q423 Q115 Q884
(Q16,P530,c(Q15617994))
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with that political territory
['Q16', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q16 property:P530 ?v . ?v rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco 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 Indonesia South Africa Ukraine Russia Turkey Brazil Romania Norway North Korea Ethiopia South Korea
Italy, Brazil and United States of America have diplomatic relations with that political territory
Italy Brazil United States of America
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Canada property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1064026
P530
Q15617994
USER
Do Blacksmith have diplomatic associations with those ones ?
(Q1064026,P530,Q38) (Q1064026,P530,Q155) (Q1064026,P530,Q30)
action is_in
entity prev_answer
action find
entity Q1064026
relation P530
['Q1064026', 'P530', 'Q38'] ['Q1064026', 'P530', 'Q155'] ['Q1064026', 'P530', 'Q30']
ASK WHERE { resource:Q1064026 property:P530 ?s . VALUES ( ?s ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } }
Blacksmith
action is_in
entity prev_answer
action find
entity Blacksmith
relation diplomatic relation
['Blacksmith', 'diplomatic relation', 'Italy'] ['Blacksmith', 'diplomatic relation', 'Brazil'] ['Blacksmith', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Blacksmith property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1064026,P530,Q38) (Q1064026,P530,Q155) (Q1064026,P530,Q30)
action is_in
entity prev_answer
action find
entity Q1064026
relation P530
[ANSWER]
['Q1064026', 'P530', 'Q38'] ['Q1064026', 'P530', 'Q155'] ['Q1064026', 'P530', 'Q30']
ASK WHERE { resource:Q1064026 property:P530 ?s . VALUES ( ?s ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } }
No
action is_in
entity prev_answer
action find
entity Blacksmith
relation diplomatic relation
['Blacksmith', 'diplomatic relation', 'Italy'] ['Blacksmith', 'diplomatic relation', 'Brazil'] ['Blacksmith', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Blacksmith property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q155 Q30
P530
Q15617994
USER
Does United States of America have diplomatic relationships with Brazil ?
(Q155,P530,Q30)
action is_in
entity Q30
action find
entity Q155
relation P530
['Q155', 'P530', 'Q30']
ASK WHERE { resource:Q155 property:P530 resource:Q30 }
Brazil United States of America
action is_in
entity United States of America
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q30)
action is_in
entity Q30
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q30']
ASK WHERE { resource:Q155 property:P530 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8009051 Q18210721
P102
Q7210356
USER
Is William Finlayson a member of Moldovan Volunteers' Movement ?
(Q8009051,P102,Q18210721)
action is_in
entity Q18210721
action find
entity Q8009051
relation P102
['Q8009051', 'P102', 'Q18210721']
ASK WHERE { resource:Q8009051 property:P102 resource:Q18210721 }
William Finlayson Moldovan Volunteers' Movement
action is_in
entity Moldovan Volunteers' Movement
action find
entity William Finlayson
relation member of political party
['William Finlayson', 'member of political party', "Moldovan Volunteers' Movement"]
ASK WHERE { resource:William_Finlayson property:member_of_political_party resource:Moldovan_Volunteers'_Movement }
[]
political organization
SYSTEM
NO
(Q8009051,P102,Q18210721)
action is_in
entity Q18210721
action find
entity Q8009051
relation P102
[ANSWER]
['Q8009051', 'P102', 'Q18210721']
ASK WHERE { resource:Q8009051 property:P102 resource:Q18210721 }
No
action is_in
entity Moldovan Volunteers' Movement
action find
entity William Finlayson
relation member of political party
['William Finlayson', 'member of political party', "Moldovan Volunteers' Movement"]
ASK WHERE { resource:William_Finlayson property:member_of_political_party resource:Moldovan_Volunteers'_Movement }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q30 Q1653436
P530
Q1048835
USER
Does Cañada Vellida have diplomatic relations with United States of America ?
(Q30,P530,Q1653436)
action is_in
entity Q1653436
action find
entity Q30
relation P530
['Q30', 'P530', 'Q1653436']
ASK WHERE { resource:Q30 property:P530 resource:Q1653436 }
United States of America Cañada Vellida
action is_in
entity Cañada Vellida
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Cañada Vellida']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Cañada_Vellida }
[]
political territorial entity
SYSTEM
NO
(Q30,P530,Q1653436)
action is_in
entity Q1653436
action find
entity Q30
relation P530
[ANSWER]
['Q30', 'P530', 'Q1653436']
ASK WHERE { resource:Q30 property:P530 resource:Q1653436 }
No
action is_in
entity Cañada Vellida
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Cañada Vellida']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Cañada_Vellida }
[]
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 tactful political relations with around 59 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 59
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?d ) WHERE { ?a property:P530 ?k . ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?d = 59 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 59
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?d ) WHERE { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?d = 59 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q155
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 59
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?d ) WHERE { ?a property:P530 ?k . ?a rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?d = 59 ) }
Brazil
1
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 59
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?d ) WHERE { ?a property:diplomatic_relation ?k . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?d = 59 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8009051
P69
Q3918
USER
Which university was William Finlayson educated at ?
(Q8009051,P69,c(Q3918))
action filter_type
action find
entity Q8009051
relation P69
type Q3918
['Q8009051', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?m WHERE { resource:Q8009051 property:P69 ?m . ?m rdf:type ontology:Q3918 }
William Finlayson
action filter_type
action find
entity William Finlayson
relation educated at
type university
['William Finlayson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?m WHERE { resource:William_Finlayson property:educated_at ?m . ?m rdf:type ontology:university }
[]
university
Q3016196
SYSTEM
Osgoode Hall Law School
Q3016196
(Q8009051,P69,c(Q3918))
action filter_type
action find
entity Q8009051
relation P69
type Q3918
William Finlayson was educated at [ANSWER]
['Q8009051', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?m WHERE { resource:Q8009051 property:P69 ?m . ?m rdf:type ontology:Q3918 }
Osgoode Hall Law School
William Finlayson was educated at Osgoode Hall Law School
Osgoode Hall Law School
action filter_type
action find
entity William Finlayson
relation educated at
type university
['William Finlayson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?m WHERE { resource:William_Finlayson property:educated_at ?m . ?m rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8009051
P39
Q12737077
USER
What was the position held by William Finlayson ?
(Q8009051,P39,c(Q12737077))
action filter_type
action find
entity Q8009051
relation P39
type Q12737077
['Q8009051', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q8009051 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
William Finlayson
action filter_type
action find
entity William Finlayson
relation position held
type occupation
['William Finlayson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:William_Finlayson property:position_held ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q3305347
SYSTEM
Member of Ontario Provincial Parliament
Q3305347
(Q8009051,P39,c(Q12737077))
action filter_type
action find
entity Q8009051
relation P39
type Q12737077
The position held by William Finlayson was a [ANSWER]
['Q8009051', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q8009051 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Member of Ontario Provincial Parliament
The position held by William Finlayson was a Member of Ontario Provincial Parliament
Member of Ontario Provincial Parliament
action filter_type
action find
entity William Finlayson
relation position held
type occupation
['William Finlayson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:William_Finlayson property:position_held ?s . ?s rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q271646 Q8009051
P102
Q7210356
USER
Which political organizations are William Finlayson or Rasa Juknevičienė affiliated with ?
OR((Q8009051,P102,c(Q7210356)), (Q271646,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q8009051
relation P102
action find
entity Q271646
relation P102
type Q7210356
{'OR': [['Q8009051', 'P102', {'concept': 'Q7210356'}], ['Q271646', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q8009051 property:P102 ?o } UNION { resource:Q271646 property:P102 ?o } } . ?o rdf:type ontology:Q7210356 }
Rasa Juknevičienė William Finlayson
action filter_type
action union
action find
entity William Finlayson
relation member of political party
action find
entity Rasa Juknevičienė
relation member of political party
type political organization
{'OR': [['William Finlayson', 'member of political party', {'concept': 'political organization'}], ['Rasa Juknevičienė', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?o WHERE { { { resource:William_Finlayson property:member_of_political_party ?o } UNION { resource:Rasa_Juknevičienė property:member_of_political_party ?o } } . ?o rdf:type ontology:political_organization }
[]
political organization
Q826977 Q81556
SYSTEM
Progressive Conservative Party of Ontario, Homeland Union
Q826977 Q81556
OR((Q8009051,P102,c(Q7210356)), (Q271646,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q8009051
relation P102
action find
entity Q271646
relation P102
type Q7210356
William Finlayson or Rasa Juknevičienė are affiliated with [ANSWERS]
{'OR': [['Q8009051', 'P102', {'concept': 'Q7210356'}], ['Q271646', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q8009051 property:P102 ?o } UNION { resource:Q271646 property:P102 ?o } } . ?o rdf:type ontology:Q7210356 }
Progressive Conservative Party of Ontario Homeland Union
William Finlayson or Rasa Juknevičienė are affiliated with Progressive Conservative Party of Ontario and Homeland Union
Progressive Conservative Party of Ontario Homeland Union
action filter_type
action union
action find
entity William Finlayson
relation member of political party
action find
entity Rasa Juknevičienė
relation member of political party
type political organization
{'OR': [['William Finlayson', 'member of political party', {'concept': 'political organization'}], ['Rasa Juknevičienė', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?o WHERE { { { resource:William_Finlayson property:member_of_political_party ?o } UNION { resource:Rasa_Juknevičienė property:member_of_political_party ?o } } . ?o rdf:type ontology:political_organization }
[]