Simple Question (Direct)
Simple Question
Q5239342
P241
Q781132
USER
Which military branch contains David S. Bill III as its part ?
(Q5239342,P241,c(Q781132))
action filter_type
action find
entity Q5239342
relation P241
type Q781132
['Q5239342', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?k WHERE { resource:Q5239342 property:P241 ?k . ?k rdf:type ontology:Q781132 }
David S. Bill III
action filter_type
action find
entity David S. Bill III
relation military branch
type military branch
['David S. Bill III', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?k WHERE { resource:David_S._Bill_III property:military_branch ?k . ?k rdf:type ontology:military_branch }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
(Q5239342,P241,c(Q781132))
action filter_type
action find
entity Q5239342
relation P241
type Q781132
U [ANSWER] contains David S. Bill III as its part
['Q5239342', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?k WHERE { resource:Q5239342 property:P241 ?k . ?k rdf:type ontology:Q781132 }
United States Navy
U United States Navy contains David S. Bill III as its part
United States Navy
action filter_type
action find
entity David S. Bill III
relation military branch
type military branch
['David S. Bill III', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?k WHERE { resource:David_S._Bill_III property:military_branch ?k . ?k rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5239342
P166
Q618779
USER
What were awarded to that person ?
(Q11220,P166,c(Q618779))
action filter_type
action find
entity Q5239342
relation P166
type Q618779
['Q11220', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q618779 . resource:Q5239342 property:P166 ?l }
David S. Bill III
action filter_type
action find
entity David S. Bill III
relation award received
type award
['United States Navy', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:award . resource:David_S._Bill_III property:award_received ?l }
[]
award
Q145752 Q724443 Q928314
SYSTEM
Purple Heart, Legion of Merit, Bronze Star Medal
Q145752 Q724443 Q928314
(Q11220,P166,c(Q618779))
action filter_type
action find
entity Q5239342
relation P166
type Q618779
Who [ANSWERS] were awarded to that person
['Q11220', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q618779 . resource:Q5239342 property:P166 ?l }
Purple Heart Legion of Merit Bronze Star Medal
Who Purple Heart, Legion of Merit and Bronze Star Medal were awarded to that person
Purple Heart Legion of Merit Bronze Star Medal
action filter_type
action find
entity David S. Bill III
relation award received
type award
['United States Navy', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:award . resource:David_S._Bill_III property:award_received ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5239342
P166
Q1788716 Q618779
USER
How many military decorations and awards were awarded to David S. Bill III ?
(Q5239342,P166,c(Q1788716)) (Q5239342,P166,c(Q618779))
action count
action union
action filter_type
action find
entity Q5239342
relation P166
type Q1788716
action filter_type
action find
entity Q5239342
relation P166
type Q618779
['Q5239342', 'P166', {'concept': 'Q1788716'}] ['Q5239342', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1788716 ) ( ontology:Q618779 ) } }
David S. Bill III
action count
action union
action filter_type
action find
entity David S. Bill III
relation award received
type military decoration
action filter_type
action find
entity David S. Bill III
relation award received
type award
['David S. Bill III', 'award received', {'concept': 'military decoration'}] ['David S. Bill III', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:military_decoration ) ( ontology:award ) } }
[]
military decoration award
SYSTEM
1 military decorations and 3 awards
Q145752 Q17231624 Q724443 Q928314
(Q5239342,P166,c(Q1788716)) (Q5239342,P166,c(Q618779))
action count
action union
action filter_type
action find
entity Q5239342
relation P166
type Q1788716
action filter_type
action find
entity Q5239342
relation P166
type Q618779
[ANSWER]
['Q5239342', 'P166', {'concept': 'Q1788716'}] ['Q5239342', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1788716 ) ( ontology:Q618779 ) } }
Purple Heart legionnaire of Legion of Merit Legion of Merit Bronze Star Medal
1 military decorations and 3 awards
action count
action union
action filter_type
action find
entity David S. Bill III
relation award received
type military decoration
action filter_type
action find
entity David S. Bill III
relation award received
type award
['David S. Bill III', 'award received', {'concept': 'military decoration'}] ['David S. Bill III', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { ?d rdf:type ?y . VALUES ( ?y ) { ( ontology:military_decoration ) ( ontology:award ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11220
P361
Q895526
USER
Which authority organ is a portion of United States Navy ?
(c(Q895526),P361,Q11220)
action filter_type
action find_reverse
entity Q11220
relation P361
type Q895526
[{'concept': 'Q895526'}, 'P361', 'Q11220']
SELECT DISTINCT ?f WHERE { ?f property:P361 resource:Q11220 . ?f rdf:type ontology:Q895526 }
United States Navy
action filter_type
action find_reverse
entity United States Navy
relation part of
type authority organ
[{'concept': 'authority organ'}, 'part of', 'United States Navy']
SELECT DISTINCT ?f WHERE { ?f property:part_of resource:United_States_Navy . ?f rdf:type ontology:authority_organ }
[]
authority organ
Q1010549
SYSTEM
Bureau of Ships
Q1010549
(c(Q895526),P361,Q11220)
action filter_type
action find_reverse
entity Q11220
relation P361
type Q895526
Army [ANSWER] is a portion of United States Navy
[{'concept': 'Q895526'}, 'P361', 'Q11220']
SELECT DISTINCT ?f WHERE { ?f property:P361 resource:Q11220 . ?f rdf:type ontology:Q895526 }
Bureau of Ships
Army Bureau of Ships is a portion of United States Navy
Bureau of Ships
action filter_type
action find_reverse
entity United States Navy
relation part of
type authority organ
[{'concept': 'authority organ'}, 'part of', 'United States Navy']
SELECT DISTINCT ?f WHERE { ?f property:part_of resource:United_States_Navy . ?f rdf:type ontology:authority_organ }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1010549
P17
Q15617994
USER
Which administrative territory is that authority organ present in ?
(Q1010549,P17,c(Q15617994))
action filter_type
action find
entity Q1010549
relation P17
type Q15617994
['Q1010549', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1010549 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Bureau of Ships
action filter_type
action find
entity Bureau of Ships
relation country
type designation for an administrative territorial entity
['Bureau of Ships', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Bureau_of_Ships property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1010549,P17,c(Q15617994))
action filter_type
action find
entity Q1010549
relation P17
type Q15617994
That authority organ is the [ANSWER]
['Q1010549', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1010549 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
That authority organ is the United States of America
United States of America
action filter_type
action find
entity Bureau of Ships
relation country
type designation for an administrative territorial entity
['Bureau of Ships', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Bureau_of_Ships property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2333145 Q1010549
P19 P17
Q15617994
USER
Which administrative territories are Bureau of Ships present in or are the birthplace of Francesco Ambrosi ?
OR((Q1010549,P17,c(Q15617994)), (Q2333145,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1010549
relation P17
action find
entity Q2333145
relation P19
type Q15617994
{'OR': [['Q1010549', 'P17', {'concept': 'Q15617994'}], ['Q2333145', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1010549 property:P17 ?i } UNION { resource:Q2333145 property:P19 ?i } } . ?i rdf:type ontology:Q15617994 }
Francesco Ambrosi Bureau of Ships
action filter_type
action union
action find
entity Bureau of Ships
relation country
action find
entity Francesco Ambrosi
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Bureau of Ships', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Francesco Ambrosi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Bureau_of_Ships property:country ?i } UNION { resource:Francesco_Ambrosi property:place_of_birth ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q246524 Q30
SYSTEM
Borgo Valsugana, United States of America
Q246524 Q30
OR((Q1010549,P17,c(Q15617994)), (Q2333145,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1010549
relation P17
action find
entity Q2333145
relation P19
type Q15617994
[ANSWERS] are Bureau of Ships present in or are the birthplace of Francesco Ambrosi
{'OR': [['Q1010549', 'P17', {'concept': 'Q15617994'}], ['Q2333145', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1010549 property:P17 ?i } UNION { resource:Q2333145 property:P19 ?i } } . ?i rdf:type ontology:Q15617994 }
Borgo Valsugana United States of America
Borgo Valsugana and United States of America are Bureau of Ships present in or are the birthplace of Francesco Ambrosi
Borgo Valsugana United States of America
action filter_type
action union
action find
entity Bureau of Ships
relation country
action find
entity Francesco Ambrosi
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Bureau of Ships', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Francesco Ambrosi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Bureau_of_Ships property:country ?i } UNION { resource:Francesco_Ambrosi property:place_of_birth ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q27669838
P17
Q15617994
USER
How many administrative territories are United States of America or 2012 Walikota Surabaya Cup – Women's doubles situated in ?
(Q30,P17,c(Q15617994)) (Q27669838,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q30
relation P17
type Q15617994
action filter_type
action find
entity Q27669838
relation P17
type Q15617994
['Q30', 'P17', {'concept': 'Q15617994'}] ['Q27669838', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?y ) { ( resource:Q27669838 ) ( resource:Q30 ) } . ?y property:P17 ?s }
United States of America 2012 Walikota Surabaya Cup – Women's doubles
action count
action union
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity 2012 Walikota Surabaya Cup – Women's doubles
relation country
type designation for an administrative territorial entity
['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ["2012 Walikota Surabaya Cup – Women's doubles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?y ) { ( resource:2012_Walikota_Surabaya_Cup_–_Women's_doubles ) ( resource:United_States_of_America ) } . ?y property:country ?s }
[]
designation for an administrative territorial entity
SYSTEM
2
Q30 Q252
(Q30,P17,c(Q15617994)) (Q27669838,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q30
relation P17
type Q15617994
action filter_type
action find
entity Q27669838
relation P17
type Q15617994
[ANSWER]
['Q30', 'P17', {'concept': 'Q15617994'}] ['Q27669838', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?y ) { ( resource:Q27669838 ) ( resource:Q30 ) } . ?y property:P17 ?s }
United States of America Indonesia
2
action count
action union
action filter_type
action find
entity United States of America
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity 2012 Walikota Surabaya Cup – Women's doubles
relation country
type designation for an administrative territorial entity
['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ["2012 Walikota Surabaya Cup – Women's doubles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { VALUES ( ?y ) { ( resource:2012_Walikota_Surabaya_Cup_–_Women's_doubles ) ( resource:United_States_of_America ) } . ?y property:country ?s }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9275971 Q5239342
P27
Q15617994
USER
Which administrative territories do David S. Bill III or graviola belong to ?
OR((Q5239342,P27,c(Q15617994)), (Q9275971,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5239342
relation P27
action find
entity Q9275971
relation P27
type Q15617994
{'OR': [['Q5239342', 'P27', {'concept': 'Q15617994'}], ['Q9275971', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { VALUES ( ?s ) { ( resource:Q5239342 ) ( resource:Q9275971 ) } . ?s property:P27 ?v } }
graviola David S. Bill III
action filter_type
action union
action find
entity David S. Bill III
relation country of citizenship
action find
entity graviola
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['David S. Bill III', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['graviola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?s ) { ( resource:David_S._Bill_III ) ( resource:graviola ) } . ?s property:country_of_citizenship ?v } }
[]
designation for an administrative territorial entity
Q774 Q30
SYSTEM
Guatemala, United States of America
Q774 Q30
OR((Q5239342,P27,c(Q15617994)), (Q9275971,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5239342
relation P27
action find
entity Q9275971
relation P27
type Q15617994
[ANSWERS] do David S. Bill III or graviola belong to
{'OR': [['Q5239342', 'P27', {'concept': 'Q15617994'}], ['Q9275971', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . { VALUES ( ?s ) { ( resource:Q5239342 ) ( resource:Q9275971 ) } . ?s property:P27 ?v } }
Guatemala United States of America
Guatemala and United States of America do David S. Bill III or graviola belong to
Guatemala United States of America
action filter_type
action union
action find
entity David S. Bill III
relation country of citizenship
action find
entity graviola
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['David S. Bill III', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['graviola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?s ) { ( resource:David_S._Bill_III ) ( resource:graviola ) } . ?s property:country_of_citizenship ?v } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q96
P47
Q15617994
USER
Does Mexico share border with those ones ?
(Q96,P47,Q774) (Q96,P47,Q30)
action is_in
entity prev_answer
action find
entity Q96
relation P47
['Q96', 'P47', 'Q774'] ['Q96', 'P47', 'Q30']
ASK WHERE { VALUES ( ?h ) { ( resource:Q774 ) ( resource:Q30 ) } . resource:Q96 property:P47 ?h }
Mexico
action is_in
entity prev_answer
action find
entity Mexico
relation shares border with
['Mexico', 'shares border with', 'Guatemala'] ['Mexico', 'shares border with', 'United States of America']
ASK WHERE { VALUES ( ?h ) { ( resource:Guatemala ) ( resource:United_States_of_America ) } . resource:Mexico property:shares_border_with ?h }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q96,P47,Q774) (Q96,P47,Q30)
action is_in
entity prev_answer
action find
entity Q96
relation P47
[ANSWER]
['Q96', 'P47', 'Q774'] ['Q96', 'P47', 'Q30']
ASK WHERE { VALUES ( ?h ) { ( resource:Q774 ) ( resource:Q30 ) } . resource:Q96 property:P47 ?h }
Yes
action is_in
entity prev_answer
action find
entity Mexico
relation shares border with
['Mexico', 'shares border with', 'Guatemala'] ['Mexico', 'shares border with', 'United States of America']
ASK WHERE { VALUES ( ?h ) { ( resource:Guatemala ) ( resource:United_States_of_America ) } . resource:Mexico property:shares_border_with ?h }
[]