Simple Question (Direct)
Simple Question
Q3161277
P27
Q1048835
USER
Which political territory is James McShane a civilian of ?
(Q3161277,P27,c(Q1048835))
action filter_type
action find
entity Q3161277
relation P27
type Q1048835
['Q3161277', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q3161277 property:P27 ?o . ?o rdf:type ontology:Q1048835 }
James McShane
action filter_type
action find
entity James McShane
relation country of citizenship
type political territorial entity
['James McShane', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:James_McShane property:country_of_citizenship ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3161277,P27,c(Q1048835))
action filter_type
action find
entity Q3161277
relation P27
type Q1048835
[ANSWER] is James McShane a civilian of
['Q3161277', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q3161277 property:P27 ?o . ?o rdf:type ontology:Q1048835 }
Canada
Canada is James McShane a civilian of
Canada
action filter_type
action find
entity James McShane
relation country of citizenship
type political territorial entity
['James McShane', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:James_McShane property:country_of_citizenship ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3161277
P39
Q12737077
USER
Which occupations were the positions occupied by that person ?
(Q16,P39,c(Q12737077))
action filter_type
action find
entity Q3161277
relation P39
type Q12737077
['Q16', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3161277 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
James McShane
action filter_type
action find
entity James McShane
relation position held
type occupation
['Canada', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:James_McShane property:position_held ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q3305338 Q177645
SYSTEM
Member of the National Assembly, Mayor of Montreal
Q3305338 Q177645
(Q16,P39,c(Q12737077))
action filter_type
action find
entity Q3161277
relation P39
type Q12737077
[ANSWERS] were the positions occupied by that person
['Q16', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q3161277 property:P39 ?q . ?q rdf:type ontology:Q12737077 }
Member of the National Assembly Mayor of Montreal
Member of the National Assembly and Mayor of Montreal were the positions occupied by that person
Member of the National Assembly Mayor of Montreal
action filter_type
action find
entity James McShane
relation position held
type occupation
['Canada', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:James_McShane property:position_held ?q . ?q rdf:type ontology:occupation }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q1048835
USER
How many political territories do that occupation belong to ?
(Q3305338,P17,c(Q1048835))
['Q3305338', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3305338 property:Q6256 ?z . ?z rdf:type ontology:Q1048835 }
['Member of the National Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Member_of_the_National_Assembly property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q177645
SYSTEM
Did you mean Mayor of Montreal ?
(Q3305338,P17,c(Q1048835)) (Q177645,P17,c(Q1048835))
[ANSWER]
['Q3305338', 'P17', {'concept': 'Q1048835'}] ['Q177645', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3305338 property:Q6256 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean Mayor of Montreal ?
Mayor of Montreal
['Member of the National Assembly', 'country', {'concept': 'political territorial entity'}] ['Mayor of Montreal', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Member_of_the_National_Assembly property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Member of the National Assembly. Could you tell me the answer for that?
(Q3305338,P17,c(Q1048835))
Q3305338
['Q3305338', 'P17', {'concept': 'Q1048835'}]
['Member of the National Assembly', 'country', {'concept': 'political territorial entity'}]
[]
SYSTEM
1
Q16
(Q3305338,P17,c(Q1048835))
[ANSWER]
['Q3305338', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3305338 property:Q6256 ?z . ?z rdf:type ontology:Q1048835 }
Canada
1
['Member of the National Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Member_of_the_National_Assembly property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3305338
P17
Q1048835
USER
Which political territory is Member of the National Assembly a part of ?
(Q3305338,P17,c(Q1048835))
action filter_type
action find
entity Q3305338
relation P17
type Q1048835
['Q3305338', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q3305338 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Member of the National Assembly
action filter_type
action find
entity Member of the National Assembly
relation country
type political territorial entity
['Member of the National Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Member_of_the_National_Assembly property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3305338,P17,c(Q1048835))
action filter_type
action find
entity Q3305338
relation P17
type Q1048835
[ANSWER] is Member of the National Assembly a part of
['Q3305338', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q3305338 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Canada
Canada is Member of the National Assembly a part of
Canada
action filter_type
action find
entity Member of the National Assembly
relation country
type political territorial entity
['Member of the National Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Member_of_the_National_Assembly property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P47
Q15617994
USER
Which administrative territories do that political territory share a border with ?
(c(Q15617994),P47,Q16)
action filter_type
action find
entity Q16
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q16']
SELECT DISTINCT ?x WHERE { resource:Q16 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Canada
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Canada']
SELECT DISTINCT ?x WHERE { resource:Canada property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1979 Q30 Q223
SYSTEM
Prince Edward Island, United States of America, Greenland
Q1979 Q30 Q223
(c(Q15617994),P47,Q16)
action filter_type
action find
entity Q16
relation P47
type Q15617994
[ANSWERS] that political territory share a border with
[{'concept': 'Q15617994'}, 'P47', 'Q16']
SELECT DISTINCT ?x WHERE { resource:Q16 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Prince Edward Island United States of America Greenland
Prince Edward Island, United States of America and Greenland that political territory share a border with
Prince Edward Island United States of America Greenland
action filter_type
action find
entity Canada
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Canada']
SELECT DISTINCT ?x WHERE { resource:Canada property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4234331
P47
Q1048835
USER
Are Korsiv next to the border of those administrative territories ?
(Q4234331,P47,Q1979) (Q4234331,P47,Q30) (Q4234331,P47,Q223)
action is_in
entity prev_answer
action find
entity Q4234331
relation P47
['Q4234331', 'P47', 'Q1979'] ['Q4234331', 'P47', 'Q30'] ['Q4234331', 'P47', 'Q223']
ASK WHERE { VALUES ( ?f ) { ( resource:Q1979 ) ( resource:Q30 ) ( resource:Q223 ) } . resource:Q4234331 property:P47 ?f }
Korsiv
action is_in
entity prev_answer
action find
entity Korsiv
relation shares border with
['Korsiv', 'shares border with', 'Prince Edward Island'] ['Korsiv', 'shares border with', 'United States of America'] ['Korsiv', 'shares border with', 'Greenland']
ASK WHERE { VALUES ( ?f ) { ( resource:Prince_Edward_Island ) ( resource:United_States_of_America ) ( resource:Greenland ) } . resource:Korsiv property:shares_border_with ?f }
[]
political territorial entity
SYSTEM
NO
(Q4234331,P47,Q1979) (Q4234331,P47,Q30) (Q4234331,P47,Q223)
action is_in
entity prev_answer
action find
entity Q4234331
relation P47
[ANSWER]
['Q4234331', 'P47', 'Q1979'] ['Q4234331', 'P47', 'Q30'] ['Q4234331', 'P47', 'Q223']
ASK WHERE { VALUES ( ?f ) { ( resource:Q1979 ) ( resource:Q30 ) ( resource:Q223 ) } . resource:Q4234331 property:P47 ?f }
No
action is_in
entity prev_answer
action find
entity Korsiv
relation shares border with
['Korsiv', 'shares border with', 'Prince Edward Island'] ['Korsiv', 'shares border with', 'United States of America'] ['Korsiv', 'shares border with', 'Greenland']
ASK WHERE { VALUES ( ?f ) { ( resource:Prince_Edward_Island ) ( resource:United_States_of_America ) ( resource:Greenland ) } . resource:Korsiv property:shares_border_with ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3305338 Q176 Q1371995
P1001
Q15617994
USER
Does Member of the National Assembly have control over the jurisdiction of Quebec and Etzen-Gesäß ?
(Q3305338,P1001,Q176) (Q3305338,P1001,Q1371995)
action is_in
entity Q3305338
action intersection
action find_reverse
entity Q176
relation P1001
action find_reverse
entity Q1371995
relation P1001
['Q3305338', 'P1001', 'Q176'] ['Q3305338', 'P1001', 'Q1371995']
ASK WHERE { resource:Q3305338 property:P1001 resource:Q176 . resource:Q3305338 property:P1001 resource:Q1371995 }
Member of the National Assembly Quebec Etzen-Gesäß
action is_in
entity Member of the National Assembly
action intersection
action find_reverse
entity Quebec
relation applies to jurisdiction
action find_reverse
entity Etzen-Gesäß
relation applies to jurisdiction
['Member of the National Assembly', 'applies to jurisdiction', 'Quebec'] ['Member of the National Assembly', 'applies to jurisdiction', 'Etzen-Gesäß']
ASK WHERE { resource:Member_of_the_National_Assembly property:applies_to_jurisdiction resource:Quebec . resource:Member_of_the_National_Assembly property:applies_to_jurisdiction resource:Etzen-Gesäß }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q3305338,P1001,Q176) (Q3305338,P1001,Q1371995)
action is_in
entity Q3305338
action intersection
action find_reverse
entity Q176
relation P1001
action find_reverse
entity Q1371995
relation P1001
[ANSWER]
['Q3305338', 'P1001', 'Q176'] ['Q3305338', 'P1001', 'Q1371995']
ASK WHERE { resource:Q3305338 property:P1001 resource:Q176 . resource:Q3305338 property:P1001 resource:Q1371995 }
YES and NO respectively
action is_in
entity Member of the National Assembly
action intersection
action find_reverse
entity Quebec
relation applies to jurisdiction
action find_reverse
entity Etzen-Gesäß
relation applies to jurisdiction
['Member of the National Assembly', 'applies to jurisdiction', 'Quebec'] ['Member of the National Assembly', 'applies to jurisdiction', 'Etzen-Gesäß']
ASK WHERE { resource:Member_of_the_National_Assembly property:applies_to_jurisdiction resource:Quebec . resource:Member_of_the_National_Assembly property:applies_to_jurisdiction resource:Etzen-Gesäß }
[]