Simple Question (Direct)
Simple Question
Q4719721
P166
Q618779
USER
Which awards were Alexander Murray, 8th Earl of Dunmore awarded with ?
(Q4719721,P166,c(Q618779))
action filter_type
action find
entity Q4719721
relation P166
type Q618779
['Q4719721', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q4719721 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Alexander Murray, 8th Earl of Dunmore
action filter_type
action find
entity Alexander Murray, 8th Earl of Dunmore
relation award received
type award
['Alexander Murray, 8th Earl of Dunmore', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Alexander_Murray,_8th_Earl_of_Dunmore property:award_received ?i . ?i rdf:type ontology:award }
[]
award
Q219578 Q615838
SYSTEM
Victoria Cross, Distinguished Service Order
Q219578 Q615838
(Q4719721,P166,c(Q618779))
action filter_type
action find
entity Q4719721
relation P166
type Q618779
Alexander Murray , 8th Earl of Dunmore were awarded the [ANSWERS]
['Q4719721', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q4719721 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Victoria Cross Distinguished Service Order
Alexander Murray , 8th Earl of Dunmore were awarded the Victoria Cross and Distinguished Service Order
Victoria Cross Distinguished Service Order
action filter_type
action find
entity Alexander Murray, 8th Earl of Dunmore
relation award received
type award
['Alexander Murray, 8th Earl of Dunmore', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Alexander_Murray,_8th_Earl_of_Dunmore property:award_received ?i . ?i rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4719721
P607
Q350604
USER
What battle were Alexander Murray, 8th Earl of Dunmore a part of ?
(Q4719721,P607,c(Q350604))
action filter_type
action find
entity Q4719721
relation P607
type Q350604
['Q4719721', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?x WHERE { resource:Q4719721 property:P607 ?x . ?x rdf:type ontology:Q350604 }
Alexander Murray, 8th Earl of Dunmore
action filter_type
action find
entity Alexander Murray, 8th Earl of Dunmore
relation conflict
type armed conflict
['Alexander Murray, 8th Earl of Dunmore', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?x WHERE { resource:Alexander_Murray,_8th_Earl_of_Dunmore property:conflict ?x . ?x rdf:type ontology:armed_conflict }
[]
armed conflict
Q31944 Q17025641
SYSTEM
Mahdist War, Tirah Campaign
Q31944 Q17025641
(Q4719721,P607,c(Q350604))
action filter_type
action find
entity Q4719721
relation P607
type Q350604
Alexander Murray , 8th Earl of Dunmore a part of were the [ANSWERS]
['Q4719721', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?x WHERE { resource:Q4719721 property:P607 ?x . ?x rdf:type ontology:Q350604 }
Mahdist War Tirah Campaign
Alexander Murray , 8th Earl of Dunmore a part of were the Mahdist War and Tirah Campaign
Mahdist War Tirah Campaign
action filter_type
action find
entity Alexander Murray, 8th Earl of Dunmore
relation conflict
type armed conflict
['Alexander Murray, 8th Earl of Dunmore', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?x WHERE { resource:Alexander_Murray,_8th_Earl_of_Dunmore property:conflict ?x . ?x rdf:type ontology:armed_conflict }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4719721
P20
Q56061
USER
Where did the demise of Alexander Murray, 8th Earl of Dunmore occur ?
(Q4719721,P20,c(Q56061))
action filter_type
action find
entity Q4719721
relation P20
type Q56061
['Q4719721', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q4719721 property:P20 ?q }
Alexander Murray, 8th Earl of Dunmore
action filter_type
action find
entity Alexander Murray, 8th Earl of Dunmore
relation place of death
type administrative territorial entity
['Alexander Murray, 8th Earl of Dunmore', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Alexander_Murray,_8th_Earl_of_Dunmore property:place_of_death ?q }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q4719721,P20,c(Q56061))
action filter_type
action find
entity Q4719721
relation P20
type Q56061
The demise of Alexander Murray , 8th Earl of Dunmore occurred in [ANSWER]
['Q4719721', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q4719721 property:P20 ?q }
London
The demise of Alexander Murray , 8th Earl of Dunmore occurred in London
London
action filter_type
action find
entity Alexander Murray, 8th Earl of Dunmore
relation place of death
type administrative territorial entity
['Alexander Murray, 8th Earl of Dunmore', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Alexander_Murray,_8th_Earl_of_Dunmore property:place_of_death ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4013931
Q56061
USER
And how about Virgilio Riento?
(Q4013931,P20,c(Q56061))
action filter_type
action find
entity Q4013931
relation P20
type Q56061
['Q4013931', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q4013931 property:P20 ?u }
Virgilio Riento
action filter_type
action find
entity Virgilio Riento
relation place of death
type administrative territorial entity
['Virgilio Riento', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Virgilio_Riento property:place_of_death ?u }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q4013931,P20,c(Q56061))
action filter_type
action find
entity Q4013931
relation P20
type Q56061
[ANSWER]
['Q4013931', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q4013931 property:P20 ?u }
Rome
Rome
action filter_type
action find
entity Virgilio Riento
relation place of death
type administrative territorial entity
['Virgilio Riento', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Virgilio_Riento property:place_of_death ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q220
P127
Q483110
USER
Which stadia are under posessision of that administrative territory ?
(c(Q483110),P127,Q220)
action filter_type
action find_reverse
entity Q220
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q220']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q483110 . ?b property:P127 resource:Q220 }
Rome
action filter_type
action find_reverse
entity Rome
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Rome']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:stadium . ?b property:owned_by resource:Rome }
[]
stadium
Q642958 Q1348100 Q3496273
SYSTEM
Stadio Nazionale PNF, Stadio Flaminio, Stadio Tre Fontane
Q642958 Q1348100 Q3496273
(c(Q483110),P127,Q220)
action filter_type
action find_reverse
entity Q220
relation P127
type Q483110
[ANSWERS] are under posessision of that administrative territory
[{'concept': 'Q483110'}, 'P127', 'Q220']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q483110 . ?b property:P127 resource:Q220 }
Stadio Nazionale PNF Stadio Flaminio Stadio Tre Fontane
Stadio Nazionale PNF, Stadio Flaminio and Stadio Tre Fontane are under posessision of that administrative territory
Stadio Nazionale PNF Stadio Flaminio Stadio Tre Fontane
action filter_type
action find_reverse
entity Rome
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Rome']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:stadium . ?b property:owned_by resource:Rome }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3496273
P17
Q15617994
USER
Which administrative territory is that stadium located in ?
(Q3496273,P17,c(Q15617994))
action filter_type
action find
entity Q3496273
relation P17
type Q15617994
['Q3496273', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3496273 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Stadio Tre Fontane
action filter_type
action find
entity Stadio Tre Fontane
relation country
type designation for an administrative territorial entity
['Stadio Tre Fontane', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stadio_Tre_Fontane property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q3496273
SYSTEM
Did you mean Stadio Tre Fontane ?
Q642958 Q1348100 Q3496273
(Q642958,P17,c(Q15617994)) (Q1348100,P17,c(Q15617994)) (Q3496273,P17,c(Q15617994))
[ANSWER]
['Q642958', 'P17', {'concept': 'Q15617994'}] ['Q1348100', 'P17', {'concept': 'Q15617994'}] ['Q3496273', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3496273 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Stadio Nazionale PNF Stadio Flaminio Stadio Tre Fontane
Did you mean Stadio Tre Fontane ?
Stadio Tre Fontane
['Stadio Nazionale PNF', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Stadio Flaminio', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Stadio Tre Fontane', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stadio_Tre_Fontane property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3496273,P17,c(Q15617994))
['Q3496273', 'P17', {'concept': 'Q15617994'}]
['Stadio Tre Fontane', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q3496273,P17,c(Q15617994))
action filter_type
action find
entity Q3496273
relation P17
type Q15617994
That stadium is located in [ANSWER]
['Q3496273', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3496273 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Italy
That stadium is located in Italy
Italy
action filter_type
action find
entity Stadio Tre Fontane
relation country
type designation for an administrative territorial entity
['Stadio Tre Fontane', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stadio_Tre_Fontane property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q7725634
USER
Which administrative territories are the countries of origin of more number of works of art or literary works than that administrative territory ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q38
relation P495
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?d ) WHERE { { ?j property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q838948 } UNION { ?j property:P495 ?f . ?j rdf:type ontology:Q7725634 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P495 resource:Q38 . { { ?a rdf:type ontology:Q838948 } UNION { ?a rdf:type ontology:Q7725634 } } } } . FILTER ( ?d > ?q ) }
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Italy
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?d ) WHERE { { ?j property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:work_of_art } UNION { ?j property:country_of_origin ?f . ?j rdf:type ontology:literary_work . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:country_of_origin resource:Italy . { { ?a rdf:type ontology:work_of_art } UNION { ?a rdf:type ontology:literary_work } } } } . FILTER ( ?d > ?q ) }
[]
designation for an administrative territorial entity work of art literary work
Q30 Q142 Q145
SYSTEM
United States of America, France, United Kingdom
Q668 Q142 Q145 Q30
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q38
relation P495
type Q838948
type Q7725634
[ANSWERS] are the countries of origin of more number of works of art or literary works than that administrative territory
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?d ) WHERE { { ?j property:P495 ?f . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q838948 } UNION { ?j property:P495 ?f . ?j rdf:type ontology:Q7725634 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P495 resource:Q38 . { { ?a rdf:type ontology:Q838948 } UNION { ?a rdf:type ontology:Q7725634 } } } } . FILTER ( ?d > ?q ) }
India France United Kingdom United States of America
United States of America, France and United Kingdom are the countries of origin of more number of works of art or literary works than that administrative territory
United States of America France United Kingdom
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Italy
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?d ) WHERE { { ?j property:country_of_origin ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:work_of_art } UNION { ?j property:country_of_origin ?f . ?j rdf:type ontology:literary_work . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:country_of_origin resource:Italy . { { ?a rdf:type ontology:work_of_art } UNION { ?a rdf:type ontology:literary_work } } } } . FILTER ( ?d > ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q664
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with more number of administrative territories than New Zealand ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?k ) WHERE { ?r property:P530 ?u . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q664 property:P530 ?c } } . FILTER ( ?k > ?f ) }
New Zealand
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?k ) WHERE { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:New_Zealand property:diplomatic_relation ?c } } . FILTER ( ?k > ?f ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with more number of administrative territories than New Zealand
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?k ) WHERE { ?r property:P530 ?u . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q664 property:P530 ?c } } . FILTER ( ?k > ?f ) }
Austria Germany Australia Denmark Canada
Germany, Australia and Denmark are known to have diplomatic connections with more number of administrative territories than New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?k ) WHERE { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:New_Zealand property:diplomatic_relation ?c } } . FILTER ( ?k > ?f ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35
P30
Q2221906
USER
Which geographic location is that political territory located in ?
(Q35,P30,c(Q2221906))
action filter_type
action find
entity Q35
relation P30
type Q2221906
['Q35', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q35 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Denmark
action filter_type
action find
entity Denmark
relation continent
type geographic location
['Denmark', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Denmark property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q408
SYSTEM
Did you mean Australia ?
Q183 Q408 Q35
(Q183,P30,c(Q2221906)) (Q408,P30,c(Q2221906)) (Q35,P30,c(Q2221906))
[ANSWER]
['Q183', 'P30', {'concept': 'Q2221906'}] ['Q408', 'P30', {'concept': 'Q2221906'}] ['Q35', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q35 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Germany Australia Denmark
Did you mean Australia ?
Australia
['Germany', 'continent', {'concept': 'geographic location'}] ['Australia', 'continent', {'concept': 'geographic location'}] ['Denmark', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Denmark property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
No, I meant Denmark. Could you tell me the answer for that?
(Q35,P30,c(Q2221906))
Q35
['Q35', 'P30', {'concept': 'Q2221906'}]
['Denmark', 'continent', {'concept': 'geographic location'}]
[]
Q46
SYSTEM
Europe
Q46
(Q35,P30,c(Q2221906))
action filter_type
action find
entity Q35
relation P30
type Q2221906
That political territory is located in [ANSWER]
['Q35', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q35 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Europe
That political territory is located in Europe
Europe
action filter_type
action find
entity Denmark
relation continent
type geographic location
['Denmark', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Denmark property:continent ?p . ?p rdf:type ontology:geographic_location }
[]