Simple Question (Direct)
Simple Question
Q6270908
P19
Q5119
USER
Which capital was Jon Hinck born in ?
(Q6270908,P19,c(Q5119))
action filter_type
action find
entity Q6270908
relation P19
type Q5119
['Q6270908', 'P19', {'concept': 'Q5119'}]
SELECT DISTINCT ?z WHERE { resource:Q6270908 property:P19 ?z . ?z rdf:type ontology:Q5119 }
Jon Hinck
action filter_type
action find
entity Jon Hinck
relation place of birth
type capital
['Jon Hinck', 'place of birth', {'concept': 'capital'}]
SELECT DISTINCT ?z WHERE { resource:Jon_Hinck property:place_of_birth ?z . ?z rdf:type ontology:capital }
[]
capital
Q18013
SYSTEM
Sacramento
Q18013
(Q6270908,P19,c(Q5119))
action filter_type
action find
entity Q6270908
relation P19
type Q5119
Jon Hinck was born in [ANSWER]
['Q6270908', 'P19', {'concept': 'Q5119'}]
SELECT DISTINCT ?z WHERE { resource:Q6270908 property:P19 ?z . ?z rdf:type ontology:Q5119 }
Sacramento
Jon Hinck was born in Sacramento
Sacramento
action filter_type
action find
entity Jon Hinck
relation place of birth
type capital
['Jon Hinck', 'place of birth', {'concept': 'capital'}]
SELECT DISTINCT ?z WHERE { resource:Jon_Hinck property:place_of_birth ?z . ?z rdf:type ontology:capital }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6270908
P69
Q163740
USER
Which nonprofit organization was that person educated at ?
(Q18013,P69,c(Q163740))
action filter_type
action find
entity Q6270908
relation P69
type Q163740
['Q18013', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { resource:Q6270908 property:P69 ?r . ?r rdf:type ontology:Q163740 }
Jon Hinck
action filter_type
action find
entity Jon Hinck
relation educated at
type nonprofit organization
['Sacramento', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { resource:Jon_Hinck property:educated_at ?r . ?r rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49117
SYSTEM
University of Pennsylvania
Q49117
(Q18013,P69,c(Q163740))
action filter_type
action find
entity Q6270908
relation P69
type Q163740
That person was educated by [ANSWER]
['Q18013', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { resource:Q6270908 property:P69 ?r . ?r rdf:type ontology:Q163740 }
University of Pennsylvania
That person was educated by University of Pennsylvania
University of Pennsylvania
action filter_type
action find
entity Jon Hinck
relation educated at
type nonprofit organization
['Sacramento', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { resource:Jon_Hinck property:educated_at ?r . ?r rdf:type ontology:nonprofit_organization }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1240210 Q18013
P27 P17
Q15617994
USER
Which administrative territories are Sacramento located in and are Donald P. Hansen a civilian of ?
AND((Q18013,P17,c(Q15617994)), (Q1240210,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q18013
relation P17
action find
entity Q1240210
relation P27
type Q15617994
{'AND': [['Q18013', 'P17', {'concept': 'Q15617994'}], ['Q1240210', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q1240210 property:P27 ?v . resource:Q18013 property:P17 ?v }
Donald P. Hansen Sacramento
action filter_type
action intersection
action find
entity Sacramento
relation country
action find
entity Donald P. Hansen
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Sacramento', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Donald P. Hansen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Donald_P._Hansen property:country_of_citizenship ?v . resource:Sacramento property:country ?v }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q18013,P17,c(Q15617994)), (Q1240210,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q18013
relation P17
action find
entity Q1240210
relation P27
type Q15617994
Sacramento are located in [ANSWER] and are Donald P.
{'AND': [['Q18013', 'P17', {'concept': 'Q15617994'}], ['Q1240210', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q1240210 property:P27 ?v . resource:Q18013 property:P17 ?v }
United States of America
Sacramento are located in United States of America and are Donald P.
United States of America
action filter_type
action intersection
action find
entity Sacramento
relation country
action find
entity Donald P. Hansen
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Sacramento', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Donald P. Hansen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Donald_P._Hansen property:country_of_citizenship ?v . resource:Sacramento property:country ?v }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q3874308
P27
Q502895
USER
Is Neil McCafferty a civilian of that administrative territory ?
(Q3874308,P27,Q30)
action is_in
entity Q3874308
action find
entity Q30
relation P27
['Q3874308', 'P27', 'Q30']
ASK WHERE { resource:Q30 property:P27 resource:Q3874308 }
United States of America Neil McCafferty
action is_in
entity Neil McCafferty
action find
entity United States of America
relation country of citizenship
['Neil McCafferty', 'country of citizenship', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_citizenship resource:Neil_McCafferty }
[]
common name
SYSTEM
NO
(Q3874308,P27,Q30)
action is_in
entity Q3874308
action find
entity Q30
relation P27
[ANSWER]
['Q3874308', 'P27', 'Q30']
ASK WHERE { resource:Q30 property:P27 resource:Q3874308 }
No
action is_in
entity Neil McCafferty
action find
entity United States of America
relation country of citizenship
['Neil McCafferty', 'country of citizenship', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_citizenship resource:Neil_McCafferty }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q49117
P740
Q336
USER
What was formed at University of Pennsylvania ?
(c(Q336),P740,Q49117)
action filter_type
action find_reverse
entity Q49117
relation P740
type Q336
[{'concept': 'Q336'}, 'P740', 'Q49117']
SELECT DISTINCT ?r WHERE { ?r property:P740 resource:Q49117 . ?r rdf:type ontology:Q336 }
University of Pennsylvania
action filter_type
action find_reverse
entity University of Pennsylvania
relation location of formation
type science
[{'concept': 'science'}, 'location of formation', 'University of Pennsylvania']
SELECT DISTINCT ?r WHERE { ?r property:location_of_formation resource:University_of_Pennsylvania . ?r rdf:type ontology:science }
[]
science
Q199906
SYSTEM
clinical psychology
Q199906
(c(Q336),P740,Q49117)
action filter_type
action find_reverse
entity Q49117
relation P740
type Q336
The [ANSWER] was formed at University of Pennsylvania
[{'concept': 'Q336'}, 'P740', 'Q49117']
SELECT DISTINCT ?r WHERE { ?r property:P740 resource:Q49117 . ?r rdf:type ontology:Q336 }
clinical psychology
The clinical psychology was formed at University of Pennsylvania
clinical psychology
action filter_type
action find_reverse
entity University of Pennsylvania
relation location of formation
type science
[{'concept': 'science'}, 'location of formation', 'University of Pennsylvania']
SELECT DISTINCT ?r WHERE { ?r property:location_of_formation resource:University_of_Pennsylvania . ?r rdf:type ontology:science }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18013
P6
Q502895
USER
Which person is the head of government of Sacramento ?
(Q18013,P6,c(Q502895))
action filter_type
action find
entity Q18013
relation P6
type Q502895
['Q18013', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q18013 property:P6 ?t }
Sacramento
action filter_type
action find
entity Sacramento
relation head of government
type common name
['Sacramento', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Sacramento property:head_of_government ?t }
[]
common name
Q203286
SYSTEM
Kevin Johnson
Q203286
(Q18013,P6,c(Q502895))
action filter_type
action find
entity Q18013
relation P6
type Q502895
[ANSWER] is the head of government of Sacramento
['Q18013', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q18013 property:P6 ?t }
Kevin Johnson
Kevin Johnson is the head of government of Sacramento
Kevin Johnson
action filter_type
action find
entity Sacramento
relation head of government
type common name
['Sacramento', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Sacramento property:head_of_government ?t }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q732907
Q502895
USER
And also tell me about Morella?
(Q732907,P6,c(Q502895))
action filter_type
action find
entity Q732907
relation P6
type Q502895
['Q732907', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q732907 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Morella
action filter_type
action find
entity Morella
relation head of government
type common name
['Morella', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Morella property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q14064893
SYSTEM
Rhamses Ripolles Puig
Q14064893
(Q732907,P6,c(Q502895))
action filter_type
action find
entity Q732907
relation P6
type Q502895
[ANSWER]
['Q732907', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q732907 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Rhamses Ripolles Puig
Rhamses Ripolles Puig
action filter_type
action find
entity Morella
relation head of government
type common name
['Morella', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Morella property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q14064893 Q29
P27
Q15617994
USER
Is that person an inhabitant of Spain ?
(Q14064893,P27,Q29)
action is_in
entity Q29
action find
entity Q14064893
relation P27
['Q14064893', 'P27', 'Q29']
ASK WHERE { resource:Q14064893 property:P27 resource:Q29 }
Rhamses Ripolles Puig Spain
action is_in
entity Spain
action find
entity Rhamses Ripolles Puig
relation country of citizenship
['Rhamses Ripolles Puig', 'country of citizenship', 'Spain']
ASK WHERE { resource:Rhamses_Ripolles_Puig property:country_of_citizenship resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q14064893,P27,Q29)
action is_in
entity Q29
action find
entity Q14064893
relation P27
[ANSWER]
['Q14064893', 'P27', 'Q29']
ASK WHERE { resource:Q14064893 property:P27 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Rhamses Ripolles Puig
relation country of citizenship
['Rhamses Ripolles Puig', 'country of citizenship', 'Spain']
ASK WHERE { resource:Rhamses_Ripolles_Puig property:country_of_citizenship resource:Spain }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3557406 Q30
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with United States of America or are Victor Lapitski an inhabitant of ?
OR((Q30,P530,c(Q15617994)), (Q3557406,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q3557406
relation P27
type Q15617994
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q3557406', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q30 property:P530 ?o } UNION { resource:Q3557406 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Victor Lapitski United States of America
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Victor Lapitski
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Victor Lapitski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:United_States_of_America property:diplomatic_relation ?o } UNION { resource:Victor_Lapitski property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q805 Q38 Q159 Q155 Q414 Q17 Q37 Q801 Q889 Q403
SYSTEM
Some of them are Yemen, Italy, Russia, Brazil, Argentina, Japan, Lithuania, Israel, Afghanistan, Serbia
Q805 Q38 Q159 Q222 Q801 Q155 Q148 Q1011 Q889 Q796 Q17 Q37 Q953 Q668 Q403 Q347 Q414
OR((Q30,P530,c(Q15617994)), (Q3557406,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q3557406
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with United States of America or are Victor Lapitski an inhabitant of
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q3557406', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q30 property:P530 ?o } UNION { resource:Q3557406 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Yemen Italy Russia Albania Israel Brazil People's Republic of China Cape Verde Afghanistan Iraq Japan Lithuania Zambia India Serbia Liechtenstein Argentina
Yemen, Italy, Russia, Brazil, Argentina, Japan, Lithuania, Israel, Afghanistan and Serbia have a diplomatic relationship with United States of America or are Victor Lapitski an inhabitant of
Yemen Italy Russia Brazil Argentina Japan Lithuania Israel Afghanistan Serbia
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Victor Lapitski
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Victor Lapitski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:United_States_of_America property:diplomatic_relation ?o } UNION { resource:Victor_Lapitski property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q30
P530
Q15617994
USER
Do United States of America have tactful political relations with those ones ?
(Q30,P530,Q805) (Q30,P530,Q38) (Q30,P530,Q159) (Q30,P530,Q155) (Q30,P530,Q414) (Q30,P530,Q17) (Q30,P530,Q37) (Q30,P530,Q801) (Q30,P530,Q889) (Q30,P530,Q403)
action is_in
entity prev_answer
action find
entity Q30
relation P530
['Q30', 'P530', 'Q805'] ['Q30', 'P530', 'Q38'] ['Q30', 'P530', 'Q159'] ['Q30', 'P530', 'Q155'] ['Q30', 'P530', 'Q414'] ['Q30', 'P530', 'Q17'] ['Q30', 'P530', 'Q37'] ['Q30', 'P530', 'Q801'] ['Q30', 'P530', 'Q889'] ['Q30', 'P530', 'Q403']
ASK WHERE { resource:Q30 property:P530 ?m . VALUES ( ?m ) { ( resource:Q805 ) ( resource:Q38 ) ( resource:Q159 ) } }
United States of America
action is_in
entity prev_answer
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Yemen'] ['United States of America', 'diplomatic relation', 'Italy'] ['United States of America', 'diplomatic relation', 'Russia'] ['United States of America', 'diplomatic relation', 'Brazil'] ['United States of America', 'diplomatic relation', 'Argentina'] ['United States of America', 'diplomatic relation', 'Japan'] ['United States of America', 'diplomatic relation', 'Lithuania'] ['United States of America', 'diplomatic relation', 'Israel'] ['United States of America', 'diplomatic relation', 'Afghanistan'] ['United States of America', 'diplomatic relation', 'Serbia']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation ?m . VALUES ( ?m ) { ( resource:Yemen ) ( resource:Italy ) ( resource:Russia ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q805) (Q30,P530,Q38) (Q30,P530,Q159) (Q30,P530,Q155) (Q30,P530,Q414) (Q30,P530,Q17) (Q30,P530,Q37) (Q30,P530,Q801) (Q30,P530,Q889) (Q30,P530,Q403)
action is_in
entity prev_answer
action find
entity Q30
relation P530
[ANSWER]
['Q30', 'P530', 'Q805'] ['Q30', 'P530', 'Q38'] ['Q30', 'P530', 'Q159'] ['Q30', 'P530', 'Q155'] ['Q30', 'P530', 'Q414'] ['Q30', 'P530', 'Q17'] ['Q30', 'P530', 'Q37'] ['Q30', 'P530', 'Q801'] ['Q30', 'P530', 'Q889'] ['Q30', 'P530', 'Q403']
ASK WHERE { resource:Q30 property:P530 ?m . VALUES ( ?m ) { ( resource:Q805 ) ( resource:Q38 ) ( resource:Q159 ) } }
Yes
action is_in
entity prev_answer
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Yemen'] ['United States of America', 'diplomatic relation', 'Italy'] ['United States of America', 'diplomatic relation', 'Russia'] ['United States of America', 'diplomatic relation', 'Brazil'] ['United States of America', 'diplomatic relation', 'Argentina'] ['United States of America', 'diplomatic relation', 'Japan'] ['United States of America', 'diplomatic relation', 'Lithuania'] ['United States of America', 'diplomatic relation', 'Israel'] ['United States of America', 'diplomatic relation', 'Afghanistan'] ['United States of America', 'diplomatic relation', 'Serbia']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation ?m . VALUES ( ?m ) { ( resource:Yemen ) ( resource:Italy ) ( resource:Russia ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q801 Q159
P530
Q15617994
USER
Does Russia have diplomatic relationships with Israel ?
(Q801,P530,Q159)
action is_in
entity Q159
action find
entity Q801
relation P530
['Q801', 'P530', 'Q159']
ASK WHERE { resource:Q801 property:P530 resource:Q159 }
Israel Russia
action is_in
entity Russia
action find
entity Israel
relation diplomatic relation
['Israel', 'diplomatic relation', 'Russia']
ASK WHERE { resource:Israel property:diplomatic_relation resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q801,P530,Q159)
action is_in
entity Q159
action find
entity Q801
relation P530
[ANSWER]
['Q801', 'P530', 'Q159']
ASK WHERE { resource:Q801 property:P530 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Israel
relation diplomatic relation
['Israel', 'diplomatic relation', 'Russia']
ASK WHERE { resource:Israel property:diplomatic_relation resource:Russia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q37 Q145 Q540583
P530
Q15617994
USER
Is Lithuania known to have diplomatic connections with United Kingdom and Neenstetten ?
(Q37,P530,Q145) (Q37,P530,Q540583)
action is_in
entity Q37
action intersection
action find_reverse
entity Q145
relation P530
action find_reverse
entity Q540583
relation P530
['Q37', 'P530', 'Q145'] ['Q37', 'P530', 'Q540583']
ASK WHERE { resource:Q37 property:P530 resource:Q145 . resource:Q37 property:P530 resource:Q540583 }
Lithuania United Kingdom Neenstetten
action is_in
entity Lithuania
action intersection
action find_reverse
entity United Kingdom
relation diplomatic relation
action find_reverse
entity Neenstetten
relation diplomatic relation
['Lithuania', 'diplomatic relation', 'United Kingdom'] ['Lithuania', 'diplomatic relation', 'Neenstetten']
ASK WHERE { resource:Lithuania property:diplomatic_relation resource:United_Kingdom . resource:Lithuania property:diplomatic_relation resource:Neenstetten }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q37,P530,Q145) (Q37,P530,Q540583)
action is_in
entity Q37
action intersection
action find_reverse
entity Q145
relation P530
action find_reverse
entity Q540583
relation P530
[ANSWER]
['Q37', 'P530', 'Q145'] ['Q37', 'P530', 'Q540583']
ASK WHERE { resource:Q37 property:P530 resource:Q145 . resource:Q37 property:P530 resource:Q540583 }
YES and NO respectively
action is_in
entity Lithuania
action intersection
action find_reverse
entity United Kingdom
relation diplomatic relation
action find_reverse
entity Neenstetten
relation diplomatic relation
['Lithuania', 'diplomatic relation', 'United Kingdom'] ['Lithuania', 'diplomatic relation', 'Neenstetten']
ASK WHERE { resource:Lithuania property:diplomatic_relation resource:United_Kingdom . resource:Lithuania property:diplomatic_relation resource:Neenstetten }
[]