Simple Question (Direct)
Simple Question
Q6831772
P734
Q82799
USER
Who has the surname Michael K. Smith ?
(Q6831772,P734,c(Q82799))
action filter_type
action find
entity Q6831772
relation P734
type Q82799
['Q6831772', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q6831772 property:P734 ?l . ?l rdf:type ontology:Q82799 }
Michael K. Smith
action filter_type
action find
entity Michael K. Smith
relation family name
type name
['Michael K. Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Michael_K._Smith property:family_name ?l . ?l rdf:type ontology:name }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
(Q6831772,P734,c(Q82799))
action filter_type
action find
entity Q6831772
relation P734
type Q82799
[ANSWER] has the surname Michael K. [ANSWER]
['Q6831772', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?l WHERE { resource:Q6831772 property:P734 ?l . ?l rdf:type ontology:Q82799 }
Smith
Smith has the surname Michael K. Smith
Smith
action filter_type
action find
entity Michael K. Smith
relation family name
type name
['Michael K. Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?l WHERE { resource:Michael_K._Smith property:family_name ?l . ?l rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6831772
P102
Q7210356
USER
Which party is Michael K. Smith affiliated with ?
(Q6831772,P102,c(Q7210356))
action filter_type
action find
entity Q6831772
relation P102
type Q7210356
['Q6831772', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q6831772 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Michael K. Smith
action filter_type
action find
entity Michael K. Smith
relation member of political party
type political organization
['Michael K. Smith', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Michael_K._Smith property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q6831772,P102,c(Q7210356))
action filter_type
action find
entity Q6831772
relation P102
type Q7210356
Michael K. Smith is affiliated with [ANSWER]
['Q6831772', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q6831772 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Democratic Party
Michael K. Smith is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Michael K. Smith
relation member of political party
type political organization
['Michael K. Smith', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Michael_K._Smith property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6227200
Q7210356
USER
And how about John Cosgrove?
(Q6227200,P102,c(Q7210356))
action filter_type
action find
entity Q6227200
relation P102
type Q7210356
['Q6227200', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q7210356 . resource:Q6227200 property:P102 ?o }
John Cosgrove
action filter_type
action find
entity John Cosgrove
relation member of political party
type political organization
['John Cosgrove', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_organization . resource:John_Cosgrove property:member_of_political_party ?o }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q6227200,P102,c(Q7210356))
action filter_type
action find
entity Q6227200
relation P102
type Q7210356
[ANSWER]
['Q6227200', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q7210356 . resource:Q6227200 property:P102 ?o }
Republican Party
Republican Party
action filter_type
action find
entity John Cosgrove
relation member of political party
type political organization
['John Cosgrove', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_organization . resource:John_Cosgrove property:member_of_political_party ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q29468 Q26884724
P102
Q502895
USER
Is Justin Bare the member of that political organization ?
(Q26884724,P102,Q29468)
action is_in
entity Q26884724
action find
entity Q29468
relation P102
['Q26884724', 'P102', 'Q29468']
ASK WHERE { resource:Q29468 property:P102 resource:Q26884724 }
Republican Party Justin Bare
action is_in
entity Justin Bare
action find
entity Republican Party
relation member of political party
['Justin Bare', 'member of political party', 'Republican Party']
ASK WHERE { resource:Republican_Party property:member_of_political_party resource:Justin_Bare }
[]
common name
SYSTEM
NO
(Q26884724,P102,Q29468)
action is_in
entity Q26884724
action find
entity Q29468
relation P102
[ANSWER]
['Q26884724', 'P102', 'Q29468']
ASK WHERE { resource:Q29468 property:P102 resource:Q26884724 }
No
action is_in
entity Justin Bare
action find
entity Republican Party
relation member of political party
['Justin Bare', 'member of political party', 'Republican Party']
ASK WHERE { resource:Republican_Party property:member_of_political_party resource:Justin_Bare }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6831772 Q42557 Q30
P27
Q15617994
USER
Is Michael K. Smith a citizen of Pandino and United States of America ?
(Q6831772,P27,Q42557) (Q6831772,P27,Q30)
action is_in
entity Q6831772
action intersection
action find_reverse
entity Q42557
relation P27
action find_reverse
entity Q30
relation P27
['Q6831772', 'P27', 'Q42557'] ['Q6831772', 'P27', 'Q30']
ASK WHERE { resource:Q6831772 property:P27 resource:Q42557 . resource:Q6831772 property:P27 resource:Q30 }
Michael K. Smith Pandino United States of America
action is_in
entity Michael K. Smith
action intersection
action find_reverse
entity Pandino
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Michael K. Smith', 'country of citizenship', 'Pandino'] ['Michael K. Smith', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Michael_K._Smith property:country_of_citizenship resource:Pandino . resource:Michael_K._Smith property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q6831772,P27,Q42557) (Q6831772,P27,Q30)
action is_in
entity Q6831772
action intersection
action find_reverse
entity Q42557
relation P27
action find_reverse
entity Q30
relation P27
[ANSWER]
['Q6831772', 'P27', 'Q42557'] ['Q6831772', 'P27', 'Q30']
ASK WHERE { resource:Q6831772 property:P27 resource:Q42557 . resource:Q6831772 property:P27 resource:Q30 }
NO and YES respectively
action is_in
entity Michael K. Smith
action intersection
action find_reverse
entity Pandino
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Michael K. Smith', 'country of citizenship', 'Pandino'] ['Michael K. Smith', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Michael_K._Smith property:country_of_citizenship resource:Pandino . resource:Michael_K._Smith property:country_of_citizenship resource:United_States_of_America }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q838948 Q15709879
USER
Which names are expressed in max number of works of art and artwork series ?
(c(Q838948)|c(Q15709879),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?h ) WHERE { { ?c rdf:type ontology:Q838948 . ?v rdf:type ontology:Q82799 . ?c property:P180 ?v } UNION { ?v rdf:type ontology:Q82799 . ?c rdf:type ontology:Q15709879 . ?c property:P180 ?v } } GROUP BY ?v } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:P180 ?t . ?q rdf:type ontology:Q15709879 . ?t rdf:type ontology:Q82799 } UNION { ?q property:P180 ?t . ?t rdf:type ontology:Q82799 . ?q rdf:type ontology:Q838948 } } GROUP BY ?t } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?h ) WHERE { { ?c rdf:type ontology:work_of_art . ?v rdf:type ontology:name . ?c property:depicts ?v } UNION { ?v rdf:type ontology:name . ?c rdf:type ontology:artwork_series . ?c property:depicts ?v } } GROUP BY ?v } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:depicts ?t . ?q rdf:type ontology:artwork_series . ?t rdf:type ontology:name } UNION { ?q property:depicts ?t . ?t rdf:type ontology:name . ?q rdf:type ontology:work_of_art } } GROUP BY ?t } } }
[]
name work of art artwork series
Q726
SYSTEM
horse
Q726
(c(Q838948)|c(Q15709879),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
The [ANSWER] is expressed in max number of works of art and artwork series
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?h ) WHERE { { ?c rdf:type ontology:Q838948 . ?v rdf:type ontology:Q82799 . ?c property:P180 ?v } UNION { ?v rdf:type ontology:Q82799 . ?c rdf:type ontology:Q15709879 . ?c property:P180 ?v } } GROUP BY ?v } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:P180 ?t . ?q rdf:type ontology:Q15709879 . ?t rdf:type ontology:Q82799 } UNION { ?q property:P180 ?t . ?t rdf:type ontology:Q82799 . ?q rdf:type ontology:Q838948 } } GROUP BY ?t } } }
horse
The horse is expressed in max number of works of art and artwork series
horse
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?c ) AS ?h ) WHERE { { ?c rdf:type ontology:work_of_art . ?v rdf:type ontology:name . ?c property:depicts ?v } UNION { ?v rdf:type ontology:name . ?c rdf:type ontology:artwork_series . ?c property:depicts ?v } } GROUP BY ?v } . FILTER ( ?h = ?j ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?j ) { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?r ) WHERE { { ?q property:depicts ?t . ?q rdf:type ontology:artwork_series . ?t rdf:type ontology:name } UNION { ?q property:depicts ?t . ?t rdf:type ontology:name . ?q rdf:type ontology:work_of_art } } GROUP BY ?t } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29468
P463
Q502895
USER
Which person has a membership of Republican Party ?
(c(Q502895),P463,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q29468']
SELECT DISTINCT ?z WHERE { ?z property:P463 resource:Q29468 . ?z rdf:type ontology:Q502895 }
Republican Party
action filter_type
action find_reverse
entity Republican Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Republican Party']
SELECT DISTINCT ?z WHERE { ?z property:member_of resource:Republican_Party . ?z rdf:type ontology:common_name }
[]
common name
Q2522486
SYSTEM
Victor Murdock
Q2522486
(c(Q502895),P463,Q29468)
action filter_type
action find_reverse
entity Q29468
relation P463
type Q502895
[ANSWER] has a membership of Republican Party
[{'concept': 'Q502895'}, 'P463', 'Q29468']
SELECT DISTINCT ?z WHERE { ?z property:P463 resource:Q29468 . ?z rdf:type ontology:Q502895 }
Victor Murdock
Victor Murdock has a membership of Republican Party
Victor Murdock
action filter_type
action find_reverse
entity Republican Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Republican Party']
SELECT DISTINCT ?z WHERE { ?z property:member_of resource:Republican_Party . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29468
P112
Q502895
USER
Which person founded that political organization ?
(Q2522486,P112,c(Q502895))
action filter_type
action find
entity Q29468
relation P112
type Q502895
['Q2522486', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q29468 property:P112 ?o . ?o rdf:type ontology:Q502895 }
Republican Party
action filter_type
action find
entity Republican Party
relation founder
type common name
['Victor Murdock', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Republican_Party property:founder ?o . ?o rdf:type ontology:common_name }
[]
common name
Q91
SYSTEM
Abraham Lincoln
Q91
(Q2522486,P112,c(Q502895))
action filter_type
action find
entity Q29468
relation P112
type Q502895
The [ANSWER] founded that political organization
['Q2522486', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q29468 property:P112 ?o . ?o rdf:type ontology:Q502895 }
Abraham Lincoln
The Abraham Lincoln founded that political organization
Abraham Lincoln
action filter_type
action find
entity Republican Party
relation founder
type common name
['Victor Murdock', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Republican_Party property:founder ?o . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q111443 Q6227200
P19 P937
Q56061
USER
Which administrative territories are the birthplace of John Cosgrove or are the work locations of Angelika Volquartz ?
OR((Q6227200,P19,c(Q56061)), (Q111443,P937,c(Q56061)))
action filter_type
action union
action find
entity Q6227200
relation P19
action find
entity Q111443
relation P937
type Q56061
{'OR': [['Q6227200', 'P19', {'concept': 'Q56061'}], ['Q111443', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q6227200 property:P19 ?e } UNION { resource:Q111443 property:P937 ?e } } . ?e rdf:type ontology:Q56061 }
Angelika Volquartz John Cosgrove
action filter_type
action union
action find
entity John Cosgrove
relation place of birth
action find
entity Angelika Volquartz
relation work location
type administrative territorial entity
{'OR': [['John Cosgrove', 'place of birth', {'concept': 'administrative territorial entity'}], ['Angelika Volquartz', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:John_Cosgrove property:place_of_birth ?e } UNION { resource:Angelika_Volquartz property:work_location ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q29364 Q1707 Q586
SYSTEM
Montgomery, Kiel, Bonn
Q29364 Q1707 Q586
OR((Q6227200,P19,c(Q56061)), (Q111443,P937,c(Q56061)))
action filter_type
action union
action find
entity Q6227200
relation P19
action find
entity Q111443
relation P937
type Q56061
[ANSWERS] are the birthplace of John Cosgrove or are the work locations of Angelika Volquartz
{'OR': [['Q6227200', 'P19', {'concept': 'Q56061'}], ['Q111443', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q6227200 property:P19 ?e } UNION { resource:Q111443 property:P937 ?e } } . ?e rdf:type ontology:Q56061 }
Montgomery Kiel Bonn
Montgomery, Kiel and Bonn are the birthplace of John Cosgrove or are the work locations of Angelika Volquartz
Montgomery Kiel Bonn
action filter_type
action union
action find
entity John Cosgrove
relation place of birth
action find
entity Angelika Volquartz
relation work location
type administrative territorial entity
{'OR': [['John Cosgrove', 'place of birth', {'concept': 'administrative territorial entity'}], ['Angelika Volquartz', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:John_Cosgrove property:place_of_birth ?e } UNION { resource:Angelika_Volquartz property:work_location ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have their base port as max number of administrative territories ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?k ) WHERE { ?t property:P532 ?m . ?t rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?t } } . FILTER ( ?b = ?z ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?b ) WHERE { ?c property:P532 ?q . ?q rdf:type ontology:Q56061 . ?c rdf:type ontology:Q2235308 } GROUP BY ?c } }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?k ) WHERE { ?t property:port_of_registry ?m . ?t rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } } . FILTER ( ?b = ?z ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?b ) WHERE { ?c property:port_of_registry ?q . ?q rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:ship_type } GROUP BY ?c } }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] have their base port as max number of administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?k ) WHERE { ?t property:P532 ?m . ?t rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?t } } . FILTER ( ?b = ?z ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?b ) WHERE { ?c property:P532 ?q . ?q rdf:type ontology:Q56061 . ?c rdf:type ontology:Q2235308 } GROUP BY ?c } }
MS Arrow
MS Arrow have their base port as max number of administrative territories
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?z ) { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?k ) WHERE { ?t property:port_of_registry ?m . ?t rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?t } } . FILTER ( ?b = ?z ) . { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?b ) WHERE { ?c property:port_of_registry ?q . ?q rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:ship_type } GROUP BY ?c } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5004942 Q6831772
P27
Q15617994
USER
Which administrative territories are Michael K. Smith or Bård Lahn a civilian of ?
OR((Q6831772,P27,c(Q15617994)), (Q5004942,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6831772
relation P27
action find
entity Q5004942
relation P27
type Q15617994
{'OR': [['Q6831772', 'P27', {'concept': 'Q15617994'}], ['Q5004942', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q6831772 property:P27 ?d } UNION { resource:Q5004942 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Bård Lahn Michael K. Smith
action filter_type
action union
action find
entity Michael K. Smith
relation country of citizenship
action find
entity Bård Lahn
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Michael K. Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bård Lahn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Michael_K._Smith property:country_of_citizenship ?d } UNION { resource:Bård_Lahn property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q30
SYSTEM
Norway, United States of America
Q20 Q30
OR((Q6831772,P27,c(Q15617994)), (Q5004942,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6831772
relation P27
action find
entity Q5004942
relation P27
type Q15617994
[ANSWERS] are Michael K. Smith or Bård Lahn a civilian of
{'OR': [['Q6831772', 'P27', {'concept': 'Q15617994'}], ['Q5004942', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q6831772 property:P27 ?d } UNION { resource:Q5004942 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Norway United States of America
Norway and United States of America are Michael K. Smith or Bård Lahn a civilian of
Norway United States of America
action filter_type
action union
action find
entity Michael K. Smith
relation country of citizenship
action find
entity Bård Lahn
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Michael K. Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bård Lahn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Michael_K._Smith property:country_of_citizenship ?d } UNION { resource:Bård_Lahn property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q20
P530
Q1048835
USER
How many political territories have diplomatic relationships with Norway ?
(Q20,P530,c(Q1048835))
action count
action filter_type
action find
entity Q20
relation P530
type Q1048835
['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Q20 property:P530 ?f . ?f rdf:type ontology:Q1048835 }
Norway
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Norway property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q408 Q16 Q183
(Q20,P530,c(Q1048835))
action count
action filter_type
action find
entity Q20
relation P530
type Q1048835
[ANSWER]
['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Q20 property:P530 ?f . ?f rdf:type ontology:Q1048835 }
Australia Canada Germany
3
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Norway property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q971
P530
Q1048835
USER
And what about Republic of the Congo?
(Q971,P530,c(Q1048835))
action count
action filter_type
action find
entity Q971
relation P530
type Q1048835
['Q971', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q971 property:P530 ?s }
Republic of the Congo
action count
action filter_type
action find
entity Republic of the Congo
relation diplomatic relation
type political territorial entity
['Republic of the Congo', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Republic_of_the_Congo property:diplomatic_relation ?s }
[]
political territorial entity
SYSTEM
1
Q183
(Q971,P530,c(Q1048835))
action count
action filter_type
action find
entity Q971
relation P530
type Q1048835
[ANSWER]
['Q971', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ontology:Q1048835 . resource:Q971 property:P530 ?s }
Germany
1
action count
action filter_type
action find
entity Republic of the Congo
relation diplomatic relation
type political territorial entity
['Republic of the Congo', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Republic_of_the_Congo property:diplomatic_relation ?s }
[]