Simple Question (Direct)
Simple Question
Q515955
P21
Q290
USER
What is the sex of Jessica Harrison ?
(Q515955,P21,c(Q290))
action filter_type
action find
entity Q515955
relation P21
type Q290
['Q515955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q515955 property:P21 ?x . ?x rdf:type ontology:Q290 }
Jessica Harrison
action filter_type
action find
entity Jessica Harrison
relation gender
type sex
['Jessica Harrison', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Jessica_Harrison property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q515955,P21,c(Q290))
action filter_type
action find
entity Q515955
relation P21
type Q290
The sex of Jessica Harrison is the [ANSWER]
['Q515955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q515955 property:P21 ?x . ?x rdf:type ontology:Q290 }
female
The sex of Jessica Harrison is the female
female
action filter_type
action find
entity Jessica Harrison
relation gender
type sex
['Jessica Harrison', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Jessica_Harrison property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q515955
P641
Q31629
USER
Which type of sport did that person participate in ?
(Q6581072,P641,c(Q31629))
action filter_type
action find
entity Q515955
relation P641
type Q31629
['Q6581072', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { resource:Q515955 property:P641 ?a . ?a rdf:type ontology:Q31629 }
Jessica Harrison
action filter_type
action find
entity Jessica Harrison
relation sport
type type of sport
['female', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { resource:Jessica_Harrison property:sport ?a . ?a rdf:type ontology:type_of_sport }
[]
type of sport
Q10980
SYSTEM
triathlon
Q10980
(Q6581072,P641,c(Q31629))
action filter_type
action find
entity Q515955
relation P641
type Q31629
That person participated in [ANSWER]
['Q6581072', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { resource:Q515955 property:P641 ?a . ?a rdf:type ontology:Q31629 }
triathlon
That person participated in triathlon
triathlon
action filter_type
action find
entity Jessica Harrison
relation sport
type type of sport
['female', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { resource:Jessica_Harrison property:sport ?a . ?a rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q515955
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q10980,P27,c(Q15617994))
action filter_type
action find
entity Q515955
relation P27
type Q15617994
['Q10980', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q515955 property:P27 ?n }
Jessica Harrison
action filter_type
action find
entity Jessica Harrison
relation country of citizenship
type designation for an administrative territorial entity
['triathlon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jessica_Harrison property:country_of_citizenship ?n }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q10980,P27,c(Q15617994))
action filter_type
action find
entity Q515955
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q10980', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q515955 property:P27 ?n }
France
The France is the native country of that person
France
action filter_type
action find
entity Jessica Harrison
relation country of citizenship
type designation for an administrative territorial entity
['triathlon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jessica_Harrison property:country_of_citizenship ?n }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q142 Q155 Q94976
P530
Q15617994
USER
Is that administrative territory known to have diplomatic connections with Brazil and Serravalle di Chienti ?
(Q142,P530,Q155) (Q142,P530,Q94976)
action is_in
entity Q142
action intersection
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q94976
relation P530
['Q142', 'P530', 'Q155'] ['Q142', 'P530', 'Q94976']
ASK WHERE { resource:Q142 property:P530 resource:Q155 . resource:Q142 property:P530 resource:Q94976 }
France Brazil Serravalle di Chienti
action is_in
entity France
action intersection
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Serravalle di Chienti
relation diplomatic relation
['France', 'diplomatic relation', 'Brazil'] ['France', 'diplomatic relation', 'Serravalle di Chienti']
ASK WHERE { resource:France property:diplomatic_relation resource:Brazil . resource:France property:diplomatic_relation resource:Serravalle_di_Chienti }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q142,P530,Q155) (Q142,P530,Q94976)
action is_in
entity Q142
action intersection
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q94976
relation P530
[ANSWER]
['Q142', 'P530', 'Q155'] ['Q142', 'P530', 'Q94976']
ASK WHERE { resource:Q142 property:P530 resource:Q155 . resource:Q142 property:P530 resource:Q94976 }
YES and NO respectively
action is_in
entity France
action intersection
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Serravalle di Chienti
relation diplomatic relation
['France', 'diplomatic relation', 'Brazil'] ['France', 'diplomatic relation', 'Serravalle di Chienti']
ASK WHERE { resource:France property:diplomatic_relation resource:Brazil . resource:France property:diplomatic_relation resource:Serravalle_di_Chienti }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q515955
P19
Q56061
USER
Where was Jessica Harrison born ?
(Q515955,P19,c(Q56061))
action filter_type
action find
entity Q515955
relation P19
type Q56061
['Q515955', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q515955 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Jessica Harrison
action filter_type
action find
entity Jessica Harrison
relation place of birth
type administrative territorial entity
['Jessica Harrison', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Jessica_Harrison property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q42448
SYSTEM
Sheffield
Q42448
(Q515955,P19,c(Q56061))
action filter_type
action find
entity Q515955
relation P19
type Q56061
Jessica Harrison was born in [ANSWER]
['Q515955', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q515955 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Sheffield
Jessica Harrison was born in Sheffield
Sheffield
action filter_type
action find
entity Jessica Harrison
relation place of birth
type administrative territorial entity
['Jessica Harrison', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Jessica_Harrison property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1179023
Q56061
USER
And what about Gordon Hill?
(Q1179023,P19,c(Q56061))
action filter_type
action find
entity Q1179023
relation P19
type Q56061
['Q1179023', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q1179023 property:P19 ?n }
Gordon Hill
action filter_type
action find
entity Gordon Hill
relation place of birth
type administrative territorial entity
['Gordon Hill', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Gordon_Hill property:place_of_birth ?n }
[]
administrative territorial entity
Q2194010
SYSTEM
Sunbury-on-Thames
Q2194010
(Q1179023,P19,c(Q56061))
action filter_type
action find
entity Q1179023
relation P19
type Q56061
[ANSWER]
['Q1179023', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q1179023 property:P19 ?n }
Sunbury-on-Thames
Sunbury-on-Thames
action filter_type
action find
entity Gordon Hill
relation place of birth
type administrative territorial entity
['Gordon Hill', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Gordon_Hill property:place_of_birth ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q42448
P190
Q56061 Q515
USER
How many administrative territories or cities are twin towns of Sheffield ?
(Q42448,P190,c(Q56061)) (Q42448,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q42448
relation P190
type Q56061
action filter_type
action find
entity Q42448
relation P190
type Q515
['Q42448', 'P190', {'concept': 'Q56061'}] ['Q42448', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { ?o rdf:type ontology:Q56061 . resource:Q42448 property:P190 ?o } UNION { resource:Q42448 property:P190 ?o . ?o rdf:type ontology:Q515 } }
Sheffield
action count
action union
action filter_type
action find
entity Sheffield
relation sister city
type administrative territorial entity
action filter_type
action find
entity Sheffield
relation sister city
type city
['Sheffield', 'sister city', {'concept': 'administrative territorial entity'}] ['Sheffield', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { ?o rdf:type ontology:administrative_territorial_entity . resource:Sheffield property:sister_city ?o } UNION { resource:Sheffield property:sister_city ?o . ?o rdf:type ontology:city } }
[]
administrative territorial entity city
SYSTEM
6
Q239580 Q74957 Q2103 Q43070 Q2586558 Q1007634
(Q42448,P190,c(Q56061)) (Q42448,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q42448
relation P190
type Q56061
action filter_type
action find
entity Q42448
relation P190
type Q515
[ANSWER]
['Q42448', 'P190', {'concept': 'Q56061'}] ['Q42448', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { ?o rdf:type ontology:Q56061 . resource:Q42448 property:P190 ?o } UNION { resource:Q42448 property:P190 ?o . ?o rdf:type ontology:Q515 } }
Kitwe Anshan Bochum Donetsk Kotli Estelí
6
action count
action union
action filter_type
action find
entity Sheffield
relation sister city
type administrative territorial entity
action filter_type
action find
entity Sheffield
relation sister city
type city
['Sheffield', 'sister city', {'concept': 'administrative territorial entity'}] ['Sheffield', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { ?o rdf:type ontology:administrative_territorial_entity . resource:Sheffield property:sister_city ?o } UNION { resource:Sheffield property:sister_city ?o . ?o rdf:type ontology:city } }
[]