Simple Question (Direct)
Simple Question
Q3142417
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Hugo Luz ?
(Q3142417,P27,c(Q15617994))
action filter_type
action find
entity Q3142417
relation P27
type Q15617994
['Q3142417', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3142417 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Hugo Luz
action filter_type
action find
entity Hugo Luz
relation country of citizenship
type designation for an administrative territorial entity
['Hugo Luz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Hugo_Luz property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
(Q3142417,P27,c(Q15617994))
action filter_type
action find
entity Q3142417
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of Hugo Luz
['Q3142417', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3142417 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Romania
The Romania is the country of citizenship of Hugo Luz
Romania
action filter_type
action find
entity Hugo Luz
relation country of citizenship
type designation for an administrative territorial entity
['Hugo Luz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Hugo_Luz property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3142417
P19
Q56061
USER
Which administrative territory is the birthplace of Hugo Luz ?
(Q3142417,P19,c(Q56061))
action filter_type
action find
entity Q3142417
relation P19
type Q56061
['Q3142417', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q3142417 property:P19 ?t }
Hugo Luz
action filter_type
action find
entity Hugo Luz
relation place of birth
type administrative territorial entity
['Hugo Luz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Hugo_Luz property:place_of_birth ?t }
[]
administrative territorial entity
Q159457
SYSTEM
Faro
Q159457
(Q3142417,P19,c(Q56061))
action filter_type
action find
entity Q3142417
relation P19
type Q56061
The [ANSWER] is the birthplace of Hugo Luz
['Q3142417', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q3142417 property:P19 ?t }
Faro
The Faro is the birthplace of Hugo Luz
Faro
action filter_type
action find
entity Hugo Luz
relation place of birth
type administrative territorial entity
['Hugo Luz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Hugo_Luz property:place_of_birth ?t }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3247471
Q56061
USER
And what about Jack Buck?
(Q3247471,P19,c(Q56061))
action filter_type
action find
entity Q3247471
relation P19
type Q56061
['Q3247471', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q3247471 property:P19 ?s }
Jack Buck
action filter_type
action find
entity Jack Buck
relation place of birth
type administrative territorial entity
['Jack Buck', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Jack_Buck property:place_of_birth ?s }
[]
administrative territorial entity
Q1637790
SYSTEM
Holyoke
Q1637790
(Q3247471,P19,c(Q56061))
action filter_type
action find
entity Q3247471
relation P19
type Q56061
[ANSWER]
['Q3247471', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q3247471 property:P19 ?s }
Holyoke
Holyoke
action filter_type
action find
entity Jack Buck
relation place of birth
type administrative territorial entity
['Jack Buck', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Jack_Buck property:place_of_birth ?s }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1637790 Q8770863
P17
Q15617994
USER
Is Holyoke present in Dukedom of Alcalá de los Gazules ?
(Q1637790,P17,Q8770863)
action is_in
entity Q8770863
action find
entity Q1637790
relation P17
['Q1637790', 'P17', 'Q8770863']
ASK WHERE { resource:Q1637790 property:P17 resource:Q8770863 }
Holyoke Dukedom of Alcalá de los Gazules
action is_in
entity Dukedom of Alcalá de los Gazules
action find
entity Holyoke
relation country
['Holyoke', 'country', 'Dukedom of Alcalá de los Gazules']
ASK WHERE { resource:Holyoke property:country resource:Dukedom_of_Alcalá_de_los_Gazules }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1637790,P17,Q8770863)
action is_in
entity Q8770863
action find
entity Q1637790
relation P17
[ANSWER]
['Q1637790', 'P17', 'Q8770863']
ASK WHERE { resource:Q1637790 property:P17 resource:Q8770863 }
No
action is_in
entity Dukedom of Alcalá de los Gazules
action find
entity Holyoke
relation country
['Holyoke', 'country', 'Dukedom of Alcalá de los Gazules']
ASK WHERE { resource:Holyoke property:country resource:Dukedom_of_Alcalá_de_los_Gazules }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q159457
P190
Q56061
USER
How many administrative territories are the sister cities of Faro ?
(Q159457,P190,c(Q56061))
action count
action filter_type
action find
entity Q159457
relation P190
type Q56061
['Q159457', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q159457 property:P190 ?g . ?g rdf:type ontology:Q56061 }
Faro
action count
action filter_type
action find
entity Faro
relation sister city
type administrative territorial entity
['Faro', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Faro property:sister_city ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
5
Q681802 Q12246 Q8851 Q126148 Q4190
(Q159457,P190,c(Q56061))
action count
action filter_type
action find
entity Q159457
relation P190
type Q56061
[ANSWER]
['Q159457', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q159457 property:P190 ?g . ?g rdf:type ontology:Q56061 }
Bolama Huelva Málaga Tangier Passau
5
action count
action filter_type
action find
entity Faro
relation sister city
type administrative territorial entity
['Faro', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Faro property:sister_city ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q159457
P1376
Q2221906
USER
Which geographic location has that administrative territory has its first city ?
action filter_type
action find
entity Q159457
relation P1376
type Q2221906
SELECT DISTINCT ?g WHERE { resource:Q159457 property:P1376 ?g . ?g rdf:type ontology:Q2221906 }
Faro
action filter_type
action find
entity Faro
relation capital of
type geographic location
SELECT DISTINCT ?g WHERE { resource:Faro property:capital_of ?g . ?g rdf:type ontology:geographic_location }
[]
geographic location
Q26831
SYSTEM
Algarve
Q26831
action filter_type
action find
entity Q159457
relation P1376
type Q2221906
The [ANSWER] has that administrative territory has its first city
SELECT DISTINCT ?g WHERE { resource:Q159457 property:P1376 ?g . ?g rdf:type ontology:Q2221906 }
Algarve
The Algarve has that administrative territory has its first city
Algarve
action filter_type
action find
entity Faro
relation capital of
type geographic location
SELECT DISTINCT ?g WHERE { resource:Faro property:capital_of ?g . ?g rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26831
P36
Q56061
USER
What is the capital of that geographic location ?
(Q26831,P36,c(Q56061))
action filter_type
action find
entity Q26831
relation P36
type Q56061
['Q26831', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q26831 property:P36 ?f }
Algarve
action filter_type
action find
entity Algarve
relation capital
type administrative territorial entity
['Algarve', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Algarve property:capital ?f }
[]
administrative territorial entity
Q159457
SYSTEM
Faro
Q159457
(Q26831,P36,c(Q56061))
action filter_type
action find
entity Q26831
relation P36
type Q56061
The capital of that geographic location is [ANSWER]
['Q26831', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q26831 property:P36 ?f }
Faro
The capital of that geographic location is Faro
Faro
action filter_type
action find
entity Algarve
relation capital
type administrative territorial entity
['Algarve', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Algarve property:capital ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q159457 Q3751 Q2337
P190
Q515
USER
Is Faro sister town of Praia and Smolensk ?
(Q159457,P190,Q3751) (Q159457,P190,Q2337)
action is_in
entity Q159457
action intersection
action find_reverse
entity Q3751
relation P190
action find_reverse
entity Q2337
relation P190
['Q159457', 'P190', 'Q3751'] ['Q159457', 'P190', 'Q2337']
ASK WHERE { resource:Q159457 property:P190 resource:Q3751 . resource:Q159457 property:P190 resource:Q2337 }
Faro Praia Smolensk
action is_in
entity Faro
action intersection
action find_reverse
entity Praia
relation sister city
action find_reverse
entity Smolensk
relation sister city
['Faro', 'sister city', 'Praia'] ['Faro', 'sister city', 'Smolensk']
ASK WHERE { resource:Faro property:sister_city resource:Praia . resource:Faro property:sister_city resource:Smolensk }
[]
city
SYSTEM
YES and NO respectively
(Q159457,P190,Q3751) (Q159457,P190,Q2337)
action is_in
entity Q159457
action intersection
action find_reverse
entity Q3751
relation P190
action find_reverse
entity Q2337
relation P190
[ANSWER]
['Q159457', 'P190', 'Q3751'] ['Q159457', 'P190', 'Q2337']
ASK WHERE { resource:Q159457 property:P190 resource:Q3751 . resource:Q159457 property:P190 resource:Q2337 }
YES and NO respectively
action is_in
entity Faro
action intersection
action find_reverse
entity Praia
relation sister city
action find_reverse
entity Smolensk
relation sister city
['Faro', 'sister city', 'Praia'] ['Faro', 'sister city', 'Smolensk']
ASK WHERE { resource:Faro property:sister_city resource:Praia . resource:Faro property:sister_city resource:Smolensk }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3181373 Q3247471
P22
Q502895
USER
Which people have Jack Buck or John Douglas as father ?
OR((c(Q502895),P22,Q3247471), (c(Q502895),P22,Q3181373))
action filter_type
action union
action find_reverse
entity Q3247471
relation P22
action find_reverse
entity Q3181373
relation P22
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q3247471'], [{'concept': 'Q502895'}, 'P22', 'Q3181373']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?r ) { ( resource:Q3181373 ) ( resource:Q3247471 ) } . ?t property:P22 ?r } . ?t rdf:type ontology:Q502895 }
John Douglas Jack Buck
action filter_type
action union
action find_reverse
entity Jack Buck
relation father
action find_reverse
entity John Douglas
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Jack Buck'], [{'concept': 'common name'}, 'father', 'John Douglas']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?r ) { ( resource:John_Douglas ) ( resource:Jack_Buck ) } . ?t property:father ?r } . ?t rdf:type ontology:common_name }
[]
common name
Q3247194 Q24087724 Q24044933
SYSTEM
Joe Buck, Edward Archibald Douglas, Robert Johnstone Douglas
Q3247194 Q24087724 Q24044933
OR((c(Q502895),P22,Q3247471), (c(Q502895),P22,Q3181373))
action filter_type
action union
action find_reverse
entity Q3247471
relation P22
action find_reverse
entity Q3181373
relation P22
type Q502895
[ANSWERS] have Jack Buck or John Douglas as father
{'OR': [[{'concept': 'Q502895'}, 'P22', 'Q3247471'], [{'concept': 'Q502895'}, 'P22', 'Q3181373']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?r ) { ( resource:Q3181373 ) ( resource:Q3247471 ) } . ?t property:P22 ?r } . ?t rdf:type ontology:Q502895 }
Joe Buck Edward Archibald Douglas Robert Johnstone Douglas
Joe Buck, Edward Archibald Douglas and Robert Johnstone Douglas have Jack Buck or John Douglas as father
Joe Buck Edward Archibald Douglas Robert Johnstone Douglas
action filter_type
action union
action find_reverse
entity Jack Buck
relation father
action find_reverse
entity John Douglas
relation father
type common name
{'OR': [[{'concept': 'common name'}, 'father', 'Jack Buck'], [{'concept': 'common name'}, 'father', 'John Douglas']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?r ) { ( resource:John_Douglas ) ( resource:Jack_Buck ) } . ?t property:father ?r } . ?t rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q5486156 Q218
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Romania and are Frank Darling a civilian of ?
AND((Q218,P530,c(Q1048835)), (Q5486156,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q218
relation P530
action find
entity Q5486156
relation P27
type Q1048835
{'AND': [['Q218', 'P530', {'concept': 'Q1048835'}], ['Q5486156', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q218 property:P530 ?t . resource:Q5486156 property:P27 ?t }
Frank Darling Romania
action filter_type
action intersection
action find
entity Romania
relation diplomatic relation
action find
entity Frank Darling
relation country of citizenship
type political territorial entity
{'AND': [['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Frank Darling', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Romania property:diplomatic_relation ?t . resource:Frank_Darling property:country_of_citizenship ?t }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
AND((Q218,P530,c(Q1048835)), (Q5486156,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q218
relation P530
action find
entity Q5486156
relation P27
type Q1048835
[ANSWER] have diplomatic relationships with Romania and are Frank Darling a civilian of
{'AND': [['Q218', 'P530', {'concept': 'Q1048835'}], ['Q5486156', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . resource:Q218 property:P530 ?t . resource:Q5486156 property:P27 ?t }
Canada
Canada have diplomatic relationships with Romania and are Frank Darling a civilian of
Canada
action filter_type
action intersection
action find
entity Romania
relation diplomatic relation
action find
entity Frank Darling
relation country of citizenship
type political territorial entity
{'AND': [['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Frank Darling', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Romania property:diplomatic_relation ?t . resource:Frank_Darling property:country_of_citizenship ?t }
[]