Simple Question (Direct)
Simple Question
Q878398
P39
Q12737077
USER
Which occupation was a position for which Isaac Shelby was appointed ?
(Q878398,P39,c(Q12737077))
action filter_type
action find
entity Q878398
relation P39
type Q12737077
['Q878398', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q878398 property:P39 ?u }
Isaac Shelby
action filter_type
action find
entity Isaac Shelby
relation position held
type occupation
['Isaac Shelby', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Isaac_Shelby property:position_held ?u }
[]
occupation
Q4151335
SYSTEM
Governor of Kentucky
Q4151335
(Q878398,P39,c(Q12737077))
action filter_type
action find
entity Q878398
relation P39
type Q12737077
The [ANSWER] was a position for which Isaac Shelby was appointed
['Q878398', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q878398 property:P39 ?u }
Governor of Kentucky
The Governor of Kentucky was a position for which Isaac Shelby was appointed
Governor of Kentucky
action filter_type
action find
entity Isaac Shelby
relation position held
type occupation
['Isaac Shelby', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Isaac_Shelby property:position_held ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4151335
P1313
Q852446
USER
Which US administrative territory has that occupation as position of head of government ?
(c(Q852446),P1313,Q4151335)
action filter_type
action find_reverse
entity Q4151335
relation P1313
type Q852446
[{'concept': 'Q852446'}, 'P1313', 'Q4151335']
SELECT DISTINCT ?g WHERE { ?g property:P1313 resource:Q4151335 . ?g rdf:type ontology:Q852446 }
Governor of Kentucky
action filter_type
action find_reverse
entity Governor of Kentucky
relation office held by head of government
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'office held by head of government', 'Governor of Kentucky']
SELECT DISTINCT ?g WHERE { ?g property:office_held_by_head_of_government resource:Governor_of_Kentucky . ?g rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1603
SYSTEM
Kentucky
Q1603
(c(Q852446),P1313,Q4151335)
action filter_type
action find_reverse
entity Q4151335
relation P1313
type Q852446
[ANSWER] has that occupation as position of head of government
[{'concept': 'Q852446'}, 'P1313', 'Q4151335']
SELECT DISTINCT ?g WHERE { ?g property:P1313 resource:Q4151335 . ?g rdf:type ontology:Q852446 }
Kentucky
Kentucky has that occupation as position of head of government
Kentucky
action filter_type
action find_reverse
entity Governor of Kentucky
relation office held by head of government
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'office held by head of government', 'Governor of Kentucky']
SELECT DISTINCT ?g WHERE { ?g property:office_held_by_head_of_government resource:Governor_of_Kentucky . ?g rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1603
P47
Q852446
USER
Which US administrative territories do that one share a border with ?
(c(Q852446),P47,Q1603)
action filter_type
action find
entity Q1603
relation P47
type Q852446
[{'concept': 'Q852446'}, 'P47', 'Q1603']
SELECT DISTINCT ?y WHERE { resource:Q1603 property:P47 ?y . ?y rdf:type ontology:Q852446 }
Kentucky
action filter_type
action find
entity Kentucky
relation shares border with
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'shares border with', 'Kentucky']
SELECT DISTINCT ?y WHERE { resource:Kentucky property:shares_border_with ?y . ?y rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1397 Q1415 Q1204
SYSTEM
Ohio, Indiana, Illinois
Q1397 Q1415 Q1509 Q1371 Q1370 Q1204 Q1581
(c(Q852446),P47,Q1603)
action filter_type
action find
entity Q1603
relation P47
type Q852446
[ANSWERS] that one share a border with
[{'concept': 'Q852446'}, 'P47', 'Q1603']
SELECT DISTINCT ?y WHERE { resource:Q1603 property:P47 ?y . ?y rdf:type ontology:Q852446 }
Ohio Indiana Tennessee West Virginia Virginia Illinois Missouri
Ohio, Indiana and Illinois that one share a border with
Ohio Indiana Illinois
action filter_type
action find
entity Kentucky
relation shares border with
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'shares border with', 'Kentucky']
SELECT DISTINCT ?y WHERE { resource:Kentucky property:shares_border_with ?y . ?y rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1415
P194
Q11204
USER
Which legislature is the representative body for that US administrative territory ?
(Q1415,P194,c(Q11204))
action filter_type
action find
entity Q1415
relation P194
type Q11204
['Q1415', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?a WHERE { resource:Q1415 property:P194 ?a . ?a rdf:type ontology:Q11204 }
Indiana
action filter_type
action find
entity Indiana
relation legislative body
type legislature
['Indiana', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?a WHERE { resource:Indiana property:legislative_body ?a . ?a rdf:type ontology:legislature }
[]
legislature
Clarification for simple ques.
Q1415
SYSTEM
Did you mean Indiana ?
Q1397 Q1415 Q1204
(Q1397,P194,c(Q11204)) (Q1415,P194,c(Q11204)) (Q1204,P194,c(Q11204))
[ANSWER]
['Q1397', 'P194', {'concept': 'Q11204'}] ['Q1415', 'P194', {'concept': 'Q11204'}] ['Q1204', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?a WHERE { resource:Q1415 property:P194 ?a . ?a rdf:type ontology:Q11204 }
Ohio Indiana Illinois
Did you mean Indiana ?
Indiana
['Ohio', 'legislative body', {'concept': 'legislature'}] ['Indiana', 'legislative body', {'concept': 'legislature'}] ['Illinois', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?a WHERE { resource:Indiana property:legislative_body ?a . ?a rdf:type ontology:legislature }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1415,P194,c(Q11204))
['Q1415', 'P194', {'concept': 'Q11204'}]
['Indiana', 'legislative body', {'concept': 'legislature'}]
[]
Q3634937
SYSTEM
Indiana General Assembly
Q3634937
(Q1415,P194,c(Q11204))
action filter_type
action find
entity Q1415
relation P194
type Q11204
[ANSWER] is the representative body for that US administrative territory
['Q1415', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?a WHERE { resource:Q1415 property:P194 ?a . ?a rdf:type ontology:Q11204 }
Indiana General Assembly
Indiana General Assembly is the representative body for that US administrative territory
Indiana General Assembly
action filter_type
action find
entity Indiana
relation legislative body
type legislature
['Indiana', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?a WHERE { resource:Indiana property:legislative_body ?a . ?a rdf:type ontology:legislature }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3634937 Q6071994
P194
Q852446
USER
Does Irma have that legislature as its legislative body ?
(Q6071994,P194,Q3634937)
action is_in
entity Q6071994
action find
entity Q3634937
relation P194
['Q6071994', 'P194', 'Q3634937']
ASK WHERE { resource:Q3634937 property:P194 resource:Q6071994 }
Indiana General Assembly Irma
action is_in
entity Irma
action find
entity Indiana General Assembly
relation legislative body
['Irma', 'legislative body', 'Indiana General Assembly']
ASK WHERE { resource:Indiana_General_Assembly property:legislative_body resource:Irma }
[]
administrative territorial entity of the United States
SYSTEM
NO
(Q6071994,P194,Q3634937)
action is_in
entity Q6071994
action find
entity Q3634937
relation P194
[ANSWER]
['Q6071994', 'P194', 'Q3634937']
ASK WHERE { resource:Q3634937 property:P194 resource:Q6071994 }
No
action is_in
entity Irma
action find
entity Indiana General Assembly
relation legislative body
['Irma', 'legislative body', 'Indiana General Assembly']
ASK WHERE { resource:Indiana_General_Assembly property:legislative_body resource:Irma }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1204 Q1497 Q21915515
P206
Q355304
USER
Is Illinois located nearby Mississippi River and Canns Creek ?
(Q1204,P206,Q1497) (Q1204,P206,Q21915515)
action is_in
entity Q1204
action intersection
action find_reverse
entity Q1497
relation P206
action find_reverse
entity Q21915515
relation P206
['Q1204', 'P206', 'Q1497'] ['Q1204', 'P206', 'Q21915515']
ASK WHERE { resource:Q1204 property:P206 resource:Q21915515 . resource:Q1204 property:P206 resource:Q1497 }
Illinois Mississippi River Canns Creek
action is_in
entity Illinois
action intersection
action find_reverse
entity Mississippi River
relation located next to body of water
action find_reverse
entity Canns Creek
relation located next to body of water
['Illinois', 'located next to body of water', 'Mississippi River'] ['Illinois', 'located next to body of water', 'Canns Creek']
ASK WHERE { resource:Illinois property:located_next_to_body_of_water resource:Canns_Creek . resource:Illinois property:located_next_to_body_of_water resource:Mississippi_River }
[]
watercourse
SYSTEM
YES and NO respectively
(Q1204,P206,Q1497) (Q1204,P206,Q21915515)
action is_in
entity Q1204
action intersection
action find_reverse
entity Q1497
relation P206
action find_reverse
entity Q21915515
relation P206
[ANSWER]
['Q1204', 'P206', 'Q1497'] ['Q1204', 'P206', 'Q21915515']
ASK WHERE { resource:Q1204 property:P206 resource:Q21915515 . resource:Q1204 property:P206 resource:Q1497 }
YES and NO respectively
action is_in
entity Illinois
action intersection
action find_reverse
entity Mississippi River
relation located next to body of water
action find_reverse
entity Canns Creek
relation located next to body of water
['Illinois', 'located next to body of water', 'Mississippi River'] ['Illinois', 'located next to body of water', 'Canns Creek']
ASK WHERE { resource:Illinois property:located_next_to_body_of_water resource:Canns_Creek . resource:Illinois property:located_next_to_body_of_water resource:Mississippi_River }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1204
P37
Q34770
USER
What is considered to be the official language of Illinois ?
(Q1204,P37,c(Q34770))
action filter_type
action find
entity Q1204
relation P37
type Q34770
['Q1204', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q1204 property:P37 ?k . ?k rdf:type ontology:Q34770 }
Illinois
action filter_type
action find
entity Illinois
relation official language
type language
['Illinois', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Illinois property:official_language ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1204,P37,c(Q34770))
action filter_type
action find
entity Q1204
relation P37
type Q34770
[ANSWER] is considered to be the official language of Illinois
['Q1204', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q1204 property:P37 ?k . ?k rdf:type ontology:Q34770 }
English
English is considered to be the official language of Illinois
English
action filter_type
action find
entity Illinois
relation official language
type language
['Illinois', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Illinois property:official_language ?k . ?k rdf:type ontology:language }
[]