Simple Question (Direct)
Simple Question
Q15994484
P463
Q874405
USER
What was George Harley a member of ?
(Q15994484,P463,c(Q874405))
action filter_type
action find
entity Q15994484
relation P463
type Q874405
['Q15994484', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { resource:Q15994484 property:P463 ?o . ?o rdf:type ontology:Q874405 }
George Harley
action filter_type
action find
entity George Harley
relation member of
type social group
['George Harley', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { resource:George_Harley property:member_of ?o . ?o rdf:type ontology:social_group }
[]
social group
Q16003969
SYSTEM
Royal College of Physicians
Q16003969
(Q15994484,P463,c(Q874405))
action filter_type
action find
entity Q15994484
relation P463
type Q874405
George Harley a member of was the [ANSWER]
['Q15994484', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?o WHERE { resource:Q15994484 property:P463 ?o . ?o rdf:type ontology:Q874405 }
Royal College of Physicians
George Harley a member of was the Royal College of Physicians
Royal College of Physicians
action filter_type
action find
entity George Harley
relation member of
type social group
['George Harley', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?o WHERE { resource:George_Harley property:member_of ?o . ?o rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15994484
P921
Q191067
USER
Which article was primarily based on that person ?
(c(Q191067),P921,Q16003969)
action filter_type
action find_reverse
entity Q15994484
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q16003969']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q15994484 . ?i rdf:type ontology:Q191067 }
George Harley
action filter_type
action find_reverse
entity George Harley
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Royal College of Physicians']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:George_Harley . ?i rdf:type ontology:article }
[]
article
Q21484557
SYSTEM
Harley, George (DNB01)
Q21484557
(c(Q191067),P921,Q16003969)
action filter_type
action find_reverse
entity Q15994484
relation P921
type Q191067
[ANSWER] was primarily based on that person
[{'concept': 'Q191067'}, 'P921', 'Q16003969']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q15994484 . ?i rdf:type ontology:Q191067 }
Harley, George (DNB01)
Harley, George (DNB01) was primarily based on that person
Harley, George (DNB01)
action filter_type
action find_reverse
entity George Harley
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Royal College of Physicians']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:George_Harley . ?i rdf:type ontology:article }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q21484557 Q21457003 Q5082312
P50
Q502895
USER
Was that article written by Mark Oates and Charles Sackville-Germain, 5th Duke of Dorset ?
(Q21484557,P50,Q21457003) (Q21484557,P50,Q5082312)
action is_in
entity Q21484557
action intersection
action find_reverse
entity Q21457003
relation P50
action find_reverse
entity Q5082312
relation P50
['Q21484557', 'P50', 'Q21457003'] ['Q21484557', 'P50', 'Q5082312']
ASK WHERE { resource:Q21484557 property:P50 resource:Q21457003 . resource:Q21484557 property:P50 resource:Q5082312 }
Harley, George (DNB01) Mark Oates Charles Sackville-Germain, 5th Duke of Dorset
action is_in
entity Harley, George (DNB01)
action intersection
action find_reverse
entity Mark Oates
relation author
action find_reverse
entity Charles Sackville-Germain, 5th Duke of Dorset
relation author
['Harley, George (DNB01)', 'author', 'Mark Oates'] ['Harley, George (DNB01)', 'author', 'Charles Sackville-Germain, 5th Duke of Dorset']
ASK WHERE { resource:Harley,_George_(DNB01) property:author resource:Mark_Oates . resource:Harley,_George_(DNB01) property:author resource:Charles_Sackville-Germain,_5th_Duke_of_Dorset }
[]
common name
SYSTEM
NO
(Q21484557,P50,Q21457003) (Q21484557,P50,Q5082312)
action is_in
entity Q21484557
action intersection
action find_reverse
entity Q21457003
relation P50
action find_reverse
entity Q5082312
relation P50
[ANSWER]
['Q21484557', 'P50', 'Q21457003'] ['Q21484557', 'P50', 'Q5082312']
ASK WHERE { resource:Q21484557 property:P50 resource:Q21457003 . resource:Q21484557 property:P50 resource:Q5082312 }
No
action is_in
entity Harley, George (DNB01)
action intersection
action find_reverse
entity Mark Oates
relation author
action find_reverse
entity Charles Sackville-Germain, 5th Duke of Dorset
relation author
['Harley, George (DNB01)', 'author', 'Mark Oates'] ['Harley, George (DNB01)', 'author', 'Charles Sackville-Germain, 5th Duke of Dorset']
ASK WHERE { resource:Harley,_George_(DNB01) property:author resource:Mark_Oates . resource:Harley,_George_(DNB01) property:author resource:Charles_Sackville-Germain,_5th_Duke_of_Dorset }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15994484
P27
Q15617994
USER
Which administrative territory is George Harley an inhabitant of ?
(Q15994484,P27,c(Q15617994))
action filter_type
action find
entity Q15994484
relation P27
type Q15617994
['Q15994484', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q15994484 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
George Harley
action filter_type
action find
entity George Harley
relation country of citizenship
type designation for an administrative territorial entity
['George Harley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:George_Harley property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q15994484,P27,c(Q15617994))
action filter_type
action find
entity Q15994484
relation P27
type Q15617994
The [ANSWER] is George Harley an inhabitant of
['Q15994484', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q15994484 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is George Harley an inhabitant of
United Kingdom
action filter_type
action find
entity George Harley
relation country of citizenship
type designation for an administrative territorial entity
['George Harley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:George_Harley property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q145 Q479750
P530
Q1048835
USER
Does Oldenburg-Land have diplomatic relationships with United Kingdom ?
(Q145,P530,Q479750)
action is_in
entity Q479750
action find
entity Q145
relation P530
['Q145', 'P530', 'Q479750']
ASK WHERE { resource:Q145 property:P530 resource:Q479750 }
United Kingdom Oldenburg-Land
action is_in
entity Oldenburg-Land
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Oldenburg-Land']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Oldenburg-Land }
[]
political territorial entity
SYSTEM
NO
(Q145,P530,Q479750)
action is_in
entity Q479750
action find
entity Q145
relation P530
[ANSWER]
['Q145', 'P530', 'Q479750']
ASK WHERE { resource:Q145 property:P530 resource:Q479750 }
No
action is_in
entity Oldenburg-Land
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Oldenburg-Land']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Oldenburg-Land }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q487786 Q479750
P47 P17
Q1048835
USER
Which political territories do Oldenburg-Land belong to or share border with Orihuela ?
OR((Q479750,P17,c(Q1048835)), (Q487786,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q479750
relation P17
action find
entity Q487786
relation P47
type Q1048835
{'OR': [['Q479750', 'P17', {'concept': 'Q1048835'}], ['Q487786', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q479750 property:P17 ?g } UNION { resource:Q487786 property:P47 ?g } } . ?g rdf:type ontology:Q1048835 }
Orihuela Oldenburg-Land
action filter_type
action union
action find
entity Oldenburg-Land
relation country
action find
entity Orihuela
relation shares border with
type political territorial entity
{'OR': [['Oldenburg-Land', 'country', {'concept': 'political territorial entity'}], ['Orihuela', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Oldenburg-Land property:country ?g } UNION { resource:Orihuela property:shares_border_with ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q956513 Q1768833 Q1769353 Q1752447 Q1750915 Q221749 Q1751454 Q1768912 Q183 Q620600
SYSTEM
Some of them are Pilar de la Horadada, Redován, Granja de Rocamora, Catral, Callosa de Segura, Torrevieja, Rafal, Jacarilla, Germany, Almoradí
Q620867 Q984531 Q1752447 Q1763754 Q1769353 Q1768833 Q221749 Q1751451 Q183 Q1640230 Q618585 Q1985343 Q1768905 Q1768912 Q956513 Q1750915 Q954749 Q1752019 Q620600 Q1752438 Q1751454
OR((Q479750,P17,c(Q1048835)), (Q487786,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q479750
relation P17
action find
entity Q487786
relation P47
type Q1048835
[ANSWERS] Oldenburg-Land belong to or share border with Orihuela
{'OR': [['Q479750', 'P17', {'concept': 'Q1048835'}], ['Q487786', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q479750 property:P17 ?g } UNION { resource:Q487786 property:P47 ?g } } . ?g rdf:type ontology:Q1048835 }
Algueña San Miguel de Salinas Catral Bigastro Granja de Rocamora Redován Torrevieja Benferri Germany Cox Albatera Hondón de los Frailes El Fondó de les Neus Jacarilla Pilar de la Horadada Callosa de Segura Algorfa La Romana Almoradí Benejúzar Rafal
Pilar de la Horadada, Redován, Granja de Rocamora, Catral, Callosa de Segura, Torrevieja, Rafal, Jacarilla, Germany and Almoradí Oldenburg-Land belong to or share border with Orihuela
Pilar de la Horadada Redován Granja de Rocamora Catral Callosa de Segura Torrevieja Rafal Jacarilla Germany Almoradí
action filter_type
action union
action find
entity Oldenburg-Land
relation country
action find
entity Orihuela
relation shares border with
type political territorial entity
{'OR': [['Oldenburg-Land', 'country', {'concept': 'political territorial entity'}], ['Orihuela', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Oldenburg-Land property:country ?g } UNION { resource:Orihuela property:shares_border_with ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1768912
P47
Q1048835
USER
How many political territories are adjacent to Jacarilla ?
(Q1768912,P47,c(Q1048835))
action count
action filter_type
action find
entity Q1768912
relation P47
type Q1048835
['Q1768912', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q1768912 property:P47 ?o }
Jacarilla
action count
action filter_type
action find
entity Jacarilla
relation shares border with
type political territorial entity
['Jacarilla', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Jacarilla property:shares_border_with ?o }
[]
political territorial entity
SYSTEM
2
Q1763754 Q1752438
(Q1768912,P47,c(Q1048835))
action count
action filter_type
action find
entity Q1768912
relation P47
type Q1048835
[ANSWER]
['Q1768912', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ontology:Q1048835 . resource:Q1768912 property:P47 ?o }
Bigastro Benejúzar
2
action count
action filter_type
action find
entity Jacarilla
relation shares border with
type political territorial entity
['Jacarilla', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Jacarilla property:shares_border_with ?o }
[]